From d23d098c2931e3b4ccc3e384dfa3700741b1cc65 Mon Sep 17 00:00:00 2001 From: Yuqi Huai Date: Fri, 1 May 2026 21:50:55 -0700 Subject: [PATCH] fix(dreamview_plus): display traffic light status --- .../frontend/dist/188.ab1e190a8d53c1f974d0.js | 2 + .../188.ab1e190a8d53c1f974d0.js.LICENSE.txt | 84 ++ .../frontend/dist/323.8dc26690901af141ed3c.js | 1 + .../frontend/dist/329.6cb8c19d6743b03714e6.js | 1 + .../frontend/dist/388.6d1869f2d81827e1adaf.js | 1 + .../frontend/dist/439.c5fbada8e231d81234ee.js | 1 + .../frontend/dist/459.279945b9afeef54d020f.js | 2 + .../459.279945b9afeef54d020f.js.LICENSE.txt | 1 + .../dist/459.adcc7aac7d547123c81f.css | 222 ++++ .../frontend/dist/460.addab0b806475648f069.js | 1 + .../frontend/dist/534.a531e47b81b6e8d3df9e.js | 1 + .../frontend/dist/622.038bb72bb66571cb7640.js | 2 + .../622.038bb72bb66571cb7640.js.LICENSE.txt | 1 + .../frontend/dist/622.0835bf591445c7c7f06e.js | 2 + .../622.0835bf591445c7c7f06e.js.LICENSE.txt | 1 + .../frontend/dist/622.13d2d6430b2dc0784d15.js | 2 + .../622.13d2d6430b2dc0784d15.js.LICENSE.txt | 1 + .../frontend/dist/622.27366325625a5ef2788c.js | 2 + .../622.27366325625a5ef2788c.js.LICENSE.txt | 1 + .../frontend/dist/622.3616bc0503da8305badc.js | 2 + .../622.3616bc0503da8305badc.js.LICENSE.txt | 1 + .../frontend/dist/622.4f15a40533b50736afae.js | 2 + .../622.4f15a40533b50736afae.js.LICENSE.txt | 1 + .../frontend/dist/622.77bd4e09d1fa2f61e3e9.js | 2 + .../622.77bd4e09d1fa2f61e3e9.js.LICENSE.txt | 1 + .../frontend/dist/622.7ab6765bea84b8cfa1cc.js | 2 + .../622.7ab6765bea84b8cfa1cc.js.LICENSE.txt | 1 + .../frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js | 2 + .../622.8f5e7ca5cd9a8c93ac0b.js.LICENSE.txt | 1 + .../dist/622.d22217ad72dabd6fa70f.css | 1174 +++++++++++++++++ .../frontend/dist/622.ddab4f36be6edd29874b.js | 2 + .../622.ddab4f36be6edd29874b.js.LICENSE.txt | 1 + .../frontend/dist/622.eba5966361712e02fdc9.js | 2 + .../622.eba5966361712e02fdc9.js.LICENSE.txt | 1 + .../frontend/dist/622.eff2a72a7b7b4880ffc4.js | 2 + .../622.eff2a72a7b7b4880ffc4.js.LICENSE.txt | 1 + .../frontend/dist/622.f21812e2a1f55520a37e.js | 2 + .../622.f21812e2a1f55520a37e.js.LICENSE.txt | 1 + .../frontend/dist/628.e7fba4fe2852c5efb57f.js | 1 + .../frontend/dist/666.61c9442070b0f9ecdd75.js | 1 + .../frontend/dist/781.cdc7d9148dc8ec954a06.js | 1 + .../frontend/dist/782.1380d1be38b216372eaf.js | 1 + .../frontend/dist/782.8cd7de231b469a8fee1d.js | 1 + .../frontend/dist/782.93d5c1d1668c44476eed.js | 1 + .../frontend/dist/782.a305db52fb17542146ce.js | 1 + .../frontend/dist/782.ab4041d90e2bf9653ecc.js | 1 + .../frontend/dist/782.d09abc98db2d0818c80a.js | 1 + .../frontend/dist/782.d9ff38dd0e8b1cbbcec9.js | 1 + .../frontend/dist/893.d6f99a45208df40ce29c.js | 2 + .../893.d6f99a45208df40ce29c.js.LICENSE.txt | 24 + .../frontend/dist/907.f8cf3a279bae082ca3c2.js | 1 + .../frontend/dist/973.101e605f6f5b7163c122.js | 1 + .../frontend/dist/997.06c57a55619417923f4f.js | 2 + .../997.06c57a55619417923f4f.js.LICENSE.txt | 1 + .../frontend/dist/997.568b010f9f23ead5e272.js | 2 + .../997.568b010f9f23ead5e272.js.LICENSE.txt | 1 + .../frontend/dist/997.584cfe6ab2aebf5536ea.js | 2 + .../997.584cfe6ab2aebf5536ea.js.LICENSE.txt | 1 + .../frontend/dist/997.8a4f3533be12f18f5c1a.js | 2 + .../997.8a4f3533be12f18f5c1a.js.LICENSE.txt | 1 + .../frontend/dist/997.8d01333ad07448e68e96.js | 2 + .../997.8d01333ad07448e68e96.js.LICENSE.txt | 1 + .../frontend/dist/997.affc93900944bf4491e4.js | 2 + .../997.affc93900944bf4491e4.js.LICENSE.txt | 1 + .../frontend/dist/997.c9f3060c5a861df6ac8d.js | 2 + .../997.c9f3060c5a861df6ac8d.js.LICENSE.txt | 1 + .../frontend/dist/997.d86f0be8f41ac2e9b135.js | 2 + .../997.d86f0be8f41ac2e9b135.js.LICENSE.txt | 1 + ...ldWs.worker.fbe16c07fb622fd0c80d.worker.js | 2 + ...fbe16c07fb622fd0c80d.worker.js.LICENSE.txt | 8 + ...oder.worker.08568614683c7e1f95eb.worker.js | 2 + ...08568614683c7e1f95eb.worker.js.LICENSE.txt | 1 + ...oder.worker.13581ed11d447297fbb4.worker.js | 2 + ...13581ed11d447297fbb4.worker.js.LICENSE.txt | 1 + ...oder.worker.2ca0abf6238e51cde8d0.worker.js | 2 + ...2ca0abf6238e51cde8d0.worker.js.LICENSE.txt | 1 + ...oder.worker.3be3f935f22ee8988bff.worker.js | 2 + ...3be3f935f22ee8988bff.worker.js.LICENSE.txt | 1 + ...oder.worker.3f8271faf7d1d34a06cb.worker.js | 2 + ...3f8271faf7d1d34a06cb.worker.js.LICENSE.txt | 1 + ...oder.worker.761349d3fa54b837ccba.worker.js | 2 + ...761349d3fa54b837ccba.worker.js.LICENSE.txt | 1 + ...oder.worker.91fd690c24f3384721e7.worker.js | 2 + ...91fd690c24f3384721e7.worker.js.LICENSE.txt | 1 + ...oder.worker.c02961d6ed7e2de8bed4.worker.js | 2 + ...c02961d6ed7e2de8bed4.worker.js.LICENSE.txt | 1 + ...oder.worker.c09a115dddf36d899e64.worker.js | 2 + ...c09a115dddf36d899e64.worker.js.LICENSE.txt | 1 + ...oder.worker.c1ab248e980c0ae9a6ca.worker.js | 2 + ...c1ab248e980c0ae9a6ca.worker.js.LICENSE.txt | 1 + ...oder.worker.c417bd1f78f6a50fa95c.worker.js | 2 + ...c417bd1f78f6a50fa95c.worker.js.LICENSE.txt | 1 + ...oder.worker.d0b46bd25ffbe3e30d6a.worker.js | 2 + ...d0b46bd25ffbe3e30d6a.worker.js.LICENSE.txt | 1 + ...oder.worker.e5ab3e94774d990ec5ac.worker.js | 2 + ...e5ab3e94774d990ec5ac.worker.js.LICENSE.txt | 1 + .../dreamview_plus/frontend/dist/index.html | 2 +- .../dist/main.12f18bb3a66d34afda59.js | 2 + .../main.12f18bb3a66d34afda59.js.LICENSE.txt | 41 + .../dist/main.17bdb9a6f5585647e3b2.js | 2 + .../main.17bdb9a6f5585647e3b2.js.LICENSE.txt | 41 + .../dist/main.231d67157c636ca73901.js | 2 + .../main.231d67157c636ca73901.js.LICENSE.txt | 41 + .../dist/main.271fa46297639dbcfd55.js | 2 + .../main.271fa46297639dbcfd55.js.LICENSE.txt | 41 + .../dist/main.43fc333b51e61e04dac2.js | 2 + .../main.43fc333b51e61e04dac2.js.LICENSE.txt | 41 + .../dist/main.4576112b237a289f1e85.js | 2 + .../main.4576112b237a289f1e85.js.LICENSE.txt | 41 + .../dist/main.62a71863db1f00d3f51a.js | 2 + .../main.62a71863db1f00d3f51a.js.LICENSE.txt | 41 + .../dist/main.afcb1fd051f3f772316c.js | 2 + .../main.afcb1fd051f3f772316c.js.LICENSE.txt | 41 + .../dist/main.bfb363af70a3ed2b9c92.js | 2 + .../main.bfb363af70a3ed2b9c92.js.LICENSE.txt | 41 + .../dist/main.c6f07f1f25cda798ef8e.js | 2 + .../main.c6f07f1f25cda798ef8e.js.LICENSE.txt | 41 + .../dist/main.cc7824bdbbedae943e47.js | 2 + .../main.cc7824bdbbedae943e47.js.LICENSE.txt | 41 + .../dist/main.e2e33e66ed0aaf5428cc.js | 2 + .../main.e2e33e66ed0aaf5428cc.js.LICENSE.txt | 41 + .../dist/main.ebe660b230cc569423be.js | 2 + .../main.ebe660b230cc569423be.js.LICENSE.txt | 41 + .../dreamview-carviz/src/Carviz.class.ts | 4 + .../src/render/map/trafficSignal.ts | 2 +- .../packages/dreamview-core/package.json | 2 +- .../components/panels/VehicleViz/index.tsx | 6 + 127 files changed, 2213 insertions(+), 3 deletions(-) create mode 100644 modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js create mode 100644 modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/323.8dc26690901af141ed3c.js create mode 100644 modules/dreamview_plus/frontend/dist/329.6cb8c19d6743b03714e6.js create mode 100644 modules/dreamview_plus/frontend/dist/388.6d1869f2d81827e1adaf.js create mode 100644 modules/dreamview_plus/frontend/dist/439.c5fbada8e231d81234ee.js create mode 100644 modules/dreamview_plus/frontend/dist/459.279945b9afeef54d020f.js create mode 100644 modules/dreamview_plus/frontend/dist/459.279945b9afeef54d020f.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/459.adcc7aac7d547123c81f.css create mode 100644 modules/dreamview_plus/frontend/dist/460.addab0b806475648f069.js create mode 100644 modules/dreamview_plus/frontend/dist/534.a531e47b81b6e8d3df9e.js create mode 100644 modules/dreamview_plus/frontend/dist/622.038bb72bb66571cb7640.js create mode 100644 modules/dreamview_plus/frontend/dist/622.038bb72bb66571cb7640.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js create mode 100644 modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js create mode 100644 modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js create mode 100644 modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js create mode 100644 modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js create mode 100644 modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js create mode 100644 modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js create mode 100644 modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js create mode 100644 modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.d22217ad72dabd6fa70f.css create mode 100644 modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js create mode 100644 modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js create mode 100644 modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js create mode 100644 modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js create mode 100644 modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/628.e7fba4fe2852c5efb57f.js create mode 100644 modules/dreamview_plus/frontend/dist/666.61c9442070b0f9ecdd75.js create mode 100644 modules/dreamview_plus/frontend/dist/781.cdc7d9148dc8ec954a06.js create mode 100644 modules/dreamview_plus/frontend/dist/782.1380d1be38b216372eaf.js create mode 100644 modules/dreamview_plus/frontend/dist/782.8cd7de231b469a8fee1d.js create mode 100644 modules/dreamview_plus/frontend/dist/782.93d5c1d1668c44476eed.js create mode 100644 modules/dreamview_plus/frontend/dist/782.a305db52fb17542146ce.js create mode 100644 modules/dreamview_plus/frontend/dist/782.ab4041d90e2bf9653ecc.js create mode 100644 modules/dreamview_plus/frontend/dist/782.d09abc98db2d0818c80a.js create mode 100644 modules/dreamview_plus/frontend/dist/782.d9ff38dd0e8b1cbbcec9.js create mode 100644 modules/dreamview_plus/frontend/dist/893.d6f99a45208df40ce29c.js create mode 100644 modules/dreamview_plus/frontend/dist/893.d6f99a45208df40ce29c.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/907.f8cf3a279bae082ca3c2.js create mode 100644 modules/dreamview_plus/frontend/dist/973.101e605f6f5b7163c122.js create mode 100644 modules/dreamview_plus/frontend/dist/997.06c57a55619417923f4f.js create mode 100644 modules/dreamview_plus/frontend/dist/997.06c57a55619417923f4f.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.568b010f9f23ead5e272.js create mode 100644 modules/dreamview_plus/frontend/dist/997.568b010f9f23ead5e272.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.584cfe6ab2aebf5536ea.js create mode 100644 modules/dreamview_plus/frontend/dist/997.584cfe6ab2aebf5536ea.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.8a4f3533be12f18f5c1a.js create mode 100644 modules/dreamview_plus/frontend/dist/997.8a4f3533be12f18f5c1a.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.8d01333ad07448e68e96.js create mode 100644 modules/dreamview_plus/frontend/dist/997.8d01333ad07448e68e96.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.affc93900944bf4491e4.js create mode 100644 modules/dreamview_plus/frontend/dist/997.affc93900944bf4491e4.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.c9f3060c5a861df6ac8d.js create mode 100644 modules/dreamview_plus/frontend/dist/997.c9f3060c5a861df6ac8d.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/997.d86f0be8f41ac2e9b135.js create mode 100644 modules/dreamview_plus/frontend/dist/997.d86f0be8f41ac2e9b135.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/childWs.worker.fbe16c07fb622fd0c80d.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/childWs.worker.fbe16c07fb622fd0c80d.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js create mode 100644 modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.12f18bb3a66d34afda59.js create mode 100644 modules/dreamview_plus/frontend/dist/main.12f18bb3a66d34afda59.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.17bdb9a6f5585647e3b2.js create mode 100644 modules/dreamview_plus/frontend/dist/main.17bdb9a6f5585647e3b2.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.231d67157c636ca73901.js create mode 100644 modules/dreamview_plus/frontend/dist/main.231d67157c636ca73901.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.271fa46297639dbcfd55.js create mode 100644 modules/dreamview_plus/frontend/dist/main.271fa46297639dbcfd55.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.43fc333b51e61e04dac2.js create mode 100644 modules/dreamview_plus/frontend/dist/main.43fc333b51e61e04dac2.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.4576112b237a289f1e85.js create mode 100644 modules/dreamview_plus/frontend/dist/main.4576112b237a289f1e85.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.62a71863db1f00d3f51a.js create mode 100644 modules/dreamview_plus/frontend/dist/main.62a71863db1f00d3f51a.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.afcb1fd051f3f772316c.js create mode 100644 modules/dreamview_plus/frontend/dist/main.afcb1fd051f3f772316c.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.bfb363af70a3ed2b9c92.js create mode 100644 modules/dreamview_plus/frontend/dist/main.bfb363af70a3ed2b9c92.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.c6f07f1f25cda798ef8e.js create mode 100644 modules/dreamview_plus/frontend/dist/main.c6f07f1f25cda798ef8e.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.cc7824bdbbedae943e47.js create mode 100644 modules/dreamview_plus/frontend/dist/main.cc7824bdbbedae943e47.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.e2e33e66ed0aaf5428cc.js create mode 100644 modules/dreamview_plus/frontend/dist/main.e2e33e66ed0aaf5428cc.js.LICENSE.txt create mode 100644 modules/dreamview_plus/frontend/dist/main.ebe660b230cc569423be.js create mode 100644 modules/dreamview_plus/frontend/dist/main.ebe660b230cc569423be.js.LICENSE.txt diff --git a/modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js b/modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js new file mode 100644 index 00000000000..6341cd13315 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js @@ -0,0 +1,2 @@ +/*! For license information please see 188.ab1e190a8d53c1f974d0.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[188],{56819(e,t,n){"use strict";n.d(t,{z1:()=>E,cM:()=>f,uy:()=>p});var r=n(22256);const i=Math.round;function o(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const a=(e,t,n)=>0===n?e:e/100;function s(e,t){const n=t||255;return e>n?n:e<0?0:e}class l{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.A)(this,"isValid",!0),(0,r.A)(this,"r",0),(0,r.A)(this,"g",0),(0,r.A)(this,"b",0),(0,r.A)(this,"a",1),(0,r.A)(this,"_h",void 0),(0,r.A)(this,"_s",void 0),(0,r.A)(this,"_l",void 0),(0,r.A)(this,"_v",void 0),(0,r.A)(this,"_max",void 0),(0,r.A)(this,"_min",void 0),(0,r.A)(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function i(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(e instanceof l)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=s(e.r),this.g=s(e.g),this.b=s(e.b),this.a="number"==typeof e.a?s(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:i(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],a={r:i(o("r")),g:i(o("g")),b:i(o("b")),a:i(100*o("a"))/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>i((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=i(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=i(100*this.getSaturation()),n=i(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=s(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=i(255*n);this.r=e,this.g=e,this.b=e}let o=0,a=0,s=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=n-c/2;this.r=i(255*(o+d)),this.g=i(255*(a+d)),this.b=i(255*(s+d))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=i(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,s=Math.floor(a),l=a-s,c=i(n*(1-t)*255),u=i(n*(1-t*l)*255),d=i(n*(1-t*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=o(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=o(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=o(e,(e,t)=>t.includes("%")?i(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var c=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function u(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function d(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function h(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new l(e),i=r.toHsv(),o=5;o>0;o-=1){var a=new l({h:u(i,o,!0),s:d(i,o,!0),v:h(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var f=new l({h:u(i,s),s:d(i,s),v:h(i,s)});n.push(f)}return"dark"===t.theme?c.map(function(e){var r=e.index,i=e.amount;return new l(t.backgroundColor||"#141414").mix(n[r],i).toHexString()}):n.map(function(e){return e.toHexString()})}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},m=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];m.primary=m[5];var g=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];g.primary=g[5];var v=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];v.primary=v[5];var A=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];A.primary=A[5];var y=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];y.primary=y[5];var b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];var x=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];x.primary=x[5];var S=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];S.primary=S[5];var E=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];E.primary=E[5];var C=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];C.primary=C[5];var w=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];w.primary=w[5];var _=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_.primary=_[5];var I=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];I.primary=I[5];var T=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];T.primary=T[5];var M=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];M.primary=M[5];var R=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];R.primary=R[5];var O=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];O.primary=O[5];var P=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];P.primary=P[5];var N=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];N.primary=N[5];var k=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];k.primary=k[5];var D=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];D.primary=D[5];var L=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];L.primary=L[5];var B=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];B.primary=B[5];var F=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];F.primary=F[5];var U=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];U.primary=U[5];var z=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];z.primary=z[5]},5147(e,t,n){"use strict";n.d(t,{Mo:()=>ze,an:()=>_,hV:()=>H,IV:()=>Fe});var r=n(22256),i=n(34355),o=n(53563),a=n(40942);const s=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var l=n(48222),c=n(40366),u=n.t(c,2),d=(n(11489),n(81211),n(20582)),h=n(79520);function f(e){return e.join("%")}const p=function(){function e(t){(0,d.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),(0,r.A)(this,"extracted",new Set),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(f(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(f(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var m="data-token-hash",g="data-css-hash",v="__cssinjs_instance__";const A=c.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(g,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[v]=t[v]||e,t[v]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(g,"]"))).forEach(function(t){var n,i=t.getAttribute(g);r[i]?t[v]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0})}return new p(e)}(),defaultCache:!0});var y=n(35739),b=n(39999);new RegExp("CALC_UNIT","g");var x=function(){function e(){(0,d.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return e.forEach(function(e){var t;i=i?null===(t=i)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0}),null!==(t=i)&&void 0!==t&&t.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),E+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),w=new x;function _(e){var t=Array.isArray(e)?e:[e];return w.has(t)||w.set(t,new C(t)),w.get(t)}var I=new WeakMap,T={},M=new WeakMap;function R(e){var t=M.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof C?t+=r.id:r&&"object"===(0,y.A)(r)?t+=R(r):t+=r}),t=s(t),M.set(e,t)),t}function O(e,t){return s("".concat(t,"_").concat(R(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var P=(0,b.A)();function N(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=(0,a.A)((0,a.A)({},i),{},(0,r.A)((0,r.A)({},m,t),g,n)),s=Object.keys(o).map(function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var k=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,i.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},D=n(34148),L=(0,a.A)({},u).useInsertionEffect;const B=L?function(e,t,n){return L(function(){return e(),t()},n)}:function(e,t,n){c.useMemo(e,n),(0,D.A)(function(){return t(!0)},n)},F=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function U(e,t,n,r,a){var s=c.useContext(A).cache,l=f([e].concat((0,o.A)(t))),u=F([l]),d=function(e){s.opUpdate(l,function(t){var r=t||[void 0,void 0],o=(0,i.A)(r,2),a=o[0],s=[void 0===a?0:a,o[1]||n()];return e?e(s):s})};c.useMemo(function(){d()},[l]);var h=s.opGet(l)[1];return B(function(){null==a||a(h)},function(e){return d(function(t){var n=(0,i.A)(t,2),r=n[0],o=n[1];return e&&0===r&&(null==a||a(h)),[r+1,o]}),function(){s.opUpdate(l,function(t){var n=t||[],o=(0,i.A)(n,2),a=o[0],c=void 0===a?0:a,d=o[1];return 0==c-1?(u(function(){!e&&s.opGet(l)||null==r||r(d,!1)}),null):[c-1,d]})}},[l]),h}var z={},j=new Map;var $="token";function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(A),u=r.cache.instanceId,d=r.container,h=n.salt,f=void 0===h?"":h,p=n.override,y=void 0===p?z:p,b=n.formatToken,x=n.getComputedToken,S=n.cssVar,E=function(e,n){for(var r=I,i=0;i1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()}(l,null==n?void 0:n.prefix);r[d]="number"!=typeof c||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[l]?String(c):"".concat(c,"px"),o[l]="var(".concat(d,")")}}),[o,k(r,t,{scope:null==n?void 0:n.scope})]}(n,S.key,{prefix:S.prefix,ignore:S.ignore,unitless:S.unitless,preserve:S.preserve}),c=(0,i.A)(l,2);n=c[0],o=c[1]}var u=O(n,f);n._tokenKey=u,r._tokenKey=O(r,f);var d=null!==(t=null==S?void 0:S.key)&&void 0!==t?t:u;n._themeKey=d,function(e){j.set(e,(j.get(e)||0)+1)}(d);var h="".concat("css","-").concat(s(u));return n._hashId=h,[n,h,r,o,(null==S?void 0:S.key)||""]},function(e){!function(e,t){j.set(e,(j.get(e)||0)-1);var n=new Set;j.forEach(function(e,t){e<=0&&n.add(t)}),j.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(m,'="').concat(e,'"]')).forEach(function(e){var n;e[v]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),j.delete(e)})}(e[0]._themeKey,u)},function(e){var t=(0,i.A)(e,4),n=t[0],r=t[3];if(S&&r){var o=(0,l.BD)(r,s("css-variables-".concat(n._themeKey)),{mark:g,prepend:"queue",attachTo:d,priority:-999});o[v]=u,o.setAttribute(m,n._themeKey)}});return M}var G=n(32549);const Q={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var V="comm",W="rule",X="decl",q=Math.abs,Y=String.fromCharCode;function K(e){return e.trim()}function J(e,t,n){return e.replace(t,n)}function Z(e,t){return 0|e.charCodeAt(t)}function ee(e,t,n){return e.slice(t,n)}function te(e){return e.length}function ne(e,t){return t.push(e),e}function re(e,t){for(var n="",r=0;r0?Z(ue,--le):0,ae--,10===ce&&(ae=1,oe--),ce}function fe(){return ce=le2||ve(ce)>3?"":" "}function be(e,t){for(;--t&&fe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return ge(e,me()+(t<6&&32==pe()&&32==fe()))}function xe(e){for(;fe();)switch(ce){case e:return le;case 34:case 39:34!==e&&39!==e&&xe(ce);break;case 40:41===e&&xe(e);break;case 92:fe()}return le}function Se(e,t){for(;fe()&&e+ce!==57&&(e+ce!==84||47!==pe()););return"/*"+ge(t,le-1)+"*"+Y(47===e?e:fe())}function Ee(e){for(;!ve(pe());)fe();return ge(e,le)}function Ce(e){return function(e){return ue="",e}(we("",null,null,null,[""],e=function(e){return oe=ae=1,se=te(ue=e),le=0,[]}(e),0,[0],e))}function we(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,f=0,p=0,m=1,g=1,v=1,A=0,y=0,b="",x=i,S=o,E=r,C=b;g;)switch(p=y,y=fe()){case 40:108!=p&&58==Z(C,d-1)?(A++,C+="("):C+=Ae(y);break;case 41:A--,C+=")";break;case 34:case 39:case 91:C+=Ae(y);break;case 9:case 10:case 13:case 32:if(A>0){C+=Y(y);break}C+=ye(p);break;case 92:C+=be(me()-1,7);continue;case 47:switch(pe()){case 42:case 47:ne(Ie(Se(fe(),me()),t,n,l),l),5!=ve(p||1)&&5!=ve(pe()||1)||!te(C)||" "===ee(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=te(C)*v;case 125*m:case 59:case 0:if(A>0&&y){C+=Y(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(C=J(C,/\f/g,"")),f>0&&(te(C)-d||0===m)&&ne(f>32?Te(C+";",r,n,d-1,l):Te(J(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(ne(E=_e(C,t,n,c,u,i,s,b,x=[],S=[],d,o),o),123===y)if(0===u)we(C,t,E,E,x,o,d,s,S);else{switch(h){case 99:if(110===Z(C,3))break;case 108:if(97===Z(C,2))break;default:u=0;case 100:case 109:case 115:}u?we(e,E,E,r&&ne(_e(e,E,E,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):we(C,E,E,E,[""],S,0,s,S)}}c=u=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+te(C),f=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==he())continue;switch(C+=Y(y),y*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:if(A>0)break;s[c++]=(te(C)-1)*v,v=1;break;case 64:45===pe()&&(C+=Ae(fe())),h=pe(),u=d=te(b=C+=Ee(me())),y++;break;case 45:45===p&&2==te(C)&&(m=0)}}return o}function _e(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,f=0===i?o:[""],p=function(e){return e.length}(f),m=0,g=0,v=0;m0?f[A]+" "+y:J(y,/&\f/g,f[A])))&&(l[v++]=b);return de(e,t,n,0===i?W:s,l,c,u,d)}function Ie(e,t,n,r){return de(e,t,n,V,Y(ce),ee(e,2,-2),0,r)}function Te(e,t,n,r,i){return de(e,t,n,X,ee(e,0,r),ee(e,r+1,-1),r,i)}var Me,Re="data-ant-cssinjs-cache-path",Oe="_FILE_STYLE__",Pe=!0;var Ne="_multi_value_";function ke(e){return re(Ce(e),ie).replace(/\{%%%\:[^;];}/g,";")}var De=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,h=(n.path,n.hashPriority),f=n.transformers,p=void 0===f?[]:f,m=(n.linters,""),g={};function v(t){var r=t.getName(u);if(!g[r]){var o=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,i.A)(o,1)[0];g[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var A=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return A.forEach(function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=p.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(d).forEach(function(t){var r=d[t];if("object"!==(0,y.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,y.A)(e)&&e&&("_skip_check_"in e||Ne in e)}(r)){var f;function _(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;Q[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var p=null!==(f=null==r?void 0:r.value)&&void 0!==f?f:r;"object"===(0,y.A)(r)&&null!=r&&r[Ne]&&Array.isArray(p)?p.forEach(function(e){_(t,e)}):_(t,p)}else{var A=!1,b=t.trim(),x=!1;(s||l)&&u?b.startsWith("@")?A=!0:b=function(e,t,n){if(!t)return e;var r=".".concat(t),i="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(i).concat(r.slice(a.length))].concat((0,o.A)(n.slice(1))).join(" ")}).join(",")}("&"===b?"":t,u,h):!s||u||"&"!==b&&""!==b||(b="",x=!0);var S=e(r,n,{root:x,injectHash:A,parentSelectors:[].concat((0,o.A)(c),[b])}),E=(0,i.A)(S,2),C=E[0],w=E[1];g=(0,a.A)((0,a.A)({},g),w),m+="".concat(b).concat(C)}})}}),s?d&&(m&&(m="@layer ".concat(d.name," {").concat(m,"}")),d.dependencies&&(g["@layer ".concat(d.name)]=d.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(d.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function Le(){return null}var Be="style";function Fe(e,t){var n=e.token,u=e.path,d=e.hashId,h=e.layer,f=e.nonce,p=e.clientOnly,y=e.order,x=void 0===y?0:y,S=c.useContext(A),E=S.autoClear,C=(S.mock,S.defaultCache),w=S.hashPriority,_=S.container,I=S.ssrInline,T=S.transformers,M=S.linters,R=S.cache,O=S.layer,N=n._tokenKey,k=[N];O&&k.push("layer"),k.push.apply(k,(0,o.A)(u));var D=P,L=U(Be,k,function(){var e=k.join("|");if(function(e){return function(){if(!Me&&(Me={},(0,b.A)())){var e=document.createElement("div");e.className=Re,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.A)(t,2),r=n[0],o=n[1];Me[r]=o});var n,r=document.querySelector("style[".concat(Re,"]"));r&&(Pe=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Me[e]}(e)){var n=function(e){var t=Me[e],n=null;if(t&&(0,b.A)())if(Pe)n=Oe;else{var r=document.querySelector("style[".concat(g,'="').concat(Me[e],'"]'));r?n=r.innerHTML:delete Me[e]}return[n,t]}(e),r=(0,i.A)(n,2),o=r[0],a=r[1];if(o)return[o,N,a,{},p,x]}var l=t(),c=De(l,{hashId:d,hashPriority:w,layer:O?h:void 0,path:u.join("-"),transformers:T,linters:M}),f=(0,i.A)(c,2),m=f[0],v=f[1],A=ke(m),y=function(e,t){return s("".concat(e.join("%")).concat(t))}(k,A);return[A,N,y,v,p,x]},function(e,t){var n=(0,i.A)(e,3)[2];(t||E)&&P&&(0,l.m6)(n,{mark:g,attachTo:_})},function(e){var t=(0,i.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(D&&n!==Oe){var s={mark:g,prepend:!O&&"queue",attachTo:_,priority:x},c="function"==typeof f?f():f;c&&(s.csp={nonce:c});var u=[],d=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?u.push(e):d.push(e)}),u.forEach(function(e){(0,l.BD)(ke(o[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},s),{},{prepend:!0}))});var h=(0,l.BD)(n,r,s);h[v]=R.instanceId,h.setAttribute(m,N),d.forEach(function(e){(0,l.BD)(ke(o[e]),"_effect-".concat(e),s)})}}),B=(0,i.A)(L,3),F=B[0],z=B[1],j=B[2];return function(e){var t;return t=I&&!D&&C?c.createElement("style",(0,G.A)({},(0,r.A)((0,r.A)({},m,z),g,j),{dangerouslySetInnerHTML:{__html:F}})):c.createElement(Le,null),c.createElement(c.Fragment,null,t,e)}}(0,r.A)((0,r.A)((0,r.A)({},Be,function(e,t,n){var r=(0,i.A)(e,6),o=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var h=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=N(o,a,s,f,d),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=N(ke(l[e]),a,"_effect-".concat(e),f,d);e.startsWith("@layer")?h=n+h:h+=n}}),[u,s,h]}),$,function(e,t,n){var r=(0,i.A)(e,5),o=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=o._tokenKey;return[-999,c,N(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),"cssVar",function(e,t,n){var r=(0,i.A)(e,4),o=r[1],a=r[2],s=r[3],l=(n||{}).plain;return o?[-999,a,N(o,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null});var Ue=function(){function e(t,n){(0,d.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const ze=Ue;function je(e){return e.notSplit=!0,e}je(["borderTop","borderBottom"]),je(["borderTop"]),je(["borderBottom"]),je(["borderLeft","borderRight"]),je(["borderLeft"]),je(["borderRight"])},70245(e,t,n){"use strict";n.d(t,{A:()=>x});var r=n(32549),i=n(34355),o=n(22256),a=n(57889),s=n(40366),l=n(73059),c=n.n(l),u=n(56819),d=n(70342),h=n(40942),f=n(33497),p=["icon","className","onClick","style","primaryColor","secondaryColor"],m={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},g=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,o=e.primaryColor,l=e.secondaryColor,c=(0,a.A)(e,p),u=s.useRef(),d=m;if(o&&(d={primaryColor:o,secondaryColor:l||(0,f.Em)(o)}),(0,f.lf)(u),(0,f.$e)((0,f.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,f.P3)(t))return null;var g=t;return g&&"function"==typeof g.icon&&(g=(0,h.A)((0,h.A)({},g),{},{icon:g.icon(d.primaryColor,d.secondaryColor)})),(0,f.cM)(g.icon,"svg-".concat(g.name),(0,h.A)((0,h.A)({className:n,onClick:r,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};g.displayName="IconReact",g.getTwoToneColors=function(){return(0,h.A)({},m)},g.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;m.primaryColor=t,m.secondaryColor=n||(0,f.Em)(t),m.calculated=!!n};const v=g;function A(e){var t=(0,f.al)(e),n=(0,i.A)(t,2),r=n[0],o=n[1];return v.setTwoToneColors({primaryColor:r,secondaryColor:o})}var y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];A(u.z1.primary);var b=s.forwardRef(function(e,t){var n=e.className,l=e.icon,u=e.spin,h=e.rotate,p=e.tabIndex,m=e.onClick,g=e.twoToneColor,A=(0,a.A)(e,y),b=s.useContext(d.A),x=b.prefixCls,S=void 0===x?"anticon":x,E=b.rootClassName,C=c()(E,S,(0,o.A)((0,o.A)({},"".concat(S,"-").concat(l.name),!!l.name),"".concat(S,"-spin"),!!u||"loading"===l.name),n),w=p;void 0===w&&m&&(w=-1);var _=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,I=(0,f.al)(g),T=(0,i.A)(I,2),M=T[0],R=T[1];return s.createElement("span",(0,r.A)({role:"img","aria-label":l.name},A,{ref:t,tabIndex:w,onClick:m,className:C}),s.createElement(v,{icon:l,primaryColor:M,secondaryColor:R,style:_}))});b.displayName="AntdIcon",b.getTwoToneColor=function(){var e=v.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},b.setTwoToneColor=A;const x=b},70342(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(40366).createContext)({})},63172(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(32549),i=n(40942),o=n(22256),a=n(57889),s=n(40366),l=n(73059),c=n.n(l),u=n(81834),d=n(70342),h=n(33497),f=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=s.forwardRef(function(e,t){var n=e.className,l=e.component,p=e.viewBox,m=e.spin,g=e.rotate,v=e.tabIndex,A=e.onClick,y=e.children,b=(0,a.A)(e,f),x=s.useRef(),S=(0,u.xK)(x,t);(0,h.$e)(Boolean(l||y),"Should have `component` prop or `children`."),(0,h.lf)(x);var E=s.useContext(d.A),C=E.prefixCls,w=void 0===C?"anticon":C,_=E.rootClassName,I=c()(_,w,(0,o.A)({},"".concat(w,"-spin"),!!m&&!!l),n),T=c()((0,o.A)({},"".concat(w,"-spin"),!!m)),M=g?{msTransform:"rotate(".concat(g,"deg)"),transform:"rotate(".concat(g,"deg)")}:void 0,R=(0,i.A)((0,i.A)({},h.yf),{},{className:T,style:M,viewBox:p});p||delete R.viewBox;var O=v;return void 0===O&&A&&(O=-1),s.createElement("span",(0,r.A)({role:"img"},b,{ref:S,tabIndex:O,onClick:A,className:I}),l?s.createElement(l,R,y):y?((0,h.$e)(Boolean(p)||1===s.Children.count(y)&&s.isValidElement(y)&&"use"===s.Children.only(y).type,"Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),s.createElement("svg",(0,r.A)({},R,{viewBox:p}),y)):null)});p.displayName="AntdIcon";const m=p},87672(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},61544(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},32626(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},46083(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},34270(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},22542(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},73546(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},76643(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},82980(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},40367(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},9220(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(32549),i=n(40366);const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=n(70245),s=function(e,t){return i.createElement(a.A,(0,r.A)({},e,{ref:t,icon:o}))};const l=i.forwardRef(s)},33497(e,t,n){"use strict";n.d(t,{$e:()=>d,Em:()=>m,P3:()=>h,al:()=>g,cM:()=>p,lf:()=>A,yf:()=>v});var r=n(40942),i=n(35739),o=n(56819),a=n(48222),s=n(92442),l=n(3455),c=n(40366),u=n(70342);function d(e,t){(0,l.Ay)(e,"[@ant-design/icons] ".concat(t))}function h(e){return"object"===(0,i.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.A)(e.icon)||"function"==typeof e.icon)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,i=e[n];return"class"===n?(t.className=i,delete t.class):(delete t[n],t[r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=i),t},{})}function p(e,t,n){return n?c.createElement(e.tag,(0,r.A)((0,r.A)({key:t},f(e.attrs)),n),(e.children||[]).map(function(n,r){return p(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):c.createElement(e.tag,(0,r.A)({key:t},f(e.attrs)),(e.children||[]).map(function(n,r){return p(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function m(e){return(0,o.cM)(e)[0]}function g(e){return e?Array.isArray(e)?e:[e]:[]}var v={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},A=function(e){var t=(0,c.useContext)(u.A),n=t.csp,r=t.prefixCls,i=t.layer,o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(o=o.replace(/anticon/g,r)),i&&(o="@layer ".concat(i," {\n").concat(o,"\n}")),(0,c.useEffect)(function(){var t=e.current,r=(0,s.j)(t);(0,a.BD)(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:r})},[])}},18347(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}function l(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function u(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=i,l=i-o,c=0===i?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/l+(tb});var p={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var m="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),g="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),v="[\\s|\\(]+(".concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")[,|\\s]+(").concat(m,")\\s*\\)?"),A={CSS_UNIT:new RegExp(m),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+v),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+v),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+v),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function y(e){return Boolean(A.CSS_UNIT.exec(String(e)))}var b=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var s=function(e){var t,n,i,s={r:0,g:0,b:0},l=1,u=null,d=null,m=null,g=!1,v=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(p[e])e=p[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=A.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=A.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=A.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=A.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=A.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=A.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=A.hex8.exec(e))?{r:f(n[1]),g:f(n[2]),b:f(n[3]),a:h(n[4]),format:t?"name":"hex8"}:(n=A.hex6.exec(e))?{r:f(n[1]),g:f(n[2]),b:f(n[3]),format:t?"name":"hex"}:(n=A.hex4.exec(e))?{r:f(n[1]+n[1]),g:f(n[2]+n[2]),b:f(n[3]+n[3]),a:h(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=A.hex3.exec(e))&&{r:f(n[1]+n[1]),g:f(n[2]+n[2]),b:f(n[3]+n[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(y(e.r)&&y(e.g)&&y(e.b)?(t=e.r,n=e.g,i=e.b,s={r:255*r(t,255),g:255*r(n,255),b:255*r(i,255)},g=!0,v="%"===String(e.r).substr(-1)?"prgb":"rgb"):y(e.h)&&y(e.s)&&y(e.v)?(u=a(e.s),d=a(e.v),s=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var i=Math.floor(e),o=e-i,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),c=i%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c]}}(e.h,u,d),g=!0,v="hsv"):y(e.h)&&y(e.s)&&y(e.l)&&(u=a(e.s),m=a(e.l),s=function(e,t,n){var i,o,a;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)o=n,a=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=c(l,s,e+1/3),o=c(l,s,e),a=c(l,s,e-1/3)}return{r:255*i,g:255*o,b:255*a}}(e.h,u,m),g=!0,v="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(l=e.a)),l=o(l),{ok:g,format:e.format||v,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=o(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=u(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=u(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=l(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=l(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),d(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,i){var o,a=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(n).toString(16)),s((o=r,Math.round(255*parseFloat(o)).toString(16)))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*r(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+d(this.r,this.g,this.b,!1),t=0,n=Object.entries(p);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=i(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=i(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=i(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=i(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100;return new e({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),i=new Array(123),o=0;o<64;)i[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(e,t,n){for(var i,o=null,a=[],s=0,l=0;t>2],i=(3&c)<<4,l=1;break;case 1:a[s++]=r[i|c>>4],i=(15&c)<<2,l=2;break;case 2:a[s++]=r[i|c>>6],a[s++]=r[63&c],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[i],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(e,t,n){for(var r,o=n,s=0,l=0;l1)break;if(void 0===(c=i[c]))throw Error(a);switch(s){case 0:r=c,s=1;break;case 1:t[n++]=r<<2|(48&c)>>4,r=c,s=2;break;case 2:t[n++]=(15&r)<<4|(60&c)>>2,r=c,s=3;break;case 3:t[n++]=(3&r)<<6|c,s=0}}if(1===s)throw Error(a);return n-o},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},68642(e){"use strict";e.exports=n;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function n(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function o(e){if("string"!=typeof e){var t=a();if(n.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var r=Object.keys(e),s=new Array(r.length+1),l=new Array(r.length),c=0;c0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,n,r)}}function a(e,t,n){var r=e(t,n),i=2*(r>>31)+1,o=r>>>23&255,a=8388607&r;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=a.bind(null,i),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:o,e.writeDoubleBE=r?o:i,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,i,o){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,i,o+t),e(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))e(0,i,o+t),e(2146959360,i,o+n);else if(r>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,i,o+t),e((a<<31|s/4294967296)>>>0,i,o+n);else{var l=Math.floor(Math.log(r)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=r*Math.pow(2,-l))>>>0,i,o+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,i,o+n)}}}function a(e,t,n,r,i){var o=e(r,i+t),a=e(r,i+n),s=2*(a>>31)+1,l=a>>>20&2047,c=4294967296*(1048575&a)+o;return 2047===l?c?NaN:s*(1/0):0===l?5e-324*s*c:s*Math.pow(2,l-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=a.bind(null,i,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function i(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},10230(e,t,n){"use strict";e.exports=function(e){try{var t=n(47031)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},35370(e,t){"use strict";var n=t,r=n.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},i=n.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),n=r(e),i="";n&&(i=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):n?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return i+t.join("/")};n.resolve=function(e,t,n){return n||(t=i(t)),r(t)?t:(n||(e=i(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?i(e+"/"+t):t)}},70319(e){"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,o=null,a=r;return function(n){if(n<1||n>i)return e(n);a+n>r&&(o=e(r),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},81742(e,t){"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r=192&&o<224){var a=(31&o)<<6|63&e[i++];r+=a>=128?String.fromCharCode(a):"�"}else if(o>=224&&o<240){var s=(15&o)<<12|(63&e[i++])<<6|63&e[i++];r+=s>=2048?String.fromCharCode(s):"�"}else if(o>=240){var l=(7&o)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++];l<65536||l>1114111?r+="�":(l-=65536,r+=String.fromCharCode(55296+(l>>10)),r+=String.fromCharCode(56320+(1023&l)))}}return r},n.write=function(e,t,n){for(var r,i,o=n,a=0;a>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&i),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-o}},62963(e,t,n){"use strict";n.d(t,{A:()=>A});var r=n(34355),i=n(40366),o=n(76212),a=n(39999),s=(n(3455),n(81834));const l=i.createContext(null);var c=n(53563),u=n(34148),d=[],h=n(48222),f=n(91732),p="rc-util-locker-".concat(Date.now()),m=0;var g=!1,v=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const A=i.forwardRef(function(e,t){var n=e.open,A=e.autoLock,y=e.getContainer,b=(e.debug,e.autoDestroy),x=void 0===b||b,S=e.children,E=i.useState(n),C=(0,r.A)(E,2),w=C[0],_=C[1],I=w||n;i.useEffect(function(){(x||n)&&_(n)},[n,x]);var T=i.useState(function(){return v(y)}),M=(0,r.A)(T,2),R=M[0],O=M[1];i.useEffect(function(){var e=v(y);O(null!=e?e:null)});var P=function(e){var t=i.useState(function(){return(0,a.A)()?document.createElement("div"):null}),n=(0,r.A)(t,1)[0],o=i.useRef(!1),s=i.useContext(l),h=i.useState(d),f=(0,r.A)(h,2),p=f[0],m=f[1],g=s||(o.current?void 0:function(e){m(function(t){return[e].concat((0,c.A)(t))})});function v(){n.parentElement||document.body.appendChild(n),o.current=!0}function A(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),o.current=!1}return(0,u.A)(function(){return e?s?s(v):v():A(),A},[e]),(0,u.A)(function(){p.length&&(p.forEach(function(e){return e()}),m(d))},[p]),[n,g]}(I&&!R),N=(0,r.A)(P,2),k=N[0],D=N[1],L=null!=R?R:k;!function(e){var t=!!e,n=i.useState(function(){return m+=1,"".concat(p,"_").concat(m)}),o=(0,r.A)(n,1)[0];(0,u.A)(function(){if(t){var e=(0,f.V)(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,h.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),o)}else(0,h.m6)(o);return function(){(0,h.m6)(o)}},[t,o])}(A&&n&&(0,a.A)()&&(L===k||L===document.body));var B=null;S&&(0,s.f3)(S)&&t&&(B=S.ref);var F=(0,s.xK)(B,t);if(!I||!(0,a.A)()||void 0===R)return null;var U=!1===L||g,z=S;return t&&(z=i.cloneElement(S,{ref:F})),i.createElement(l.Provider,{value:D},U?z:(0,o.createPortal)(z,L))})},7980(e,t,n){"use strict";n.d(t,{A:()=>H});var r=n(40942),i=n(34355),o=n(57889),a=n(62963),s=n(73059),l=n.n(s),c=n(86141),u=n(24981),d=n(92442),h=n(69211),f=n(23026),p=n(34148),m=n(19633),g=n(40366),v=n(32549),A=n(7041),y=n(81834);function b(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,c=i.x,u=void 0===c?0:c,d=i.y,h=void 0===d?0:d,f=g.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],v=n.points[1],A=m[0],y=m[1],b=v[0],x=v[1];A!==b&&["t","b"].includes(A)?"t"===A?p.top=0:p.bottom=0:p.top=h,y!==x&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return g.createElement("div",{ref:f,className:l()("".concat(t,"-arrow"),a),style:p},s)}function x(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?g.createElement(A.Ay,(0,v.A)({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})}):null}const S=g.memo(function(e){return e.children},function(e,t){return t.cache}),E=g.forwardRef(function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,h=e.open,f=e.keepDom,m=e.fresh,E=e.onClick,C=e.mask,w=e.arrow,_=e.arrowPos,I=e.align,T=e.motion,M=e.maskMotion,R=e.forceRender,O=e.getPopupContainer,P=e.autoDestroy,N=e.portal,k=e.zIndex,D=e.onMouseEnter,L=e.onMouseLeave,B=e.onPointerEnter,F=e.ready,U=e.offsetX,z=e.offsetY,j=e.offsetR,$=e.offsetB,H=e.onAlign,G=e.onPrepare,Q=e.stretch,V=e.targetWidth,W=e.targetHeight,X="function"==typeof n?n():n,q=h||f,Y=(null==O?void 0:O.length)>0,K=g.useState(!O||!Y),J=(0,i.A)(K,2),Z=J[0],ee=J[1];if((0,p.A)(function(){!Z&&Y&&u&&ee(!0)},[Z,Y,u]),!Z)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(F||!h){var re,ie=I.points,oe=I.dynamicInset||(null===(re=I._experimental)||void 0===re?void 0:re.dynamicInset),ae=oe&&"r"===ie[0][1],se=oe&&"b"===ie[0][0];ae?(ne.right=j,ne.left=te):(ne.left=U,ne.right=te),se?(ne.bottom=$,ne.top=te):(ne.top=z,ne.bottom=te)}var le={};return Q&&(Q.includes("height")&&W?le.height=W:Q.includes("minHeight")&&W&&(le.minHeight=W),Q.includes("width")&&V?le.width=V:Q.includes("minWidth")&&V&&(le.minWidth=V)),h||(le.pointerEvents="none"),g.createElement(N,{open:R||q,getContainer:O&&function(){return O(u)},autoDestroy:P},g.createElement(x,{prefixCls:a,open:h,zIndex:k,mask:C,motion:M}),g.createElement(c.A,{onResize:H,disabled:!h},function(e){return g.createElement(A.Ay,(0,v.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:R,leavedClassName:"".concat(a,"-hidden")},T,{onAppearPrepare:G,onEnterPrepare:G,visible:h,onVisibleChanged:function(e){var t;null==T||null===(t=T.onVisibleChanged)||void 0===t||t.call(T,e),d(e)}}),function(n,i){var c=n.className,u=n.style,d=l()(a,c,o);return g.createElement("div",{ref:(0,y.K4)(e,t,i),className:d,style:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({"--arrow-x":"".concat(_.x||0,"px"),"--arrow-y":"".concat(_.y||0,"px")},ne),le),u),{},{boxSizing:"border-box",zIndex:k},s),onMouseEnter:D,onMouseLeave:L,onPointerEnter:B,onClick:E},w&&g.createElement(b,{prefixCls:a,arrow:w,arrowPos:_,align:I}),g.createElement(S,{cache:!h&&!m},X))})}))}),C=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,y.f3)(n),o=g.useCallback(function(e){(0,y.Xf)(t,r?r(e):e)},[r]),a=(0,y.xK)(o,n.ref);return i?g.cloneElement(n,{ref:a}):n}),w=g.createContext(null);function _(e){return e?Array.isArray(e)?e:[e]:[]}var I=n(99682);function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function M(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function R(e){return e.ownerDocument.defaultView}function O(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=R(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function N(e){return P(parseFloat(e),0)}function k(e,t){var n=(0,r.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=R(e).getComputedStyle(e),r=t.overflow,i=t.overflowClipMargin,o=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,h=e.offsetWidth,f=e.clientWidth,p=N(o),m=N(a),g=N(s),v=N(l),A=P(Math.round(c.width/h*1e3)/1e3),y=P(Math.round(c.height/u*1e3)/1e3),b=(h-f-g-v)*A,x=(u-d-p-m)*y,S=p*y,E=m*y,C=g*A,w=v*A,_=0,I=0;if("clip"===r){var T=N(i);_=T*A,I=T*y}var M=c.x+C-_,O=c.y+S-I,k=M+c.width+2*_-C-w-b,D=O+c.height+2*I-S-E-x;n.left=Math.max(n.left,M),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,D)}}),n}function D(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function L(e,t){var n=t||[],r=(0,i.A)(n,2),o=r[0],a=r[1];return[D(e.width,o),D(e.height,a)]}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function F(e,t){var n,r=t[0],i=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===i?e.x:"r"===i?e.x+e.width:e.x+e.width/2,y:n}}function U(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var z=n(53563);n(3455);var j=n(77230),$=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.A,t=g.forwardRef(function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,A=t.action,y=void 0===A?"hover":A,b=t.showAction,x=t.hideAction,S=t.popupVisible,N=t.defaultPopupVisible,D=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,G=t.mouseEnterDelay,Q=t.mouseLeaveDelay,V=void 0===Q?.1:Q,W=t.focusDelay,X=t.blurDelay,q=t.mask,Y=t.maskClosable,K=void 0===Y||Y,J=t.getPopupContainer,Z=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,ie=t.popupStyle,oe=t.popupPlacement,ae=t.builtinPlacements,se=void 0===ae?{}:ae,le=t.popupAlign,ce=t.zIndex,ue=t.stretch,de=t.getPopupClassNameFromAlign,he=t.fresh,fe=t.alignPoint,pe=t.onPopupClick,me=t.onPopupAlign,ge=t.arrow,ve=t.popupMotion,Ae=t.maskMotion,ye=t.popupTransitionName,be=t.popupAnimation,xe=t.maskTransitionName,Se=t.maskAnimation,Ee=t.className,Ce=t.getTriggerDOMNode,we=(0,o.A)(t,$),_e=ee||te||!1,Ie=g.useState(!1),Te=(0,i.A)(Ie,2),Me=Te[0],Re=Te[1];(0,p.A)(function(){Re((0,m.A)())},[]);var Oe=g.useRef({}),Pe=g.useContext(w),Ne=g.useMemo(function(){return{registerSubPopup:function(e,t){Oe.current[e]=t,null==Pe||Pe.registerSubPopup(e,t)}}},[Pe]),ke=(0,f.A)(),De=g.useState(null),Le=(0,i.A)(De,2),Be=Le[0],Fe=Le[1],Ue=(0,h.A)(function(e){(0,u.fk)(e)&&Be!==e&&Fe(e),null==Pe||Pe.registerSubPopup(ke,e)}),ze=g.useState(null),je=(0,i.A)(ze,2),$e=je[0],He=je[1],Ge=g.useRef(null),Qe=(0,h.A)(function(e){(0,u.fk)(e)&&$e!==e&&(He(e),Ge.current=e)}),Ve=g.Children.only(v),We=(null==Ve?void 0:Ve.props)||{},Xe={},qe=(0,h.A)(function(e){var t,n,r=$e;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Be?void 0:Be.contains(e))||(null===(n=(0,d.j)(Be))||void 0===n?void 0:n.host)===e||e===Be||Object.values(Oe.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),Ye=M(s,ve,be,ye),Ke=M(s,Ae,Se,xe),Je=g.useState(N||!1),Ze=(0,i.A)(Je,2),et=Ze[0],tt=Ze[1],nt=null!=S?S:et,rt=(0,h.A)(function(e){void 0===S&&tt(e)});(0,p.A)(function(){tt(S||!1)},[S]);var it=g.useRef(nt);it.current=nt;var ot=g.useRef([]);ot.current=[];var at=(0,h.A)(function(e){var t;rt(e),(null!==(t=ot.current[ot.current.length-1])&&void 0!==t?t:nt)!==e&&(ot.current.push(e),null==D||D(e))}),st=g.useRef(),lt=function(){clearTimeout(st.current)},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;lt(),0===t?at(e):st.current=setTimeout(function(){at(e)},1e3*t)};g.useEffect(function(){return lt},[]);var ut=g.useState(!1),dt=(0,i.A)(ut,2),ht=dt[0],ft=dt[1];(0,p.A)(function(e){e&&!nt||ft(!0)},[nt]);var pt=g.useState(null),mt=(0,i.A)(pt,2),gt=mt[0],vt=mt[1],At=g.useState([0,0]),yt=(0,i.A)(At,2),bt=yt[0],xt=yt[1],St=function(e){xt([e.clientX,e.clientY])},Et=function(e,t,n,o,a,s,l){var c=g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[o]||{}}),d=(0,i.A)(c,2),f=d[0],m=d[1],v=g.useRef(0),A=g.useMemo(function(){return t?O(t):[]},[t]),y=g.useRef({});e||(y.current={});var b=(0,h.A)(function(){if(t&&n&&e){var c,d,h,f=t,p=f.ownerDocument,g=R(f).getComputedStyle(f),v=g.width,b=g.height,x=g.position,S=f.style.left,E=f.style.top,C=f.style.right,w=f.style.bottom,_=f.style.overflow,T=(0,r.A)((0,r.A)({},a[o]),s),M=p.createElement("div");if(null===(c=f.parentElement)||void 0===c||c.appendChild(M),M.style.left="".concat(f.offsetLeft,"px"),M.style.top="".concat(f.offsetTop,"px"),M.style.position=x,M.style.height="".concat(f.offsetHeight,"px"),M.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",f.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();h={x:O.x,y:O.y,width:O.width,height:O.height}}var N=f.getBoundingClientRect(),D=p.documentElement,z=D.clientWidth,j=D.clientHeight,$=D.scrollWidth,H=D.scrollHeight,G=D.scrollTop,Q=D.scrollLeft,V=N.height,W=N.width,X=h.height,q=h.width,Y={left:0,top:0,right:z,bottom:j},K={left:-Q,top:-G,right:$-Q,bottom:H-G},J=T.htmlRegion,Z="visible",ee="visibleFirst";"scroll"!==J&&J!==ee&&(J=Z);var te=J===ee,ne=k(K,A),re=k(Y,A),ie=J===Z?re:ne,oe=te?re:ie;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var ae=f.getBoundingClientRect();f.style.left=S,f.style.top=E,f.style.right=C,f.style.bottom=w,f.style.overflow=_,null===(d=f.parentElement)||void 0===d||d.removeChild(M);var se=P(Math.round(W/parseFloat(v)*1e3)/1e3),le=P(Math.round(V/parseFloat(b)*1e3)/1e3);if(0===se||0===le||(0,u.fk)(n)&&!(0,I.A)(n))return;var ce=T.offset,ue=T.targetOffset,de=L(N,ce),he=(0,i.A)(de,2),fe=he[0],pe=he[1],me=L(h,ue),ge=(0,i.A)(me,2),ve=ge[0],Ae=ge[1];h.x-=ve,h.y-=Ae;var ye=T.points||[],be=(0,i.A)(ye,2),xe=be[0],Se=B(be[1]),Ee=B(xe),Ce=F(h,Se),we=F(N,Ee),_e=(0,r.A)({},T),Ie=Ce.x-we.x+fe,Te=Ce.y-we.y+pe;function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie,r=N.x+e,i=N.y+t,o=r+W,a=i+V,s=Math.max(r,n.left),l=Math.max(i,n.top),c=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Me,Re,Oe,Pe,Ne=xt(Ie,Te),ke=xt(Ie,Te,re),De=F(h,["t","l"]),Le=F(N,["t","l"]),Be=F(h,["b","r"]),Fe=F(N,["b","r"]),Ue=T.overflow||{},ze=Ue.adjustX,je=Ue.adjustY,$e=Ue.shiftX,He=Ue.shiftY,Ge=function(e){return"boolean"==typeof e?e:e>=0};function St(){Me=N.y+Te,Re=Me+V,Oe=N.x+Ie,Pe=Oe+W}St();var Qe=Ge(je),Ve=Ee[0]===Se[0];if(Qe&&"t"===Ee[0]&&(Re>oe.bottom||y.current.bt)){var We=Te;Ve?We-=V-X:We=De.y-Fe.y-pe;var Xe=xt(Ie,We),qe=xt(Ie,We,re);Xe>Ne||Xe===Ne&&(!te||qe>=ke)?(y.current.bt=!0,Te=We,pe=-pe,_e.points=[U(Ee,0),U(Se,0)]):y.current.bt=!1}if(Qe&&"b"===Ee[0]&&(MeNe||Ke===Ne&&(!te||Je>=ke)?(y.current.tb=!0,Te=Ye,pe=-pe,_e.points=[U(Ee,0),U(Se,0)]):y.current.tb=!1}var Ze=Ge(ze),et=Ee[1]===Se[1];if(Ze&&"l"===Ee[1]&&(Pe>oe.right||y.current.rl)){var tt=Ie;et?tt-=W-q:tt=De.x-Fe.x-fe;var nt=xt(tt,Te),rt=xt(tt,Te,re);nt>Ne||nt===Ne&&(!te||rt>=ke)?(y.current.rl=!0,Ie=tt,fe=-fe,_e.points=[U(Ee,1),U(Se,1)]):y.current.rl=!1}if(Ze&&"r"===Ee[1]&&(OeNe||ot===Ne&&(!te||at>=ke)?(y.current.lr=!0,Ie=it,fe=-fe,_e.points=[U(Ee,1),U(Se,1)]):y.current.lr=!1}St();var st=!0===$e?0:$e;"number"==typeof st&&(Oere.right&&(Ie-=Pe-re.right-fe,h.x>re.right-st&&(Ie+=h.x-re.right+st)));var lt=!0===He?0:He;"number"==typeof lt&&(Mere.bottom&&(Te-=Re-re.bottom-pe,h.y>re.bottom-lt&&(Te+=h.y-re.bottom+lt)));var ct=N.x+Ie,ut=ct+W,dt=N.y+Te,ht=dt+V,ft=h.x,pt=ft+q,mt=h.y,gt=mt+X,vt=(Math.max(ct,ft)+Math.min(ut,pt))/2-ct,At=(Math.max(dt,mt)+Math.min(ht,gt))/2-dt;null==l||l(t,_e);var yt=ae.right-N.x-(Ie+N.width),bt=ae.bottom-N.y-(Te+N.height);m({ready:!0,offsetX:Ie/se,offsetY:Te/le,offsetR:yt/se,offsetB:bt/le,arrowX:vt/se,arrowY:At/le,scaleX:se,scaleY:le,align:_e})}}),x=function(){m(function(e){return(0,r.A)((0,r.A)({},e),{},{ready:!1})})};return(0,p.A)(x,[o]),(0,p.A)(function(){e||x()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){v.current+=1;var e=v.current;Promise.resolve().then(function(){v.current===e&&b()})}]}(nt,Be,fe?bt:$e,oe,se,le,me),Ct=(0,i.A)(Et,11),wt=Ct[0],_t=Ct[1],It=Ct[2],Tt=Ct[3],Mt=Ct[4],Rt=Ct[5],Ot=Ct[6],Pt=Ct[7],Nt=Ct[8],kt=Ct[9],Dt=Ct[10],Lt=function(e,t,n,r){return g.useMemo(function(){var i=_(null!=n?n:t),o=_(null!=r?r:t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}(Me,y,b,x),Bt=(0,i.A)(Lt,2),Ft=Bt[0],Ut=Bt[1],zt=Ft.has("click"),jt=Ut.has("click")||Ut.has("contextMenu"),$t=(0,h.A)(function(){ht||Dt()});!function(e,t,n,r){(0,p.A)(function(){if(e&&t&&n){var i=n,o=O(t),a=O(i),s=R(i),l=new Set([s].concat((0,z.A)(o),(0,z.A)(a)));function c(){r(),it.current&&fe&&jt&&ct(!1)}return l.forEach(function(e){e.addEventListener("scroll",c,{passive:!0})}),s.addEventListener("resize",c,{passive:!0}),r(),function(){l.forEach(function(e){e.removeEventListener("scroll",c),s.removeEventListener("resize",c)})}}},[e,t,n])}(nt,$e,Be,$t),(0,p.A)(function(){$t()},[bt,oe]),(0,p.A)(function(){!nt||null!=se&&se[oe]||$t()},[JSON.stringify(le)]);var Ht=g.useMemo(function(){var e=function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1?a-1:0),l=1;l1?n-1:0),i=1;i1?n-1:0),i=1;is});var r=n(5522),i=n(40366),o=n(60367),a=n(77140);function s(e,t,n,s){return function(l){const{prefixCls:c,style:u}=l,d=i.useRef(null),[h,f]=i.useState(0),[p,m]=i.useState(0),[g,v]=(0,r.A)(!1,{value:l.open}),{getPrefixCls:A}=i.useContext(a.QO),y=A(t||"select",c);i.useEffect(()=>{if(v(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;f(t.offsetHeight+8),m(t.offsetWidth)}),t=setInterval(()=>{var r;const i=n?`.${n(y)}`:`.${y}-dropdown`,o=null===(r=d.current)||void 0===r?void 0:r.querySelector(i);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},u),{margin:0}),open:g,visible:g,getPopupContainer:()=>d.current});return s&&(b=s(b)),i.createElement(o.Ay,{theme:{token:{motion:!1}}},i.createElement("div",{ref:d,style:{paddingBottom:h,position:"relative",minWidth:p}},i.createElement(e,Object.assign({},b))))}}},25580(e,t,n){"use strict";n.d(t,{ZZ:()=>l,nP:()=>s});var r=n(53563),i=n(14159);const o=i.s.map(e=>`${e}-inverse`),a=["success","processing","error","default","warning"];function s(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?i.s.includes(e):[].concat((0,r.A)(o),(0,r.A)(i.s)).includes(e)}function l(e){return a.includes(e)}},42014(e,t,n){"use strict";n.d(t,{Ay:()=>c,TL:()=>s,by:()=>l});const r=()=>({height:0,opacity:0}),i=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},o=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,s=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",l=(e,t,n)=>void 0!==n?n:`${e}-${t}`,c=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:o,onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},81857(e,t,n){"use strict";var r;n.d(t,{Ob:()=>s,zO:()=>o,zv:()=>a});var i=n(40366);const{isValidElement:o}=r||(r=n.t(i,2));function a(e){return e&&o(e)&&e.type===i.Fragment}function s(e,t){return function(e,t,n){return o(e)?i.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},37188(e,t,n){"use strict";n.d(t,{A:()=>a,y:()=>o});var r=n(40366),i=n(26333);const o=["xxl","xl","lg","md","sm","xs"];function a(){const[,e]=(0,i.rd)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(o).reverse();return n.forEach((e,r)=>{const i=e.toUpperCase(),o=`screen${i}Min`,a=`screen${i}`;if(!(t[o]<=t[a]))throw new Error(`${o}<=${a} fails : !(${t[o]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{const n=t[e],i=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},o=window.matchMedia(n);o.addListener(i),this.matchHandlers[n]={mql:o,listener:i},i(o)})},responsiveMap:t}},[e])}},54109(e,t,n){"use strict";n.d(t,{L:()=>o,v:()=>a});var r=n(73059),i=n.n(r);function o(e,t,n){return i()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const a=(e,t)=>t||e},10052(e,t,n){"use strict";n.d(t,{Pu:()=>a,qz:()=>i});var r=n(39999);const i=()=>(0,r.A)()&&window.document.documentElement;let o;const a=()=>{if(!i())return!1;if(void 0!==o)return o;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),o=1===e.scrollHeight,document.body.removeChild(e),o}},66798(e,t,n){"use strict";n.d(t,{A:()=>y});var r=n(73059),i=n.n(r),o=n(81834),a=n(99682),s=n(40366),l=n(77140),c=n(81857),u=n(28170);const d=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},h=(0,u.A)("Wave",e=>[d(e)]);var f=n(7041),p=n(74603),m=n(77230);function g(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function v(e){return Number.isNaN(e)?0:e}const A=e=>{const{className:t,target:n}=e,r=s.useRef(null),[o,a]=s.useState(null),[l,c]=s.useState([]),[u,d]=s.useState(0),[h,A]=s.useState(0),[y,b]=s.useState(0),[x,S]=s.useState(0),[E,C]=s.useState(!1),w={left:u,top:h,width:y,height:x,borderRadius:l.map(e=>`${e}px`).join(" ")};function _(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return g(t)?t:g(n)?n:g(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:i}=e;d(t?n.offsetLeft:v(-parseFloat(r))),A(t?n.offsetTop:v(-parseFloat(i))),b(n.offsetWidth),S(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:l,borderBottomRightRadius:u}=e;c([o,s,u,l].map(e=>v(parseFloat(e))))}return o&&(w["--wave-color"]=o),s.useEffect(()=>{if(n){const e=(0,m.A)(()=>{_(),C(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(_),t.observe(n)),()=>{m.A.cancel(e),null==t||t.disconnect()}}},[]),E?s.createElement(f.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=r.current)||void 0===n?void 0:n.parentElement;(0,p.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:n}=e;return s.createElement("div",{ref:r,className:i()(t,n),style:w})}):null};const y=e=>{const{children:t,disabled:n}=e,{getPrefixCls:r}=(0,s.useContext)(l.QO),u=(0,s.useRef)(null),d=r("wave"),[,f]=h(d),m=(g=u,v=i()(d,f),function(){!function(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",null==e||e.insertBefore(n,null==e?void 0:e.firstChild),(0,p.X)(s.createElement(A,{target:e,className:t}),n)}(g.current,v)});var g,v;if(s.useEffect(()=>{const e=u.current;if(!e||1!==e.nodeType||n)return;const t=t=>{"INPUT"===t.target.tagName||!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||m()};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!s.isValidElement(t))return null!=t?t:null;const y=(0,o.f3)(t)?(0,o.K4)(t.ref,u):u;return(0,c.Ob)(t,{ref:y})}},5402(e,t,n){"use strict";n.d(t,{D:()=>re,A:()=>ae});var r=n(73059),i=n.n(r),o=n(43978),a=n(81834),s=n(40366),l=n(66798),c=n(77140),u=n(87804),d=n(96718),h=n(43136),f=n(82980),p=n(7041);const m=(0,s.forwardRef)((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,l=i()(`${a}-icon`,n);return s.createElement("span",{ref:t,className:l,style:r},o)}),g=m,v=(0,s.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:a}=e;const l=i()(`${n}-loading-icon`,r);return s.createElement(g,{prefixCls:n,className:l,style:o,ref:t},s.createElement(f.A,{className:a}))}),A=()=>({width:0,opacity:0,transform:"scale(0)"}),y=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),b=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e;const a=!!n;return r?s.createElement(v,{prefixCls:t,className:i,style:o}):s.createElement(p.Ay,{visible:a,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:A,onAppearActive:y,onEnterStart:A,onEnterActive:y,onLeaveStart:y,onLeaveActive:A},(e,n)=>{let{className:r,style:a}=e;return s.createElement(v,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),a),ref:n,iconClassName:r})})};var x=n(26333);const S=s.createContext(void 0);var E=n(81857);const C=/^[\u4e00-\u9fa5]{2}$/,w=C.test.bind(C);function _(e){return"text"===e||"link"===e}var I=n(79218),T=n(91731);function M(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function R(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},M(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}var O=n(51121),P=n(28170);const N=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),k=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},N(`${t}-primary`,i),N(`${t}-danger`,o)]}},D=e=>{const{componentCls:t,iconCls:n,buttonFontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,I.K8)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},L=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),B=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),F=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),U=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),z=(e,t,n,r,i,o,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},L(Object.assign({backgroundColor:"transparent"},o),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),j=e=>({"&:disabled":Object.assign({},U(e))}),$=e=>Object.assign({},j(e)),H=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),G=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),L({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),z(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},L({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),z(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),j(e))}),Q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),L({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),z(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},L({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),z(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),j(e))}),V=e=>Object.assign(Object.assign({},G(e)),{borderStyle:"dashed"}),W=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},L({color:e.colorLinkHover},{color:e.colorLinkActive})),H(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},L({color:e.colorErrorHover},{color:e.colorErrorActive})),H(e))}),X=e=>Object.assign(Object.assign(Object.assign({},L({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),H(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},H(e)),L({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),q=e=>Object.assign(Object.assign({},U(e)),{[`&${e.componentCls}:hover`]:Object.assign({},U(e))}),Y=e=>{const{componentCls:t}=e;return{[`${t}-default`]:G(e),[`${t}-primary`]:Q(e),[`${t}-dashed`]:V(e),[`${t}-link`]:W(e),[`${t}-text`]:X(e),[`${t}-disabled`]:q(e)}},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:l,iconCls:c}=e,u=Math.max(0,(r-i*o)/2-a),d=l-a,h=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${h}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:B(e)},{[`${n}${n}-round${t}`]:F(e)}]},J=e=>K(e),Z=e=>{const t=(0,O.h1)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return K(t,`${e.componentCls}-sm`)},ee=e=>{const t=(0,O.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return K(t,`${e.componentCls}-lg`)},te=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ne=(0,P.A)("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=(0,O.h1)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[D(r),Z(r),J(r),ee(r),te(r),Y(r),k(r),(0,T.G)(e),R(e)]});function re(e){return"danger"===e?{danger:!0}:{type:e}}const ie=(e,t)=>{const{loading:n=!1,prefixCls:r,type:f="default",danger:p,shape:m="default",size:v,styles:A,disabled:y,className:x,rootClassName:C,children:I,icon:T,ghost:M=!1,block:R=!1,htmlType:O="button",classNames:P}=e,N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ifunction(e){if("object"==typeof e&&e){const t=null==e?void 0:e.delay;return{loading:!1,delay:Number.isNaN(t)||"number"!=typeof t?0:t}}return{loading:!!e,delay:0}}(n),[n]),[G,Q]=(0,s.useState)(H.loading),[V,W]=(0,s.useState)(!1),X=(0,s.createRef)(),q=(0,a.K4)(t,X),Y=1===s.Children.count(I)&&!T&&!_(f);(0,s.useEffect)(()=>{let e=null;return H.delay>0?e=setTimeout(()=>{e=null,Q(!0)},H.delay):Q(H.loading),function(){e&&(clearTimeout(e),e=null)}},[H]),(0,s.useEffect)(()=>{if(!q||!q.current||!1===D)return;const e=q.current.textContent;Y&&w(e)?V||W(!0):V&&W(!1)},[q]);const K=t=>{const{onClick:n}=e;G||j?t.preventDefault():null==n||n(t)},J=!1!==D,{compactSize:Z,compactItemClassnames:ee}=(0,h.RQ)(B,L),te=(0,d.A)(e=>{var t,n;return null!==(n=null!==(t=null!=Z?Z:$)&&void 0!==t?t:v)&&void 0!==n?n:e}),re=te&&{large:"lg",small:"sm",middle:void 0}[te]||"",ie=G?"loading":T,oe=(0,o.A)(N,["navigate"]),ae=void 0!==oe.href&&j,se=i()(B,U,{[`${B}-${m}`]:"default"!==m&&m,[`${B}-${f}`]:f,[`${B}-${re}`]:re,[`${B}-icon-only`]:!I&&0!==I&&!!ie,[`${B}-background-ghost`]:M&&!_(f),[`${B}-loading`]:G,[`${B}-two-chinese-chars`]:V&&J&&!G,[`${B}-block`]:R,[`${B}-dangerous`]:!!p,[`${B}-rtl`]:"rtl"===L,[`${B}-disabled`]:ae},ee,x,C),le=T&&!G?s.createElement(g,{prefixCls:B,className:null==P?void 0:P.icon,style:null==A?void 0:A.icon},T):s.createElement(b,{existIcon:!!T,prefixCls:B,loading:!!G}),ce=I||0===I?function(e,t){let n=!1;const r=[];return s.Children.forEach(e,e=>{const t=typeof e,i="string"===t||"number"===t;if(n&&i){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=i}),s.Children.map(r,e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&w(e.props.children)?(0,E.Ob)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?w(e)?s.createElement("span",null,e.split("").join(n)):s.createElement("span",null,e):(0,E.zv)(e)?s.createElement("span",null,e):e}(e,t))}(I,Y&&J):null;if(void 0!==oe.href)return F(s.createElement("a",Object.assign({},oe,{className:se,onClick:K,ref:q}),le,ce));let ue=s.createElement("button",Object.assign({},N,{type:O,className:se,onClick:K,disabled:j,ref:q}),le,ce);return _(f)||(ue=s.createElement(l.A,{disabled:!!G},ue)),F(ue)},oe=(0,s.forwardRef)(ie);oe.Group=e=>{const{getPrefixCls:t,direction:n}=s.useContext(c.QO),{prefixCls:r,size:o,className:a}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ir});const r=n(5402).A},4779(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(73059),i=n.n(r),o=n(59700),a=n(40366),s=n(77140),l=n(87824),c=n(53563),u=n(43978),d=n(83522);const h=a.createContext(null),f=(e,t)=>{var{defaultValue:n,children:r,options:o=[],prefixCls:l,className:f,rootClassName:p,style:m,onChange:g}=e,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"value"in v&&S(v.value||[])},[v.value]);const w=()=>o.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),_=y("checkbox",l),I=`${_}-group`,[T,M]=(0,d.Ay)(_),R=(0,u.A)(v,["value","disabled"]);o&&o.length>0&&(r=w().map(e=>a.createElement(A,{prefixCls:_,key:e.value.toString(),disabled:"disabled"in e?e.disabled:v.disabled,value:e.value,checked:x.includes(e.value),onChange:e.onChange,className:`${I}-item`,style:e.style},e.label)));const O={toggleOption:e=>{const t=x.indexOf(e.value),n=(0,c.A)(x);-1===t?n.push(e.value):n.splice(t,1),"value"in v||S(n);const r=w();null==g||g(n.filter(e=>E.includes(e)).sort((e,t)=>r.findIndex(t=>t.value===e)-r.findIndex(e=>e.value===t)))},value:x,disabled:v.disabled,name:v.name,registerValue:e=>{C(t=>[].concat((0,c.A)(t),[e]))},cancelValue:e=>{C(t=>t.filter(t=>t!==e))}},P=i()(I,{[`${I}-rtl`]:"rtl"===b},f,p,M);return T(a.createElement("div",Object.assign({className:P,style:m},R,{ref:t}),a.createElement(h.Provider,{value:O},r)))},p=a.forwardRef(f),m=a.memo(p);var g=n(87804);const v=(e,t)=>{var n,{prefixCls:r,className:c,rootClassName:u,children:f,indeterminate:p=!1,style:m,onMouseEnter:v,onMouseLeave:A,skipGroup:y=!1,disabled:b}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{null==C||C.registerValue(x.value)},[]),a.useEffect(()=>{if(!y)return x.value!==T.current&&(null==C||C.cancelValue(T.current),null==C||C.registerValue(x.value),T.current=x.value),()=>null==C?void 0:C.cancelValue(x.value)},[x.value]);const M=S("checkbox",r),[R,O]=(0,d.Ay)(M),P=Object.assign({},x);C&&!y&&(P.onChange=function(){x.onChange&&x.onChange.apply(x,arguments),C.toggleOption&&C.toggleOption({label:f,value:x.value})},P.name=C.name,P.checked=C.value.includes(x.value));const N=i()({[`${M}-wrapper`]:!0,[`${M}-rtl`]:"rtl"===E,[`${M}-wrapper-checked`]:P.checked,[`${M}-wrapper-disabled`]:I,[`${M}-wrapper-in-form-item`]:w},c,u,O),k=i()({[`${M}-indeterminate`]:p},O),D=p?"mixed":void 0;return R(a.createElement("label",{className:N,style:m,onMouseEnter:v,onMouseLeave:A},a.createElement(o.A,Object.assign({"aria-checked":D},P,{prefixCls:M,className:k,disabled:I,ref:t})),void 0!==f&&a.createElement("span",null,f)))},A=a.forwardRef(v),y=A;y.Group=m,y.__ANT_CHECKBOX=!0;const b=y},83522(e,t,n){"use strict";n.d(t,{Ay:()=>u,gd:()=>c});var r=n(5147),i=n(79218),o=n(28170),a=n(51121);const s=new r.Mo("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),l=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,i.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},(0,i.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,i.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"start",transform:`translate(0, ${e.lineHeight*e.fontSize/2-e.checkboxSize/2}px)`,[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,i.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:s,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function c(e,t){const n=(0,a.h1)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[l(n)]}const u=(0,o.A)("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[c(n,e)]})},380(e,t,n){"use strict";n.d(t,{A:()=>j});var r=n(40367),i=n(73059),o=n.n(i),a=n(34355),s=n(53563),l=n(35739),c=n(51281),u=n(5522),d=n(40366),h=n(22256),f=n(32549),p=n(57889),m=n(7041),g=n(95589),v=d.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.forceRender,s=e.className,l=e.style,c=e.children,u=e.isActive,f=e.role,p=d.useState(u||i),m=(0,a.A)(p,2),g=m[0],v=m[1];return d.useEffect(function(){(i||u)&&v(!0)},[i,u]),g?d.createElement("div",{ref:t,className:o()("".concat(r,"-content"),(n={},(0,h.A)(n,"".concat(r,"-content-active"),u),(0,h.A)(n,"".concat(r,"-content-inactive"),!u),n),s),style:l,role:f},d.createElement("div",{className:"".concat(r,"-content-box")},c)):null});v.displayName="PanelContent";const A=v;var y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"];const b=d.forwardRef(function(e,t){var n,r,i=e.showArrow,a=void 0===i||i,s=e.headerClass,l=e.isActive,c=e.onItemClick,u=e.forceRender,v=e.className,b=e.prefixCls,x=e.collapsible,S=e.accordion,E=e.panelKey,C=e.extra,w=e.header,_=e.expandIcon,I=e.openMotion,T=e.destroyInactivePanel,M=e.children,R=(0,p.A)(e,y),O="disabled"===x,P="header"===x,N="icon"===x,k=null!=C&&"boolean"!=typeof C,D=function(){null==c||c(E)},L="function"==typeof _?_(e):d.createElement("i",{className:"arrow"});L&&(L=d.createElement("div",{className:"".concat(b,"-expand-icon"),onClick:["header","icon"].includes(x)?D:void 0},L));var B=o()((n={},(0,h.A)(n,"".concat(b,"-item"),!0),(0,h.A)(n,"".concat(b,"-item-active"),l),(0,h.A)(n,"".concat(b,"-item-disabled"),O),n),v),F={className:o()((r={},(0,h.A)(r,"".concat(b,"-header"),!0),(0,h.A)(r,"headerClass",s),(0,h.A)(r,"".concat(b,"-header-collapsible-only"),P),(0,h.A)(r,"".concat(b,"-icon-collapsible-only"),N),r)),"aria-expanded":l,"aria-disabled":O,onKeyPress:function(e){"Enter"!==e.key&&e.keyCode!==g.A.ENTER&&e.which!==g.A.ENTER||D()}};return P||N||(F.onClick=D,F.role=S?"tab":"button",F.tabIndex=O?-1:0),d.createElement("div",(0,f.A)({},R,{ref:t,className:B}),d.createElement("div",F,a&&L,d.createElement("span",{className:"".concat(b,"-header-text"),onClick:"header"===x?D:void 0},w),k&&d.createElement("div",{className:"".concat(b,"-extra")},C)),d.createElement(m.Ay,(0,f.A)({visible:l,leavedClassName:"".concat(b,"-content-hidden")},I,{forceRender:u,removeOnLeave:T}),function(e,t){var n=e.className,r=e.style;return d.createElement(A,{ref:t,prefixCls:b,className:n,style:r,isActive:l,forceRender:u,role:S?"tabpanel":void 0},M)}))});function x(e){var t=e;if(!Array.isArray(t)){var n=(0,l.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var S=d.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,l=void 0!==i&&i,h=e.style,f=e.accordion,p=e.className,m=e.children,g=e.collapsible,v=e.openMotion,A=e.expandIcon,y=e.activeKey,b=e.defaultActiveKey,S=e.onChange,E=o()(r,p),C=(0,u.A)([],{value:y,onChange:function(e){return null==S?void 0:S(e)},defaultValue:b,postState:x}),w=(0,a.A)(C,2),_=w[0],I=w[1],T=(0,c.A)(m).map(function(e,t){if(!e)return null;var n,i=e.key||String(t),o=e.props,a=o.header,c=o.headerClass,u=o.destroyInactivePanel,h=o.collapsible,p=o.onItemClick;n=f?_[0]===i:_.indexOf(i)>-1;var m=null!=h?h:g,y={key:i,panelKey:i,header:a,headerClass:c,isActive:n,prefixCls:r,destroyInactivePanel:null!=u?u:l,openMotion:v,accordion:f,children:e.props.children,onItemClick:function(e){"disabled"!==m&&(function(e){I(function(){return f?_[0]===e?[]:[e]:_.indexOf(e)>-1?_.filter(function(t){return t!==e}):[].concat((0,s.A)(_),[e])})}(e),null==p||p(e))},expandIcon:A,collapsible:m};return"string"==typeof e.type?e:(Object.keys(y).forEach(function(e){void 0===y[e]&&delete y[e]}),d.cloneElement(e,y))});return d.createElement("div",{ref:t,className:E,style:h,role:f?"tablist":void 0},T)});const E=Object.assign(S,{Panel:b}),C=E;E.Panel;var w=n(43978),_=n(42014),I=n(81857),T=n(77140),M=n(96718);const R=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(T.QO),{prefixCls:r,className:i="",showArrow:a=!0}=e,s=n("collapse",r),l=o()({[`${s}-no-arrow`]:!a},i);return d.createElement(C.Panel,Object.assign({ref:t},e,{prefixCls:s,className:l}))});var O=n(9846),P=n(28170),N=n(51121),k=n(79218);const D=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapseHeaderPaddingSM:s,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:h,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSize:g,fontSizeLG:v,lineHeight:A,marginSM:y,paddingSM:b,paddingLG:x,motionDurationSlow:S,fontSizeIcon:E}=e,C=`${u}px ${d} ${h}`;return{[t]:Object.assign(Object.assign({},(0,k.dF)(e)),{backgroundColor:o,border:C,borderBottom:0,borderRadius:`${c}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:C,"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:A,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*A,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},(0,k.Nk)()),{fontSize:E,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:b}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:C,[`& > ${t}-content-box`]:{padding:`${r}px ${i}px`},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:s},[`> ${t}-content > ${t}-content-box`]:{padding:b}}},"&-large":{[`> ${t}-item`]:{fontSize:v,[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{height:v*A}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${c}px ${c}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},L=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},B=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},F=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},U=(0,P.A)("Collapse",e=>{const t=(0,N.h1)(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapseHeaderPaddingSM:`${e.paddingXS}px ${e.paddingSM}px`,collapseHeaderPaddingLG:`${e.padding}px ${e.paddingLG}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[D(t),B(t),F(t),L(t),(0,O.A)(t)]}),z=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:i}=d.useContext(T.QO),{prefixCls:a,className:s,rootClassName:l,bordered:u=!0,ghost:h,size:f,expandIconPosition:p="start",children:m,expandIcon:g}=e,v=(0,M.A)(e=>{var t;return null!==(t=null!=f?f:e)&&void 0!==t?t:"middle"}),A=n("collapse",a),y=n(),[b,x]=U(A),S=d.useMemo(()=>"left"===p?"start":"right"===p?"end":p,[p]),E=o()(`${A}-icon-position-${S}`,{[`${A}-borderless`]:!u,[`${A}-rtl`]:"rtl"===i,[`${A}-ghost`]:!!h,[`${A}-${v}`]:"middle"!==v},s,l,x),R=Object.assign(Object.assign({},(0,_.Ay)(y)),{motionAppear:!1,leavedClassName:`${A}-content-hidden`}),O=d.useMemo(()=>(0,c.A)(m).map((e,t)=>{var n,r;if(null===(n=e.props)||void 0===n?void 0:n.disabled){const n=null!==(r=e.key)&&void 0!==r?r:String(t),{disabled:i,collapsible:o}=e.props,a=Object.assign(Object.assign({},(0,w.A)(e.props,["disabled"])),{key:n,collapsible:null!=o?o:i?"disabled":void 0});return(0,I.Ob)(e,a)}return e}),[m]);return b(d.createElement(C,Object.assign({ref:t,openMotion:R},(0,w.A)(e,["rootClassName"]),{expandIcon:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=g?g(e):d.createElement(r.A,{rotate:e.isActive?90:void 0});return(0,I.Ob)(t,()=>({className:o()(t.props.className,`${A}-arrow`)}))},prefixCls:A,className:E}),O))}),j=Object.assign(z,{Panel:R})},97636(e,t,n){"use strict";n.d(t,{A:()=>Ne});var r=n(73059),i=n.n(r),o=n(5522),a=n(40366),s=n(60330),l=n(77140),c=n(80682),u=n(45822),d=n(34355),h=n(40942),f=n(57889),p=n(35739),m=n(20582),g=n(79520),v=n(31856),A=n(2330),y=n(18347),b=["v"],x=function(e){(0,v.A)(n,e);var t=(0,A.A)(n);function n(e){return(0,m.A)(this,n),t.call(this,C(e))}return(0,g.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=E(100*e.s),n=E(100*e.b),r=E(e.h),i=e.a,o="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var e=this.toHsv();"object"===(0,p.A)(this.originalInput)&&this.originalInput&&"h"in this.originalInput&&(e=this.originalInput);var t=e,n=(t.v,(0,f.A)(t,b));return(0,h.A)((0,h.A)({},n),{},{b:e.v})}}]),n}(y.q),S=["b"],E=function(e){return Math.round(Number(e||0))},C=function(e){if(e&&"object"===(0,p.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,r=(0,f.A)(t,S);return(0,h.A)((0,h.A)({},r),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},w=function(e){return e instanceof x?e:new x(e)},_=w("#1677ff"),I=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,i=e.color,o=e.type,a=r.current.getBoundingClientRect(),s=a.width,l=a.height,c=n.current.getBoundingClientRect(),u=c.width/2,d=c.height/2,f=(t.x+u)/s,p=1-(t.y+d)/l,m=i.toHsb(),g=f,v=(t.x+u)/s*360;if(o)switch(o){case"hue":return w((0,h.A)((0,h.A)({},m),{},{h:v<=0?0:v}));case"alpha":return w((0,h.A)((0,h.A)({},m),{},{a:g<=0?0:g}))}return w({h:m.h,s:f<=0?0:f,b:p>=1?1:p,a:m.a})},T=function(e,t,n,r){var i=e.current.getBoundingClientRect(),o=i.width,a=i.height,s=t.current.getBoundingClientRect(),l=s.width,c=s.height,u=l/2,d=c/2,h=n.toHsb();if((0!==l||0!==c)&&l===c){if(r)switch(r){case"hue":return{x:h.h/360*o-u,y:-d/3};case"alpha":return{x:h.a/1*o-u,y:-d/3}}return{x:h.s*o-u,y:(1-h.b)*a-d}}};const M=function(e){var t=e.color,n=e.prefixCls,r=e.className,o=e.style,s=e.onClick,l="".concat(n,"-color-block");return a.createElement("div",{className:i()(l,r),style:o,onClick:s},a.createElement("div",{className:"".concat(l,"-inner"),style:{background:t}}))},R=function(e){var t=e.offset,n=e.targetRef,r=e.containerRef,i=e.direction,o=e.onDragChange,s=e.calculate,l=e.color,c=(0,a.useState)(t||{x:0,y:0}),u=(0,d.A)(c,2),h=u[0],f=u[1],p=(0,a.useRef)(null),m=(0,a.useRef)(null),g=(0,a.useRef)({flag:!1});(0,a.useEffect)(function(){if(!1===g.current.flag){var e=null==s?void 0:s(r);e&&f(e)}},[l,r]),(0,a.useEffect)(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}},[]);var v=function(e){var t=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}(e),a=t.pageX,s=t.pageY,l=r.current.getBoundingClientRect(),c=l.x,u=l.y,d=l.width,p=l.height,m=n.current.getBoundingClientRect(),g=m.width,v=m.height,A=g/2,y=v/2,b=Math.max(0,Math.min(a-c,d))-A,x=Math.max(0,Math.min(s-u,p))-y,S={x:b,y:"x"===i?h.y:x};if(0===g&&0===v||g!==v)return!1;f(S),null==o||o(S)},A=function(e){e.preventDefault(),v(e)},y=function(e){e.preventDefault(),g.current.flag=!1,document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null};return[h,function(e){v(e),g.current.flag=!0,document.addEventListener("mousemove",A),document.addEventListener("mouseup",y),document.addEventListener("touchmove",A),document.addEventListener("touchend",y),p.current=A,m.current=y}]};var O=n(22256);const P=function(e){var t=e.size,n=void 0===t?"default":t,r=e.color,o=e.prefixCls;return a.createElement("div",{className:i()("".concat(o,"-handler"),(0,O.A)({},"".concat(o,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},N=function(e){var t=e.children,n=e.style,r=e.prefixCls;return a.createElement("div",{className:"".concat(r,"-palette"),style:(0,h.A)({position:"relative"},n)},t)},k=(0,a.forwardRef)(function(e,t){var n=e.children,r=e.offset;return a.createElement("div",{ref:t,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),D=function(e){var t=e.color,n=e.onChange,r=e.prefixCls,i=(0,a.useRef)(),o=(0,a.useRef)(),s=R({color:t,containerRef:i,targetRef:o,calculate:function(e){return T(e,o,t)},onDragChange:function(e){return n(I({offset:e,targetRef:o,containerRef:i,color:t}))}}),l=(0,d.A)(s,2),c=l[0],u=l[1];return a.createElement("div",{ref:i,className:"".concat(r,"-select"),onMouseDown:u,onTouchStart:u},a.createElement(N,{prefixCls:r},a.createElement(k,{offset:c,ref:o},a.createElement(P,{color:t.toRgbString(),prefixCls:r})),a.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},L=function(e){var t=e.colors,n=e.children,r=e.direction,i=void 0===r?"to right":r,o=e.type,s=e.prefixCls,l=(0,a.useMemo)(function(){return t.map(function(e,n){var r=w(e);return"alpha"===o&&n===t.length-1&&r.setAlpha(1),r.toRgbString()}).join(",")},[t,o]);return a.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},n)},B=function(e){var t=e.gradientColors,n=e.direction,r=e.type,o=void 0===r?"hue":r,s=e.color,l=e.value,c=e.onChange,u=e.prefixCls,h=(0,a.useRef)(),f=(0,a.useRef)(),p=R({color:s,targetRef:f,containerRef:h,calculate:function(e){return T(e,f,s,o)},onDragChange:function(e){c(I({offset:e,targetRef:f,containerRef:h,color:s,type:o}))},direction:"x"}),m=(0,d.A)(p,2),g=m[0],v=m[1];return a.createElement("div",{ref:h,className:i()("".concat(u,"-slider"),"".concat(u,"-slider-").concat(o)),onMouseDown:v,onTouchStart:v},a.createElement(N,{prefixCls:u},a.createElement(k,{offset:g,ref:f},a.createElement(P,{size:"small",color:l,prefixCls:u})),a.createElement(L,{colors:t,direction:n,type:o,prefixCls:u})))};function F(e){return void 0!==e}var U=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"];const z=(0,a.forwardRef)(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,s=void 0===o?"rc-color-picker":o,l=e.onChange,c=e.className,u=e.style,h=e.panelRender,f=function(e,t){var n=t.defaultValue,r=t.value,i=(0,a.useState)(function(){var t;return t=F(r)?r:F(n)?n:e,w(t)}),o=(0,d.A)(i,2),s=o[0],l=o[1];return(0,a.useEffect)(function(){r&&l(w(r))},[r]),[s,l]}(_,{value:n,defaultValue:r}),p=(0,d.A)(f,2),m=p[0],g=p[1],v=(0,a.useMemo)(function(){var e=w(m.toRgbString());return e.setAlpha(1),e.toRgbString()},[m]),A=i()("".concat(s,"-panel"),c),y=function(e,t){n||g(e),null==l||l(e,t)},b=a.createElement(a.Fragment,null,a.createElement(D,{color:m,onChange:y,prefixCls:s}),a.createElement("div",{className:"".concat(s,"-slider-container")},a.createElement("div",{className:"".concat(s,"-slider-group")},a.createElement(B,{gradientColors:U,prefixCls:s,color:m,value:"hsl(".concat(m.toHsb().h,",100%, 50%)"),onChange:function(e){return y(e,"hue")}}),a.createElement(B,{type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",v],prefixCls:s,color:m,value:m.toRgbString(),onChange:function(e){return y(e,"alpha")}})),a.createElement(M,{color:m.toRgbString(),prefixCls:s})));return a.createElement("div",{className:A,style:u,ref:t},"function"==typeof h?h(b):b)}),j=z;var $=n(79218),H=n(28170),G=n(51121);const Q=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=e;return{[t]:Object.assign(Object.assign({},(0,$.dF)(e)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-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 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}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:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,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}}})}},V=(0,H.A)("Divider",e=>{const t=(0,G.h1)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[Q(t)]},{sizePaddingEdgeHorizontal:0});const W=e=>{const{getPrefixCls:t,direction:n}=a.useContext(l.QO),{prefixCls:r,type:o="horizontal",orientation:s="center",orientationMargin:c,className:u,rootClassName:d,children:h,dashed:f,plain:p}=e,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?`-${s}`:s,b=!!h,x="left"===s&&null!=c,S="right"===s&&null!=c,E=i()(g,A,`${g}-${o}`,{[`${g}-with-text`]:b,[`${g}-with-text${y}`]:b,[`${g}-dashed`]:!!f,[`${g}-plain`]:!!p,[`${g}-rtl`]:"rtl"===n,[`${g}-no-default-orientation-margin-left`]:x,[`${g}-no-default-orientation-margin-right`]:S},u,d),C=Object.assign(Object.assign({},x&&{marginLeft:c}),S&&{marginRight:c});return v(a.createElement("div",Object.assign({className:E},m,{role:"separator"}),h&&"vertical"!==o&&a.createElement("span",{className:`${g}-inner-text`,style:C},h)))};let X=function(){function e(t){(0,m.A)(this,e),this.metaColor=new x(t)}return(0,g.A)(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return K(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return 1===this.metaColor.getAlpha()?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),e}();const q=e=>e instanceof X?e:new X(e),Y=(e,t)=>(null==e?void 0:e.replace(/[^\w/]/gi,"").slice(0,t?8:6))||"",K=(e,t)=>e?Y(e,t):"",J=e=>{let{prefixCls:t,value:n,onChange:r}=e;return a.createElement("div",{className:`${t}-clear`,onClick:()=>{if(n){const e=n.toHsb();e.a=0;const t=q(e);null==r||r(t)}}})};var Z,ee=n(15916);!function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"}(Z||(Z={}));var te=n(44915);const ne=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:s,className:l,formatter:c}=e;const u=`${t}-steppers`,[d,h]=(0,a.useState)(o);return(0,a.useEffect)(()=>{Number.isNaN(o)||h(o)},[o]),a.createElement(te.A,{className:i()(u,l),min:n,max:r,value:d,formatter:c,size:"small",onChange:e=>{o||h(e||0),null==s||s(e)}})},re=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[o,s]=(0,a.useState)(q(n||"#000"));return(0,a.useEffect)(()=>{n&&s(n)},[n]),a.createElement(ne,{value:(l=o,E(100*l.toHsb().a)),prefixCls:t,formatter:e=>`${e}%`,className:i,onChange:e=>{const t=o.toHsb();t.a=(e||0)/100;const i=q(t);n||s(i),null==r||r(i)}});var l};var ie=n(6289);const oe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,ae=e=>oe.test(`#${e}`),se=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[o,s]=(0,a.useState)(null==n?void 0:n.toHex());return(0,a.useEffect)(()=>{const e=null==n?void 0:n.toHex();ae(e)&&n&&s(Y(e))},[n]),a.createElement(ie.A,{className:i,value:null==o?void 0:o.toUpperCase(),prefix:"#",onChange:e=>{const t=e.target.value;s(Y(t)),ae(Y(t,!0))&&(null==r||r(q(t)))},size:"small"})},le=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[o,s]=(0,a.useState)(q(n||"#000"));(0,a.useEffect)(()=>{n&&s(n)},[n]);const l=(e,t)=>{const i=o.toHsb();i[t]="h"===t?e:(e||0)/100;const a=q(i);n||s(a),null==r||r(a)};return a.createElement("div",{className:i},a.createElement(ne,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:t,className:i,formatter:e=>E(e||0).toString(),onChange:e=>l(Number(e),"h")}),a.createElement(ne,{max:100,min:0,value:100*Number(o.toHsb().s),prefixCls:t,className:i,formatter:e=>`${E(e||0)}%`,onChange:e=>l(Number(e),"s")}),a.createElement(ne,{max:100,min:0,value:100*Number(o.toHsb().b),prefixCls:t,className:i,formatter:e=>`${E(e||0)}%`,onChange:e=>l(Number(e),"b")}))},ce=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[o,s]=(0,a.useState)(q(n||"#000"));(0,a.useEffect)(()=>{n&&s(n)},[n]);const l=(e,t)=>{const i=o.toRgb();i[t]=e||0;const a=q(i);n||s(a),null==r||r(a)};return a.createElement("div",{className:i},a.createElement(ne,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:t,className:i,onChange:e=>l(Number(e),"r")}),a.createElement(ne,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:t,className:i,onChange:e=>l(Number(e),"g")}),a.createElement(ne,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:t,className:i,onChange:e=>l(Number(e),"b")}))},ue=[Z.hex,Z.hsb,Z.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),de=e=>{const{prefixCls:t,format:n,value:r,onFormatChange:i,onChange:s}=e,[l,c]=(0,o.A)(Z.hex,{value:n,onChange:i}),u=`${t}-input`,d=(0,a.useMemo)(()=>{const e={value:r,prefixCls:t,onChange:s};switch(l){case Z.hsb:return a.createElement(le,Object.assign({},e));case Z.rgb:return a.createElement(ce,Object.assign({},e));case Z.hex:default:return a.createElement(se,Object.assign({},e))}},[l,t,r,s]);return a.createElement("div",{className:`${u}-container`},a.createElement(ee.A,{value:l,bordered:!1,getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{c(e)},className:`${t}-format-select`,size:"small",options:ue}),a.createElement("div",{className:u},d),a.createElement(re,{prefixCls:t,value:r,onChange:s}))};var he=n(380),fe=n(78142);const{Panel:pe}=he.A,me=e=>e.map(e=>(e.colors=e.colors.map(q),e)),ge=e=>{const{r:t,g:n,b:r,a:i}=e.toRgb();return i<=.5||.299*t+.587*n+.114*r>192},ve=e=>{let{prefixCls:t,presets:n,value:r,onChange:s}=e;const[l]=(0,fe.A)("ColorPicker"),[c]=(0,o.A)(me(n),{value:me(n),postState:me}),u=`${t}-presets`,d=(0,a.useMemo)(()=>c.map(e=>`panel-${e.label}`),[c]);return a.createElement("div",{className:u},a.createElement(he.A,{defaultActiveKey:d,ghost:!0},c.map(e=>{var n;return a.createElement(pe,{header:a.createElement("div",{className:`${u}-label`},null==e?void 0:e.label),key:`panel-${null==e?void 0:e.label}`},a.createElement("div",{className:`${u}-items`},Array.isArray(null==e?void 0:e.colors)&&(null===(n=e.colors)||void 0===n?void 0:n.length)>0?e.colors.map(e=>a.createElement(M,{key:`preset-${e.toHexString()}`,color:q(e).toRgbString(),prefixCls:t,className:i()(`${u}-color`,{[`${u}-color-checked`]:e.toHexString()===(null==r?void 0:r.toHexString()),[`${u}-color-bright`]:ge(e)}),onClick:()=>{null==s||s(e)}})):a.createElement("span",{className:`${u}-empty`},l.presetEmpty)))})))};const Ae=e=>{const{prefixCls:t,allowClear:n,presets:r,onChange:i,onClear:o,color:s}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ia.createElement("div",{className:c},n&&a.createElement(J,Object.assign({prefixCls:t,value:s,onChange:e=>{null==i||i(e),null==o||o(!0)}},l)),e,a.createElement(de,Object.assign({value:s,onChange:i,prefixCls:t},l)),Array.isArray(r)&&a.createElement(a.Fragment,null,a.createElement(W,{className:`${c}-divider`}),a.createElement(ve,{value:s,presets:r,prefixCls:t,onChange:i})))})};const ye=(0,a.forwardRef)((e,t)=>{const{color:n,prefixCls:r,open:o,colorCleared:s,disabled:l,className:c}=e,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);is?a.createElement(J,{prefixCls:r}):a.createElement(M,{prefixCls:r,color:n.toRgbString()}),[n,s,r]);return a.createElement("div",Object.assign({ref:t,className:i()(d,c,{[`${d}-active`]:o,[`${d}-disabled`]:l})},u),h)});function be(e){return void 0!==e}const xe="#EEE",Se=e=>({backgroundImage:`conic-gradient(${xe} 0 25%, transparent 0 50%, ${xe} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),Ee=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:o,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i},Se("50%")),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${o}px solid ${a}`,borderRadius:"inherit"}})}},Ce=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:o,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:f,lineWidth:p}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:f}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${o}px`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:u+a,fontSize:r,lineHeight:`${l}px`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${d}px`,[`${n}-input`]:{fontSize:r,lineHeight:l-2*p+"px"},[`${n}-input-prefix`]:{color:h}}}}}},we=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:o,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c,colorPickerHandlerSizeSM:u,colorPickerSliderHeight:d,colorPickerPreviewSize:h}=e;return Object.assign({[`${t}-select`]:{[`${t}-palette`]:{minHeight:4*n,overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:o},[`${t}-handler`]:{width:c,height:c,border:`${l}px solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`,"&-sm":{width:u,height:u}},[`${t}-slider`]:{borderRadius:d/2,[`${t}-palette`]:{height:d},[`${t}-gradient`]:{borderRadius:d/2,boxShadow:i},"&-alpha":Se(`${d}px`),marginBottom:o},[`${t}-slider-container`]:{display:"flex",gap:o,[`${t}-slider-group`]:{flex:1}}},Ee(e,h))},_e=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:o,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:h,colorTextTertiary:f,marginXXS:p,paddingXS:m}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:a*l,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${m}px 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:1.5*p,[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:o+4*c,height:o+4*c,position:"absolute",top:-2*c,insetInlineStart:-2*c,borderRadius:u,border:`${c}px solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:o/13*5,height:o/13*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:f}}}}},"&-empty":{fontSize:a,color:r}}}},Ie=e=>({boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Te=(e,t)=>{const{componentCls:n,borderRadiusSM:r,lineWidth:i,colorSplit:o,red6:a}=e;return{[`${n}-clear`]:{width:t,height:t,borderRadius:r,border:`${i}px solid ${o}`,position:"relative",cursor:"pointer",overflow:"hidden","&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:a}}}},Me=e=>{const{componentCls:t,colorPickerWidth:n,colorPrimary:r,motionDurationMid:i,colorBgElevated:o,colorTextDisabled:a,colorBgContainerDisabled:s,borderRadius:l,marginXS:c,marginSM:u,controlHeight:d,controlHeightSM:h,colorBgTextActive:f,colorPickerPresetColorSize:p,lineWidth:m,colorBorder:g}=e;return[{[t]:{[`${t}-panel`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,[`${t}-inner-panel`]:{[`${t}-clear`]:{marginInlineStart:"auto",marginBottom:c},"&-divider":{margin:`${u}px 0 ${c}px`}}},we(e)),Ce(e)),_e(e)),Te(e,p)),"&-trigger":Object.assign(Object.assign({width:d,height:d,borderRadius:l,border:`${m}px solid ${g}`,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:`all ${i}`,background:o,"&-active":Object.assign(Object.assign({},Ie(e)),{borderColor:r}),"&:hover":{borderColor:r},"&-disabled":{color:a,background:s,cursor:"not-allowed","&:hover":{borderColor:f}}},Te(e,h)),Ee(e,h))}}]},Re=(0,H.A)("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=(0,G.h1)(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:16+n});return[Me(r)]}),Oe=e=>{const{value:t,defaultValue:n,format:r,allowClear:s=!1,presets:d,children:h,trigger:f="click",open:p,disabled:m,placement:g="bottomLeft",arrow:v=!0,style:A,className:y,rootClassName:b,styles:x,onFormatChange:S,onChange:E,onOpenChange:C,getPopupContainer:w,autoAdjustOverflow:_=!0}=e,{getPrefixCls:I,direction:T}=(0,a.useContext)(l.QO),{token:M}=u.A.useToken(),[R,O]=((e,t)=>{const{defaultValue:n,value:r}=t,[i,o]=(0,a.useState)(()=>{let t;return t=be(r)?r:be(n)?n:e,q(t||"")});return(0,a.useEffect)(()=>{r&&o(q(r))},[r]),[i,o]})(M.colorPrimary,{value:t,defaultValue:n}),[P,N]=(0,o.A)(!1,{value:p,postState:e=>!m&&e,onChange:C}),[k,D]=(0,a.useState)(!1),L=I("color-picker","ant-color-picker"),[B,F]=Re(L),U=i()(b,{[`${L}-rtl`]:T}),z=i()(U,y,F),j={open:P,trigger:f,placement:g,arrow:v,rootClassName:b,getPopupContainer:w,autoAdjustOverflow:_},$={prefixCls:L,color:R,allowClear:s,colorCleared:k,disabled:m,presets:d,format:r,onFormatChange:S};return(0,a.useEffect)(()=>{k&&N(!1)},[k]),B(a.createElement(c.A,Object.assign({style:null==x?void 0:x.popup,onOpenChange:N,content:a.createElement(Ae,Object.assign({},$,{onChange:(e,n)=>{let r=q(e);if(k){D(!1);const e=r.toHsb();0===R.toHsb().a&&"alpha"!==n&&(e.a=1,r=q(e))}t||O(r),null==E||E(r,r.toHexString())},onClear:e=>{D(e)}})),overlayClassName:L},j),h||a.createElement(ye,{open:P,className:z,style:A,color:R,prefixCls:L,disabled:m,colorCleared:k})))},Pe=(0,s.A)(Oe,"color-picker",e=>e,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}));Oe._InternalPanelDoNotUseOrYouWillBeFired=Pe;const Ne=Oe},87804(e,t,n){"use strict";n.d(t,{A:()=>a,X:()=>o});var r=n(40366);const i=r.createContext(!1),o=e=>{let{children:t,disabled:n}=e;const o=r.useContext(i);return r.createElement(i.Provider,{value:null!=n?n:o},t)},a=i},97459(e,t,n){"use strict";n.d(t,{A:()=>s,c:()=>a});var r=n(40366),i=n(96718);const o=r.createContext(void 0),a=e=>{let{children:t,size:n}=e;const a=(0,i.A)(n);return r.createElement(o.Provider,{value:a},t)},s=o},77140(e,t,n){"use strict";n.d(t,{QO:()=>o,pM:()=>i});var r=n(40366);const i="anticon",o=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:i}),{Consumer:a}=o},61018(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(40366),i=n(77140),o=n(73059),a=n.n(o),s=n(78142),l=n(18347),c=n(26333);const u=()=>{const[,e]=(0,c.rd)();let t={};return new l.q(e.colorBgBase).toHsl().l<.5&&(t={opacity:.65}),r.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),r.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),r.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),r.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),r.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),r.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},d=()=>{const[,e]=(0,c.rd)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:u}=(0,r.useMemo)(()=>({borderColor:new l.q(t).onBackground(o).toHexShortString(),shadowColor:new l.q(n).onBackground(o).toHexShortString(),contentColor:new l.q(i).onBackground(o).toHexShortString()}),[t,n,i,o]);return r.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{fillRule:"nonzero",stroke:a},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))};var h=n(28170),f=n(51121);const p=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},m=(0,h.A)("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=(0,f.h1)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[p(r)]});const g=r.createElement(u,null),v=r.createElement(d,null),A=e=>{var{className:t,rootClassName:n,prefixCls:o,image:l=g,description:c,children:u,imageStyle:d}=e,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{componentName:t}=e,{getPrefixCls:n}=(0,r.useContext)(i.QO),o=n("empty");switch(t){case"Table":case"List":return r.createElement(y,{image:y.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(y,{image:y.PRESENTED_IMAGE_SIMPLE,className:`${o}-small`});default:return r.createElement(y,null)}}},96718(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(40366),i=n(97459);const o=e=>{const t=r.useContext(i.A);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t])}},60367(e,t,n){"use strict";n.d(t,{Ay:()=>D,cr:()=>P});var r=n(5147),i=n(70342),o=n(94339),a=n(76627),s=n(11489),l=n(40366),c=n(28198),u=n(33368);const d=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>((0,c.L)(t&&t.Modal),()=>{(0,c.L)()}),[t]);const i=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(u.A.Provider,{value:i},n)};var h=n(20609),f=n(26333),p=n(67992),m=n(77140),g=n(56819),v=n(18347),A=n(39999),y=n(48222);const b=`-ant-${Date.now()}-${Math.random()}`;var x=n(87804),S=n(97459);var E=n(81211),C=n(7041);function w(e){const{children:t}=e,[,n]=(0,f.rd)(),{motion:r}=n,i=l.useRef(!1);return i.current=i.current||!1===r,i.current?l.createElement(C.Kq,{motion:r},t):t}var _=n(79218);const I=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select"];let T,M;function R(){return T||"ant"}function O(){return M||m.pM}const P=()=>({getPrefixCls:(e,t)=>t||(e?`${R()}-${e}`:R()),getIconPrefixCls:O,getRootPrefixCls:()=>T||R()}),N=e=>{const{children:t,csp:n,autoInsertSpaceInButton:c,form:u,locale:g,componentSize:v,direction:A,space:y,virtual:b,dropdownMatchSelectWidth:C,popupMatchSelectWidth:T,popupOverflow:M,legacyLocale:R,parentContext:O,iconPrefixCls:P,theme:N,componentDisabled:k}=e,D=l.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const i=r||O.getPrefixCls("");return t?`${i}-${t}`:i},[O.getPrefixCls,e.prefixCls]),L=P||O.iconPrefixCls||m.pM,B=L!==O.iconPrefixCls,F=n||O.csp,U=((e,t)=>{const[n,i]=(0,f.rd)();return(0,r.IV)({theme:n,token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,_.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])})(L,F),z=function(e,t){const n=e||{},r=!1!==n.inherit&&t?t:f.sb;return(0,s.A)(()=>{if(!e)return t;const i=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(t=>{i[t]=Object.assign(Object.assign({},i[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:i})},[n,r],(e,t)=>e.some((e,n)=>{const r=t[n];return!(0,E.A)(e,r,!0)}))}(N,O.theme),j={csp:F,autoInsertSpaceInButton:c,locale:g||R,direction:A,space:y,virtual:b,popupMatchSelectWidth:null!=T?T:C,popupOverflow:M,getPrefixCls:D,iconPrefixCls:L,theme:z},$=Object.assign({},O);Object.keys(j).forEach(e=>{void 0!==j[e]&&($[e]=j[e])}),I.forEach(t=>{const n=e[t];n&&($[t]=n)});const H=(0,s.A)(()=>$,$,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),G=l.useMemo(()=>({prefixCls:L,csp:F}),[L,F]);let Q=B?U(t):t;const V=l.useMemo(()=>{var e,t,n;return(0,a.VI)({},(null===(e=h.A.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=H.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null==u?void 0:u.validateMessages)||{})},[H,null==u?void 0:u.validateMessages]);Object.keys(V).length>0&&(Q=l.createElement(o.Op,{validateMessages:V},t)),g&&(Q=l.createElement(d,{locale:g,_ANT_MARK__:"internalMark"},Q)),(L||F)&&(Q=l.createElement(i.A.Provider,{value:G},Q)),v&&(Q=l.createElement(S.c,{size:v},Q)),Q=l.createElement(w,null,Q);const W=l.useMemo(()=>{const e=z||{},{algorithm:t,token:n}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0)?(0,r.an)(t):void 0;return Object.assign(Object.assign({},i),{theme:o,token:Object.assign(Object.assign({},p.A),n)})},[z]);return N&&(Q=l.createElement(f.vG.Provider,{value:W},Q)),void 0!==k&&(Q=l.createElement(x.X,{disabled:k},Q)),l.createElement(m.QO.Provider,{value:H},Q)},k=e=>{const t=l.useContext(m.QO),n=l.useContext(u.A);return l.createElement(N,Object.assign({parentContext:t,legacyLocale:n},e))};k.ConfigContext=m.QO,k.SizeContext=S.A,k.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;void 0!==t&&(T=t),void 0!==n&&(M=n),r&&function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},i=(e,t)=>{const i=new v.q(e),o=(0,g.cM)(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=o[1],n[`${t}-color-hover`]=o[4],n[`${t}-color-active`]=o[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=o[0],n[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){i(t.primaryColor,"primary");const e=new v.q(t.primaryColor),o=(0,g.cM)(e.toRgbString());o.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));const a=new v.q(o[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);(0,A.A)()&&(0,y.BD)(n,`${b}-dynamic-theme`)}(R(),r)},k.useConfig=function(){return{componentDisabled:(0,l.useContext)(x.A),componentSize:(0,l.useContext)(S.A)}},Object.defineProperty(k,"SizeContext",{get:()=>S.A});const D=k},87824(e,t,n){"use strict";n.d(t,{$W:()=>u,Op:()=>l,XB:()=>d,cK:()=>a,hb:()=>c,jC:()=>s});var r=n(94339),i=n(43978),o=n(40366);const a=o.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=o.createContext(null),l=e=>{const t=(0,i.A)(e,["prefixCls"]);return o.createElement(r.Op,Object.assign({},t))},c=o.createContext({prefixCls:""}),u=o.createContext({}),d=e=>{let{children:t,status:n,override:r}=e;const i=(0,o.useContext)(u),a=(0,o.useMemo)(()=>{const e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,i]);return o.createElement(u.Provider,{value:a},t)}},91123(e,t,n){"use strict";n.d(t,{A:()=>_e});var r=n(87824),i=n(53563),o=n(73059),a=n.n(o),s=n(7041),l=n(40366),c=n(42014);function u(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}var d=n(82986),h=n(9846),f=n(28170),p=n(51121),m=n(79218);const g=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},v=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),A=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},y=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,m.dF)(e)),v(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},A(e,e.controlHeightSM)),"&-large":Object.assign({},A(e,e.controlHeightLG))})}},b=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i}=e;return{[t]:Object.assign(Object.assign({},(0,m.dF)(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:d.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},x=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},S=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},E=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),C=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:E(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},w=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:E(e),[`@media (max-width: ${e.screenXSMax}px)`]:[C(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:E(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:E(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:E(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:E(e)}}}},_=(0,f.A)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=(0,p.h1)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[y(r),b(r),g(r),x(r),S(r),w(r),(0,h.A)(r),d.nF]}),I=[];function T(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}function M(e){let{help:t,helpStatus:n,errors:o=I,warnings:d=I,className:h,fieldId:f,onVisibleChanged:p}=e;const{prefixCls:m}=l.useContext(r.hb),g=`${m}-item-explain`,[,v]=_(m),A=(0,l.useMemo)(()=>(0,c.Ay)(m),[m]),y=u(o),b=u(d),x=l.useMemo(()=>null!=t?[T(t,"help",n)]:[].concat((0,i.A)(y.map((e,t)=>T(e,"error","error",t))),(0,i.A)(b.map((e,t)=>T(e,"warning","warning",t)))),[t,n,y,b]),S={};return f&&(S.id=`${f}_help`),l.createElement(s.Ay,{motionDeadline:A.motionDeadline,motionName:`${m}-show-help`,visible:!!x.length,onVisibleChanged:p},e=>{const{className:t,style:n}=e;return l.createElement("div",Object.assign({},S,{className:a()(g,t,h,v),style:n,role:"alert"}),l.createElement(s.aF,Object.assign({keys:x},(0,c.Ay)(m),{motionName:`${m}-show-help-item`,component:!1}),e=>{const{key:t,error:n,errorStatus:r,className:i,style:o}=e;return l.createElement("div",{key:t,className:a()(i,{[`${g}-${r}`]:r}),style:o},n)}))})}var R=n(94339),O=n(77140),P=n(87804),N=n(97459),k=n(96718);const D=e=>"object"==typeof e&&null!=e&&1===e.nodeType,L=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,B=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,U=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},z=(e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!D(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,f=[];let p=e;for(;D(p)&&d(p);){if(p=U(p),p===h){f.push(p);break}null!=p&&p===document.body&&B(p)&&!B(document.documentElement)||null!=p&&B(p,u)&&f.push(p)}const m=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,g=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:A}=window,{height:y,width:b,top:x,right:S,bottom:E,left:C}=e.getBoundingClientRect(),{top:w,right:_,bottom:I,left:T}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let M="start"===s||"nearest"===s?x-w:"end"===s?E+I:x+y/2-w+I,R="center"===l?C+b/2-T+_:"end"===l?S+_:C-T;const O=[];for(let e=0;e=0&&C>=0&&E<=g&&S<=m&&(t===h&&!B(t)||x>=i&&E<=c&&C>=u&&S<=o))return O;const d=getComputedStyle(t),p=parseInt(d.borderLeftWidth,10),w=parseInt(d.borderTopWidth,10),_=parseInt(d.borderRightWidth,10),I=parseInt(d.borderBottomWidth,10);let T=0,P=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-_:0,k="offsetHeight"in t?t.offsetHeight-t.clientHeight-w-I:0,D="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(h===t)T="start"===s?M:"end"===s?M-g:"nearest"===s?F(A,A+g,g,w,I,A+M,A+M+y,y):M-g/2,P="start"===l?R:"center"===l?R-m/2:"end"===l?R-m:F(v,v+m,m,p,_,v+R,v+R+b,b),T=Math.max(0,T+A),P=Math.max(0,P+v);else{T="start"===s?M-i-w:"end"===s?M-c+I+k:"nearest"===s?F(i,c,n,w,I+k,M,M+y,y):M-(i+n/2)+k/2,P="start"===l?R-u-p:"center"===l?R-(u+r/2)+N/2:"end"===l?R-o+_+N:F(u,o,r,p,_+N,R,R+b,b);const{scrollLeft:e,scrollTop:a}=t;T=0===L?0:Math.max(0,Math.min(a+T/L,t.scrollHeight-n/L+k)),P=0===D?0:Math.max(0,Math.min(e+P/D,t.scrollWidth-r/D+N)),M+=a-T,R+=e-P}O.push({el:t,top:T,left:P})}return O};const j=["parentNode"];function $(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function H(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:j.includes(n)?`form_item_${n}`:n}function G(e){return $(e).join("_")}function Q(e){const[t]=(0,R.mN)(),n=l.useRef({}),r=l.useMemo(()=>null!=e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=G(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=H($(e),r.__INTERNAL__.name),i=n?document.getElementById(n):null;i&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(z(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:o,left:a}of z(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=o-n.top+n.bottom,t=a-n.left+n.right;i.scroll({top:e,left:t,behavior:r})}}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=G(e);return n.current[t]}}),[e,t]);return[r]}const V=(e,t)=>{const n=l.useContext(P.A),{getPrefixCls:i,direction:o,form:s}=l.useContext(O.QO),{prefixCls:c,className:u,rootClassName:d,size:h,disabled:f=n,form:p,colon:m,labelAlign:g,labelWrap:v,labelCol:A,wrapperCol:y,hideRequiredMark:b,layout:x="horizontal",scrollToFirstError:S,requiredMark:E,onFinishFailed:C,name:w}=e,I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ivoid 0!==E?E:s&&void 0!==s.requiredMark?s.requiredMark:!b,[b,E,s]),D=null!=m?m:null==s?void 0:s.colon,L=i("form",c),[B,F]=_(L),U=a()(L,{[`${L}-${x}`]:!0,[`${L}-hide-required-mark`]:!1===M,[`${L}-rtl`]:"rtl"===o,[`${L}-${T}`]:T},F,u,d),[z]=Q(p),{__INTERNAL__:j}=z;j.name=w;const $=(0,l.useMemo)(()=>({name:w,labelAlign:g,labelCol:A,labelWrap:v,wrapperCol:y,vertical:"vertical"===x,colon:D,requiredMark:M,itemRef:j.itemRef,form:z}),[w,g,A,y,x,D,M,z]);l.useImperativeHandle(t,()=>z);const H=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),z.scrollToField(t,n)}};return B(l.createElement(P.X,{disabled:f},l.createElement(N.c,{size:T},l.createElement(r.cK.Provider,{value:$},l.createElement(R.Ay,Object.assign({id:w},I,{name:w,onFinishFailed:e=>{if(null==C||C(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==S)return void H(S,t);s&&void 0!==s.scrollToFirstError&&H(s.scrollToFirstError,t)}},form:z,className:U}))))))},W=l.forwardRef(V);var X=n(94570),q=n(81834),Y=n(81857);const K=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(r.$W);return{status:e,errors:t,warnings:n}};K.Context=r.$W;const J=K;var Z=n(77230),ee=n(87672),te=n(32626),ne=n(22542),re=n(82980),ie=n(34148),oe=n(99682),ae=n(43978),se=n(46034),le=n(33199);const ce=e=>{const{prefixCls:t,status:n,wrapperCol:i,children:o,errors:s,warnings:c,_internalItemRender:u,extra:d,help:h,fieldId:f,marginBottom:p,onErrorVisibleChanged:m}=e,g=`${t}-item`,v=l.useContext(r.cK),A=i||v.wrapperCol||{},y=a()(`${g}-control`,A.className),b=l.useMemo(()=>Object.assign({},v),[v]);delete b.labelCol,delete b.wrapperCol;const x=l.createElement("div",{className:`${g}-control-input`},l.createElement("div",{className:`${g}-control-input-content`},o)),S=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),E=null!==p||s.length||c.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(r.hb.Provider,{value:S},l.createElement(M,{fieldId:f,errors:s,warnings:c,help:h,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})),!!p&&l.createElement("div",{style:{width:0,height:p}})):null,C={};f&&(C.id=`${f}_extra`);const w=d?l.createElement("div",Object.assign({},C,{className:`${g}-extra`}),d):null,_=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:x,errorList:E,extra:w}):l.createElement(l.Fragment,null,x,E,w);return l.createElement(r.cK.Provider,{value:b},l.createElement(le.A,Object.assign({},A,{className:y}),_))};var ue=n(32549);const de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var he=n(70245),fe=function(e,t){return l.createElement(he.A,(0,ue.A)({},e,{ref:t,icon:de}))};const pe=l.forwardRef(fe);var me=n(20609),ge=n(78142),ve=n(91482);const Ae=e=>{let{prefixCls:t,label:n,htmlFor:i,labelCol:o,labelAlign:s,colon:c,required:u,requiredMark:d,tooltip:h}=e;var f;const[p]=(0,ge.A)("Form"),{vertical:m,labelAlign:g,labelCol:v,labelWrap:A,colon:y}=l.useContext(r.cK);if(!n)return null;const b=o||v||{},x=s||g,S=`${t}-item-label`,E=a()(S,"left"===x&&`${S}-left`,b.className,{[`${S}-wrap`]:!!A});let C=n;const w=!0===c||!1!==y&&!1!==c;w&&!m&&"string"==typeof n&&""!==n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const _=function(e){return e?"object"!=typeof e||l.isValidElement(e)?{title:e}:e:null}(h);if(_){const{icon:e=l.createElement(pe,null)}=_,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{if(T&&C.current){const e=getComputedStyle(C.current);O(parseInt(e.marginBottom,10))}},[T,M]);const P=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="";const n=e?w:f.errors,r=e?_:f.warnings;return void 0!==h?t=h:f.validating?t="validating":n.length?t="error":r.length?t="warning":(f.touched||p&&f.validated)&&(t="success"),t}(),N=l.useMemo(()=>{let e;if(p){const t=P&&ye[P];e=t?l.createElement("span",{className:a()(`${S}-feedback-icon`,`${S}-feedback-icon-${P}`)},l.createElement(t,null)):null}return{status:P,errors:c,warnings:d,hasFeedback:p,feedbackIcon:e,isFormItemInput:!0}},[P,p]),k=a()(S,n,i,{[`${S}-with-help`]:I||w.length||_.length,[`${S}-has-feedback`]:P&&p,[`${S}-has-success`]:"success"===P,[`${S}-has-warning`]:"warning"===P,[`${S}-has-error`]:"error"===P,[`${S}-is-validating`]:"validating"===P,[`${S}-hidden`]:m});return l.createElement("div",{className:k,style:o,ref:C},l.createElement(se.A,Object.assign({className:`${S}-row`},(0,ae.A)(x,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),l.createElement(Ae,Object.assign({htmlFor:v},e,{requiredMark:E,required:null!=A?A:y,prefixCls:t})),l.createElement(ce,Object.assign({},e,f,{errors:w,warnings:_,prefixCls:t,status:P,help:s,marginBottom:R,onErrorVisibleChanged:e=>{e||O(null)}}),l.createElement(r.jC.Provider,{value:b},l.createElement(r.$W.Provider,{value:N},g)))),!!R&&l.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-R}}))}var xe=n(51281);const Se=l.memo(e=>{let{children:t}=e;return t},(e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n])),Ee=function(e){const{name:t,noStyle:n,className:o,dependencies:s,prefixCls:c,shouldUpdate:u,rules:d,children:h,required:f,label:p,messageVariables:m,trigger:g="onChange",validateTrigger:v,hidden:A,help:y}=e,{getPrefixCls:b}=l.useContext(O.QO),{name:x}=l.useContext(r.cK),S=function(e){if("function"==typeof e)return e;const t=(0,xe.A)(e);return t.length<=1?t[0]:t}(h),E="function"==typeof S,C=l.useContext(r.jC),{validateTrigger:w}=l.useContext(R._z),I=void 0!==v?v:w,T=function(e){return!(null==e)}(t),M=b("form",c),[P,N]=_(M),k=l.useContext(R.EF),D=l.useRef(),[L,B]=function(){const[e,t]=l.useState({}),n=(0,l.useRef)(null),r=(0,l.useRef)([]),i=(0,l.useRef)(!1);return l.useEffect(()=>(i.current=!1,()=>{i.current=!0,Z.A.cancel(n.current),n.current=null}),[]),[e,function(e){i.current||(null===n.current&&(r.current=[],n.current=(0,Z.A)(()=>{n.current=null,t(e=>{let t=e;return r.current.forEach(e=>{t=e(t)}),t})})),r.current.push(e))}]}(),[F,U]=(0,X.A)(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),z=(e,t)=>{B(n=>{const r=Object.assign({},n),o=[].concat((0,i.A)(e.name.slice(0,-1)),(0,i.A)(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[j,G]=l.useMemo(()=>{const e=(0,i.A)(F.errors),t=(0,i.A)(F.warnings);return Object.values(L).forEach(n=>{e.push.apply(e,(0,i.A)(n.errors||[])),t.push.apply(t,(0,i.A)(n.warnings||[]))}),[e,t]},[L,F.errors,F.warnings]),Q=function(){const{itemRef:e}=l.useContext(r.cK),t=l.useRef({});return function(n,r){const i=r&&"object"==typeof r&&r.ref,o=n.join("_");return t.current.name===o&&t.current.originRef===i||(t.current.name=o,t.current.originRef=i,t.current.ref=(0,q.K4)(e(n),i)),t.current.ref}}();function V(t,r,i){return n&&!A?t:l.createElement(be,Object.assign({key:"row"},e,{className:a()(o,N),prefixCls:M,fieldId:r,isRequired:i,errors:j,warnings:G,meta:F,onSubItemMetaChange:z}),t)}if(!T&&!E&&!s)return P(V(S));let W={};return"string"==typeof p?W.label=p:t&&(W.label=String(t)),m&&(W=Object.assign(Object.assign({},W),m)),P(l.createElement(R.D0,Object.assign({},e,{messageVariables:W,trigger:g,validateTrigger:I,onMetaChange:e=>{const t=null==k?void 0:k.getKey(e.name);if(U(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==y&&C){let n=e.name;if(e.destroy)n=D.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat((0,i.A)(r)),D.current=n}C(e,n)}}}),(n,r,o)=>{const a=$(t).length&&r?r.name:[],c=H(a,x),h=void 0!==f?f:!(!d||!d.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(o);return t&&t.required&&!t.warningOnly}return!1})),p=Object.assign({},n);let m=null;if(Array.isArray(S)&&T)m=S;else if(E&&(!u&&!s||T));else if(!s||E||T)if((0,Y.zO)(S)){const t=Object.assign(Object.assign({},S.props),p);if(t.id||(t.id=c),y||j.length>0||G.length>0||e.extra){const n=[];(y||j.length>0)&&n.push(`${c}_help`),e.extra&&n.push(`${c}_extra`),t["aria-describedby"]=n.join(" ")}j.length>0&&(t["aria-invalid"]="true"),h&&(t["aria-required"]="true"),(0,q.f3)(S)&&(t.ref=Q(a,S)),new Set([].concat((0,i.A)($(g)),(0,i.A)($(I)))).forEach(e=>{t[e]=function(){for(var t,n,r,i,o,a=arguments.length,s=new Array(a),l=0;l{var{prefixCls:t,children:n}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i({prefixCls:a,status:"error"}),[a]);return l.createElement(R.B8,Object.assign({},i),(e,t,i)=>l.createElement(r.hb.Provider,{value:s},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:i.errors,warnings:i.warnings})))},we.ErrorList=M,we.useForm=Q,we.useFormInstance=function(){const{form:e}=(0,l.useContext)(r.cK);return e},we.useWatch=R.FH,we.Provider=r.Op,we.create=()=>{};const _e=we},71498(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(40366).createContext)({})},33199(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(73059),i=n.n(r),o=n(40366),a=n(77140),s=n(71498),l=n(29067);const c=["xs","sm","md","lg","xl","xxl"],u=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(a.QO),{gutter:u,wrap:d,supportFlexGap:h}=o.useContext(s.A),{prefixCls:f,span:p,order:m,offset:g,push:v,pull:A,className:y,children:b,flex:x,style:S}=e,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let n={};const i=e[t];"number"==typeof i?n.span=i:"object"==typeof i&&(n=i||{}),delete E[t],I=Object.assign(Object.assign({},I),{[`${C}-${t}-${n.span}`]:void 0!==n.span,[`${C}-${t}-order-${n.order}`]:n.order||0===n.order,[`${C}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${C}-${t}-push-${n.push}`]:n.push||0===n.push,[`${C}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${C}-${t}-flex-${n.flex}`]:n.flex||"auto"===n.flex,[`${C}-rtl`]:"rtl"===r})});const T=i()(C,{[`${C}-${p}`]:void 0!==p,[`${C}-order-${m}`]:m,[`${C}-offset-${g}`]:g,[`${C}-push-${v}`]:v,[`${C}-pull-${A}`]:A},y,I,_),M={};if(u&&u[0]>0){const e=u[0]/2;M.paddingLeft=e,M.paddingRight=e}if(u&&u[1]>0&&!h){const e=u[1]/2;M.paddingTop=e,M.paddingBottom=e}return x&&(M.flex=function(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}(x),!1!==d||M.minWidth||(M.minWidth=0)),w(o.createElement("div",Object.assign({},E,{style:Object.assign(Object.assign({},M),S),className:T,ref:t}),b))})},22961(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(40366),i=n(37188);const o=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=function(){const[,e]=r.useReducer(e=>e+1,0);return e}(),o=(0,i.A)();return(0,r.useEffect)(()=>{const r=o.subscribe(r=>{t.current=r,e&&n()});return()=>o.unsubscribe(r)},[]),t.current}},46034(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(73059),i=n.n(r),o=n(40366),a=n(77140),s=n(10052);const l=()=>{const[e,t]=o.useState(!1);return o.useEffect(()=>{t((0,s.Pu)())},[]),e};(Object.getOwnPropertyDescriptor(l,"name")||{}).writable||Object.defineProperty(l,"name",{value:"default",configurable:!0});var c=n(37188),u=n(71498),d=n(29067);function h(e,t){const[n,r]=o.useState("string"==typeof e?e:"");return o.useEffect(()=>{(()=>{if("string"==typeof e&&r(e),"object"==typeof e)for(let n=0;n{const{prefixCls:n,justify:r,align:s,className:f,style:p,children:m,gutter:g=0,wrap:v}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const e=M.subscribe(e=>{C(e);const t=T.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&S(e)});return()=>M.unsubscribe(e)},[]);const R=y("row",n),[O,P]=(0,d.L)(R),N=(()=>{const e=[void 0,void 0];return(Array.isArray(g)?g:[g,void 0]).forEach((t,n)=>{if("object"==typeof t)for(let r=0;r0?N[0]/-2:void 0,B=null!=N[1]&&N[1]>0?N[1]/-2:void 0;L&&(D.marginLeft=L,D.marginRight=L),I?[,D.rowGap]=N:B&&(D.marginTop=B,D.marginBottom=B);const[F,U]=N,z=o.useMemo(()=>({gutter:[F,U],wrap:v,supportFlexGap:I}),[F,U,v,I]);return O(o.createElement(u.A.Provider,{value:z},o.createElement("div",Object.assign({},A,{className:k,style:Object.assign(Object.assign({},D),p),ref:t}),m)))})},29067(e,t,n){"use strict";n.d(t,{L:()=>l,x:()=>c});var r=n(28170),i=n(51121);const o=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},a=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},s=(e,t)=>((e,t)=>{const{componentCls:n,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)0===e?(i[`${n}${t}-${e}`]={display:"none"},i[`${n}-push-${e}`]={insetInlineStart:"auto"},i[`${n}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${e}`]={marginInlineStart:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]={display:"block",flex:`0 0 ${e/r*100}%`,maxWidth:e/r*100+"%"},i[`${n}${t}-push-${e}`]={insetInlineStart:e/r*100+"%"},i[`${n}${t}-pull-${e}`]={insetInlineEnd:e/r*100+"%"},i[`${n}${t}-offset-${e}`]={marginInlineStart:e/r*100+"%"},i[`${n}${t}-order-${e}`]={order:e});return i})(e,t),l=(0,r.A)("Grid",e=>[o(e)]),c=(0,r.A)("Grid",e=>{const t=(0,i.h1)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[a(t),s(t,""),s(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${t}px)`]:Object.assign({},s(e,n))}))(t,n[e],e)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]})},44915(e,t,n){"use strict";n.d(t,{A:()=>ce});var r=n(34270),i=n(32549),o=n(40366);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var s=n(70245),l=function(e,t){return o.createElement(s.A,(0,i.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(l);var u=n(73059),d=n.n(u),h=n(22256),f=n(35739),p=n(34355),m=n(57889),g=n(95589),v=n(34148),A=n(81834),y=n(20582),b=n(79520);function x(){return"function"==typeof BigInt}function S(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function E(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function C(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function w(e){var t=e.toLowerCase().split("e"),n=(0,p.A)(t,2),r=n[0],i=n[1],o=void 0===i?"0":i,a=r.startsWith("-"),s=(a?r.slice(1):r).split("."),l=(0,p.A)(s,2),c=l[0],u=void 0===c?"0":c,d=l[1],h=void 0===d?"":d;return{decimal:h,digits:"".concat(u).concat(h).replace(/^0+/,"")||"0",exponent:Number(o),integer:u,negative:a}}function _(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function I(e){var t=String(e);return C(e)?_(w(t)):t.includes(".")&&M(t)?t.length-t.indexOf(".")-1:0}function T(e){var t=String(e);if(C(e)){if(e>Number.MAX_SAFE_INTEGER)return String(x()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e100?function(e){var t=e.decimal,n=e.digits,r=e.exponent,i=e.integer,o=e.negative;if("0"===n)return"0";var a,s=i.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=(s||-l)+r;return a=c<=0?"0.".concat("0".repeat(-c)).concat(n):c>=n.length?"".concat(n).concat("0".repeat(c-n.length)):"".concat(n.slice(0,c),".").concat(n.slice(c)),"".concat(o?"-":"").concat(a)}(n):e.toFixed(r)}return E(t).fullStr}function M(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var R=function(){function e(t){if((0,y.A)(this,e),(0,h.A)(this,"origin",""),(0,h.A)(this,"negative",void 0),(0,h.A)(this,"integer",void 0),(0,h.A)(this,"decimal",void 0),(0,h.A)(this,"decimalLen",void 0),(0,h.A)(this,"empty",void 0),(0,h.A)(this,"nan",void 0),S(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(C(n)&&(n=Number(n)),M(n="string"==typeof n?n:T(n))){var r=E(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}}return(0,b.A)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var i=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),o=n(this.alignDecimal(i),t.alignDecimal(i)).toString(),a=r(i),s=E(o),l=s.negativeStr,c=s.trimStr,u="".concat(l).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":E("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr}}]),e}(),O=function(){function e(t){(0,y.A)(this,e),(0,h.A)(this,"origin",""),(0,h.A)(this,"number",void 0),(0,h.A)(this,"empty",void 0),S(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return(0,b.A)(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0]&&!arguments[0]?this.origin:this.isInvalidate()?"":C(this.number)&&I(this.number)>100?String(this.number):T(this.number)}}]),e}();function P(e){return x()?new R(e):new O(e)}function N(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var i=E(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);return u>=5&&!r?N(P(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?c:"".concat(c).concat(l)}const k=P;var D=n(19633);function L(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,s=e.downDisabled,l=e.onStep,c=o.useRef(),u=o.useRef();u.current=l;var f,m,g,A,y=function(e,t){e.preventDefault(),u.current(t),c.current=setTimeout(function e(){u.current(t),c.current=setTimeout(e,200)},600)},b=function(){clearTimeout(c.current)};if(o.useEffect(function(){return b},[]),f=(0,o.useState)(!1),m=(0,p.A)(f,2),g=m[0],A=m[1],(0,v.A)(function(){A((0,D.A)())},[]),g)return null;var x="".concat(t,"-handler"),S=d()(x,"".concat(x,"-up"),(0,h.A)({},"".concat(x,"-up-disabled"),a)),E=d()(x,"".concat(x,"-down"),(0,h.A)({},"".concat(x,"-down-disabled"),s)),C={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return o.createElement("div",{className:"".concat(x,"-wrap")},o.createElement("span",(0,i.A)({},C,{onMouseDown:function(e){y(e,!0)},"aria-label":"Increase Value","aria-disabled":a,className:S}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",(0,i.A)({},C,{onMouseDown:function(e){y(e,!1)},"aria-label":"Decrease Value","aria-disabled":s,className:E}),r||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function B(e){var t="number"==typeof e?T(e):E(e).fullStr;return t.includes(".")?E(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var F=n(3455),U=n(77230);const z=function(){var e=(0,o.useRef)(0),t=function(){U.A.cancel(e.current)};return(0,o.useEffect)(function(){return t},[]),function(n){t(),e.current=(0,U.A)(function(){n()})}};(Object.getOwnPropertyDescriptor(z,"name")||{}).writable||Object.defineProperty(z,"name",{value:"default",configurable:!0});var j=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],$=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},H=function(e){var t=k(e);return t.isInvalidate()?null:t},G=o.forwardRef(function(e,t){var n,r=e.prefixCls,a=void 0===r?"rc-input-number":r,s=e.className,l=e.style,c=e.min,u=e.max,y=e.step,b=void 0===y?1:y,x=e.defaultValue,S=e.value,E=e.disabled,C=e.readOnly,w=e.upHandler,_=e.downHandler,R=e.keyboard,O=e.controls,P=void 0===O||O,D=e.stringMode,U=e.parser,G=e.formatter,Q=e.precision,V=e.decimalSeparator,W=e.onChange,X=e.onInput,q=e.onPressEnter,Y=e.onStep,K=(0,m.A)(e,j),J="".concat(a,"-input"),Z=o.useRef(null),ee=o.useState(!1),te=(0,p.A)(ee,2),ne=te[0],re=te[1],ie=o.useRef(!1),oe=o.useRef(!1),ae=o.useRef(!1),se=o.useState(function(){return k(null!=S?S:x)}),le=(0,p.A)(se,2),ce=le[0],ue=le[1],de=o.useCallback(function(e,t){if(!t)return Q>=0?Q:Math.max(I(e),I(b))},[Q,b]),he=o.useCallback(function(e){var t=String(e);if(U)return U(t);var n=t;return V&&(n=n.replace(V,".")),n.replace(/[^\w.-]+/g,"")},[U,V]),fe=o.useRef(""),pe=o.useCallback(function(e,t){if(G)return G(e,{userTyping:t,input:String(fe.current)});var n="number"==typeof e?T(e):e;if(!t){var r=de(n,t);M(n)&&(V||r>=0)&&(n=N(n,V||".",r))}return n},[G,de,V]),me=o.useState(function(){var e=null!=x?x:S;return ce.isInvalidate()&&["string","number"].includes((0,f.A)(e))?Number.isNaN(e)?"":e:pe(ce.toString(),!1)}),ge=(0,p.A)(me,2),ve=ge[0],Ae=ge[1];function ye(e,t){Ae(pe(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}fe.current=ve;var be,xe,Se,Ee=o.useMemo(function(){return H(u)},[u,Q]),Ce=o.useMemo(function(){return H(c)},[c,Q]),we=o.useMemo(function(){return!(!Ee||!ce||ce.isInvalidate())&&Ee.lessEquals(ce)},[Ee,ce]),_e=o.useMemo(function(){return!(!Ce||!ce||ce.isInvalidate())&&ce.lessEquals(Ce)},[Ce,ce]),Ie=(be=Z.current,xe=ne,Se=(0,o.useRef)(null),[function(){try{var e=be.selectionStart,t=be.selectionEnd,n=be.value,r=n.substring(0,e),i=n.substring(t);Se.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:i}}catch(e){}},function(){if(be&&Se.current&&xe)try{var e=be.value,t=Se.current,n=t.beforeTxt,r=t.afterTxt,i=t.start,o=e.length;if(e.endsWith(r))o=e.length-Se.current.afterTxt.length;else if(e.startsWith(n))o=n.length;else{var a=n[i-1],s=e.indexOf(a,i-1);-1!==s&&(o=s+1)}be.setSelectionRange(o,o)}catch(e){(0,F.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),Te=(0,p.A)(Ie,2),Me=Te[0],Re=Te[1],Oe=function(e){return Ee&&!e.lessEquals(Ee)?Ee:Ce&&!Ce.lessEquals(e)?Ce:null},Pe=function(e){return!Oe(e)},Ne=function(e,t){var n=e,r=Pe(n)||n.isEmpty();if(n.isEmpty()||t||(n=Oe(n)||n,r=!0),!C&&!E&&r){var i=n.toString(),o=de(i,t);return o>=0&&(n=k(N(i,".",o)),Pe(n)||(n=k(N(i,".",o,!0)))),n.equals(ce)||(void 0===S&&ue(n),null==W||W(n.isEmpty()?null:$(D,n)),void 0===S&&ye(n,t)),n}return ce},ke=z(),De=function e(t){if(Me(),Ae(t),!oe.current){var n=he(t),r=k(n);r.isNaN()||Ne(r,!0)}null==X||X(t),ke(function(){var n=t;U||(n=t.replace(/。/g,".")),n!==t&&e(n)})},Le=function(e){var t;if(!(e&&we||!e&&_e)){ie.current=!1;var n=k(ae.current?B(b):b);e||(n=n.negate());var r=(ce||k(0)).add(n.toString()),i=Ne(r,!1);null==Y||Y($(D,i),{offset:ae.current?B(b):b,type:e?"up":"down"}),null===(t=Z.current)||void 0===t||t.focus()}},Be=function(e){var t=k(he(ve)),n=t;n=t.isNaN()?ce:Ne(t,e),void 0!==S?ye(ce,!1):n.isNaN()||ye(n,!1)};return(0,v.o)(function(){ce.isInvalidate()||ye(ce,!1)},[Q]),(0,v.o)(function(){var e=k(S);ue(e);var t=k(he(ve));e.equals(t)&&ie.current&&!G||ye(e,ie.current)},[S]),(0,v.o)(function(){G&&Re()},[ve]),o.createElement("div",{className:d()(a,s,(n={},(0,h.A)(n,"".concat(a,"-focused"),ne),(0,h.A)(n,"".concat(a,"-disabled"),E),(0,h.A)(n,"".concat(a,"-readonly"),C),(0,h.A)(n,"".concat(a,"-not-a-number"),ce.isNaN()),(0,h.A)(n,"".concat(a,"-out-of-range"),!ce.isInvalidate()&&!Pe(ce)),n)),style:l,onFocus:function(){re(!0)},onBlur:function(){Be(!1),re(!1),ie.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;ie.current=!0,ae.current=!!n,t===g.A.ENTER&&(oe.current||(ie.current=!1),Be(!1),null==q||q(e)),!1!==R&&!oe.current&&[g.A.UP,g.A.DOWN].includes(t)&&(Le(g.A.UP===t),e.preventDefault())},onKeyUp:function(){ie.current=!1,ae.current=!1},onCompositionStart:function(){oe.current=!0},onCompositionEnd:function(){oe.current=!1,De(Z.current.value)},onBeforeInput:function(){ie.current=!0}},P&&o.createElement(L,{prefixCls:a,upNode:w,downNode:_,upDisabled:we,downDisabled:_e,onStep:Le}),o.createElement("div",{className:"".concat(J,"-wrap")},o.createElement("input",(0,i.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":u,"aria-valuenow":ce.isInvalidate()?null:ce.toString(),step:b},K,{ref:(0,A.K4)(Z,t),className:J,value:ve,onChange:function(e){De(e.target.value)},disabled:E,readOnly:C}))))});G.displayName="InputNumber";const Q=G;var V=n(81857),W=n(54109),X=n(77140),q=n(60367),Y=n(87804),K=n(96718),J=n(87824),Z=n(43136),ee=n(3233),te=n(28170),ne=n(79218),re=n(91731);const ie=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:h,colorPrimary:f,controlHeight:p,inputPaddingHorizontal:m,colorBgContainer:g,colorTextDisabled:v,borderRadiusSM:A,borderRadiusLG:y,controlWidth:b,handleVisible:x}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ne.dF)(e)),(0,ee.wj)(e)),(0,ee.EB)(e,t)),{display:"inline-block",width:b,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:y,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:A,[`input${t}-input`]:{height:l-2*n,padding:`0 ${u}px`}},"&:hover":Object.assign({},(0,ee.Q)(e)),"&-focused":Object.assign({},(0,ee.Ut)(e)),"&-disabled":Object.assign(Object.assign({},(0,ee.eT)(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ne.dF)(e)),(0,ee.XM)(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:A}}}}),[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ne.dF)(e)),{width:"100%",height:p-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",verticalAlign:"top"}),(0,ee.j_)(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:g,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:!0===x?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${i}`,transition:`all ${h} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:f}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ne.Nk)()),{color:d,transition:`all ${h} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:o},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:v}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},oe=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,ee.wj)(e)),(0,ee.EB)(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,ee.Q)(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},ae=(0,te.A)("InputNumber",e=>{const t=(0,ee.C5)(e);return[ie(t),oe(t),(0,re.G)(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:"auto"}));const se=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:i}=o.useContext(X.QO),[a,s]=o.useState(!1),l=o.useRef(null);o.useImperativeHandle(t,()=>l.current);const{className:u,rootClassName:h,size:f,disabled:p,prefixCls:m,addonBefore:g,addonAfter:v,prefix:A,bordered:y=!0,readOnly:b,status:x,controls:S}=e,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var t;return null!==(t=null!=I?I:f)&&void 0!==t?t:e}),F=null!=A||P,U=!(!g&&!v),z=o.useContext(Y.A),j=null!=p?p:z,$=d()({[`${C}-lg`]:"large"===B,[`${C}-sm`]:"small"===B,[`${C}-rtl`]:"rtl"===i,[`${C}-borderless`]:!y,[`${C}-in-form-item`]:k},(0,W.L)(C,L),T,_,u,!F&&!U&&h);let H=o.createElement(Q,Object.assign({ref:l,disabled:j,className:$,upHandler:M,downHandler:R,prefixCls:C,readOnly:b,controls:O},E));if(F){const t=d()(`${C}-affix-wrapper`,(0,W.L)(`${C}-affix-wrapper`,L,P),{[`${C}-affix-wrapper-focused`]:a,[`${C}-affix-wrapper-disabled`]:e.disabled,[`${C}-affix-wrapper-sm`]:"small"===B,[`${C}-affix-wrapper-lg`]:"large"===B,[`${C}-affix-wrapper-rtl`]:"rtl"===i,[`${C}-affix-wrapper-readonly`]:b,[`${C}-affix-wrapper-borderless`]:!y},!U&&u,!U&&h,_);H=o.createElement("div",{className:t,style:e.style,onMouseUp:()=>l.current.focus()},A&&o.createElement("span",{className:`${C}-prefix`},A),(0,V.Ob)(H,{style:null,value:e.value,onFocus:t=>{var n;s(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;s(!1),null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),P&&o.createElement("span",{className:`${C}-suffix`},D))}if(U){const t=`${C}-group`,n=`${t}-addon`,r=g?o.createElement("div",{className:n},g):null,a=v?o.createElement("div",{className:n},v):null,s=d()(`${C}-wrapper`,t,_,{[`${t}-rtl`]:"rtl"===i}),l=d()(`${C}-group-wrapper`,{[`${C}-group-wrapper-sm`]:"small"===B,[`${C}-group-wrapper-lg`]:"large"===B,[`${C}-group-wrapper-rtl`]:"rtl"===i},(0,W.L)(`${C}-group-wrapper`,L,P),_,u,h);H=o.createElement("div",{className:l,style:e.style},o.createElement("div",{className:s},r&&o.createElement(Z.K6,null,o.createElement(J.XB,{status:!0,override:!0},r)),(0,V.Ob)(H,{style:null,disabled:j}),a&&o.createElement(Z.K6,null,o.createElement(J.XB,{status:!0,override:!0},a))))}return w(H)}),le=se;le._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(q.Ay,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(se,Object.assign({},e)));const ce=le},6289(e,t,n){"use strict";n.d(t,{A:()=>ue});var r=n(73059),i=n.n(r),o=n(40366),a=n(77140),s=n(87824),l=n(3233);var c=n(32626),u=n(32549),d=n(40942),h=n(22256),f=n(35739);function p(e){return!(!e.addonBefore&&!e.addonAfter)}function m(e){return!!(e.prefix||e.suffix||e.allowClear)}function g(e,t,n,r){if(n){var i=t;if("click"===t.type){var o=e.cloneNode(!0);return i=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(i)}if(void 0!==r)return i=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(i);n(i)}}function v(e){return null==e?"":String(e)}const A=function(e){var t,n,r=e.inputElement,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,g=e.addonAfter,v=e.className,A=e.style,y=e.disabled,b=e.readOnly,x=e.focused,S=e.triggerFocus,E=e.allowClear,C=e.value,w=e.handleReset,_=e.hidden,I=e.classes,T=e.classNames,M=e.dataAttrs,R=e.styles,O=(0,o.useRef)(null),P=(0,o.cloneElement)(r,{value:C,hidden:_,className:i()(null===(t=r.props)||void 0===t?void 0:t.className,!m(e)&&!p(e)&&v)||null,style:(0,d.A)((0,d.A)({},null===(n=r.props)||void 0===n?void 0:n.style),m(e)||p(e)?{}:A)});if(m(e)){var N,k="".concat(a,"-affix-wrapper"),D=i()(k,(N={},(0,h.A)(N,"".concat(k,"-disabled"),y),(0,h.A)(N,"".concat(k,"-focused"),x),(0,h.A)(N,"".concat(k,"-readonly"),b),(0,h.A)(N,"".concat(k,"-input-with-clear-btn"),l&&E&&C),N),!p(e)&&v,null==I?void 0:I.affixWrapper),L=(l||E)&&o.createElement("span",{className:i()("".concat(a,"-suffix"),null==T?void 0:T.suffix),style:null==R?void 0:R.suffix},function(){var e;if(!E)return null;var t=!y&&!b&&C,n="".concat(a,"-clear-icon"),r="object"===(0,f.A)(E)&&null!=E&&E.clearIcon?E.clearIcon:"✖";return o.createElement("span",{onClick:w,onMouseDown:function(e){return e.preventDefault()},className:i()(n,(e={},(0,h.A)(e,"".concat(n,"-hidden"),!t),(0,h.A)(e,"".concat(n,"-has-suffix"),!!l),e)),role:"button",tabIndex:-1},r)}(),l);P=o.createElement("span",(0,u.A)({className:D,style:p(e)?void 0:A,hidden:!p(e)&&_,onClick:function(e){var t;null!==(t=O.current)&&void 0!==t&&t.contains(e.target)&&(null==S||S())}},null==M?void 0:M.affixWrapper,{ref:O}),s&&o.createElement("span",{className:i()("".concat(a,"-prefix"),null==T?void 0:T.prefix),style:null==R?void 0:R.prefix},s),(0,o.cloneElement)(r,{value:C,hidden:null}),L)}if(p(e)){var B="".concat(a,"-group"),F="".concat(B,"-addon"),U=i()("".concat(a,"-wrapper"),B,null==I?void 0:I.wrapper),z=i()("".concat(a,"-group-wrapper"),v,null==I?void 0:I.group);return o.createElement("span",{className:z,style:A,hidden:_},o.createElement("span",{className:U},c&&o.createElement("span",{className:F},c),(0,o.cloneElement)(P,{hidden:null}),g&&o.createElement("span",{className:F},g)))}return P};var y=n(53563),b=n(34355),x=n(57889),S=n(5522),E=n(43978),C=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"];const w=(0,o.forwardRef)(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,s=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,p=e.prefixCls,m=void 0===p?"rc-input":p,w=e.disabled,_=e.htmlSize,I=e.className,T=e.maxLength,M=e.suffix,R=e.showCount,O=e.type,P=void 0===O?"text":O,N=e.classes,k=e.classNames,D=e.styles,L=(0,x.A)(e,C),B=(0,S.A)(e.defaultValue,{value:e.value}),F=(0,b.A)(B,2),U=F[0],z=F[1],j=(0,o.useState)(!1),$=(0,b.A)(j,2),H=$[0],G=$[1],Q=(0,o.useRef)(null),V=function(e){Q.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(Q.current,e)};(0,o.useImperativeHandle)(t,function(){return{focus:V,blur:function(){var e;null===(e=Q.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=Q.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=Q.current)||void 0===e||e.select()},input:Q.current}}),(0,o.useEffect)(function(){G(function(e){return(!e||!w)&&e})},[w]);var W;return o.createElement(A,(0,u.A)({},L,{prefixCls:m,className:I,inputElement:(W=(0,E.A)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),o.createElement("input",(0,u.A)({autoComplete:n},W,{onChange:function(t){void 0===e.value&&z(t.target.value),Q.current&&g(Q.current,t,r)},onFocus:function(e){G(!0),null==a||a(e)},onBlur:function(e){G(!1),null==s||s(e)},onKeyDown:function(e){l&&"Enter"===e.key&&l(e),null==c||c(e)},className:i()(m,(0,h.A)({},"".concat(m,"-disabled"),w),null==k?void 0:k.input),style:null==D?void 0:D.input,ref:Q,size:_,type:P}))),handleReset:function(e){z(""),V(),Q.current&&g(Q.current,e,r)},value:v(U),focused:H,triggerFocus:V,suffix:function(){var e=Number(T)>0;if(M||R){var t=v(U),n=(0,y.A)(t).length,r="object"===(0,f.A)(R)?R.formatter({value:t,count:n,maxLength:T}):"".concat(n).concat(e?" / ".concat(T):"");return o.createElement(o.Fragment,null,!!R&&o.createElement("span",{className:i()("".concat(m,"-show-count-suffix"),(0,h.A)({},"".concat(m,"-show-count-has-suffix"),!!M),null==k?void 0:k.count),style:(0,d.A)({},null==D?void 0:D.count)},r),M)}return null}(),disabled:w,classes:N,classNames:k,styles:D}))});var _=n(81834),I=n(54109),T=n(87804),M=n(96718),R=n(43136);function O(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r,i;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(i=e.current)||void 0===i||i.input.removeAttribute("value"))}))};return(0,o.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}const P=(0,o.forwardRef)((e,t)=>{const{prefixCls:n,bordered:r=!0,status:u,size:d,disabled:h,onBlur:f,onFocus:p,suffix:m,allowClear:g,addonAfter:v,addonBefore:A,className:y,rootClassName:b,onChange:x,classNames:S}=e,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var t;return null!==(t=null!=F?F:d)&&void 0!==t?t:e}),j=o.useContext(T.A),$=null!=h?h:j,{status:H,hasFeedback:G,feedbackIcon:Q}=(0,o.useContext)(s.$W),V=(0,I.v)(H,u),W=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e)||!!G,X=(0,o.useRef)(W);(0,o.useEffect)(()=>{W&&X.current,X.current=W},[W]);const q=O(D,!0),Y=(G||m)&&o.createElement(o.Fragment,null,m,G&&Q);let K;return"object"==typeof g&&(null==g?void 0:g.clearIcon)?K=g:g&&(K={clearIcon:o.createElement(c.A,null)}),L(o.createElement(w,Object.assign({ref:(0,_.K4)(t,D),prefixCls:k,autoComplete:null==N?void 0:N.autoComplete},E,{disabled:$,onBlur:e=>{q(),null==f||f(e)},onFocus:e=>{q(),null==p||p(e)},suffix:Y,allowClear:K,className:i()(y,b,U),onChange:e=>{q(),null==x||x(e)},addonAfter:v&&o.createElement(R.K6,null,o.createElement(s.XB,{override:!0,status:!0},v)),addonBefore:A&&o.createElement(R.K6,null,o.createElement(s.XB,{override:!0,status:!0},A)),classNames:Object.assign(Object.assign({},S),{input:i()({[`${k}-sm`]:"small"===z,[`${k}-lg`]:"large"===z,[`${k}-rtl`]:"rtl"===P,[`${k}-borderless`]:!r},!W&&(0,I.L)(k,V),null==S?void 0:S.input,B)}),classes:{affixWrapper:i()({[`${k}-affix-wrapper-sm`]:"small"===z,[`${k}-affix-wrapper-lg`]:"large"===z,[`${k}-affix-wrapper-rtl`]:"rtl"===P,[`${k}-affix-wrapper-borderless`]:!r},(0,I.L)(`${k}-affix-wrapper`,V,G),B),wrapper:i()({[`${k}-group-rtl`]:"rtl"===P},B),group:i()({[`${k}-group-wrapper-sm`]:"small"===z,[`${k}-group-wrapper-lg`]:"large"===z,[`${k}-group-wrapper-rtl`]:"rtl"===P,[`${k}-group-wrapper-disabled`]:$},(0,I.L)(`${k}-group-wrapper`,V,G),B)}})))}),N=P,k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var D=n(70245),L=function(e,t){return o.createElement(D.A,(0,u.A)({},e,{ref:t,icon:k}))};const B=o.forwardRef(L),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.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.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var U=function(e,t){return o.createElement(D.A,(0,u.A)({},e,{ref:t,icon:F}))};const z=o.forwardRef(U);const j=e=>e?o.createElement(z,null):o.createElement(B,null),$={click:"onClick",hover:"onMouseOver"},H=o.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[s,l]=(0,o.useState)(()=>!!r&&n.visible),c=(0,o.useRef)(null);o.useEffect(()=>{r&&l(n.visible)},[r,n]);const u=O(c),d=()=>{const{disabled:t}=e;t||(s&&u(),l(e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r}))},{className:h,prefixCls:f,inputPrefixCls:p,size:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{action:n="click",iconRender:r=j}=e,i=$[n]||"",a=r(s),l={[i]:d,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(a)?a:o.createElement("span",null,a),l)})(y),x=i()(y,h,{[`${y}-${m}`]:!!m}),S=Object.assign(Object.assign({},(0,E.A)(g,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:x,prefixCls:A,suffix:b});return m&&(S.size=m),o.createElement(N,Object.assign({ref:(0,_.K4)(t,c)},S))});var G=n(9220),Q=n(81857),V=n(85401);const W=o.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:s,size:l,suffix:c,enterButton:u=!1,addonAfter:d,loading:h,disabled:f,onSearch:p,onChange:m,onCompositionStart:g,onCompositionEnd:v}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var t;return null!==(t=null!=C?C:l)&&void 0!==t?t:e}),I=o.useRef(null),T=e=>{var t;document.activeElement===(null===(t=I.current)||void 0===t?void 0:t.input)&&e.preventDefault()},O=e=>{var t,n;p&&p(null===(n=null===(t=I.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e)},P="boolean"==typeof u?o.createElement(G.A,null):null,k=`${S}-button`;let D;const L=u||{},B=L.type&&!0===L.type.__ANT_BUTTON;D=B||"button"===L.type?(0,Q.Ob)(L,Object.assign({onMouseDown:T,onClick:e=>{var t,n;null===(n=null===(t=null==L?void 0:L.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),O(e)},key:"enterButton"},B?{className:k,size:w}:{})):o.createElement(V.Ay,{className:k,type:u?"primary":void 0,size:w,disabled:f,key:"enterButton",onMouseDown:T,onClick:O,loading:h,icon:P},u),d&&(D=[D,(0,Q.Ob)(d,{key:"addonAfter"})]);const F=i()(S,{[`${S}-rtl`]:"rtl"===b,[`${S}-${w}`]:!!w,[`${S}-with-button`]:!!u},s);return o.createElement(N,Object.assign({ref:(0,_.K4)(I,t),onPressEnter:e=>{x.current||h||O(e)}},A,{size:w,onCompositionStart:e=>{x.current=!0,null==g||g(e)},onCompositionEnd:e=>{x.current=!1,null==v||v(e)},prefixCls:E,addonAfter:D,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&p&&p(e.target.value,e),m&&m(e)},className:F,disabled:f}))});var X,q=n(86141),Y=n(34148),K=n(77230),J=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Z={};var ee=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],te=o.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=(n.onPressEnter,n.defaultValue),s=n.value,l=n.autoSize,c=n.onResize,p=n.className,m=n.style,g=n.disabled,v=n.onChange,A=(n.onInternalAutoSize,(0,x.A)(n,ee)),y=(0,S.A)(a,{value:s,postState:function(e){return null!=e?e:""}}),E=(0,b.A)(y,2),C=E[0],w=E[1],_=o.useRef();o.useImperativeHandle(t,function(){return{textArea:_.current}});var I=o.useMemo(function(){return l&&"object"===(0,f.A)(l)?[l.minRows,l.maxRows]:[]},[l]),T=(0,b.A)(I,2),M=T[0],R=T[1],O=!!l,P=o.useState(2),N=(0,b.A)(P,2),k=N[0],D=N[1],L=o.useState(),B=(0,b.A)(L,2),F=B[0],U=B[1],z=function(){D(0)};(0,Y.A)(function(){O&&z()},[s,M,R,O]),(0,Y.A)(function(){if(0===k)D(1);else if(1===k){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;X||((X=document.createElement("textarea")).setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),document.body.appendChild(X)),e.getAttribute("wrap")?X.setAttribute("wrap",e.getAttribute("wrap")):X.removeAttribute("wrap");var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Z[n])return Z[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:J.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(Z[n]=s),s}(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;X.setAttribute("style","".concat(l,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),X.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,h=X.scrollHeight;if("border-box"===s?h+=a:"content-box"===s&&(h-=o),null!==n||null!==r){X.value=" ";var f=X.scrollHeight-o;null!==n&&(u=f*n,"border-box"===s&&(u=u+o+a),h=Math.max(u,h)),null!==r&&(d=f*r,"border-box"===s&&(d=d+o+a),c=h>d?"":"hidden",h=Math.min(d,h))}var p={height:h,overflowY:c,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}(_.current,!1,M,R);D(2),U(e)}else!function(){try{if(document.activeElement===_.current){var e=_.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;_.current.setSelectionRange(t,n),_.current.scrollTop=r}}catch(e){}}()},[k]);var j=o.useRef(),$=function(){K.A.cancel(j.current)};o.useEffect(function(){return $},[]);var H=O?F:null,G=(0,d.A)((0,d.A)({},m),H);return 0!==k&&1!==k||(G.overflowY="hidden",G.overflowX="hidden"),o.createElement(q.A,{onResize:function(e){2===k&&(null==c||c(e),l&&($(),j.current=(0,K.A)(function(){z()})))},disabled:!(l||c)},o.createElement("textarea",(0,u.A)({},A,{ref:_,style:G,className:i()(r,p,(0,h.A)({},"".concat(r,"-disabled"),g)),disabled:g,value:C,onChange:function(e){w(e.target.value),null==v||v(e)}})))});const ne=te;var re=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ie(e,t){return(0,y.A)(e||"").slice(0,t).join("")}function oe(e,t,n,r){var i=n;return e?i=ie(n,r):(0,y.A)(t||"").lengthr&&(i=t),i}var ae=o.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,s=e.onFocus,l=e.onBlur,c=e.onChange,p=e.allowClear,m=e.maxLength,E=e.onCompositionStart,C=e.onCompositionEnd,w=e.suffix,_=e.prefixCls,I=void 0===_?"rc-textarea":_,T=e.classes,M=e.showCount,R=e.className,O=e.style,P=e.disabled,N=e.hidden,k=e.classNames,D=e.styles,L=e.onResize,B=(0,x.A)(e,re),F=(0,S.A)(r,{value:a,defaultValue:r}),U=(0,b.A)(F,2),z=U[0],j=U[1],$=(0,o.useRef)(null),H=o.useState(!1),G=(0,b.A)(H,2),Q=G[0],V=G[1],W=o.useState(!1),X=(0,b.A)(W,2),q=X[0],Y=X[1],K=o.useRef(),J=o.useRef(0),Z=o.useState(null),ee=(0,b.A)(Z,2),te=ee[0],ae=ee[1],se=function(){$.current.textArea.focus()};(0,o.useImperativeHandle)(t,function(){return{resizableTextArea:$.current,focus:se,blur:function(){$.current.textArea.blur()}}}),(0,o.useEffect)(function(){V(function(e){return!P&&e})},[P]);var le=Number(m)>0,ce=v(z);!q&&le&&null==a&&(ce=ie(ce,m));var ue,de=w;if(M){var he=(0,y.A)(ce).length;ue="object"===(0,f.A)(M)?M.formatter({value:ce,count:he,maxLength:m}):"".concat(he).concat(le?" / ".concat(m):""),de=o.createElement(o.Fragment,null,de,o.createElement("span",{className:i()("".concat(I,"-data-count"),null==k?void 0:k.count),style:null==D?void 0:D.count},ue))}return o.createElement(A,{value:ce,allowClear:p,handleReset:function(e){j(""),se(),g($.current.textArea,e,c)},suffix:de,prefixCls:I,classes:{affixWrapper:i()(null==T?void 0:T.affixWrapper,(n={},(0,h.A)(n,"".concat(I,"-show-count"),M),(0,h.A)(n,"".concat(I,"-textarea-allow-clear"),p),n))},disabled:P,focused:Q,className:R,style:(0,d.A)((0,d.A)({},O),"resized"===te?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ue?ue:void 0}},hidden:N,inputElement:o.createElement(ne,(0,u.A)({},B,{onKeyDown:function(e){var t=B.onPressEnter,n=B.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){var t=e.target.value;!q&&le&&(t=oe(e.target.selectionStart>=m+1||e.target.selectionStart===t.length||!e.target.selectionStart,z,t,m)),j(t),g(e.currentTarget,e,c,t)},onFocus:function(e){V(!0),null==s||s(e)},onBlur:function(e){V(!1),null==l||l(e)},onCompositionStart:function(e){Y(!0),K.current=z,J.current=e.currentTarget.selectionStart,null==E||E(e)},onCompositionEnd:function(e){Y(!1);var t,n=e.currentTarget.value;le&&(n=oe(J.current>=m+1||J.current===(null===(t=K.current)||void 0===t?void 0:t.length),K.current,n,m)),n!==z&&(j(n),g(e.currentTarget,e,c,n)),null==C||C(e)},className:null==k?void 0:k.textarea,style:(0,d.A)((0,d.A)({},null==D?void 0:D.textarea),{},{resize:null==O?void 0:O.resize}),disabled:P,prefixCls:I,onResize:function(e){null==L||L(e),null===te?ae("mounted"):"mounted"===te&&ae("resized")},ref:$}))})});const se=ae;const le=(0,o.forwardRef)((e,t)=>{var{prefixCls:n,bordered:r=!0,size:u,disabled:d,status:h,allowClear:f,showCount:p,classNames:m}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var e;return{resizableTextArea:null===(e=_.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=_.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=_.current)||void 0===e?void 0:e.blur()}}});const R=v("input",n);let O;"object"==typeof f&&(null==f?void 0:f.clearIcon)?O=f:f&&(O={clearIcon:o.createElement(c.A,null)});const[P,N]=(0,l.Ay)(R);return P(o.createElement(se,Object.assign({},g,{disabled:x,allowClear:O,classes:{affixWrapper:i()(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:"rtl"===A,[`${R}-affix-wrapper-borderless`]:!r,[`${R}-affix-wrapper-sm`]:"small"===y,[`${R}-affix-wrapper-lg`]:"large"===y,[`${R}-textarea-show-count`]:p},(0,I.L)(`${R}-affix-wrapper`,w),N)},classNames:Object.assign(Object.assign({},m),{textarea:i()({[`${R}-borderless`]:!r,[`${R}-sm`]:"small"===y,[`${R}-lg`]:"large"===y},(0,I.L)(R,w),N,null==m?void 0:m.textarea)}),prefixCls:R,suffix:E&&o.createElement("span",{className:`${R}-textarea-suffix`},C),showCount:p,ref:_})))}),ce=N;ce.Group=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(a.QO),{prefixCls:r,className:c=""}=e,u=t("input-group",r),d=t("input"),[h,f]=(0,l.Ay)(d),p=i()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},f,c),m=(0,o.useContext)(s.$W),g=(0,o.useMemo)(()=>Object.assign(Object.assign({},m),{isFormItemInput:!1}),[m]);return h(o.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(s.$W.Provider,{value:g},e.children)))},ce.Search=W,ce.TextArea=le,ce.Password=H;const ue=ce},3233(e,t,n){"use strict";n.d(t,{Ay:()=>E,BZ:()=>h,C5:()=>x,EB:()=>f,Q:()=>l,Ut:()=>c,XM:()=>m,eT:()=>u,j_:()=>s,wj:()=>p});var r=n(79218),i=n(91731),o=n(28170),a=n(51121);const s=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),l=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),c=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),u=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},l((0,a.h1)(e,{inputBorderHoverColor:e.colorBorder})))}),d=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return{padding:`${t}px ${o}px`,fontSize:n,lineHeight:r,borderRadius:i}},h=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),f=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorOutline:o,colorWarningOutline:s,colorErrorBorderHover:l,colorWarningBorderHover:u}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},c((0,a.h1)(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:u},"&:focus, &-focused":Object.assign({},c((0,a.h1)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:s}))),[`${n}-prefix, ${n}-suffix`]:{color:i}}}},p=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},s(e.colorTextPlaceholder)),{"&:hover":Object.assign({},l(e)),"&:focus, &-focused":Object.assign({},c(e)),"&-disabled, &[disabled]":Object.assign({},u(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},d(e)),"&-sm":Object.assign({},h(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},d(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},h(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,r.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},g=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:i}=e,o=(n-2*i-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,r.dF)(e)),p(e)),f(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},v=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},A=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},l(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),v(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),f(e,`${t}-affix-wrapper`))}},y=e=>{const{componentCls:t,colorError:n,colorWarning:i,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,r.dF)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:i,borderColor:i}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},u(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},b=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function x(e){return(0,a.h1)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const S=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},E=(0,o.A)("Input",e=>{const t=x(e);return[g(t),S(t),A(t),y(t),b(t),(0,i.G)(t)]})},84883(e,t,n){"use strict";n.d(t,{EF:()=>ve,Ay:()=>ye});var r=n(53563),i=n(73059),o=n.n(i),a=n(40366),s=n(77140),l=n(61018),c=n(46034),u=n(22961),d=n(32549);const h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var f=n(70245),p=function(e,t){return a.createElement(f.A,(0,d.A)({},e,{ref:t,icon:h}))};const m=a.forwardRef(p),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var v=function(e,t){return a.createElement(f.A,(0,d.A)({},e,{ref:t,icon:g}))};const A=a.forwardRef(v),y={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"};var b=function(e,t){return a.createElement(f.A,(0,d.A)({},e,{ref:t,icon:y}))};const x=a.forwardRef(b);var S=n(40367),E=n(22256),C=n(40942),w=n(20582),_=n(79520),I=n(31856),T=n(2330);const M=13,R=38,O=40;var P=function(e){(0,I.A)(n,e);var t=(0,T.A)(n);function n(){var e;(0,w.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||i(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==M&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return(0,_.A)(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,r=t.locale,i=t.rootPrefixCls,o=t.changeSize,s=t.quickGo,l=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,h=t.disabled,f=this.state.goInputText,p="".concat(i,"-options"),m=c,g=null,v=null,A=null;if(!o&&!s)return null;var y=this.getPageSizeOptions();if(o&&m){var b=y.map(function(t,n){return a.createElement(m.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});g=a.createElement(m,{disabled:h,prefixCls:d,showSearch:!1,className:"".concat(p,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},b)}return s&&(l&&(A="boolean"==typeof l?a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(p,"-quick-jumper-button")},r.jump_to_confirm):a.createElement("span",{onClick:this.go,onKeyUp:this.go},l)),v=a.createElement("div",{className:"".concat(p,"-quick-jumper")},r.jump_to,a.createElement("input",{disabled:h,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,A)),a.createElement("li",{className:"".concat(p)},g,v)}}]),n}(a.Component);P.defaultProps={pageSizeOptions:["10","20","50","100"]};const N=P,k=function(e){var t,n=e.rootPrefixCls,r=e.page,i=e.active,s=e.className,l=e.showTitle,c=e.onClick,u=e.onKeyPress,d=e.itemRender,h="".concat(n,"-item"),f=o()(h,"".concat(h,"-").concat(r),(t={},(0,E.A)(t,"".concat(h,"-active"),i),(0,E.A)(t,"".concat(h,"-disabled"),!r),(0,E.A)(t,e.className,s),t));return a.createElement("li",{title:l?r.toString():null,className:f,onClick:function(){c(r)},onKeyPress:function(e){u(e,c,r)},tabIndex:0},d(r,"page",a.createElement("a",{rel:"nofollow"},r)))};function D(){}function L(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function B(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var F=function(e){(0,I.A)(n,e);var t=(0,T.A)(n);function n(e){var r;(0,w.A)(this,n),(r=t.call(this,e)).paginationNode=a.createRef(),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(B(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=a.createElement(e,(0,C.A)({},r.props))),i},r.isValid=function(e){var t=r.props.total;return L(e)&&e!==r.state.current&&L(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){e.keyCode!==R&&e.keyCode!==O||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===M?r.handleChange(t):e.keyCode===R?r.handleChange(t-1):e.keyCode===O&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=B(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,i=t.onChange,o=r.state,a=o.pageSize,s=o.current,l=o.currentInputValue;if(r.isValid(e)&&!n){var c=B(void 0,r.state,r.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==l&&r.setState({currentInputValue:u}),i(u,a),u}return s},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),i=2;i=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,i=t.style,s=t.disabled,l=t.hideOnSinglePage,c=t.total,u=t.locale,h=t.showQuickJumper,f=t.showLessItems,p=t.showTitle,m=t.showTotal,g=t.simple,v=t.itemRender,A=t.showPrevNextJumpers,y=t.jumpPrevIcon,b=t.jumpNextIcon,x=t.selectComponentClass,S=t.selectPrefixCls,C=t.pageSizeOptions,w=this.state,_=w.current,I=w.pageSize,T=w.currentInputValue;if(!0===l&&c<=I)return null;var M=B(void 0,this.state,this.props),R=[],O=null,P=null,D=null,L=null,F=null,U=h&&h.goButton,z=f?1:2,j=_-1>0?_-1:0,$=_+1c?c:_*I]));if(g)return U&&(F="boolean"==typeof U?a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},u.jump_to_confirm):a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},U),F=a.createElement("li",{title:p?"".concat(u.jump_to).concat(_,"/").concat(M):null,className:"".concat(n,"-simple-pager")},F)),a.createElement("ul",(0,d.A)({className:o()(n,"".concat(n,"-simple"),(0,E.A)({},"".concat(n,"-disabled"),s),r),style:i,ref:this.paginationNode},H),G,a.createElement("li",{title:p?u.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:o()("".concat(n,"-prev"),(0,E.A)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(j)),a.createElement("li",{title:p?"".concat(_,"/").concat(M):null,className:"".concat(n,"-simple-pager")},a.createElement("input",{type:"text",value:T,disabled:s,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),a.createElement("span",{className:"".concat(n,"-slash")},"/"),M),a.createElement("li",{title:p?u.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:o()("".concat(n,"-next"),(0,E.A)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext($)),F);if(M<=3+2*z){var Q={locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:v};M||R.push(a.createElement(k,(0,d.A)({},Q,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var V=1;V<=M;V+=1){var W=_===V;R.push(a.createElement(k,(0,d.A)({},Q,{key:V,page:V,active:W})))}}else{var X=f?u.prev_3:u.prev_5,q=f?u.next_3:u.next_5;A&&(O=a.createElement("li",{title:p?X:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:o()("".concat(n,"-jump-prev"),(0,E.A)({},"".concat(n,"-jump-prev-custom-icon"),!!y))},v(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(y,"prev page"))),P=a.createElement("li",{title:p?q:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:o()("".concat(n,"-jump-next"),(0,E.A)({},"".concat(n,"-jump-next-custom-icon"),!!b))},v(this.getJumpNextPage(),"jump-next",this.getItemIcon(b,"next page")))),L=a.createElement(k,{locale:u,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:M,page:M,active:!1,showTitle:p,itemRender:v}),D=a.createElement(k,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:v});var Y=Math.max(1,_-z),K=Math.min(_+z,M);_-1<=z&&(K=1+2*z),M-_<=z&&(Y=M-2*z);for(var J=Y;J<=K;J+=1){var Z=_===J;R.push(a.createElement(k,{locale:u,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:J,page:J,active:Z,showTitle:p,itemRender:v}))}_-1>=2*z&&3!==_&&(R[0]=(0,a.cloneElement)(R[0],{className:"".concat(n,"-item-after-jump-prev")}),R.unshift(O)),M-_>=2*z&&_!==M-2&&(R[R.length-1]=(0,a.cloneElement)(R[R.length-1],{className:"".concat(n,"-item-before-jump-next")}),R.push(P)),1!==Y&&R.unshift(D),K!==M&&R.push(L)}var ee=!this.hasPrev()||!M,te=!this.hasNext()||!M;return a.createElement("ul",(0,d.A)({className:o()(n,r,(0,E.A)({},"".concat(n,"-disabled"),s)),style:i,ref:this.paginationNode},H),G,a.createElement("li",{title:p?u.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:o()("".concat(n,"-prev"),(0,E.A)({},"".concat(n,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(j)),R,a.createElement("li",{title:p?u.next_page:null,onClick:this.next,tabIndex:te?null:0,onKeyPress:this.runIfEnterNext,className:o()("".concat(n,"-next"),(0,E.A)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderNext($)),a.createElement(N,{disabled:s,locale:u,rootPrefixCls:n,selectComponentClass:x,selectPrefixCls:S,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:_,pageSize:I,pageSizeOptions:C,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:U}))}}],[{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 r=t.current,i=B(e.pageSize,t,e);r=r>i?i:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(a.Component);F.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:D,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:D,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};const U=F;var z=n(9754),j=n(96718),$=n(78142),H=n(15916);const G=e=>a.createElement(H.A,Object.assign({},e,{size:"small"})),Q=e=>a.createElement(H.A,Object.assign({},e,{size:"middle"}));G.Option=H.A.Option,Q.Option=H.A.Option;var V=n(3233),W=n(79218),X=n(28170),q=n(51121);const Y=e=>{const{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}-mini`]:{[`\n &:hover ${t}-item:not(${t}-item-active),\n &:active ${t}-item:not(${t}-item-active),\n &:hover ${t}-item-link,\n &:active ${t}-item-link\n `]:{backgroundColor:"transparent"}},[`${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.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1},[`${t}-simple-pager`]:{color:e.colorTextDisabled}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},K=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"},[`&${t}-mini ${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.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:Object.assign(Object.assign({},(0,V.BZ)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},J=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,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"}}}}},Z=e=>{const{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}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,W.jk)(e))},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}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:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,W.jk)(e)),[`&: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,V.wj)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ee=e=>{const{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-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,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},(0,W.K8)(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},te=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,W.dF)(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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"}}),ee(e)),Z(e)),J(e)),K(e)),Y(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"}}},ne=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},re=(0,X.A)("Pagination",e=>{const t=(0,q.h1)(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 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,V.C5)(e));return[te(t),e.wireframe&&ne(t)]});const ie=e=>{var{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,size:l,locale:c,selectComponentClass:d,responsive:h,showSizeChanger:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const e=a.createElement("span",{className:`${E}-item-ellipsis`},"•••");return{prevIcon:a.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},"rtl"===y?a.createElement(S.A,null):a.createElement(x,null)),nextIcon:a.createElement("button",{className:`${E}-item-link`,type:"button",tabIndex:-1},"rtl"===y?a.createElement(x,null):a.createElement(S.A,null)),jumpPrevIcon:a.createElement("a",{className:`${E}-item-link`},a.createElement("div",{className:`${E}-item-container`},"rtl"===y?a.createElement(A,{className:`${E}-item-link-icon`}):a.createElement(m,{className:`${E}-item-link-icon`}),e)),jumpNextIcon:a.createElement("a",{className:`${E}-item-link`},a.createElement("div",{className:`${E}-item-container`},"rtl"===y?a.createElement(m,{className:`${E}-item-link-icon`}):a.createElement(A,{className:`${E}-item-link-icon`}),e))}},[y,E]),[T]=(0,$.A)("Pagination",z.A),M=Object.assign(Object.assign({},T),c),R=(0,j.A)(l),O="small"===R||!(!g||R||!h),P=v("select",n),N=o()({[`${E}-mini`]:O,[`${E}-rtl`]:"rtl"===y},r,i,w);return C(a.createElement(U,Object.assign({},I,p,{prefixCls:E,selectPrefixCls:P,className:N,selectComponentClass:d||(O?G:Q),locale:M,showSizeChanger:_})))};var oe=n(86534),ae=n(37188);var se=n(33199),le=n(81857),ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{prefixCls:n,children:r,actions:i,extra:l,className:c,colStyle:u}=e,d=ce(e,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:h,itemLayout:f}=(0,a.useContext)(ve),{getPrefixCls:p}=(0,a.useContext)(s.QO),m=p("list",n),g=i&&i.length>0&&a.createElement("ul",{className:`${m}-item-action`,key:"actions"},i.map((e,t)=>a.createElement("li",{key:`${m}-item-action-${t}`},e,t!==i.length-1&&a.createElement("em",{className:`${m}-item-action-split`})))),v=h?"div":"li",A=a.createElement(v,Object.assign({},d,h?{}:{ref:t},{className:o()(`${m}-item`,{[`${m}-item-no-flex`]:!("vertical"===f?l:!(()=>{let e;return a.Children.forEach(r,t=>{"string"==typeof t&&(e=!0)}),e&&a.Children.count(r)>1})())},c)}),"vertical"===f&&l?[a.createElement("div",{className:`${m}-item-main`,key:"content"},r,g),a.createElement("div",{className:`${m}-item-extra`,key:"extra"},l)]:[r,g,(0,le.Ob)(l,{key:"extra"})]);return h?a.createElement(se.A,{ref:t,flex:1,style:u},A):A},de=(0,a.forwardRef)(ue);de.Meta=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:l}=e,c=ce(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=(0,a.useContext)(s.QO),d=u("list",t),h=o()(`${d}-item-meta`,n),f=a.createElement("div",{className:`${d}-item-meta-content`},i&&a.createElement("h4",{className:`${d}-item-meta-title`},i),l&&a.createElement("div",{className:`${d}-item-meta-description`},l));return a.createElement("div",Object.assign({},c,{className:h}),r&&a.createElement("div",{className:`${d}-item-meta-avatar`},r),(i||l)&&f)};const he=de,fe=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,padding:o,listItemPaddingSM:a,marginLG:s,borderRadiusLG:l}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${i}px ${s}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${o}px ${r}px`}}}},pe=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:o,margin:a}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${a}px`}}}}}},me=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:o,marginLG:a,padding:s,listItemPadding:l,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:h,margin:f,colorText:p,colorTextDescription:m,motionDurationSlow:g,lineWidth:v}=e,A={};return["start","center","end"].forEach(e=>{A[`&-align-${e}`]={textAlign:e}}),{[`${t}`]:Object.assign(Object.assign({},(0,W.dF)(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:o},[`${t}-pagination`]:Object.assign(Object.assign({marginBlockStart:a},A),{[`${n}-pagination-options`]:{textAlign:"start"}}),[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:p,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:s},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:p},[`${t}-item-meta-title`]:{margin:`0 0 ${e.marginXXS}px 0`,color:p,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:p,transition:`all ${g}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:m,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${h}px`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${s}px 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:s,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:s,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:o,color:p,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${s}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},ge=(0,X.A)("List",e=>{const t=(0,q.h1)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px 0`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[me(t),fe(t),pe(t)]},{contentWidth:220});const ve=a.createContext({});function Ae(e){var t,{pagination:n=!1,prefixCls:i,bordered:d=!1,split:h=!0,className:f,rootClassName:p,children:m,itemLayout:g,loadMore:v,grid:A,dataSource:y=[],size:b,header:x,footer:S,loading:E=!1,rowKey:C,renderItem:w,locale:_}=e,I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(t,r)=>{R(t),P(r),n&&n[e]&&n[e](t,r)},B=L("onChange"),F=L("onShowSizeChange"),U=N("list",i),[z,j]=ge(U);let $=E;"boolean"==typeof $&&($={spinning:$});const H=$&&$.spinning;let G="";switch(b){case"large":G="lg";break;case"small":G="sm"}const Q=o()(U,{[`${U}-vertical`]:"vertical"===g,[`${U}-${G}`]:G,[`${U}-split`]:h,[`${U}-bordered`]:d,[`${U}-loading`]:H,[`${U}-grid`]:!!A,[`${U}-something-after-last-item`]:!!(v||n||S),[`${U}-rtl`]:"rtl"===D},f,p,j),V=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)})}return e}({current:1,total:0},{total:y.length,current:M,pageSize:O},n||{}),W=Math.ceil(V.total/V.pageSize);V.current>W&&(V.current=W);const X=n?a.createElement("div",{className:o()(`${U}-pagination`,`${U}-pagination-align-${null!==(t=null==V?void 0:V.align)&&void 0!==t?t:"end"}`)},a.createElement(ie,Object.assign({},V,{onChange:B,onShowSizeChange:F}))):null;let q=(0,r.A)(y);n&&y.length>(V.current-1)*V.pageSize&&(q=(0,r.A)(y).splice((V.current-1)*V.pageSize,V.pageSize));const Y=Object.keys(A||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),K=(0,u.A)(Y),J=a.useMemo(()=>{for(let e=0;e{if(!A)return;const e=J&&A[J]?A[J]:A.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0},[null==A?void 0:A.column,J]);let ee=H&&a.createElement("div",{style:{minHeight:53}});if(q.length>0){const e=q.map((e,t)=>((e,t)=>{if(!w)return null;let n;return n="function"==typeof C?C(e):C?e[C]:e.key,n||(n=`list-item-${t}`),a.createElement(a.Fragment,{key:n},w(e,t))})(e,t));ee=A?a.createElement(c.A,{gutter:A.gutter},a.Children.map(e,e=>a.createElement("div",{key:null==e?void 0:e.key,style:Z},e))):a.createElement("ul",{className:`${U}-items`},e)}else m||H||(ee=a.createElement("div",{className:`${U}-empty-text`},_&&_.emptyText||(null==k?void 0:k("List"))||a.createElement(l.A,{componentName:"List"})));const te=V.position||"bottom",ne=a.useMemo(()=>({grid:A,itemLayout:g}),[JSON.stringify(A),g]);return z(a.createElement(ve.Provider,{value:ne},a.createElement("div",Object.assign({className:Q},I),("top"===te||"both"===te)&&X,x&&a.createElement("div",{className:`${U}-header`},x),a.createElement(oe.A,Object.assign({},$),ee,m),S&&a.createElement("div",{className:`${U}-footer`},S),v||("bottom"===te||"both"===te)&&X)))}ve.Consumer,Ae.Item=he;const ye=Ae},33368(e,t,n){"use strict";n.d(t,{A:()=>r});const r=(0,n(40366).createContext)(void 0)},20609(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(9754);const i={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},o={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},i)},a=o,s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.A,DatePicker:o,TimePicker:i,Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}}},78142(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(40366),i=n(33368),o=n(20609);const a=(e,t)=>{const n=r.useContext(i.A);return[r.useMemo(()=>{var r;const i=t||o.A[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof i?i():i),a||{})},[e,t,n]),r.useMemo(()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?o.A.locale:e},[n])]}},78748(e,t,n){"use strict";n.d(t,{Ay:()=>K});var r=n(53563),i=n(74603),o=n(40366),a=n(60367),s=n(82980),l=n(22542),c=n(32626),u=n(87672),d=n(76643),h=n(34355),f=n(57889),p=n(32549),m=n(40942),g=n(76212),v=n(7041),A=n(73059),y=n.n(A),b=n(22256),x=n(95589),S=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,a=e.duration,s=void 0===a?4.5:a,l=e.eventKey,c=e.content,u=e.closable,d=e.closeIcon,f=void 0===d?"x":d,m=e.props,g=e.onClick,v=e.onNoticeClose,A=e.times,S=o.useState(!1),E=(0,h.A)(S,2),C=E[0],w=E[1],_=function(){v(l)};o.useEffect(function(){if(!C&&s>0){var e=setTimeout(function(){_()},1e3*s);return function(){clearTimeout(e)}}},[s,C,A]);var I="".concat(n,"-notice");return o.createElement("div",(0,p.A)({},m,{ref:t,className:y()(I,i,(0,b.A)({},"".concat(I,"-closable"),u)),style:r,onMouseEnter:function(){w(!0)},onMouseLeave:function(){w(!1)},onClick:g}),o.createElement("div",{className:"".concat(I,"-content")},c),u&&o.createElement("a",{tabIndex:0,className:"".concat(I,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==x.A.ENTER||_()},onClick:function(e){e.preventDefault(),e.stopPropagation(),_()}},f))});const E=S;var C=o.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,a=e.container,s=e.motion,l=e.maxCount,c=e.className,u=e.style,d=e.onAllRemoved,f=o.useState([]),A=(0,h.A)(f,2),b=A[0],x=A[1],S=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),x(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){x(function(t){var n,i=(0,r.A)(t),o=i.findIndex(function(t){return t.key===e.key}),a=(0,m.A)({},e);return o>=0?(a.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,i[o]=a):(a.times=0,i.push(a)),l>0&&i.length>l&&(i=i.slice(-l)),i})},close:function(e){S(e)},destroy:function(){x([])}}});var C=o.useState({}),w=(0,h.A)(C,2),_=w[0],I=w[1];o.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(_).forEach(function(t){e[t]=e[t]||[]}),I(e)},[b]);var T=o.useRef(!1);if(o.useEffect(function(){Object.keys(_).length>0?T.current=!0:T.current&&(null==d||d(),T.current=!1)},[_]),!a)return null;var M=Object.keys(_);return(0,g.createPortal)(o.createElement(o.Fragment,null,M.map(function(e){var t=_[e].map(function(e){return{config:e,key:e.key}}),n="function"==typeof s?s(e):s;return o.createElement(v.aF,(0,p.A)({key:e,className:y()(i,"".concat(i,"-").concat(e),null==c?void 0:c(e)),style:null==u?void 0:u(e),keys:t,motionAppear:!0},n,{onAllRemoved:function(){!function(e){I(function(t){var n=(0,m.A)({},t);return(n[e]||[]).length||delete n[e],n})}(e)}}),function(e,t){var n=e.config,r=e.className,a=e.style,s=n.key,l=n.times,c=n.className,u=n.style;return o.createElement(E,(0,p.A)({},n,{ref:t,prefixCls:i,className:y()(r,c),style:(0,m.A)((0,m.A)({},a),u),times:l,key:s,eventKey:s,onNoticeClose:S}))})})),a)});const w=C;var _=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],I=function(){return document.body},T=0;var M=n(5147),R=n(79218),O=n(28170),P=n(51121);const N=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:h,paddingXS:f,borderRadiusLG:p,zIndexPopup:m,contentPadding:g,contentBg:v}=e,A=`${t}-notice`,y=new M.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),b=new M.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:f,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:h,fontSize:c},[`${A}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},(0,R.dF)(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[A]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},k=(0,O.A)("Message",e=>{const t=(0,P.h1)(e,{height:150});return[N(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var D=n(77140);const L={info:o.createElement(d.A,null),success:o.createElement(u.A,null),error:o.createElement(c.A,null),warning:o.createElement(l.A,null),loading:o.createElement(s.A,null)};function B(e){let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:y()(`${t}-custom-content`,`${t}-${n}`)},r||L[n],o.createElement("span",null,i))}var F=n(46083);function U(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}const z=3,j=o.forwardRef((e,t)=>{const{top:n,prefixCls:i,getContainer:a,maxCount:s,duration:l=z,rtl:c,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:p,getPopupContainer:m}=o.useContext(D.QO),g=i||p("message"),[,v]=k(g),A=o.createElement("span",{className:`${g}-close-x`},o.createElement(F.A,{className:`${g}-close-icon`})),[b,x]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?I:t,i=e.motion,a=e.prefixCls,s=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=(0,f.A)(e,_),p=o.useState(),m=(0,h.A)(p,2),g=m[0],v=m[1],A=o.useRef(),y=o.createElement(w,{container:g,ref:A,prefixCls:a,motion:i,maxCount:s,className:l,style:c,onAllRemoved:u}),b=o.useState([]),x=(0,h.A)(b,2),S=x[0],E=x[1],C=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>y()(v,c?`${g}-rtl`:""),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(g,u),closable:!1,closeIcon:A,duration:l,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:s,onAllRemoved:d});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:g,hashId:v})),x});let $=0;function H(e){const t=o.useRef(null);return[o.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:i,hashId:a}=t.current,s=`${i}-notice`,{content:l,icon:c,type:u,key:d,className:h,onClose:f}=n,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i(r(Object.assign(Object.assign({},p),{key:m,content:o.createElement(B,{prefixCls:i,type:u,icon:c},l),placement:"top",className:y()(u&&`${s}-${u}`,a,h),onClose:()=>{null==f||f(),t()}})),()=>{e(m)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,i)=>{let o,a,s;o=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=i);const l=Object.assign(Object.assign({onClose:s,duration:a},o),{type:e});return n(l)}}),r},[]),o.createElement(j,Object.assign({key:"message-holder"},e,{ref:t}))]}let G=null,Q=e=>e(),V=[],W={};const X=o.forwardRef((e,t)=>{const n=()=>{const{prefixCls:e,container:t,maxCount:n,duration:r,rtl:i,top:o}=function(){const{prefixCls:e,getContainer:t,duration:n,rtl:r,maxCount:i,top:o}=W;return{prefixCls:null!=e?e:(0,a.cr)().getPrefixCls("message"),container:(null==t?void 0:t())||document.body,duration:n,rtl:r,maxCount:i,top:o}}();return{prefixCls:e,getContainer:()=>t,maxCount:n,duration:r,rtl:i,top:o}},[r,i]=o.useState(n),[s,l]=H(r),c=(0,a.cr)(),u=c.getRootPrefixCls(),d=c.getIconPrefixCls(),h=()=>{i(n)};return o.useEffect(h,[]),o.useImperativeHandle(t,()=>{const e=Object.assign({},s);return Object.keys(e).forEach(t=>{e[t]=function(){return h(),s[t].apply(s,arguments)}}),{instance:e,sync:h}}),o.createElement(a.Ay,{prefixCls:u,iconPrefixCls:d},l)});function q(){if(!G){const e=document.createDocumentFragment(),t={fragment:e};return G=t,void Q(()=>{(0,i.X)(o.createElement(X,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,q())})}}),e)})}G.instance&&(V.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":Q(()=>{const t=G.instance.open(Object.assign(Object.assign({},W),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":Q(()=>{null==G||G.instance.destroy(e.key)});break;default:Q(()=>{var n;const i=(n=G.instance)[t].apply(n,(0,r.A)(e.args));null==i||i.then(e.resolve),e.setCloseFn(i)})}}),V=[])}const Y={open:function(e){const t=U(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return V.push(r),()=>{n?Q(()=>{n()}):r.skipped=!0}});return q(),t},destroy:function(e){V.push({type:"destroy",key:e}),q()},config:function(e){W=Object.assign(Object.assign({},W),e),Q(()=>{var e;null===(e=null==G?void 0:G.sync)||void 0===e||e.call(G)})},useMessage:function(e){return H(e)},_InternalPanelDoNotUseOrYouWillBeFired:function(e){const{prefixCls:t,className:n,type:r,icon:i,content:a}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{Y[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return V.push(i),()=>{r?Q(()=>{r()}):i.skipped=!0}});return q(),n}(e,n)}});const K=Y},83750(e,t,n){"use strict";n.d(t,{A:()=>Re});var r=n(53563),i=n(74603),o=n(40366),a=n(60367),s=n(87672),l=n(32626),c=n(22542),u=n(76643),d=n(73059),h=n.n(d),f=n(78142),p=n(94570),m=n(85401),g=n(5402);function v(e){return!(!e||!e.then)}const A=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:s,emitEvent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=o.useRef(!1),h=o.useRef(null),[f,A]=(0,p.A)(!1),y=function(){null==a||a.apply(void 0,arguments)};return o.useEffect(()=>{let e=null;return s&&(e=setTimeout(()=>{var e;null===(e=h.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]),o.createElement(m.Ay,Object.assign({},(0,g.D)(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void y();let t;if(l){if(t=u(e),c&&!v(t))return d.current=!1,void y(e)}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!t)return void y();(e=>{v(e)&&(A(!0),e.then(function(){A(!1,!0),y.apply(void 0,arguments),d.current=!1},e=>(A(!1,!0),d.current=!1,Promise.reject(e))))})(t)},loading:f,prefixCls:r},i,{ref:h}),n)};var y=n(42014),b=n(32549),x=n(34355),S=n(62963),E=n(40942),C=n(70255),w=n(23026),_=n(95589),I=n(59880);function T(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function M(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var i=e.document;"number"!=typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}var R=n(7041);const O=o.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var P={width:0,height:0,overflow:"hidden",outline:"none"},N=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.title,s=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,p=e.bodyStyle,m=e.bodyProps,g=e.modalRender,v=e.onMouseDown,A=e.onMouseUp,y=e.holderRef,x=e.visible,S=e.forceRender,C=e.width,w=e.height,_=(0,o.useRef)(),I=(0,o.useRef)();o.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=_.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===I.current?_.current.focus():e||t!==_.current||I.current.focus()}}});var T,M,R,N={};void 0!==C&&(N.width=C),void 0!==w&&(N.height=w),l&&(T=o.createElement("div",{className:"".concat(n,"-footer")},l)),a&&(M=o.createElement("div",{className:"".concat(n,"-header")},o.createElement("div",{className:"".concat(n,"-title"),id:s},a))),c&&(R=o.createElement("button",{type:"button",onClick:d,"aria-label":"Close",className:"".concat(n,"-close")},u||o.createElement("span",{className:"".concat(n,"-close-x")})));var k=o.createElement("div",{className:"".concat(n,"-content")},R,M,o.createElement("div",(0,b.A)({className:"".concat(n,"-body"),style:p},m),f),T);return o.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?s:null,"aria-modal":"true",ref:y,style:(0,E.A)((0,E.A)({},i),N),className:h()(n,r),onMouseDown:v,onMouseUp:A},o.createElement("div",{tabIndex:0,ref:_,style:P,"aria-hidden":"true"}),o.createElement(O,{shouldUpdate:x||S},g?g(k):k),o.createElement("div",{tabIndex:0,ref:I,style:P,"aria-hidden":"true"}))});const k=N;var D=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,a=e.className,s=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=(0,o.useRef)(),g=o.useState(),v=(0,x.A)(g,2),A=v[0],y=v[1],S={};function C(){var e,t,n,r,i,o=(n={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top},i=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=M(i),n.top+=M(i,!0),n);y(p?"".concat(p.x-o.left,"px ").concat(p.y-o.top,"px"):"")}return A&&(S.transformOrigin=A),o.createElement(R.Ay,{visible:s,onVisibleChanged:f,onAppearPrepare:C,onEnterPrepare:C,forceRender:l,motionName:u,removeOnLeave:c,ref:m},function(s,l){var c=s.className,u=s.style;return o.createElement(k,(0,b.A)({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:l,style:(0,E.A)((0,E.A)((0,E.A)({},u),i),S),className:h()(a,c)}))})});D.displayName="Content";const L=D;function B(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,a=e.motionName;return o.createElement(R.Ay,{key:"mask",visible:r,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var a=e.className,s=e.style;return o.createElement("div",(0,b.A)({ref:r,style:(0,E.A)((0,E.A)({},s),n),className:h()("".concat(t,"-mask"),a)},i))})}function F(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,i=e.visible,a=void 0!==i&&i,s=e.keyboard,l=void 0===s||s,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,m=e.onClose,g=e.afterOpenChange,v=e.afterClose,A=e.transitionName,y=e.animation,S=e.closable,M=void 0===S||S,R=e.mask,O=void 0===R||R,P=e.maskTransitionName,N=e.maskAnimation,k=e.maskClosable,D=void 0===k||k,F=e.maskStyle,U=e.maskProps,z=e.rootClassName,j=(0,o.useRef)(),$=(0,o.useRef)(),H=(0,o.useRef)(),G=o.useState(a),Q=(0,x.A)(G,2),V=Q[0],W=Q[1],X=(0,w.A)();function q(e){null==m||m(e)}var Y=(0,o.useRef)(!1),K=(0,o.useRef)(),J=null;return D&&(J=function(e){Y.current?Y.current=!1:$.current===e.target&&q(e)}),(0,o.useEffect)(function(){a&&(W(!0),(0,C.A)($.current,document.activeElement)||(j.current=document.activeElement))},[a]),(0,o.useEffect)(function(){return function(){clearTimeout(K.current)}},[]),o.createElement("div",(0,b.A)({className:h()("".concat(n,"-root"),z)},(0,I.A)(e,{data:!0})),o.createElement(B,{prefixCls:n,visible:O&&a,motionName:T(n,P,N),style:(0,E.A)({zIndex:r},F),maskProps:U}),o.createElement("div",(0,b.A)({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===_.A.ESC)return e.stopPropagation(),void q(e);a&&e.keyCode===_.A.TAB&&H.current.changeActive(!e.shiftKey)},className:h()("".concat(n,"-wrap"),f),ref:$,onClick:J,style:(0,E.A)((0,E.A)({zIndex:r},d),{},{display:V?null:"none"})},p),o.createElement(L,(0,b.A)({},e,{onMouseDown:function(){clearTimeout(K.current),Y.current=!0},onMouseUp:function(){K.current=setTimeout(function(){Y.current=!1})},ref:H,closable:M,ariaId:X,prefixCls:n,visible:a&&V,onClose:q,onVisibleChanged:function(e){if(e)(0,C.A)($.current,document.activeElement)||null===(t=H.current)||void 0===t||t.focus();else{if(W(!1),O&&j.current&&u){try{j.current.focus({preventScroll:!0})}catch(e){}j.current=null}V&&(null==v||v())}var t;null==g||g(e)},motionName:T(n,A,y)}))))}var U=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,s=e.afterClose,l=o.useState(t),c=(0,x.A)(l,2),u=c[0],d=c[1];return o.useEffect(function(){t&&d(!0)},[t]),r||!a||u?o.createElement(S.A,{open:t||r||u,autoDestroy:!1,getContainer:n,autoLock:t||u},o.createElement(F,(0,b.A)({},e,{destroyOnClose:a,afterClose:function(){null==s||s(),d(!1)}}))):null};U.displayName="Dialog";const z=U;var j=n(77140),$=n(87824),H=n(43136),G=n(10052),Q=n(46083),V=n(28198),W=n(79218),X=n(5147),q=n(56703);const Y=new X.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),K=new X.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),J=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[(0,q.b)(r,Y,K,e.motionDurationMid,t),{[`\n ${i}${r}-enter,\n ${i}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]};var Z=n(82986),ee=n(28170),te=n(51121);function ne(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const re=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},ne("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ne("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:J(e)}]},ie=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,W.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,W.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},oe=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},(0,W.t6)()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ae=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},se=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},le=(0,ee.A)("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,i=(0,te.h1)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:r*n+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[ie(i),oe(i),ae(i),re(i),e.wireframe&&se(i),(0,Z.aB)(i,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading}));function ce(e,t){return o.createElement("span",{className:`${e}-close-x`},t||o.createElement(Q.A,{className:`${e}-close-icon`}))}const ue=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:a,onCancel:s,okButtonProps:l,cancelButtonProps:c}=e,[u]=(0,f.A)("Modal",(0,V.l)());return o.createElement(o.Fragment,null,o.createElement(m.Ay,Object.assign({onClick:s},c),r||(null==u?void 0:u.cancelText)),o.createElement(m.Ay,Object.assign({},(0,g.D)(n),{loading:i,onClick:a},l),t||(null==u?void 0:u.okText)))};let de;(0,G.qz)()&&document.documentElement.addEventListener("click",e=>{de={x:e.pageX,y:e.pageY},setTimeout(()=>{de=null},100)},!0);const he=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i}=o.useContext(j.QO),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,closeIcon:m,focusTriggerAfterClose:g=!0,visible:v,width:A=520,footer:b}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{onOk:n}=e;null==n||n(t)},onCancel:a})):b;return C(o.createElement(H.K6,null,o.createElement($.XB,{status:!0,override:!0},o.createElement(z,Object.assign({width:A},x,{getContainer:void 0===p?n:p,prefixCls:S,rootClassName:h()(w,c),wrapClassName:_,footer:I,visible:null!=u?u:v,mousePosition:null!==(t=x.mousePosition)&&void 0!==t?t:de,onClose:a,closeIcon:ce(S,m),focusTriggerAfterClose:g,transitionName:(0,y.by)(E,"zoom",e.transitionName),maskTransitionName:(0,y.by)(E,"fade",e.maskTransitionName),className:h()(w,l)})))))};function fe(e){const{icon:t,onCancel:n,onOk:r,close:i,okText:a,okButtonProps:d,cancelText:h,cancelButtonProps:p,confirmPrefixCls:m,rootPrefixCls:g,type:v,okCancel:y,footer:b,locale:x}=e;let S=t;if(!t&&null!==t)switch(v){case"info":S=o.createElement(u.A,null);break;case"success":S=o.createElement(s.A,null);break;case"error":S=o.createElement(l.A,null);break;default:S=o.createElement(c.A,null)}const E=e.okType||"primary",C=null!=y?y:"confirm"===v,w=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[_]=(0,f.A)("Modal"),I=x||_,T=C&&o.createElement(A,{actionFn:n,close:i,autoFocus:"cancel"===w,buttonProps:p,prefixCls:`${g}-btn`},h||(null==I?void 0:I.cancelText));return o.createElement("div",{className:`${m}-body-wrapper`},o.createElement("div",{className:`${m}-body`},S,void 0===e.title?null:o.createElement("span",{className:`${m}-title`},e.title),o.createElement("div",{className:`${m}-content`},e.content)),void 0===b?o.createElement("div",{className:`${m}-btns`},T,o.createElement(A,{type:E,actionFn:r,close:i,autoFocus:"ok"===w,buttonProps:d,prefixCls:`${g}-btn`},a||(C?null==I?void 0:I.okText:null==I?void 0:I.justOkText))):b)}const pe=e=>{const{close:t,zIndex:n,afterClose:r,visible:i,open:s,keyboard:l,centered:c,getContainer:u,maskStyle:d,direction:f,prefixCls:p,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,bodyStyle:A,closable:b=!1,closeIcon:x,modalRender:S,focusTriggerAfterClose:E}=e,C=`${p}-confirm`,w=e.width||416,_=e.style||{},I=void 0===e.mask||e.mask,T=void 0!==e.maskClosable&&e.maskClosable,M=h()(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===f},e.className);return o.createElement(a.Ay,{prefixCls:g,iconPrefixCls:v,direction:f},o.createElement(he,{prefixCls:p,className:M,wrapClassName:h()({[`${C}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:s,title:"",footer:null,transitionName:(0,y.by)(g,"zoom",e.transitionName),maskTransitionName:(0,y.by)(g,"fade",e.maskTransitionName),mask:I,maskClosable:T,maskStyle:d,style:_,bodyStyle:A,width:w,zIndex:n,afterClose:r,keyboard:l,centered:c,getContainer:u,closable:b,closeIcon:x,modalRender:S,focusTriggerAfterClose:E},o.createElement(fe,Object.assign({},e,{confirmPrefixCls:C}))))},me=[];let ge="";function ve(e){const t=document.createDocumentFragment();let n,s=Object.assign(Object.assign({},e),{close:u,open:!0});function l(){for(var n=arguments.length,o=new Array(n),a=0;ae&&e.triggerCancel);e.onCancel&&s&&e.onCancel.apply(e,[()=>{}].concat((0,r.A)(o.slice(1))));for(let e=0;e{const e=(0,V.l)(),{getPrefixCls:n,getIconPrefixCls:u}=(0,a.cr)(),d=n(void 0,ge),h=l||`${d}-modal`,f=u();(0,i.X)(o.createElement(pe,Object.assign({},c,{prefixCls:h,rootPrefixCls:d,iconPrefixCls:f,okText:r,locale:e,cancelText:s||e.cancelText})),t)})}function u(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),l.apply(this,n)}}),s.visible&&delete s.visible,c(s)}return c(s),me.push(u),{destroy:u,update:function(e){s="function"==typeof e?e(s):Object.assign(Object.assign({},s),e),c(s)}}}function Ae(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ye(e){return Object.assign(Object.assign({},e),{type:"info"})}function be(e){return Object.assign(Object.assign({},e),{type:"success"})}function xe(e){return Object.assign(Object.assign({},e),{type:"error"})}function Se(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var Ee=n(20609);const Ce=(e,t)=>{let{afterClose:n,config:i}=e;var a;const[s,l]=o.useState(!0),[c,u]=o.useState(i),{direction:d,getPrefixCls:h}=o.useContext(j.QO),p=h("modal"),m=h(),g=function(){l(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel);c.onCancel&&i&&c.onCancel.apply(c,[()=>{}].concat((0,r.A)(t.slice(1))))};o.useImperativeHandle(t,()=>({destroy:g,update:e=>{u(t=>Object.assign(Object.assign({},t),e))}}));const v=null!==(a=c.okCancel)&&void 0!==a?a:"confirm"===c.type,[A]=(0,f.A)("Modal",Ee.A.Modal);return o.createElement(pe,Object.assign({prefixCls:p,rootPrefixCls:m},c,{close:g,open:s,afterClose:()=>{var e;n(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(v?null==A?void 0:A.okText:null==A?void 0:A.justOkText),direction:c.direction||d,cancelText:c.cancelText||(null==A?void 0:A.cancelText)}))},we=o.forwardRef(Ce);let _e=0;const Ie=o.memo(o.forwardRef((e,t)=>{const[n,i]=function(){const[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat((0,r.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return o.useImperativeHandle(t,()=>({patchElement:i}),[]),o.createElement(o.Fragment,null,n)}));function Te(e){return ve(Ae(e))}const Me=he;Me.useModal=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect(()=>{t.length&&((0,r.A)(t).forEach(e=>{e()}),n([]))},[t]);const i=o.useCallback(t=>function(i){var a;_e+=1;const s=o.createRef();let l;const c=o.createElement(we,{key:`modal-${_e}`,config:t(i),ref:s,afterClose:()=>{null==l||l()}});return l=null===(a=e.current)||void 0===a?void 0:a.patchElement(c),l&&me.push(l),{destroy:()=>{function e(){var e;null===(e=s.current)||void 0===e||e.destroy()}s.current?e():n(t=>[].concat((0,r.A)(t),[e]))},update:e=>{function t(){var t;null===(t=s.current)||void 0===t||t.update(e)}s.current?t():n(e=>[].concat((0,r.A)(e),[t]))}}},[]);return[o.useMemo(()=>({info:i(ye),success:i(be),error:i(xe),warning:i(Ae),confirm:i(Se)}),[]),o.createElement(Ie,{key:"modal-holder",ref:e})]},Me.info=function(e){return ve(ye(e))},Me.success=function(e){return ve(be(e))},Me.error=function(e){return ve(xe(e))},Me.warning=Te,Me.warn=Te,Me.confirm=function(e){return ve(Se(e))},Me.destroyAll=function(){for(;me.length;){const e=me.pop();e&&e()}},Me.config=function(e){let{rootPrefixCls:t}=e;ge=t},Me._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:s,children:l}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);io,l:()=>a});var r=n(20609);let i=Object.assign({},r.A.Modal);function o(e){i=e?Object.assign(Object.assign({},i),e):Object.assign({},r.A.Modal)}function a(){return i}},80682(e,t,n){"use strict";n.d(t,{A:()=>C});var r=n(73059),i=n.n(r),o=n(40366);const a=e=>e?"function"==typeof e?e():e:null;var s=n(42014),l=n(77140),c=n(91482),u=n(93350),d=n(79218),h=n(82986),f=n(91479),p=n(14159),m=n(28170),g=n(51121);const v=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:i,fontWeightStrong:o,popoverPadding:a,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,marginXS:h,colorBgElevated:p}=e;return[{[t]:Object.assign(Object.assign({},(0,d.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:s,padding:a},[`${t}-title`]:{minWidth:i,marginBottom:h,color:l,fontWeight:o},[`${t}-inner-content`]:{color:r}})},(0,f.Ay)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},A=e=>{const{componentCls:t}=e;return{[t]:p.s.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},y=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i,paddingSM:o,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,h=u/2-n,f=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${f}px ${h}px`,borderBottom:`${n}px ${r} ${i}`},[`${t}-inner-content`]:{padding:`${o}px ${f}px`}}}},b=(0,m.A)("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,i=(0,g.h1)(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[v(i),A(i),r&&y(i),(0,h.aB)(i,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}});function x(e){const{hashId:t,prefixCls:n,className:r,style:s,placement:l="top",title:c,content:d,children:h}=e;return o.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${l}`,r),style:s},o.createElement("div",{className:`${n}-arrow`}),o.createElement(u.z,Object.assign({},e,{className:t,prefixCls:n}),h||((e,t,n)=>{if(t||n)return o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${e}-title`},a(t)),o.createElement("div",{className:`${e}-inner-content`},a(n)))})(n,c,d)))}const S=e=>{let{title:t,content:n,prefixCls:r}=e;return o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-title`},a(t)),o.createElement("div",{className:`${r}-inner-content`},a(n)))},E=o.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:a,overlayClassName:u,placement:d="top",trigger:h="hover",mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,overlayStyle:m={}}=e,g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iX});var r=n(87672),i=n(61544),o=n(32626),a=n(46083),s=n(73059),l=n.n(s),c=n(43978),u=n(40366),d=n(77140),h=n(32549),f=n(40942),p=n(57889),m={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},g=n(35739),v=n(34355),A=n(39999),y=0,b=(0,A.A)();const x=function(e){var t=u.useState(),n=(0,v.A)(t,2),r=n[0],i=n[1];return u.useEffect(function(){var e;i("rc_progress_".concat((b?(e=y,y+=1):e="TEST_OR_SSR",e)))},[]),e||r};(Object.getOwnPropertyDescriptor(x,"name")||{}).writable||Object.defineProperty(x,"name",{value:"default",configurable:!0});var S=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function E(e){return+e.replace("%","")}function C(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var w=function(e,t,n,r,i,o,a,s,l,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-o)/360),h=0===o?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-r)/100*t;return"round"===l&&100!==r&&(f+=c/2)>=t&&(f=t-.01),{stroke:"string"==typeof s?s:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(i+d+h,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};const _=function(e){var t,n,r,i,o,a=(0,f.A)((0,f.A)({},m),e),s=a.id,c=a.prefixCls,d=a.steps,v=a.strokeWidth,A=a.trailWidth,y=a.gapDegree,b=void 0===y?0:y,_=a.gapPosition,I=a.trailColor,T=a.strokeLinecap,M=a.style,R=a.className,O=a.strokeColor,P=a.percent,N=(0,p.A)(a,S),k=x(s),D="".concat(k,"-gradient"),L=50-v/2,B=2*Math.PI*L,F=b>0?90+b/2:-90,U=B*((360-b)/360),z="object"===(0,g.A)(d)?d:{count:d,space:2},j=z.count,$=z.space,H=w(B,U,0,100,F,b,_,I,T,v),G=C(P),Q=C(O),V=Q.find(function(e){return e&&"object"===(0,g.A)(e)}),W=(i=(0,u.useRef)([]),o=(0,u.useRef)(null),(0,u.useEffect)(function(){var e=Date.now(),t=!1;i.current.forEach(function(n){if(n){t=!0;var r=n.style;r.transitionDuration=".3s, .3s, .3s, .06s",o.current&&e-o.current<100&&(r.transitionDuration="0s, 0s")}}),t&&(o.current=Date.now())}),i.current);return u.createElement("svg",(0,h.A)({className:l()("".concat(c,"-circle"),R),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:M,id:s,role:"presentation"},N),V&&u.createElement("defs",null,u.createElement("linearGradient",{id:D,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(V).sort(function(e,t){return E(e)-E(t)}).map(function(e,t){return u.createElement("stop",{key:t,offset:e,stopColor:V[e]})}))),!j&&u.createElement("circle",{className:"".concat(c,"-circle-trail"),r:L,cx:0,cy:0,stroke:I,strokeLinecap:T,strokeWidth:A||v,style:H}),j?(t=Math.round(j*(G[0]/100)),n=100/j,r=0,new Array(j).fill(null).map(function(e,i){var o=i<=t-1?Q[0]:I,a=o&&"object"===(0,g.A)(o)?"url(#".concat(D,")"):void 0,s=w(B,U,r,n,F,b,_,o,"butt",v,$);return r+=100*(U-s.strokeDashoffset+$)/U,u.createElement("circle",{key:i,className:"".concat(c,"-circle-path"),r:L,cx:0,cy:0,stroke:a,strokeWidth:v,opacity:1,style:s,ref:function(e){W[i]=e}})})):function(){var e=0;return G.map(function(t,n){var r=Q[n]||Q[Q.length-1],i=r&&"object"===(0,g.A)(r)?"url(#".concat(D,")"):void 0,o=w(B,U,e,t,F,b,_,r,T,v);return e+=t,u.createElement("circle",{key:n,className:"".concat(c,"-circle-path"),r:L,cx:0,cy:0,stroke:i,strokeLinecap:T,strokeWidth:v,opacity:0===t?0:1,style:o,ref:function(e){W[n]=e}})}).reverse()}())};var I=n(91482),T=n(56819);function M(e){return!e||e<0?0:e>100?100:e}function R(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const O=e=>{let{percent:t,success:n,successPercent:r}=e;const i=M(R({success:n,successPercent:r}));return[i,M(M(t)-i)]},P=(e,t,n)=>{var r,i,o,a;let s=-1,l=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"==typeof e||void 0===e?(s="small"===e?2:14,l=null!=r?r:8):"number"==typeof e?[s,l]=[e,e]:[s=14,l=8]=e,s*=t}else if("line"===t){const t=null==n?void 0:n.strokeWidth;"string"==typeof e||void 0===e?l=t||("small"===e?6:8):"number"==typeof e?[s,l]=[e,e]:[s=-1,l=8]=e}else"circle"!==t&&"dashboard"!==t||("string"==typeof e||void 0===e?[s,l]="small"===e?[60,60]:[120,120]:"number"==typeof e?[s,l]=[e,e]:(s=null!==(i=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==i?i:120,l=null!==(a=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==a?a:120));return[s,l]},N=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:s,children:c,success:d,size:h=a}=e,[f,p]=P(h,"circle");let{strokeWidth:m}=e;void 0===m&&(m=Math.max((e=>3/e*100)(f),6));const g={width:f,height:p,fontSize:.15*f+6},v=u.useMemo(()=>o||0===o?o:"dashboard"===s?75:void 0,[o,s]),A=i||"dashboard"===s&&"bottom"||void 0,y="[object Object]"===Object.prototype.toString.call(e.strokeColor),b=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||T.uy.green,n||null]})({success:d,strokeColor:e.strokeColor}),x=l()(`${t}-inner`,{[`${t}-circle-gradient`]:y}),S=u.createElement(_,{percent:O(e),strokeWidth:m,trailWidth:m,strokeColor:b,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:A});return u.createElement("div",{className:x,style:g},f<=20?u.createElement(I.A,{title:c},u.createElement("span",null,S)):u.createElement(u.Fragment,null,S,c))};const k=(e,t)=>{const{from:n=T.uy.blue,to:r=T.uy.blue,direction:i=("rtl"===t?"to left":"to right")}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(", ")})(o)})`}:{backgroundImage:`linear-gradient(${i}, ${n}, ${r})`}},D=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,success:d}=e,h=a&&"string"!=typeof a?k(a,n):{backgroundColor:a},f="square"===s||"butt"===s?0:void 0,p={backgroundColor:c||void 0,borderRadius:f},m=null!=i?i:[-1,o||("small"===i?6:8)],[g,v]=P(m,"line",{strokeWidth:o}),A=Object.assign({width:`${M(r)}%`,height:v,borderRadius:f},h),y=R(e),b={width:`${M(y)}%`,height:v,borderRadius:f,backgroundColor:null==d?void 0:d.strokeColor},x={width:g<0?"100%":g,height:v};return u.createElement(u.Fragment,null,u.createElement("div",{className:`${t}-outer`,style:x},u.createElement("div",{className:`${t}-inner`,style:p},u.createElement("div",{className:`${t}-bg`,style:A}),void 0!==y?u.createElement("div",{className:`${t}-success-bg`,style:b}):null)),l)},L=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:s,children:c}=e,d=Math.round(n*(r/100)),h=null!=t?t:["small"===t?2:14,i],[f,p]=P(h,"step",{steps:n,strokeWidth:i}),m=f/n,g=new Array(n);for(let e=0;e{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,z.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:j,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},H=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},G=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},Q=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},V=(0,F.A)("Progress",e=>{const t=e.marginXXS/2,n=(0,U.h1)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[$(n),H(n),G(n),Q(n)]});const W=["normal","exception","active","success"],X=u.forwardRef((e,t)=>{const{prefixCls:n,className:s,rootClassName:h,steps:f,strokeColor:p,percent:m=0,size:g="default",showInfo:v=!0,type:A="line",status:y,format:b}=e,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var t,n;const r=R(e);return parseInt(void 0!==r?null===(t=null!=r?r:0)||void 0===t?void 0:t.toString():null===(n=null!=m?m:0)||void 0===n?void 0:n.toString(),10)},[m,e.success,e.successPercent]),E=u.useMemo(()=>!W.includes(y)&&S>=100?"success":y||"normal",[y,S]),{getPrefixCls:C,direction:w}=u.useContext(d.QO),_=C("progress",n),[I,T]=V(_),O=u.useMemo(()=>{if(!v)return null;const t=R(e);let n;const s="line"===A;return b||"exception"!==E&&"success"!==E?n=(b||(e=>`${e}%`))(M(m),M(t)):"exception"===E?n=s?u.createElement(o.A,null):u.createElement(a.A,null):"success"===E&&(n=s?u.createElement(r.A,null):u.createElement(i.A,null)),u.createElement("span",{className:`${_}-text`,title:"string"==typeof n?n:void 0},n)},[v,m,S,E,A,_,b]),k=Array.isArray(p)?p[0]:p,B="string"==typeof p||Array.isArray(p)?p:void 0;let F;"line"===A?F=f?u.createElement(L,Object.assign({},e,{strokeColor:B,prefixCls:_,steps:f}),O):u.createElement(D,Object.assign({},e,{strokeColor:k,prefixCls:_,direction:w}),O):"circle"!==A&&"dashboard"!==A||(F=u.createElement(N,Object.assign({},e,{strokeColor:k,prefixCls:_,progressStatus:E}),O));const U=l()(_,{[`${_}-inline-circle`]:"circle"===A&&P(g,"circle")[0]<=20,[`${_}-${("dashboard"===A?"circle":f&&"steps")||A}`]:!0,[`${_}-status-${E}`]:!0,[`${_}-show-info`]:v,[`${_}-${g}`]:"string"==typeof g,[`${_}-rtl`]:"rtl"===w},s,h,T);return I(u.createElement("div",Object.assign({ref:t,className:U,role:"progressbar"},(0,c.A)(x,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),F))})},56487(e,t,n){"use strict";n.d(t,{Ay:()=>k});var r=n(73059),i=n.n(r),o=n(5522),a=n(40366),s=n(77140),l=n(96718);const c=a.createContext(null),u=c.Provider,d=c,h=a.createContext(null),f=h.Provider;var p=n(59700),m=n(81834),g=n(87804),v=n(87824),A=n(5147),y=n(28170),b=n(51121),x=n(79218);const S=new A.Mo("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),E=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},(0,x.dF)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},C=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:h,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,radioDotDisabledColor:g,lineType:v,radioDotDisabledSize:A,wireframe:y,colorWhite:b}=e,E=`${t}-inner`;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,x.dF)(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${v} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:S,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:Object.assign(Object.assign({},(0,x.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},(0,x.jk)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:y?r:b,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:y?c:r,"&::after":{transform:`scale(${h/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${A/i})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},w=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:h,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:g,borderRadiusSM:v,borderRadiusLG:A,radioCheckedColor:y,radioButtonCheckedBg:b,radioButtonHoverColor:S,radioButtonActiveColor:E,radioSolidCheckedColor:C,colorTextDisabled:w,colorBgContainerDisabled:_,radioDisabledButtonCheckedColor:I,radioDisabledButtonCheckedBg:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:n-2*i+"px",background:d,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:f,fontSize:h,lineHeight:f-2*i+"px","&:first-child":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child":{borderStartEndRadius:A,borderEndEndRadius:A}},[`${r}-group-small &`]:{height:p,paddingInline:m-i,paddingBlock:0,lineHeight:p-2*i+"px","&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":Object.assign({},(0,x.jk)(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:b,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:y,borderColor:y,"&:hover":{color:C,background:S,borderColor:S},"&:active":{color:C,background:E,borderColor:E}},"&-disabled":{color:w,backgroundColor:_,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:_,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:T,borderColor:a,boxShadow:"none"}}}},_=(0,y.A)("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:f,colorTextLightSolid:p,wireframe:m}=e,g=`0 0 0 ${f}px ${s}`,v=g,A=a,y=A-8,x=m?y:A-2*(4+n),S=d,_=u,I=l,T=c,M=t-n,R=i,O=h,P=(0,b.h1)(e,{radioFocusShadow:g,radioButtonFocusShadow:v,radioSize:A,radioDotSize:x,radioDotDisabledSize:y,radioCheckedColor:S,radioDotDisabledColor:i,radioSolidCheckedColor:p,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:_,radioButtonHoverColor:I,radioButtonActiveColor:T,radioButtonPaddingHorizontal:M,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:R,radioWrapperMarginRight:O});return[E(P),C(P),w(P)]});const I=(e,t)=>{var n,r;const o=a.useContext(d),l=a.useContext(h),{getPrefixCls:c,direction:u}=a.useContext(s.QO),f=a.useRef(null),A=(0,m.K4)(t,f),{isFormItemInput:y}=a.useContext(v.$W),{prefixCls:b,className:x,rootClassName:S,children:E,style:C}=e,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==o?void 0:o.onChange)||void 0===r||r.call(o,t)},O.checked=e.value===o.value,O.disabled=null!==(n=O.disabled)&&void 0!==n?n:o.disabled),O.disabled=null!==(r=O.disabled)&&void 0!==r?r:P;const N=i()(`${T}-wrapper`,{[`${T}-wrapper-checked`]:O.checked,[`${T}-wrapper-disabled`]:O.disabled,[`${T}-wrapper-rtl`]:"rtl"===u,[`${T}-wrapper-in-form-item`]:y},x,S,R);return M(a.createElement("label",{className:N,style:C,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},a.createElement(p.A,Object.assign({},O,{type:"radio",prefixCls:T,ref:A})),void 0!==E?a.createElement("span",null,E):null))},T=a.forwardRef(I),M=a.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=a.useContext(s.QO),[c,d]=(0,o.A)(e.defaultValue,{value:e.value}),{prefixCls:h,className:f,rootClassName:p,options:m,buttonStyle:g="outline",disabled:v,children:A,size:y,style:b,id:x,onMouseEnter:S,onMouseLeave:E,onFocus:C,onBlur:w}=e,I=n("radio",h),M=`${I}-group`,[R,O]=_(I);let P=A;m&&m.length>0&&(P=m.map(e=>"string"==typeof e||"number"==typeof e?a.createElement(T,{key:e.toString(),prefixCls:I,disabled:v,value:e,checked:c===e},e):a.createElement(T,{key:`radio-group-value-options-${e.value}`,prefixCls:I,disabled:e.disabled||v,value:e.value,checked:c===e.value,style:e.style},e.label)));const N=(0,l.A)(y),k=i()(M,`${M}-${g}`,{[`${M}-${N}`]:N,[`${M}-rtl`]:"rtl"===r},f,p,O);return R(a.createElement("div",Object.assign({},function(e){return Object.keys(e).reduce((t,n)=>(!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t),{})}(e),{className:k,style:b,onMouseEnter:S,onMouseLeave:E,onFocus:C,onBlur:w,id:x,ref:t}),a.createElement(u,{value:{onChange:t=>{const n=c,r=t.target.value;"value"in e||d(r);const{onChange:i}=e;i&&r!==n&&i(t)},value:c,disabled:e.disabled,name:e.name,optionType:e.optionType}},P)))}),R=a.memo(M);const O=(e,t)=>{const{getPrefixCls:n}=a.useContext(s.QO),{prefixCls:r}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ibt});var r=n(73059),i=n.n(r),o=n(32549),a=n(53563),s=n(22256),l=n(40942),c=n(34355),u=n(57889),d=n(35739),h=n(5522),f=n(3455),p=n(40366),m=n(34148),g=n(19633),v=n(95589),A=n(81834),y=p.createContext(null);function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);return p.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var x=n(59880),S=n(91860);const E=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,a=e.onMouseDown,s=e.onClick,l=e.children;return t="function"==typeof r?r(o):r,p.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},void 0!==t?t:p.createElement("span",{className:i()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},l))};var C=function(e,t){var n,r,o=e.prefixCls,a=e.id,s=e.inputElement,c=e.disabled,u=e.tabIndex,d=e.autoFocus,h=e.autoComplete,m=e.editable,g=e.activeDescendantId,v=e.value,y=e.maxLength,b=e.onKeyDown,x=e.onMouseDown,S=e.onChange,E=e.onPaste,C=e.onCompositionStart,w=e.onCompositionEnd,_=e.open,I=e.attrs,T=s||p.createElement("input",null),M=T,R=M.ref,O=M.props,P=O.onKeyDown,N=O.onChange,k=O.onMouseDown,D=O.onCompositionStart,L=O.onCompositionEnd,B=O.style;return(0,f.$e)(!("maxLength"in T.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),p.cloneElement(T,(0,l.A)((0,l.A)((0,l.A)({type:"search"},O),{},{id:a,ref:(0,A.K4)(t,R),disabled:c,tabIndex:u,autoComplete:h||"off",autoFocus:d,className:i()("".concat(o,"-selection-search-input"),null===(n=T)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":_,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":g},I),{},{value:m?v:"",maxLength:y,readOnly:!m,unselectable:m?null:"on",style:(0,l.A)((0,l.A)({},B),{},{opacity:m?null:0}),onKeyDown:function(e){b(e),P&&P(e)},onMouseDown:function(e){x(e),k&&k(e)},onChange:function(e){S(e),N&&N(e)},onCompositionStart:function(e){C(e),D&&D(e)},onCompositionEnd:function(e){w(e),L&&L(e)},onPaste:E}))},w=p.forwardRef(C);w.displayName="Input";const _=w;function I(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var T="undefined"!=typeof window&&window.document&&window.document.documentElement;function M(e){return["string","number"].includes((0,d.A)(e))}function R(e){var t=void 0;return e&&(M(e.title)?t=e.title.toString():M(e.label)&&(t=e.label.toString())),t}function O(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var P=function(e){e.preventDefault(),e.stopPropagation()};const N=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,l=e.open,u=e.searchValue,d=e.autoClearSearchValue,h=e.inputRef,f=e.placeholder,m=e.disabled,g=e.mode,v=e.showSearch,A=e.autoFocus,y=e.autoComplete,b=e.activeDescendantId,C=e.tabIndex,w=e.removeIcon,I=e.maxTagCount,M=e.maxTagTextLength,N=e.maxTagPlaceholder,k=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,D=e.tagRender,L=e.onToggleOpen,B=e.onRemove,F=e.onInputChange,U=e.onInputPaste,z=e.onInputKeyDown,j=e.onInputMouseDown,$=e.onInputCompositionStart,H=e.onInputCompositionEnd,G=p.useRef(null),Q=(0,p.useState)(0),V=(0,c.A)(Q,2),W=V[0],X=V[1],q=(0,p.useState)(!1),Y=(0,c.A)(q,2),K=Y[0],J=Y[1],Z="".concat(o,"-selection"),ee=l||"multiple"===g&&!1===d||"tags"===g?u:"",te="tags"===g||"multiple"===g&&!1===d||v&&(l||K);function ne(e,t,n,r,o){return p.createElement("span",{className:i()("".concat(Z,"-item"),(0,s.A)({},"".concat(Z,"-item-disabled"),n)),title:R(e)},p.createElement("span",{className:"".concat(Z,"-item-content")},t),r&&p.createElement(E,{className:"".concat(Z,"-item-remove"),onMouseDown:P,onClick:o,customizeIcon:w},"×"))}t=function(){X(G.current.scrollWidth)},n=[ee],T?p.useLayoutEffect(t,n):p.useEffect(t,n);var re=p.createElement("div",{className:"".concat(Z,"-search"),style:{width:W},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},p.createElement(_,{ref:h,open:l,prefixCls:o,id:r,inputElement:null,disabled:m,autoFocus:A,autoComplete:y,editable:te,activeDescendantId:b,value:ee,onKeyDown:z,onMouseDown:j,onChange:F,onPaste:U,onCompositionStart:$,onCompositionEnd:H,tabIndex:C,attrs:(0,x.A)(e,!0)}),p.createElement("span",{ref:G,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee," ")),ie=p.createElement(S.A,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!m&&!t,o=n;if("number"==typeof M&&("string"==typeof n||"number"==typeof n)){var a=String(o);a.length>M&&(o="".concat(a.slice(0,M),"..."))}var s=function(t){t&&t.stopPropagation(),B(e)};return"function"==typeof D?function(e,t,n,r,i){return p.createElement("span",{onMouseDown:function(e){P(e),L(!l)}},D({label:t,value:e,disabled:n,closable:r,onClose:i}))}(r,o,t,i,s):ne(e,o,t,i,s)},renderRest:function(e){var t="function"==typeof k?k(e):k;return ne({title:t},t,!1)},suffix:re,itemKey:O,maxCount:I});return p.createElement(p.Fragment,null,ie,!a.length&&!ee&&p.createElement("span",{className:"".concat(Z,"-placeholder")},f))},k=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.activeDescendantId,u=e.mode,d=e.open,h=e.values,f=e.placeholder,m=e.tabIndex,g=e.showSearch,v=e.searchValue,A=e.activeValue,y=e.maxLength,b=e.onInputKeyDown,S=e.onInputMouseDown,E=e.onInputChange,C=e.onInputPaste,w=e.onInputCompositionStart,I=e.onInputCompositionEnd,T=e.title,M=p.useState(!1),O=(0,c.A)(M,2),P=O[0],N=O[1],k="combobox"===u,D=k||g,L=h[0],B=v||"";k&&A&&!P&&(B=A),p.useEffect(function(){k&&N(!1)},[k,A]);var F=!("combobox"!==u&&!d&&!g||!B),U=void 0===T?R(L):T;return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(_,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:D,activeDescendantId:l,value:B,onKeyDown:b,onMouseDown:S,onChange:function(e){N(!0),E(e)},onPaste:C,onCompositionStart:w,onCompositionEnd:I,tabIndex:m,attrs:(0,x.A)(e,!0),maxLength:k?y:void 0})),!k&&L?p.createElement("span",{className:"".concat(n,"-selection-item"),title:U,style:F?{visibility:"hidden"}:void 0},L.label):null,function(){if(L)return null;var e=F?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},f)}())};var D=function(e,t){var n=(0,p.useRef)(null),r=(0,p.useRef)(!1),i=e.prefixCls,a=e.open,s=e.mode,l=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,h=e.onSearch,f=e.onSearchSubmit,m=e.onToggleOpen,g=e.onInputKeyDown,A=e.domRef;p.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var y=b(0),x=(0,c.A)(y,2),S=x[0],E=x[1],C=(0,p.useRef)(null),w=function(e){!1!==h(e,!0,r.current)&&m(!0)},_={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==v.A.UP&&n!==v.A.DOWN||e.preventDefault(),g&&g(e),n!==v.A.ENTER||"tags"!==s||r.current||a||null==f||f(e.target.value),t=n,[v.A.ESC,v.A.SHIFT,v.A.BACKSPACE,v.A.TAB,v.A.WIN_KEY,v.A.ALT,v.A.META,v.A.WIN_KEY_RIGHT,v.A.CTRL,v.A.SEMICOLON,v.A.EQUALS,v.A.CAPS_LOCK,v.A.CONTEXT_MENU,v.A.F1,v.A.F2,v.A.F3,v.A.F4,v.A.F5,v.A.F6,v.A.F7,v.A.F8,v.A.F9,v.A.F10,v.A.F11,v.A.F12].includes(t)||m(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");C.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==s&&w(e.target.value)}},I="multiple"===s||"tags"===s?p.createElement(N,(0,o.A)({},e,_)):p.createElement(k,(0,o.A)({},e,_));return p.createElement("div",{ref:A,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||l&&t)&&a||(a&&!1!==d&&h("",!0,!1),m())}},I)},L=p.forwardRef(D);L.displayName="Selector";const B=L;var F=n(7980),U=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),a=e.children,c=e.popupElement,d=e.containerWidth,h=e.animation,f=e.transitionName,m=e.dropdownStyle,g=e.dropdownClassName,v=e.direction,A=void 0===v?"ltr":v,y=e.placement,b=e.builtinPlacements,x=e.dropdownMatchSelectWidth,S=e.dropdownRender,E=e.dropdownAlign,C=e.getPopupContainer,w=e.empty,_=e.getTriggerDOMNode,I=e.onPopupVisibleChange,T=e.onPopupMouseEnter,M=(0,u.A)(e,U),R="".concat(n,"-dropdown"),O=c;S&&(O=S(c));var P=p.useMemo(function(){return b||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(x)},[b,x]),N=h?"".concat(R,"-").concat(h):f,k=p.useRef(null);p.useImperativeHandle(t,function(){return{getPopupElement:function(){return k.current}}});var D=(0,l.A)({minWidth:d},m);return"number"==typeof x?D.width=x:x&&(D.width=d),p.createElement(F.A,(0,o.A)({},M,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:y||("rtl"===A?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:R,popupTransitionName:N,popup:p.createElement("div",{ref:k,onMouseEnter:T},O),popupAlign:E,popupVisible:r,getPopupContainer:C,popupClassName:i()(g,(0,s.A)({},"".concat(R,"-empty"),w)),popupStyle:D,getTriggerDOMNode:_,onPopupVisibleChange:I}),a)},j=p.forwardRef(z);j.displayName="SelectTrigger";const $=j;var H=n(41406);function G(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Q(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function V(e){var t=(0,l.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,f.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var W=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function q(e){return"tags"===e||"multiple"===e}var Y=p.forwardRef(function(e,t){var n,r,f=e.id,x=e.prefixCls,S=e.className,C=e.showSearch,w=e.tagRender,_=e.direction,I=e.omitDomProps,T=e.displayValues,M=e.onDisplayValuesChange,R=e.emptyOptions,O=e.notFoundContent,P=void 0===O?"Not Found":O,N=e.onClear,k=e.mode,D=e.disabled,L=e.loading,F=e.getInputElement,U=e.getRawInputElement,z=e.open,j=e.defaultOpen,G=e.onDropdownVisibleChange,Q=e.activeValue,V=e.onActiveValueChange,Y=e.activeDescendantId,K=e.searchValue,J=e.autoClearSearchValue,Z=e.onSearch,ee=e.onSearchSplit,te=e.tokenSeparators,ne=e.allowClear,re=e.showArrow,ie=e.inputIcon,oe=e.clearIcon,ae=e.OptionList,se=e.animation,le=e.transitionName,ce=e.dropdownStyle,ue=e.dropdownClassName,de=e.dropdownMatchSelectWidth,he=e.dropdownRender,fe=e.dropdownAlign,pe=e.placement,me=e.builtinPlacements,ge=e.getPopupContainer,ve=e.showAction,Ae=void 0===ve?[]:ve,ye=e.onFocus,be=e.onBlur,xe=e.onKeyUp,Se=e.onKeyDown,Ee=e.onMouseDown,Ce=(0,u.A)(e,W),we=q(k),_e=(void 0!==C?C:we)||"combobox"===k,Ie=(0,l.A)({},Ce);X.forEach(function(e){delete Ie[e]}),null==I||I.forEach(function(e){delete Ie[e]});var Te=p.useState(!1),Me=(0,c.A)(Te,2),Re=Me[0],Oe=Me[1];p.useEffect(function(){Oe((0,g.A)())},[]);var Pe=p.useRef(null),Ne=p.useRef(null),ke=p.useRef(null),De=p.useRef(null),Le=p.useRef(null),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=p.useState(!1),n=(0,c.A)(t,2),r=n[0],i=n[1],o=p.useRef(null),a=function(){window.clearTimeout(o.current)};return p.useEffect(function(){return a},[]),[r,function(t,n){a(),o.current=window.setTimeout(function(){i(t),n&&n()},e)},a]}(),Fe=(0,c.A)(Be,3),Ue=Fe[0],ze=Fe[1],je=Fe[2];p.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=De.current)||void 0===e?void 0:e.focus,blur:null===(t=De.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Le.current)||void 0===t?void 0:t.scrollTo(e)}}});var $e=p.useMemo(function(){var e;if("combobox"!==k)return K;var t=null===(e=T[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[K,k,T]),He="combobox"===k&&"function"==typeof F&&F()||null,Ge="function"==typeof U&&U(),Qe=(0,A.xK)(Ne,null==Ge||null===(n=Ge.props)||void 0===n?void 0:n.ref),Ve=p.useState(!1),We=(0,c.A)(Ve,2),Xe=We[0],qe=We[1];(0,m.A)(function(){qe(!0)},[]);var Ye=(0,h.A)(!1,{defaultValue:j,value:z}),Ke=(0,c.A)(Ye,2),Je=Ke[0],Ze=Ke[1],et=!!Xe&&Je,tt=!P&&R;(D||tt&&et&&"combobox"===k)&&(et=!1);var nt=!tt&&et,rt=p.useCallback(function(e){var t=void 0!==e?e:!et;D||(Ze(t),et!==t&&(null==G||G(t)))},[D,et,Ze,G]),it=p.useMemo(function(){return(te||[]).some(function(e){return["\n","\r\n"].includes(e)})},[te]),ot=function(e,t,n){var r=!0,i=e;null==V||V(null);var o=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var i=(0,H.A)(r),o=i[0],s=i.slice(1);if(!o)return[t];var l=t.split(o);return n=n||l.length>1,l.reduce(function(t,n){return[].concat((0,a.A)(t),(0,a.A)(e(n,s)))},[]).filter(function(e){return e})}(e,t);return n?r:null}(e,te);return"combobox"!==k&&o&&(i="",null==ee||ee(o),rt(!1),r=!1),Z&&$e!==i&&Z(i,{source:t?"typing":"effect"}),r};p.useEffect(function(){et||we||"combobox"===k||ot("",!1,!1)},[et]),p.useEffect(function(){Je&&D&&Ze(!1),D&&ze(!1)},[D]);var at=b(),st=(0,c.A)(at,2),lt=st[0],ct=st[1],ut=p.useRef(!1),dt=[];p.useEffect(function(){return function(){dt.forEach(function(e){return clearTimeout(e)}),dt.splice(0,dt.length)}},[]);var ht,ft=p.useState(null),pt=(0,c.A)(ft,2),mt=pt[0],gt=pt[1],vt=p.useState({}),At=(0,c.A)(vt,2)[1];(0,m.A)(function(){if(nt){var e,t=Math.ceil(null===(e=Pe.current)||void 0===e?void 0:e.offsetWidth);mt===t||Number.isNaN(t)||gt(t)}},[nt]),Ge&&(ht=function(e){rt(e)}),function(e,t,n,r){var i=p.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},p.useEffect(function(){function e(e){var t,n;if(null===(t=i.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&[Pe.current,null===(n=ke.current)||void 0===n?void 0:n.getPopupElement()].filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[])}(0,nt,rt,!!Ge);var yt,bt,xt=p.useMemo(function(){return(0,l.A)((0,l.A)({},e),{},{notFoundContent:P,open:et,triggerOpen:nt,id:f,showSearch:_e,multiple:we,toggleOpen:rt})},[e,P,nt,et,f,_e,we,rt]),St=void 0!==re?re:L||!we&&"combobox"!==k;St&&(yt=p.createElement(E,{className:i()("".concat(x,"-arrow"),(0,s.A)({},"".concat(x,"-arrow-loading"),L)),customizeIcon:ie,customizeIconProps:{loading:L,searchValue:$e,open:et,focused:Ue,showSearch:_e}})),D||!ne||!T.length&&!$e||"combobox"===k&&""===$e||(bt=p.createElement(E,{className:"".concat(x,"-clear"),onMouseDown:function(){var e;null==N||N(),null===(e=De.current)||void 0===e||e.focus(),M([],{type:"clear",values:T}),ot("",!1,!1)},customizeIcon:oe},"×"));var Et,Ct=p.createElement(ae,{ref:Le}),wt=i()(x,S,(r={},(0,s.A)(r,"".concat(x,"-focused"),Ue),(0,s.A)(r,"".concat(x,"-multiple"),we),(0,s.A)(r,"".concat(x,"-single"),!we),(0,s.A)(r,"".concat(x,"-allow-clear"),ne),(0,s.A)(r,"".concat(x,"-show-arrow"),St),(0,s.A)(r,"".concat(x,"-disabled"),D),(0,s.A)(r,"".concat(x,"-loading"),L),(0,s.A)(r,"".concat(x,"-open"),et),(0,s.A)(r,"".concat(x,"-customize-input"),He),(0,s.A)(r,"".concat(x,"-show-search"),_e),r)),_t=p.createElement($,{ref:ke,disabled:D,prefixCls:x,visible:nt,popupElement:Ct,containerWidth:mt,animation:se,transitionName:le,dropdownStyle:ce,dropdownClassName:ue,direction:_,dropdownMatchSelectWidth:de,dropdownRender:he,dropdownAlign:fe,placement:pe,builtinPlacements:me,getPopupContainer:ge,empty:R,getTriggerDOMNode:function(){return Ne.current},onPopupVisibleChange:ht,onPopupMouseEnter:function(){At({})}},Ge?p.cloneElement(Ge,{ref:Qe}):p.createElement(B,(0,o.A)({},e,{domRef:Ne,prefixCls:x,inputElement:He,ref:De,id:f,showSearch:_e,autoClearSearchValue:J,mode:k,activeDescendantId:Y,tagRender:w,values:T,open:et,onToggleOpen:rt,activeValue:Q,searchValue:$e,onSearch:ot,onSearchSubmit:function(e){e&&e.trim()&&Z(e,{source:"submit"})},onRemove:function(e){var t=T.filter(function(t){return t!==e});M(t,{type:"remove",values:[e]})},tokenWithEnter:it})));return Et=Ge?_t:p.createElement("div",(0,o.A)({className:wt},Ie,{ref:Pe,onMouseDown:function(e){var t,n=e.target,r=null===(t=ke.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var i=setTimeout(function(){var e,t=dt.indexOf(i);-1!==t&&dt.splice(t,1),je(),Re||r.contains(document.activeElement)||null===(e=De.current)||void 0===e||e.focus()});dt.push(i)}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),o=l;break}}o&&M(i,{type:"remove",values:[o]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1];return(0,ie.A)(e).map(function(e,n){if(!p.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,o=r.key,a=r.props,s=a.children,c=(0,u.A)(a,ae);return t||!i?function(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=(0,u.A)(r,oe);return(0,l.A)({key:n,value:void 0!==o?o:n,children:i},a)}(e):(0,l.A)((0,l.A)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},c),{},{options:se(s)})}).filter(function(e){return e})}function le(e){var t=p.useRef();t.current=e;var n=p.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var ce=function(){return null};ce.isSelectOptGroup=!0;const ue=ce;var de=function(){return null};de.isSelectOption=!0;const he=de;var fe=n(11489),pe=n(43978),me=n(95540);const ge=p.createContext(null);var ve=["disabled","title","children","style","className"];function Ae(e){return"string"==typeof e||"number"==typeof e}var ye=function(e,t){var n=p.useContext(y),r=n.prefixCls,l=n.id,d=n.open,h=n.multiple,f=n.mode,m=n.searchValue,g=n.toggleOpen,A=n.notFoundContent,b=n.onPopupScroll,S=p.useContext(ge),C=S.flattenOptions,w=S.onActiveValue,_=S.defaultActiveFirstOption,I=S.onSelect,T=S.menuItemSelectedIcon,M=S.rawValues,R=S.fieldNames,O=S.virtual,P=S.direction,N=S.listHeight,k=S.listItemHeight,D="".concat(r,"-item"),L=(0,fe.A)(function(){return C},[d,C],function(e,t){return t[0]&&e[1]!==t[1]}),B=p.useRef(null),F=function(e){e.preventDefault()},U=function(e){B.current&&B.current.scrollTo("number"==typeof e?{index:e}:e)},z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=L.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];G(e);var n={source:t?"keyboard":"mouse"},r=L[e];r?w(r.value,e,n):w(null,-1,n)};(0,p.useEffect)(function(){Q(!1!==_?z(0):-1)},[L.length,m]);var V=p.useCallback(function(e){return M.has(e)&&"combobox"!==f},[f,(0,a.A)(M).toString(),M.size]);(0,p.useEffect)(function(){var e,t=setTimeout(function(){if(!h&&d&&1===M.size){var e=Array.from(M)[0],t=L.findIndex(function(t){return t.data.value===e});-1!==t&&(Q(t),U(t))}});return d&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[d,m,C.length]);var W=function(e){void 0!==e&&I(e,{selected:!M.has(e)}),h||g(!1)};if(p.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case v.A.N:case v.A.P:case v.A.UP:case v.A.DOWN:var r=0;if(t===v.A.UP?r=-1:t===v.A.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===v.A.N?r=1:t===v.A.P&&(r=-1)),0!==r){var i=z(H+r,r);U(i),Q(i,!0)}break;case v.A.ENTER:var o=L[H];o&&!o.data.disabled?W(o.value):W(void 0),d&&e.preventDefault();break;case v.A.ESC:g(!1),d&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){U(e)}}}),0===L.length)return p.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(D,"-empty"),onMouseDown:F},A);var X=Object.keys(R).map(function(e){return R[e]}),q=function(e){return e.label};function Y(e,t){return{role:e.group?"presentation":"option",id:"".concat(l,"_list_").concat(t)}}var K=function(e){var t=L[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=(0,x.A)(n,!0),s=q(t);return t?p.createElement("div",(0,o.A)({"aria-label":"string"!=typeof s||i?null:s},a,{key:e},Y(t,e),{"aria-selected":V(r)}),r):null},J={role:"listbox",id:"".concat(l,"_list")};return p.createElement(p.Fragment,null,O&&p.createElement("div",(0,o.A)({},J,{style:{height:0,width:0,overflow:"hidden"}}),K(H-1),K(H),K(H+1)),p.createElement(me.A,{itemKey:"key",ref:B,data:L,height:N,itemHeight:k,fullHeight:!1,onMouseDown:F,onScroll:b,virtual:O,direction:P,innerProps:O?null:J},function(e,t){var n,r=e.group,a=e.groupOption,l=e.data,c=e.label,d=e.value,h=l.key;if(r){var f,m=null!==(f=l.title)&&void 0!==f?f:Ae(c)?c.toString():void 0;return p.createElement("div",{className:i()(D,"".concat(D,"-group")),title:m},void 0!==c?c:h)}var g=l.disabled,v=l.title,A=(l.children,l.style),y=l.className,b=(0,u.A)(l,ve),S=(0,pe.A)(b,X),C=V(d),w="".concat(D,"-option"),_=i()(D,w,y,(n={},(0,s.A)(n,"".concat(w,"-grouped"),a),(0,s.A)(n,"".concat(w,"-active"),H===t&&!g),(0,s.A)(n,"".concat(w,"-disabled"),g),(0,s.A)(n,"".concat(w,"-selected"),C),n)),I=q(e),M=!T||"function"==typeof T||C,R="number"==typeof I?I:I||d,P=Ae(R)?R.toString():void 0;return void 0!==v&&(P=v),p.createElement("div",(0,o.A)({},(0,x.A)(S),O?{}:Y(e,t),{"aria-selected":C,className:_,title:P,onMouseMove:function(){H===t||g||Q(t)},onClick:function(){g||W(d)},style:A}),p.createElement("div",{className:"".concat(w,"-content")},R),p.isValidElement(T)||C,M&&p.createElement(E,{className:"".concat(D,"-option-state"),customizeIcon:T,customizeIconProps:{isSelected:C}},C?"✓":null))}))},be=p.forwardRef(ye);be.displayName="OptionList";const xe=be;var Se=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],Ee=["inputValue"],Ce=p.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,f=void 0===i?"rc-select":i,m=e.backfill,g=e.fieldNames,v=e.inputValue,A=e.searchValue,y=e.onSearch,b=e.autoClearSearchValue,x=void 0===b||b,S=e.onSelect,E=e.onDeselect,C=e.dropdownMatchSelectWidth,w=void 0===C||C,_=e.filterOption,T=e.filterSort,M=e.optionFilterProp,R=e.optionLabelProp,O=e.options,P=e.children,N=e.defaultActiveFirstOption,k=e.menuItemSelectedIcon,D=e.virtual,L=e.direction,B=e.listHeight,F=void 0===B?200:B,U=e.listItemHeight,z=void 0===U?20:U,j=e.value,$=e.defaultValue,H=e.labelInValue,W=e.onChange,X=(0,u.A)(e,Se),Y=function(e){var t=p.useState(),n=(0,c.A)(t,2),r=n[0],i=n[1];return p.useEffect(function(){var e;i("rc_select_".concat((re?(e=ne,ne+=1):e="TEST_OR_SSR",e)))},[]),e||r}(n),Z=q(r),te=!(O||!P),ie=p.useMemo(function(){return(void 0!==_||"combobox"!==r)&&_},[_,r]),oe=p.useMemo(function(){return Q(g,te)},[JSON.stringify(g),te]),ae=(0,h.A)("",{value:void 0!==A?A:v,postState:function(e){return e||""}}),ce=(0,c.A)(ae,2),ue=ce[0],de=ce[1],he=function(e,t,n,r,i){return p.useMemo(function(){var o=e;!e&&(o=se(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=Q(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;return function e(t,n){t.forEach(function(t){if(n||!(l in t)){var o=t[s];i.push({key:G(t,i.length),groupOption:n,data:t,label:t[a],value:o})}else{var u=t[c];void 0===u&&r&&(u=t.label),i.push({key:G(t,i.length),group:!0,data:t,label:u}),e(t[l],!0)}})}(e,!1),i}(Le,{fieldNames:oe,childrenAsData:te})},[Le,oe,te]),Fe=function(e){var t=ve(e);if(Ce(t),W&&(t.length!==Te.length||t.some(function(e,t){var n;return(null===(n=Te[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=H?t:t.map(function(e){return e.value}),r=t.map(function(e){return V(Me(e.value))});W(Z?n:n[0],Z?r:r[0])}},Ue=p.useState(null),ze=(0,c.A)(Ue,2),je=ze[0],$e=ze[1],He=p.useState(0),Ge=(0,c.A)(He,2),Qe=Ge[0],Ve=Ge[1],We=void 0!==N?N:"combobox"!==r,Xe=p.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,i=void 0===n?"keyboard":n;Ve(t),m&&"combobox"===r&&null!==e&&"keyboard"===i&&$e(String(e))},[m,r]),qe=function(e,t,n){var r=function(){var t,n=Me(e);return[H?{label:null==n?void 0:n[oe.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,V(n)]};if(t&&S){var i=r(),o=(0,c.A)(i,2),a=o[0],s=o[1];S(a,s)}else if(!t&&E&&"clear"!==n){var l=r(),u=(0,c.A)(l,2),d=u[0],h=u[1];E(d,h)}},Ye=le(function(e,t){var n,i=!Z||t.selected;n=i?Z?[].concat((0,a.A)(Te),[e]):[e]:Te.filter(function(t){return t.value!==e}),Fe(n),qe(e,i),"combobox"===r?$e(""):q&&!x||(de(""),$e(""))}),Ke=p.useMemo(function(){var e=!1!==D&&!1!==w;return(0,l.A)((0,l.A)({},he),{},{flattenOptions:Be,onActiveValue:Xe,defaultActiveFirstOption:We,onSelect:Ye,menuItemSelectedIcon:k,rawValues:Oe,fieldNames:oe,virtual:e,direction:L,listHeight:F,listItemHeight:z,childrenAsData:te})},[he,Be,Xe,We,Ye,k,Oe,oe,D,w,F,z,te]);return p.createElement(ge.Provider,{value:Ke},p.createElement(K,(0,o.A)({},X,{id:Y,prefixCls:f,ref:t,omitDomProps:Ee,mode:r,displayValues:Re,onDisplayValuesChange:function(e,t){Fe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){qe(e.value,!1,n)})},direction:L,searchValue:ue,onSearch:function(e,t){if(de(e),$e(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&Fe(e),null==y||y(e));else{var n=(e||"").trim();if(n){var i=Array.from(new Set([].concat((0,a.A)(Oe),[n])));Fe(i),qe(n,!0),de("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map(function(e){var t=pe.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,a.A)(Oe),(0,a.A)(t))));Fe(n),n.forEach(function(e){qe(e,!0)})},dropdownMatchSelectWidth:w,OptionList:xe,emptyOptions:!Be.length,activeValue:je,activeDescendantId:"".concat(Y,"_list_").concat(Qe)})))}),we=Ce;we.Option=he,we.OptGroup=ue;const _e=we;var Ie=n(60330),Te=n(42014),Me=n(54109),Re=n(77140),Oe=n(87804),Pe=n(61018),Ne=n(96718),ke=n(87824),De=n(43136),Le=n(79218),Be=n(91731),Fe=n(51121),Ue=n(28170),ze=n(22916),je=n(5147),$e=n(56703);const He=new je.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ge=new je.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Qe=new je.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ve=new je.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),We=new je.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xe=new je.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),qe={"move-up":{inKeyframes:new je.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new je.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:He,outKeyframes:Ge},"move-left":{inKeyframes:Qe,outKeyframes:Ve},"move-right":{inKeyframes:We,outKeyframes:Xe}},Ye=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=qe[t];return[(0,$e.b)(r,i,o,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ke=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},Je=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,Le.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n `]:{animationName:ze.ox},[`\n &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n `]:{animationName:ze.nP},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:ze.vR},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:ze.YU},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},Ke(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign(Object.assign({flex:"auto"},Le.L9),{"> *":Object.assign({},Le.L9)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,ze._j)(e,"slide-up"),(0,ze._j)(e,"slide-down"),Ye(e,"move-up"),Ye(e,"move-down")]},Ze=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const i=(n-t)/2-r;return[i,Math.ceil(i/2)]};function et(e,t){const{componentCls:n,iconCls:r}=e,i=`${n}-selection-overflow`,o=e.controlHeightSM,[a]=Ze(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{fontSize:e.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:a-2+"px 4px",borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${o}px`,content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:2,marginBottom:2,lineHeight:o-2*e.lineWidth+"px",background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Le.Nk)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:`${o}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const tt=e=>{const{componentCls:t}=e,n=(0,Fe.h1)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,Fe.h1)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,i]=Ze(e);return[et(e),et(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:i}}},et(r,"lg")]};function nt(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,o=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,Le.dF)(e)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:`${o}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${o}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:`${o}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function rt(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[nt(e),nt((0,Fe.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:1.5*e.fontSize}}}},nt((0,Fe.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const it=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ot=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:i,outlineColor:o,antCls:a}=t,s=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${o}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i}})}}},at=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},st=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,Le.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},it(e)),at(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},Le.L9),{"> *":Object.assign({lineHeight:"inherit"},Le.L9)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},Le.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,Le.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},lt=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},st(e),rt(e),tt(e),Je(e),{[`${t}-rtl`]:{direction:"rtl"}},ot(t,(0,Fe.h1)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ot(`${t}-status-error`,(0,Fe.h1)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ot(`${t}-status-warning`,(0,Fe.h1)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,Be.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ct=(0,Ue.A)("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=(0,Fe.h1)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[lt(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var ut=n(61544),dt=n(32626),ht=n(46083),ft=n(34270),pt=n(82980),mt=n(9220);const gt="SECRET_COMBOBOX_MODE_DO_NOT_USE",vt=(e,t)=>{var n,{prefixCls:r,bordered:o=!0,className:a,rootClassName:s,getPopupContainer:l,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:h,listItemHeight:f=24,size:m,disabled:g,notFoundContent:v,status:A,showArrow:y,builtinPlacements:b,dropdownMatchSelectWidth:x,popupMatchSelectWidth:S,direction:E}=e,C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{mode:e}=C;if("combobox"!==e)return e===gt?"combobox":e},[C.mode]),j="multiple"===z||"tags"===z,$=function(e){return null==e||e}(y),H=null!==(n=null!=S?S:x)&&void 0!==n?n:R,{status:G,hasFeedback:Q,isFormItemInput:V,feedbackIcon:W}=p.useContext(ke.$W),X=(0,Me.v)(G,A);let q;q=void 0!==v?v:"combobox"===z?null:(null==I?void 0:I("Select"))||p.createElement(Pe.A,{componentName:"Select"});const{suffixIcon:Y,itemIcon:K,removeIcon:J,clearIcon:Z}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:s,prefixCls:l,showArrow:c,feedbackIcon:u}=e;const d=null!=n?n:p.createElement(dt.A,null),h=e=>p.createElement(p.Fragment,null,!1!==c&&e,s&&u);let f=null;if(void 0!==t)f=h(t);else if(o)f=h(p.createElement(pt.A,{spin:!0}));else{const e=`${l}-suffix`;f=t=>{let{open:n,showSearch:r}=t;return h(n&&r?p.createElement(mt.A,{className:e}):p.createElement(ft.A,{className:e}))}}let m=null;m=void 0!==r?r:a?p.createElement(ut.A,null):null;let g=null;return g=void 0!==i?i:p.createElement(ht.A,null),{clearIcon:d,suffixIcon:f,itemIcon:m,removeIcon:g}}(Object.assign(Object.assign({},C),{multiple:j,hasFeedback:Q,feedbackIcon:W,showArrow:$,prefixCls:N})),ee=(0,pe.A)(C,["suffixIcon","itemIcon"]),te=i()(c||u,{[`${N}-dropdown-${D}`]:"rtl"===D},s,U),ne=(0,Ne.A)(e=>{var t;return null!==(t=null!=L?L:m)&&void 0!==t?t:e}),re=p.useContext(Oe.A),ie=null!=g?g:re,oe=i()({[`${N}-lg`]:"large"===ne,[`${N}-sm`]:"small"===ne,[`${N}-rtl`]:"rtl"===D,[`${N}-borderless`]:!o,[`${N}-in-form-item`]:V},(0,Me.L)(N,X,Q),B,a,s,U),ae=p.useMemo(()=>void 0!==h?h:"rtl"===D?"bottomRight":"bottomLeft",[h,D]),se=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible"};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}(b,O);return F(p.createElement(_e,Object.assign({ref:t,virtual:M,showSearch:null==P?void 0:P.showSearch},ee,{dropdownMatchSelectWidth:H,builtinPlacements:se,transitionName:(0,Te.by)(k,(0,Te.TL)(h),C.transitionName),listHeight:d,listItemHeight:f,mode:z,prefixCls:N,placement:ae,direction:D,inputIcon:Y,menuItemSelectedIcon:K,removeIcon:J,clearIcon:Z,notFoundContent:q,className:oe,getPopupContainer:l||w,dropdownClassName:te,showArrow:Q||$,disabled:ie})))},At=p.forwardRef(vt),yt=(0,Ie.A)(At);At.SECRET_COMBOBOX_MODE_DO_NOT_USE=gt,At.Option=he,At.OptGroup=ue,At._InternalPanelDoNotUseOrYouWillBeFired=yt;const bt=At},43136(e,t,n){"use strict";n.d(t,{K6:()=>l,RQ:()=>s});var r=n(73059),i=n.n(r),o=(n(51281),n(40366));const a=o.createContext(null),s=(e,t)=>{const n=o.useContext(a),r=o.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return i()({[`${e}-compact${s}item`]:!0,[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},l=e=>{let{children:t}=e;return o.createElement(a.Provider,{value:null},t)}},86534(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(73059),i=n.n(r),o=n(43978),a=n(40366);var s=n(81857),l=n(77140),c=n(5147),u=n(28170),d=n(51121),h=n(79218);const f=new c.Mo("antSpinMove",{to:{opacity:1}}),p=new c.Mo("antRotate",{to:{transform:"rotate(405deg)"}}),m=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},(0,h.dF)(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:f,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:p,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"}})}),g=(0,u.A)("Spin",e=>{const t=(0,d.h1)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[m(t)]},{contentHeight:400});let v=null;const A=e=>{const{spinPrefixCls:t,spinning:n=!0,delay:r=0,className:c,rootClassName:u,size:d="default",tip:h,wrapperClassName:f,style:p,children:m,hashId:g}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);in&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r));a.useEffect(()=>{if(n){const e=function(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,l=void 0!==s&&s,c=i.debounceMode,u=void 0===c?void 0:c,d=!1,h=0;function f(){r&&clearTimeout(r)}function p(){for(var n=arguments.length,i=new Array(n),o=0;oe?l?(h=Date.now(),a||(r=setTimeout(u?m:p,e))):p():!0!==a&&(r=setTimeout(u?m:p,void 0===u?e-c:e)))}return p.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},p}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}(r,()=>{b(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}b(!1)},[r,n]);const x=a.useMemo(()=>void 0!==m,[m]),{direction:S}=a.useContext(l.QO),E=i()(t,{[`${t}-sm`]:"small"===d,[`${t}-lg`]:"large"===d,[`${t}-spinning`]:y,[`${t}-show-text`]:!!h,[`${t}-rtl`]:"rtl"===S},c,u,g),C=i()(`${t}-container`,{[`${t}-blur`]:y}),w=(0,o.A)(A,["indicator","prefixCls"]),_=a.createElement("div",Object.assign({},w,{style:p,className:E,"aria-live":"polite","aria-busy":y}),function(e,t){const{indicator:n}=t,r=`${e}-dot`;return null===n?null:(0,s.zO)(n)?(0,s.Ob)(n,{className:i()(n.props.className,r)}):(0,s.zO)(v)?(0,s.Ob)(v,{className:i()(v.props.className,r)}):a.createElement("span",{className:i()(r,`${e}-dot-spin`)},a.createElement("i",{className:`${e}-dot-item`}),a.createElement("i",{className:`${e}-dot-item`}),a.createElement("i",{className:`${e}-dot-item`}),a.createElement("i",{className:`${e}-dot-item`}))}(t,e),h&&x?a.createElement("div",{className:`${t}-text`},h):null);return x?a.createElement("div",Object.assign({},w,{className:i()(`${t}-nested-loading`,f,g)}),y&&a.createElement("div",{key:"loading"},_),a.createElement("div",{className:C,key:"container"},m)):_},y=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=a.useContext(l.QO),r=n("spin",t),[i,o]=g(r),s=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:o});return i(a.createElement(A,Object.assign({},s)))};y.setDefaultIndicator=e=>{v=e};const b=y},78945(e,t,n){"use strict";n.d(t,{A:()=>G});var r=n(61544),i=n(46083),o=n(73059),a=n.n(o),s=n(32549),l=n(40942),c=n(22256),u=n(57889),d=n(40366),h=n(95589),f=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function p(e){return"string"==typeof e}const m=function(e){var t,n=e.className,r=e.prefixCls,i=e.style,o=e.active,m=e.status,g=e.iconPrefix,v=e.icon,A=(e.wrapperStyle,e.stepNumber),y=e.disabled,b=e.description,x=e.title,S=e.subTitle,E=e.progressDot,C=e.stepIcon,w=e.tailContent,_=e.icons,I=e.stepIndex,T=e.onStepClick,M=e.onClick,R=e.render,O=(0,u.A)(e,f),P={};T&&!y&&(P.role="button",P.tabIndex=0,P.onClick=function(e){null==M||M(e),T(I)},P.onKeyDown=function(e){var t=e.which;t!==h.A.ENTER&&t!==h.A.SPACE||T(I)});var N,k,D,L,B=m||"wait",F=a()("".concat(r,"-item"),"".concat(r,"-item-").concat(B),n,(t={},(0,c.A)(t,"".concat(r,"-item-custom"),v),(0,c.A)(t,"".concat(r,"-item-active"),o),(0,c.A)(t,"".concat(r,"-item-disabled"),!0===y),t)),U=(0,l.A)({},i),z=d.createElement("div",(0,s.A)({},O,{className:F,style:U}),d.createElement("div",(0,s.A)({onClick:M},P,{className:"".concat(r,"-item-container")}),d.createElement("div",{className:"".concat(r,"-item-tail")},w),d.createElement("div",{className:"".concat(r,"-item-icon")},(D=a()("".concat(r,"-icon"),"".concat(g,"icon"),(N={},(0,c.A)(N,"".concat(g,"icon-").concat(v),v&&p(v)),(0,c.A)(N,"".concat(g,"icon-check"),!v&&"finish"===m&&(_&&!_.finish||!_)),(0,c.A)(N,"".concat(g,"icon-cross"),!v&&"error"===m&&(_&&!_.error||!_)),N)),L=d.createElement("span",{className:"".concat(r,"-icon-dot")}),k=E?"function"==typeof E?d.createElement("span",{className:"".concat(r,"-icon")},E(L,{index:A-1,status:m,title:x,description:b})):d.createElement("span",{className:"".concat(r,"-icon")},L):v&&!p(v)?d.createElement("span",{className:"".concat(r,"-icon")},v):_&&_.finish&&"finish"===m?d.createElement("span",{className:"".concat(r,"-icon")},_.finish):_&&_.error&&"error"===m?d.createElement("span",{className:"".concat(r,"-icon")},_.error):v||"finish"===m||"error"===m?d.createElement("span",{className:D}):d.createElement("span",{className:"".concat(r,"-icon")},A),C&&(k=C({index:A-1,status:m,title:x,description:b,node:k})),k)),d.createElement("div",{className:"".concat(r,"-item-content")},d.createElement("div",{className:"".concat(r,"-item-title")},x,S&&d.createElement("div",{title:"string"==typeof S?S:void 0,className:"".concat(r,"-item-subtitle")},S)),b&&d.createElement("div",{className:"".concat(r,"-item-description")},b))));return R&&(z=R(z)||null),z};var g=["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,r=void 0===n?"rc-steps":n,i=e.style,o=void 0===i?{}:i,h=e.className,f=(e.children,e.direction),p=void 0===f?"horizontal":f,v=e.type,A=void 0===v?"default":v,y=e.labelPlacement,b=void 0===y?"horizontal":y,x=e.iconPrefix,S=void 0===x?"rc":x,E=e.status,C=void 0===E?"process":E,w=e.size,_=e.current,I=void 0===_?0:_,T=e.progressDot,M=void 0!==T&&T,R=e.stepIcon,O=e.initial,P=void 0===O?0:O,N=e.icons,k=e.onChange,D=e.itemRender,L=e.items,B=void 0===L?[]:L,F=(0,u.A)(e,g),U="navigation"===A,z="inline"===A,j=z||M,$=z?"horizontal":p,H=z?void 0:w,G=j?"vertical":b,Q=a()(r,"".concat(r,"-").concat($),h,(t={},(0,c.A)(t,"".concat(r,"-").concat(H),H),(0,c.A)(t,"".concat(r,"-label-").concat(G),"horizontal"===$),(0,c.A)(t,"".concat(r,"-dot"),!!j),(0,c.A)(t,"".concat(r,"-navigation"),U),(0,c.A)(t,"".concat(r,"-inline"),z),t)),V=function(e){k&&I!==e&&k(e)};return d.createElement("div",(0,s.A)({className:Q,style:o},F),B.filter(function(e){return e}).map(function(e,t){var n=(0,l.A)({},e),i=P+t;return"error"===C&&t===I-1&&(n.className="".concat(r,"-next-error")),n.status||(n.status=i===I?C:i{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:`${i}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},T=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,o=e.paddingXS+e.lineWidth,a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${o}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:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:o+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&: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} ${i}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${e.lineWidth}px ${e.lineType} ${i}`}},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:r}}}}}},M=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:i}=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:2*(n/2+e.controlHeightLG),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:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-i)/2}}}}}},R=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:o}=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 ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},C.L9),{"&::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} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${o}, inset-inline-start ${o}`,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)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},O=e=>{const{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}}}}},P=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:i,dotSize:o,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-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:o,height:o,marginInlineStart:(e.descriptionMaxWidth-o)/2,paddingInlineEnd:0,lineHeight:`${o}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:(o-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:(o-i)/2,width:i,height:i,lineHeight:`${i}px`,background:"none",marginInlineStart:(e.descriptionMaxWidth-i)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,top:0,insetInlineStart:(o-i)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-o)/2,insetInlineStart:0,margin:0,padding:`${o+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(o-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-o)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},N=e=>{const{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"}}}}},k=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:i,colorTextDescription:o}=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:r,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:o,fontSize:i},[`${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"}}}}},D=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=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:`${r}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:r/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${r+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`}}}}};var L;!function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"}(L||(L={}));const B=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,o=`${e}DescriptionColor`,a=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},F=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none"},[`${r}-icon, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[`${r}-icon`]:{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}},[`${r}-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:'""'}},[`${r}-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:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},B(L.wait,e)),B(L.process,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),B(L.finish,e)),B(L.error,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},U=e=>{const{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"}}}}},z=e=>{const{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,C.dF)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),F(e)),U(e)),I(e)),k(e)),D(e)),M(e)),P(e)),R(e)),N(e)),O(e)),T(e))}},j=(0,w.A)("Steps",e=>{const{wireframe:t,colorTextDisabled:n,controlHeightLG:r,colorTextLightSolid:i,colorText:o,colorPrimary:a,colorTextLabel:s,colorTextDescription:l,colorTextQuaternary:c,colorFillContent:u,controlItemBgActive:d,colorError:h,colorBgContainer:f,colorBorderSecondary:p,colorSplit:m}=e,g=(0,_.h1)(e,{processIconColor:i,processTitleColor:o,processDescriptionColor:o,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:m,waitIconColor:t?n:s,waitTitleColor:l,waitDescriptionColor:l,waitTailColor:m,waitIconBgColor:t?f:u,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:a,finishTitleColor:o,finishDescriptionColor:l,finishTailColor:a,finishIconBgColor:t?f:d,finishIconBorderColor:t?a:d,finishDotColor:a,errorIconColor:i,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:m,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:a,stepsProgressSize:r,inlineDotSize:6,inlineTitleColor:c,inlineTailColor:p});return[z(g)]},e=>{const{colorTextDisabled:t,fontSize:n,controlHeightSM:r,controlHeight:i,controlHeightLG:o,fontSizeHeading3:a}=e;return{titleLineHeight:i,customIconSize:i,customIconTop:0,customIconFontSize:r,iconSize:i,iconTop:-.5,iconFontSize:n,iconSizeSM:a,dotSize:i/4,dotCurrentSize:o/4,navArrowColor:t,navContentMaxWidth:"auto",descriptionMaxWidth:140}});var $=n(51281);const H=e=>{const{percent:t,size:n,className:o,rootClassName:s,direction:l,items:c,responsive:u=!0,current:h=0,children:f}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);iu&&m?"vertical":l,[m,l]),w=(0,b.A)(n),_=g("steps",e.prefixCls),[I,T]=j(_),M="inline"===e.type,R=g("",e.iconPrefix),O=function(e,t){return e||function(e){return e.filter(e=>e)}((0,$.A)(t).map(e=>{if(d.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null}))}(c,f),P=M?void 0:t,N=a()({[`${_}-rtl`]:"rtl"===v,[`${_}-with-progress`]:void 0!==P},o,s,T),k={finish:d.createElement(r.A,{className:`${_}-finish-icon`}),error:d.createElement(i.A,{className:`${_}-error-icon`})};return I(d.createElement(A,Object.assign({icons:k},p,{current:h,size:w,items:O,itemRender:M?(e,t)=>e.description?d.createElement(E.A,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;if("process"===n&&void 0!==P){const e="small"===w?32:40;return d.createElement("div",{className:`${_}-progress-icon`},d.createElement(S.A,{type:"circle",percent:P,size:e,strokeWidth:4,format:()=>null}),t)}return t},direction:C,prefixCls:_,iconPrefix:R,className:N})))};H.Step=A.Step;const G=H},91731(e,t,n){"use strict";function r(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function i(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},r(e,o,t)),i(n,o,t))}}n.d(t,{G:()=>o})},79218(e,t,n){"use strict";n.d(t,{K8:()=>u,L9:()=>r,Nk:()=>o,av:()=>s,dF:()=>i,jk:()=>c,t6:()=>a,vj:()=>l});const r={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),o=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),l=(e,t)=>{const{fontFamily:n,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},c(e))})},9846(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},56703(e,t,n){"use strict";n.d(t,{b:()=>o});const r=e=>({animationDuration:e,animationFillMode:"both"}),i=e=>({animationDuration:e,animationFillMode:"both"}),o=function(e,t,n,o){const a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},r(o)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},i(o)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},22916(e,t,n){"use strict";n.d(t,{YU:()=>l,_j:()=>p,nP:()=>s,ox:()=>o,vR:()=>a});var r=n(5147),i=n(56703);const o=new r.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new r.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new r.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new r.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),f={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:c,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:h}},p=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=f[t];return[(0,i.b)(r,o,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},82986(e,t,n){"use strict";n.d(t,{aB:()=>A,nF:()=>o});var r=n(5147),i=n(56703);const o=new r.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new r.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new r.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),h=new r.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f=new r.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),p=new r.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),m=new r.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),g=new r.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),v={zoom:{inKeyframes:o,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:d,outKeyframes:h},"zoom-right":{inKeyframes:f,outKeyframes:p},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:m,outKeyframes:g}},A=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=v[t];return[(0,i.b)(r,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},91479(e,t,n){"use strict";n.d(t,{Zs:()=>i,Ay:()=>s,Di:()=>o});const r=(e,t,n,r,i)=>{const o=e/2,a=o,s=1*n/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-t*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),d=2*o-c,h=u,f=2*o-s,p=l,m=2*o-0,g=a,v=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),A=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${A}px 100%, 50% ${A}px, ${2*o-A}px 100%, ${A}px 100%)`,`path('M 0 ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${t} ${t} 0 0 1 ${d} ${h} L ${f} ${p} A ${n} ${n} 0 0 0 ${m} ${g} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:v,height:v,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"}}},i=8;function o(e){const t=i,{contentRadius:n,limitVerticalRadius:r}=e,o=n>12?n+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:r?t:o}}function a(e,t){return e?t:{}}function s(e,t){const{componentCls:n,sizePopupArrow:i,borderRadiusXS:s,borderRadiusOuter:l,boxShadowPopoverArrow:c}=e,{colorBg:u,contentRadius:d=e.borderRadiusLG,limitVerticalRadius:h,arrowDistance:f=0,arrowPlacement:p={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:g}=o({contentRadius:d,limitVerticalRadius:h});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},r(i,s,l,u,c)),{"&:before":{background:u}})]},a(!!p.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:f,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),a(!!p.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:f,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}}})),a(!!p.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:f},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m}})),a(!!p.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:f},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m}}))}}},17054(e,t,n){"use strict";n.d(t,{A:()=>Wr});var r=n(46083),i=n(32549),o=n(40366);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var s=n(70245),l=function(e,t){return o.createElement(s.A,(0,i.A)({},e,{ref:t,icon:a}))};const c=o.forwardRef(l),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var d=function(e,t){return o.createElement(s.A,(0,i.A)({},e,{ref:t,icon:u}))};const h=o.forwardRef(d);var f=n(73059),p=n.n(f),m=n(22256),g=n(40942),v=n(34355),A=n(35739),y=n(57889),b=n(19633),x=n(5522),S=n(7041);const E=(0,o.createContext)(null);var C=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,a=e.id,s=e.active,l=e.tabKey,c=e.children;return o.createElement("div",{id:a&&"".concat(a,"-panel-").concat(l),role:"tabpanel",tabIndex:s?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(l),"aria-hidden":!s,style:i,className:p()(n,s&&"".concat(n,"-active"),r),ref:t},c)});const w=C;var _=["key","forceRender","style","className"];function I(e){var t=e.id,n=e.activeKey,r=e.animated,a=e.tabPosition,s=e.destroyInactiveTabPane,l=o.useContext(E),c=l.prefixCls,u=l.tabs,d=r.tabPane,h="".concat(c,"-tabpane");return o.createElement("div",{className:p()("".concat(c,"-content-holder"))},o.createElement("div",{className:p()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),(0,m.A)({},"".concat(c,"-content-animated"),d))},u.map(function(e){var a=e.key,l=e.forceRender,c=e.style,u=e.className,f=(0,y.A)(e,_),m=a===n;return o.createElement(S.Ay,(0,i.A)({key:a,visible:m,forceRender:l,removeOnLeave:!!s,leavedClassName:"".concat(h,"-hidden")},r.tabPaneMotion),function(e,n){var r=e.style,s=e.className;return o.createElement(w,(0,i.A)({},f,{prefixCls:h,id:t,tabKey:a,animated:d,active:m,style:(0,g.A)((0,g.A)({},c),r),className:p()(u,s),ref:n}))})})))}var T=n(53563),M=n(86141),R=n(69211),O=n(77230),P=n(81834),N={width:0,height:0,left:0,top:0};function k(e,t){var n=o.useRef(e),r=o.useState({}),i=(0,v.A)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var D=Math.pow(.995,20),L=n(34148);function B(e){var t=(0,o.useState)(0),n=(0,v.A)(t,2),r=n[0],i=n[1],a=(0,o.useRef)(0),s=(0,o.useRef)();return s.current=e,(0,L.o)(function(){var e;null===(e=s.current)||void 0===e||e.call(s)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}var F={width:0,height:0,left:0,top:0,right:0};function U(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function z(e){return String(e).replace(/"/g,"TABS_DQ")}function j(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}const $=o.forwardRef(j),H=o.forwardRef(function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var s={};return"object"!==(0,A.A)(a)||o.isValidElement(a)?s.right=a:s=a,"right"===r&&(n=s.right),"left"===r&&(n=s.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null});var G=n(7980),Q=n(95589),V=Q.A.ESC,W=Q.A.TAB;const X=(0,o.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,a=(0,o.useMemo)(function(){return"function"==typeof n?n():n},[n]),s=(0,P.K4)(t,null==a?void 0:a.ref);return o.createElement(o.Fragment,null,r&&o.createElement("div",{className:"".concat(i,"-arrow")}),o.cloneElement(a,{ref:(0,P.f3)(a)?s:void 0}))});var q={adjustX:1,adjustY:1},Y=[0,0];const K={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-4],targetOffset:Y},top:{points:["bc","tc"],overflow:q,offset:[0,-4],targetOffset:Y},topRight:{points:["br","tr"],overflow:q,offset:[0,-4],targetOffset:Y},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,4],targetOffset:Y},bottom:{points:["tc","bc"],overflow:q,offset:[0,4],targetOffset:Y},bottomRight:{points:["tr","br"],overflow:q,offset:[0,4],targetOffset:Y}};var J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Z(e,t){var n,r=e.arrow,a=void 0!==r&&r,s=e.prefixCls,l=void 0===s?"rc-dropdown":s,c=e.transitionName,u=e.animation,d=e.align,h=e.placement,f=void 0===h?"bottomLeft":h,g=e.placements,A=void 0===g?K:g,b=e.getPopupContainer,x=e.showAction,S=e.hideAction,E=e.overlayClassName,C=e.overlayStyle,w=e.visible,_=e.trigger,I=void 0===_?["hover"]:_,T=e.autoFocus,M=e.overlay,R=e.children,N=e.onVisibleChange,k=(0,y.A)(e,J),D=o.useState(),L=(0,v.A)(D,2),B=L[0],F=L[1],U="visible"in e?w:B,z=o.useRef(null),j=o.useRef(null),$=o.useRef(null);o.useImperativeHandle(t,function(){return z.current});var H=function(e){F(e),null==N||N(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,s=o.useRef(!1),l=function(){var e,i;t&&(null===(e=n.current)||void 0===e||null===(i=e.focus)||void 0===i||i.call(e),null==r||r(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),s.current=!0,0))},u=function(e){switch(e.keyCode){case V:l();break;case W:var t=!1;s.current||(t=c()),t?e.preventDefault():l()}};o.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&(0,O.A)(c,3),function(){window.removeEventListener("keydown",u),s.current=!1}):function(){s.current=!1}},[t])}({visible:U,triggerRef:$,onVisibleChange:H,autoFocus:T,overlayRef:j});var Q,q,Y,Z=function(){return o.createElement(X,{ref:j,overlay:M,prefixCls:l,arrow:a})},ee=o.cloneElement(R,{className:p()(null===(n=R.props)||void 0===n?void 0:n.className,U&&(Q=e.openClassName,void 0!==Q?Q:"".concat(l,"-open"))),ref:(0,P.f3)(R)?(0,P.K4)($,R.ref):void 0}),te=S;return te||-1===I.indexOf("contextMenu")||(te=["click"]),o.createElement(G.A,(0,i.A)({builtinPlacements:A},k,{prefixCls:l,ref:z,popupClassName:p()(E,(0,m.A)({},"".concat(l,"-show-arrow"),a)),popupStyle:C,action:I,showAction:x,hideAction:te,popupPlacement:f,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:U,stretch:(q=e.minOverlayWidthMatchTrigger,Y=e.alignPoint,("minOverlayWidthMatchTrigger"in e?q:!Y)?"minWidth":""),popup:"function"==typeof M?Z:Z(),onPopupVisibleChange:H,onPopupClick:function(t){var n=e.onOverlayClick;F(!1),n&&n(t)},getPopupContainer:b}),ee)}const ee=o.forwardRef(Z);var te=n(91860),ne=n(3455),re=n(76212),ie=n(81211),oe=o.createContext(null);function ae(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function se(e){return ae(o.useContext(oe),e)}var le=n(11489),ce=["children","locked"],ue=o.createContext(null);function de(e){var t=e.children,n=e.locked,r=(0,y.A)(e,ce),i=o.useContext(ue),a=(0,le.A)(function(){return e=i,t=r,n=(0,g.A)({},e),Object.keys(t).forEach(function(e){var r=t[e];void 0!==r&&(n[e]=r)}),n;var e,t,n},[i,r],function(e,t){return!(n||e[0]===t[0]&&(0,ie.A)(e[1],t[1],!0))});return o.createElement(ue.Provider,{value:a},t)}var he=[],fe=o.createContext(null);function pe(){return o.useContext(fe)}var me=o.createContext(he);function ge(e){var t=o.useContext(me);return o.useMemo(function(){return void 0!==e?[].concat((0,T.A)(t),[e]):t},[t,e])}var ve=o.createContext(null);const Ae=o.createContext({});var ye=n(99682);function be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ye.A)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var xe=Q.A.LEFT,Se=Q.A.RIGHT,Ee=Q.A.UP,Ce=Q.A.DOWN,we=Q.A.ENTER,_e=Q.A.ESC,Ie=Q.A.HOME,Te=Q.A.END,Me=[Ee,Ce,xe,Se];function Re(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,T.A)(e.querySelectorAll("*")).filter(function(e){return be(e,t)});return be(e,t)&&n.unshift(e),n}(e,!0).filter(function(e){return t.has(e)})}function Oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=Re(e,t),o=i.length,a=i.findIndex(function(e){return n===e});return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}var Pe="__RC_UTIL_PATH_SPLIT__",Ne=function(e){return e.join(Pe)},ke="rc-menu-more";function De(e){var t=o.useRef(e);t.current=e;var n=o.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),i=0;i=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function un(e){var t,n,r;if(on.isWindow(e)||9===e.nodeType){var i=on.getWindow(e);t={left:on.getWindowScrollLeft(i),top:on.getWindowScrollTop(i)},n=on.viewportWidth(i),r=on.viewportHeight(i)}else t=on.offset(e),n=on.outerWidth(e),r=on.outerHeight(e);return t.width=n,t.height=r,t}function dn(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function hn(e,t,n,r,i){var o=dn(t,n[1]),a=dn(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function fn(e,t,n){return e.leftn.right}function pn(e,t,n){return e.topn.bottom}function mn(e,t,n){var r=[];return on.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function gn(e,t){return e[t]=-e[t],e}function vn(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function An(e,t){e[0]=vn(e[0],t.width),e[1]=vn(e[1],t.height)}function yn(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;o=[].concat(o),a=[].concat(a);var c={},u=0,d=cn(l,!(!(s=s||{})||!s.alwaysByViewport)),h=un(l);An(o,h),An(a,t);var f=hn(h,t,i,o,a),p=on.merge(h,f);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&fn(f,h,d)){var m=mn(i,/[lr]/gi,{l:"r",r:"l"}),g=gn(o,0),v=gn(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),on.mix(i,o)}(f,h,d,c))}return p.width!==h.width&&on.css(l,"width",on.width(l)+p.width-h.width),p.height!==h.height&&on.css(l,"height",on.height(l)+p.height-h.height),on.offset(l,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:c}}function bn(e,t,n){var r=n.target||t,i=un(r),o=!function(e,t){var n=cn(e,t),r=un(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return yn(e,i,n,o)}bn.__getOffsetParent=sn,bn.__getVisibleRectForElement=cn;const xn=function(e,t){var n=o.useRef(!1),r=o.useRef(null);function i(){window.clearTimeout(r.current)}return[function o(a){if(i(),n.current&&!0!==a)r.current=window.setTimeout(function(){n.current=!1,o()},t);else{if(!1===e(a))return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}},function(){n.current=!1,i()}]};(Object.getOwnPropertyDescriptor(xn,"name")||{}).writable||Object.defineProperty(xn,"name",{value:"default",configurable:!0});var Sn=n(78944);function En(e,t){var n=null,r=null,i=new Sn.A(function(e){var i=(0,v.A)(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=Math.floor(a),c=Math.floor(s);n===l&&r===c||Promise.resolve().then(function(){t({width:l,height:c})}),n=l,r=c}});return e&&i.observe(e),function(){i.disconnect()}}function Cn(e){return"function"!=typeof e?null:e()}function wn(e){return"object"===(0,A.A)(e)&&e?e:null}var _n=function(e,t){var n=e.children,r=e.disabled,i=e.target,a=e.align,s=e.onAlign,l=e.monitorWindowResize,c=e.monitorBufferTime,u=void 0===c?0:c,d=o.useRef({}),h=o.useRef(),f=o.Children.only(n),p=o.useRef({});p.current.disabled=r,p.current.target=i,p.current.align=a,p.current.onAlign=s;var m=xn(function(){var e=p.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign,o=h.current;if(!t&&n&&o){var a,s=Cn(n),l=wn(n);d.current.element=s,d.current.point=l,d.current.align=r;var c=document.activeElement;return s&&(0,ye.A)(s)?a=bn(o,s,r):l&&(a=function(e,t,n){var r,i,o=on.getDocument(e),a=o.defaultView||o.parentWindow,s=on.getWindowScrollLeft(a),l=on.getWindowScrollTop(a),c=on.viewportWidth(a),u=on.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},h=r>=0&&r<=s+c&&i>=0&&i<=l+u,f=[n.points[0],"cc"];return yn(e,d,bt(bt({},n),{},{points:f}),h)}(o,l,r)),function(e,t){e!==document.activeElement&&(0,dt.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(c,o),i&&a&&i(o,a),!0}return!1},u),g=(0,v.A)(m,2),A=g[0],y=g[1],b=o.useState(),x=(0,v.A)(b,2),S=x[0],E=x[1],C=o.useState(),w=(0,v.A)(C,2),_=w[0],I=w[1];return(0,L.A)(function(){E(Cn(i)),I(wn(i))}),o.useEffect(function(){var e,t;d.current.element===S&&((e=d.current.point)===(t=_)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,ie.A)(d.current.align,a)||A()}),o.useEffect(function(){return En(h.current,A)},[h.current]),o.useEffect(function(){return En(S,A)},[S]),o.useEffect(function(){r?y():A()},[r]),o.useEffect(function(){if(l)return(0,ft.A)(window,"resize",A).remove},[l]),o.useEffect(function(){return function(){y()}},[]),o.useImperativeHandle(t,function(){return{forceAlign:function(){return A(!0)}}}),o.isValidElement(f)&&(f=o.cloneElement(f,{ref:(0,P.K4)(f.ref,h)})),f},In=o.forwardRef(_n);In.displayName="Align";const Tn=In;var Mn=n(43980),Rn=n(1888),On=n(94570),Pn=["measure","alignPre","align",null,"motion"];const Nn=function(e,t){var n=(0,On.A)(null),r=(0,v.A)(n,2),i=r[0],a=r[1],s=(0,o.useRef)();function l(e){a(e,!0)}function c(){O.A.cancel(s.current)}return(0,o.useEffect)(function(){l("measure")},[e]),(0,o.useEffect)(function(){"measure"===i&&t(),i&&(s.current=(0,O.A)((0,Rn.A)((0,Mn.A)().mark(function e(){var t,n;return(0,Mn.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t=Pn.indexOf(i),(n=Pn[t+1])&&-1!==t&&l(n);case 3:case"end":return e.stop()}},e)}))))},[i]),(0,o.useEffect)(function(){return function(){c()}},[]),[i,function(e){c(),s.current=(0,O.A)(function(){l(function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e}),null==e||e()})}]};(Object.getOwnPropertyDescriptor(Nn,"name")||{}).writable||Object.defineProperty(Nn,"name",{value:"default",configurable:!0});const kn=function(e){var t=o.useState({width:0,height:0}),n=(0,v.A)(t,2),r=n[0],i=n[1];return[o.useMemo(function(){var t={};if(e){var n=r.width,i=r.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t},[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),o=r.width,a=r.height;Math.abs(t-o)<1&&Math.abs(n-a)<1&&(t=o,n=a),i({width:t,height:n})}]};(Object.getOwnPropertyDescriptor(kn,"name")||{}).writable||Object.defineProperty(kn,"name",{value:"default",configurable:!0});var Dn=o.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,a=e.className,s=e.style,l=e.children,c=e.zIndex,u=e.stretch,d=e.destroyPopupOnHide,h=e.forceRender,f=e.align,m=e.point,A=e.getRootDomNode,y=e.getClassNameFromAlign,b=e.onAlign,x=e.onMouseEnter,E=e.onMouseLeave,C=e.onMouseDown,w=e.onTouchStart,_=e.onClick,I=(0,o.useRef)(),T=(0,o.useRef)(),M=(0,o.useState)(),R=(0,v.A)(M,2),O=R[0],P=R[1],N=kn(u),k=(0,v.A)(N,2),D=k[0],B=k[1],F=Nn(n,function(){u&&B(A())}),U=(0,v.A)(F,2),z=U[0],j=U[1],$=(0,o.useState)(0),H=(0,v.A)($,2),G=H[0],Q=H[1],V=(0,o.useRef)();function W(){var e;null===(e=I.current)||void 0===e||e.forceAlign()}function X(e,t){var n=y(t);O!==n&&P(n),Q(function(e){return e+1}),"align"===z&&(null==b||b(e,t))}(0,L.A)(function(){"alignPre"===z&&Q(0)},[z]),(0,L.A)(function(){"align"===z&&(G<3?W():j(function(){var e;null===(e=V.current)||void 0===e||e.call(V)}))},[G]);var q=(0,g.A)({},vt(e));function Y(){return new Promise(function(e){V.current=e})}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(e){var t=q[e];q[e]=function(e,n){return j(),null==t?void 0:t(e,n)}}),o.useEffect(function(){q.motionName||"motion"!==z||j()},[q.motionName,z]),o.useImperativeHandle(t,function(){return{forceAlign:W,getElement:function(){return T.current}}});var K=(0,g.A)((0,g.A)({},D),{},{zIndex:c,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:n||"stable"===z?void 0:"none"},s),J=!0;null==f||!f.points||"align"!==z&&"stable"!==z||(J=!1);var Z=l;return o.Children.count(l)>1&&(Z=o.createElement("div",{className:"".concat(r,"-content")},l)),o.createElement(S.Ay,(0,i.A)({visible:n,ref:T,leavedClassName:"".concat(r,"-hidden")},q,{onAppearPrepare:Y,onEnterPrepare:Y,removeOnLeave:d,forceRender:h}),function(e,t){var n=e.className,i=e.style,s=p()(r,a,O,n);return o.createElement(Tn,{target:m||A,key:"popup",ref:I,monitorWindowResize:!0,disabled:J,align:f,onAlign:X},o.createElement("div",{ref:t,className:s,onMouseEnter:x,onMouseLeave:E,onMouseDownCapture:C,onTouchStartCapture:w,onClick:_,style:(0,g.A)((0,g.A)({},i),K)},Z))})});Dn.displayName="PopupInner";const Ln=Dn;var Bn=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,a=e.zIndex,s=e.children,l=e.mobile,c=(l=void 0===l?{}:l).popupClassName,u=l.popupStyle,d=l.popupMotion,h=void 0===d?{}:d,f=l.popupRender,m=e.onClick,v=o.useRef();o.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return v.current}}});var A=(0,g.A)({zIndex:a},u),y=s;return o.Children.count(s)>1&&(y=o.createElement("div",{className:"".concat(n,"-content")},s)),f&&(y=f(y)),o.createElement(S.Ay,(0,i.A)({visible:r,ref:v,removeOnLeave:!0},h),function(e,t){var r=e.className,i=e.style,a=p()(n,c,r);return o.createElement("div",{ref:t,className:a,onClick:m,style:(0,g.A)((0,g.A)({},i),A)},y)})});Bn.displayName="MobilePopupInner";const Fn=Bn;var Un=["visible","mobile"],zn=o.forwardRef(function(e,t){var n=e.visible,r=e.mobile,a=(0,y.A)(e,Un),s=(0,o.useState)(n),l=(0,v.A)(s,2),c=l[0],u=l[1],d=(0,o.useState)(!1),h=(0,v.A)(d,2),f=h[0],p=h[1],m=(0,g.A)((0,g.A)({},a),{},{visible:c});(0,o.useEffect)(function(){u(n),n&&r&&p((0,b.A)())},[n,r]);var A=f?o.createElement(Fn,(0,i.A)({},m,{mobile:r,ref:t})):o.createElement(Ln,(0,i.A)({},m,{ref:t}));return o.createElement("div",null,o.createElement(At,m),A)});zn.displayName="Popup";const jn=zn,$n=o.createContext(null);function Hn(){}var Gn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const Qn=(Vn=mt,Wn=function(e){(0,ze.A)(n,e);var t=(0,je.A)(n);function n(e){var r,a;return(0,Fe.A)(this,n),r=t.call(this,e),(0,m.A)((0,ut.A)(r),"popupRef",o.createRef()),(0,m.A)((0,ut.A)(r),"triggerRef",o.createRef()),(0,m.A)((0,ut.A)(r),"portalContainer",void 0),(0,m.A)((0,ut.A)(r),"attachId",void 0),(0,m.A)((0,ut.A)(r),"clickOutsideHandler",void 0),(0,m.A)((0,ut.A)(r),"touchOutsideHandler",void 0),(0,m.A)((0,ut.A)(r),"contextMenuOutsideHandler1",void 0),(0,m.A)((0,ut.A)(r),"contextMenuOutsideHandler2",void 0),(0,m.A)((0,ut.A)(r),"mouseDownTimeout",void 0),(0,m.A)((0,ut.A)(r),"focusTime",void 0),(0,m.A)((0,ut.A)(r),"preClickTime",void 0),(0,m.A)((0,ut.A)(r),"preTouchTime",void 0),(0,m.A)((0,ut.A)(r),"delayTimer",void 0),(0,m.A)((0,ut.A)(r),"hasPopupMouseDown",void 0),(0,m.A)((0,ut.A)(r),"onMouseEnter",function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)}),(0,m.A)((0,ut.A)(r),"onMouseMove",function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)}),(0,m.A)((0,ut.A)(r),"onMouseLeave",function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)}),(0,m.A)((0,ut.A)(r),"onPopupMouseEnter",function(){r.clearDelayTimer()}),(0,m.A)((0,ut.A)(r),"onPopupMouseLeave",function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,dt.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)}),(0,m.A)((0,ut.A)(r),"onFocus",function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))}),(0,m.A)((0,ut.A)(r),"onMouseDown",function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()}),(0,m.A)((0,ut.A)(r),"onTouchStart",function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()}),(0,m.A)((0,ut.A)(r),"onBlur",function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)}),(0,m.A)((0,ut.A)(r),"onContextMenu",function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)}),(0,m.A)((0,ut.A)(r),"onContextMenuClose",function(){r.isContextMenuToShow()&&r.close()}),(0,m.A)((0,ut.A)(r),"onClick",function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)}),(0,m.A)((0,ut.A)(r),"onPopupMouseDown",function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout(function(){r.hasPopupMouseDown=!1},0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)}),(0,m.A)((0,ut.A)(r),"onDocumentClick",function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),i=r.getPopupDomNode();(0,dt.A)(n,t)&&!r.isContextMenuOnly()||(0,dt.A)(i,t)||r.hasPopupMouseDown||r.close()}}),(0,m.A)((0,ut.A)(r),"getRootDomNode",function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,ht.Ay)(r.triggerRef.current);if(t)return t}catch(e){}return re.findDOMNode((0,ut.A)(r))}),(0,m.A)((0,ut.A)(r),"getPopupClassNameFromAlign",function(e){var t=[],n=r.props,i=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,l=n.getPopupClassNameFromAlign;return i&&o&&t.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&(E.motionAppear=!1);var C=E.onVisibleChanged;return E.onVisibleChanged=function(e){return p.current||e||b(!0),null==C?void 0:C(e)},y?null:o.createElement(de,{mode:s,locked:!p.current},o.createElement(S.Ay,(0,i.A)({visible:x},E,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(e){var n=e.className,r=e.style;return o.createElement(it,{id:t,className:n,style:r},a)}))}var tr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],nr=["active"],rr=function(e){var t,n=e.style,r=e.className,a=e.title,s=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,u=e.children,d=e.itemIcon,h=e.expandIcon,f=e.popupClassName,A=e.popupOffset,b=e.onClick,x=e.onMouseEnter,S=e.onMouseLeave,E=e.onTitleClick,C=e.onTitleMouseEnter,w=e.onTitleMouseLeave,_=(0,y.A)(e,tr),I=se(s),T=o.useContext(ue),M=T.prefixCls,R=T.mode,O=T.openKeys,P=T.disabled,N=T.overflowDisabled,k=T.activeKey,D=T.selectedKeys,L=T.itemIcon,B=T.expandIcon,F=T.onItemClick,U=T.onOpenChange,z=T.onActive,j=o.useContext(Ae)._internalRenderSubMenuItem,$=o.useContext(ve).isSubPathKey,H=ge(),G="".concat(M,"-submenu"),Q=P||l,V=o.useRef(),W=o.useRef(),X=d||L,q=h||B,Y=O.includes(s),K=!N&&Y,J=$(D,s),Z=He(s,Q,C,w),ee=Z.active,ne=(0,y.A)(Z,nr),re=o.useState(!1),ie=(0,v.A)(re,2),oe=ie[0],ae=ie[1],le=function(e){Q||ae(e)},ce=o.useMemo(function(){return ee||"inline"!==R&&(oe||$([k],s))},[R,ee,k,oe,s,$]),he=Ge(H.length),fe=De(function(e){null==b||b(We(e)),F(e)}),pe=I&&"".concat(I,"-popup"),me=o.createElement("div",(0,i.A)({role:"menuitem",style:he,className:"".concat(G,"-title"),tabIndex:Q?null:-1,ref:V,title:"string"==typeof a?a:null,"data-menu-id":N&&I?null:I,"aria-expanded":K,"aria-haspopup":!0,"aria-controls":pe,"aria-disabled":Q,onClick:function(e){Q||(null==E||E({key:s,domEvent:e}),"inline"===R&&U(s,!Y))},onFocus:function(){z(s)}},ne),a,o.createElement(Qe,{icon:"horizontal"!==R?q:null,props:(0,g.A)((0,g.A)({},e),{},{isOpen:K,isSubMenu:!0})},o.createElement("i",{className:"".concat(G,"-arrow")}))),ye=o.useRef(R);if("inline"!==R&&H.length>1?ye.current="vertical":ye.current=R,!N){var be=ye.current;me=o.createElement(Zn,{mode:be,prefixCls:G,visible:!c&&K&&"inline"!==R,popupClassName:f,popupOffset:A,popup:o.createElement(de,{mode:"horizontal"===be?"vertical":be},o.createElement(it,{id:pe,ref:W},u)),disabled:Q,onVisibleChange:function(e){"inline"!==R&&U(s,e)}},me)}var xe=o.createElement(te.A.Item,(0,i.A)({role:"none"},_,{component:"li",style:n,className:p()(G,"".concat(G,"-").concat(R),r,(t={},(0,m.A)(t,"".concat(G,"-open"),K),(0,m.A)(t,"".concat(G,"-active"),ce),(0,m.A)(t,"".concat(G,"-selected"),J),(0,m.A)(t,"".concat(G,"-disabled"),Q),t)),onMouseEnter:function(e){le(!0),null==x||x({key:s,domEvent:e})},onMouseLeave:function(e){le(!1),null==S||S({key:s,domEvent:e})}}),me,!N&&o.createElement(er,{id:pe,open:K,keyPath:H},u));return j&&(xe=j(xe,e,{selected:J,active:ce,open:K,disabled:Q})),o.createElement(de,{onItemClick:fe,mode:"horizontal"===R?"vertical":R,itemIcon:X,expandIcon:q},xe)};function ir(e){var t,n=e.eventKey,r=e.children,i=ge(n),a=st(r,i),s=pe();return o.useEffect(function(){if(s)return s.registerPath(n,i),function(){s.unregisterPath(n,i)}},[i]),t=s?a:o.createElement(rr,e,a),o.createElement(me.Provider,{value:i},t)}var or=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ar=[],sr=o.forwardRef(function(e,t){var n,r,a=e,s=a.prefixCls,l=void 0===s?"rc-menu":s,c=a.rootClassName,u=a.style,d=a.className,h=a.tabIndex,f=void 0===h?0:h,A=a.items,b=a.children,S=a.direction,E=a.id,C=a.mode,w=void 0===C?"vertical":C,_=a.inlineCollapsed,I=a.disabled,M=a.disabledOverflow,R=a.subMenuOpenDelay,P=void 0===R?.1:R,N=a.subMenuCloseDelay,k=void 0===N?.1:N,D=a.forceSubMenuRender,L=a.defaultOpenKeys,B=a.openKeys,F=a.activeKey,U=a.defaultActiveFirst,z=a.selectable,j=void 0===z||z,$=a.multiple,H=void 0!==$&&$,G=a.defaultSelectedKeys,Q=a.selectedKeys,V=a.onSelect,W=a.onDeselect,X=a.inlineIndent,q=void 0===X?24:X,Y=a.motion,K=a.defaultMotions,J=a.triggerSubMenuAction,Z=void 0===J?"hover":J,ee=a.builtinPlacements,ne=a.itemIcon,se=a.expandIcon,le=a.overflowedIndicator,ce=void 0===le?"...":le,ue=a.overflowedIndicatorPopupClassName,he=a.getPopupContainer,pe=a.onClick,me=a.onOpenChange,ge=a.onKeyDown,ye=(a.openAnimation,a.openTransitionName,a._internalRenderMenuItem),be=a._internalRenderSubMenuItem,Fe=(0,y.A)(a,or),Ue=o.useMemo(function(){return ct(b,A,ar)},[b,A]),ze=o.useState(!1),je=(0,v.A)(ze,2),$e=je[0],He=je[1],Ge=o.useRef(),Qe=function(e){var t=(0,x.A)(e,{value:e}),n=(0,v.A)(t,2),r=n[0],i=n[1];return o.useEffect(function(){Be+=1;var e="".concat(Le,"-").concat(Be);i("rc-menu-uuid-".concat(e))},[]),r}(E),Ve="rtl"===S,Xe=(0,x.A)(L,{value:B,postState:function(e){return e||ar}}),qe=(0,v.A)(Xe,2),Ye=qe[0],Ke=qe[1],Je=function(e){function t(){Ke(e),null==me||me(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,re.flushSync)(t):t()},Ze=o.useState(Ye),tt=(0,v.A)(Ze,2),nt=tt[0],rt=tt[1],it=o.useRef(!1),ot=o.useMemo(function(){return"inline"!==w&&"vertical"!==w||!_?[w,!1]:["vertical",_]},[w,_]),at=(0,v.A)(ot,2),st=at[0],lt=at[1],ut="inline"===st,dt=o.useState(st),ht=(0,v.A)(dt,2),ft=ht[0],pt=ht[1],mt=o.useState(lt),gt=(0,v.A)(mt,2),vt=gt[0],At=gt[1];o.useEffect(function(){pt(st),At(lt),it.current&&(ut?Ke(nt):Je(ar))},[st,lt]);var yt=o.useState(0),bt=(0,v.A)(yt,2),xt=bt[0],St=bt[1],Et=xt>=Ue.length-1||"horizontal"!==ft||M;o.useEffect(function(){ut&&rt(Ye)},[Ye]),o.useEffect(function(){return it.current=!0,function(){it.current=!1}},[]);var Ct=function(){var e=o.useState({}),t=(0,v.A)(e,2)[1],n=(0,o.useRef)(new Map),r=(0,o.useRef)(new Map),i=o.useState([]),a=(0,v.A)(i,2),s=a[0],l=a[1],c=(0,o.useRef)(0),u=(0,o.useRef)(!1),d=(0,o.useCallback)(function(e,i){var o=Ne(i);r.current.set(o,e),n.current.set(e,o),c.current+=1;var a,s=c.current;a=function(){s===c.current&&(u.current||t({}))},Promise.resolve().then(a)},[]),h=(0,o.useCallback)(function(e,t){var i=Ne(t);r.current.delete(i),n.current.delete(e)},[]),f=(0,o.useCallback)(function(e){l(e)},[]),p=(0,o.useCallback)(function(e,t){var r=(n.current.get(e)||"").split(Pe);return t&&s.includes(r[0])&&r.unshift(ke),r},[s]),m=(0,o.useCallback)(function(e,t){return e.some(function(e){return p(e,!0).includes(t)})},[p]),g=(0,o.useCallback)(function(e){var t="".concat(n.current.get(e)).concat(Pe),i=new Set;return(0,T.A)(r.current.keys()).forEach(function(e){e.startsWith(t)&&i.add(r.current.get(e))}),i},[]);return o.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:h,refreshOverflowKeys:f,isSubPathKey:m,getKeyPath:p,getKeys:function(){var e=(0,T.A)(n.current.keys());return s.length&&e.push(ke),e},getSubPathKeys:g}}(),wt=Ct.registerPath,_t=Ct.unregisterPath,It=Ct.refreshOverflowKeys,Tt=Ct.isSubPathKey,Mt=Ct.getKeyPath,Rt=Ct.getKeys,Ot=Ct.getSubPathKeys,Pt=o.useMemo(function(){return{registerPath:wt,unregisterPath:_t}},[wt,_t]),Nt=o.useMemo(function(){return{isSubPathKey:Tt}},[Tt]);o.useEffect(function(){It(Et?ar:Ue.slice(xt+1).map(function(e){return e.key}))},[xt,Et]);var kt=(0,x.A)(F||U&&(null===(n=Ue[0])||void 0===n?void 0:n.key),{value:F}),Dt=(0,v.A)(kt,2),Lt=Dt[0],Bt=Dt[1],Ft=De(function(e){Bt(e)}),Ut=De(function(){Bt(void 0)});(0,o.useImperativeHandle)(t,function(){return{list:Ge.current,focus:function(e){var t,n,r,i,o=null!=Lt?Lt:null===(t=Ue.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;o&&(null===(n=Ge.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(ae(Qe,o),"']")))||void 0===r||null===(i=r.focus)||void 0===i||i.call(r,e))}}});var zt=(0,x.A)(G||[],{value:Q,postState:function(e){return Array.isArray(e)?e:null==e?ar:[e]}}),jt=(0,v.A)(zt,2),$t=jt[0],Ht=jt[1],Gt=De(function(e){null==pe||pe(We(e)),function(e){if(j){var t,n=e.key,r=$t.includes(n);t=H?r?$t.filter(function(e){return e!==n}):[].concat((0,T.A)($t),[n]):[n],Ht(t);var i=(0,g.A)((0,g.A)({},e),{},{selectedKeys:t});r?null==W||W(i):null==V||V(i)}!H&&Ye.length&&"inline"!==ft&&Je(ar)}(e)}),Qt=De(function(e,t){var n=Ye.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==ft){var r=Ot(e);n=n.filter(function(e){return!r.has(e)})}(0,ie.A)(Ye,n,!0)||Je(n,!0)}),Vt=De(he),Wt=function(e,t,n,r,i,a,s,l,c,u){var d=o.useRef(),h=o.useRef();h.current=t;var f=function(){O.A.cancel(d.current)};return o.useEffect(function(){return function(){f()}},[]),function(o){var p=o.which;if([].concat(Me,[we,_e,Ie,Te]).includes(p)){var g,v,A,y=function(){return g=new Set,v=new Map,A=new Map,a().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(ae(r,e),"']"));t&&(g.add(t),A.set(t,e),v.set(e,t))}),g};y();var b=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(v.get(t),g),x=A.get(b),S=function(e,t,n,r){var i,o,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&r===we)return{inlineTrigger:!0};var h=(i={},(0,m.A)(i,Ee,l),(0,m.A)(i,Ce,c),i),f=(o={},(0,m.A)(o,xe,n?c:l),(0,m.A)(o,Se,n?l:c),(0,m.A)(o,Ce,u),(0,m.A)(o,we,u),o),p=(a={},(0,m.A)(a,Ee,l),(0,m.A)(a,Ce,c),(0,m.A)(a,we,u),(0,m.A)(a,_e,d),(0,m.A)(a,xe,n?u:d),(0,m.A)(a,Se,n?d:u),a);switch(null===(s={inline:h,horizontal:f,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===s(x,!0).length,n,p);if(!S&&p!==Ie&&p!==Te)return;(Me.includes(p)||[Ie,Te].includes(p))&&o.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=A.get(e);l(r),f(),d.current=(0,O.A)(function(){h.current===r&&t.focus()})}};if([Ie,Te].includes(p)||S.sibling||!b){var C,w,_=Re(C=b&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(b):i.current,g);w=p===Ie?_[0]:p===Te?_[_.length-1]:Oe(C,g,b,S.offset),E(w)}else if(S.inlineTrigger)c(x);else if(S.offset>0)c(x,!0),f(),d.current=(0,O.A)(function(){y();var e=b.getAttribute("aria-controls"),t=Oe(document.getElementById(e),g);E(t)},5);else if(S.offset<0){var I=s(x,!0),T=I[I.length-2],M=v.get(T);c(T,!1),E(M)}}null==u||u(o)}}(ft,Lt,Ve,Qe,Ge,Rt,Mt,Bt,function(e,t){var n=null!=t?t:!Ye.includes(e);Qt(e,n)},ge);o.useEffect(function(){He(!0)},[]);var Xt=o.useMemo(function(){return{_internalRenderMenuItem:ye,_internalRenderSubMenuItem:be}},[ye,be]),qt="horizontal"!==ft||M?Ue:Ue.map(function(e,t){return o.createElement(de,{key:e.key,overflowDisabled:t>xt},e)}),Yt=o.createElement(te.A,(0,i.A)({id:E,ref:Ge,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:et,className:p()(l,"".concat(l,"-root"),"".concat(l,"-").concat(ft),d,(r={},(0,m.A)(r,"".concat(l,"-inline-collapsed"),vt),(0,m.A)(r,"".concat(l,"-rtl"),Ve),r),c),dir:S,style:u,role:"menu",tabIndex:f,data:qt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Ue.slice(-t):null;return o.createElement(ir,{eventKey:ke,title:ce,disabled:Et,internalPopupClose:0===t,popupClassName:ue},n)},maxCount:"horizontal"!==ft||M?te.A.INVALIDATE:te.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){St(e)},onKeyDown:Wt},Fe));return o.createElement(Ae.Provider,{value:Xt},o.createElement(oe.Provider,{value:Qe},o.createElement(de,{prefixCls:l,rootClassName:c,mode:ft,openKeys:Ye,rtl:Ve,disabled:I,motion:$e?Y:null,defaultMotions:$e?K:null,activeKey:Lt,onActive:Ft,onInactive:Ut,selectedKeys:$t,inlineIndent:q,subMenuOpenDelay:P,subMenuCloseDelay:k,forceSubMenuRender:D,builtinPlacements:ee,triggerSubMenuAction:Z,getPopupContainer:Vt,itemIcon:ne,expandIcon:se,onItemClick:Gt,onOpenChange:Qt},o.createElement(ve.Provider,{value:Nt},Yt),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(fe.Provider,{value:Pt},Ue)))))}),lr=["className","title","eventKey","children"],cr=["children"],ur=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),a=(0,y.A)(e,lr),s=o.useContext(ue).prefixCls,l="".concat(s,"-item-group");return o.createElement("li",(0,i.A)({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:p()(l,t)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof n?n:void 0},n),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},r))};function dr(e){var t=e.children,n=(0,y.A)(e,cr),r=st(t,ge(n.eventKey));return pe()?r:o.createElement(ur,(0,$e.A)(n,["warnKey"]),r)}function hr(e){var t=e.className,n=e.style,r=o.useContext(ue).prefixCls;return pe()?null:o.createElement("li",{className:p()("".concat(r,"-item-divider"),t),style:n})}var fr=sr;fr.Item=et,fr.SubMenu=ir,fr.ItemGroup=dr,fr.Divider=hr;const pr=fr;function mr(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,a=e.locale,s=e.mobile,l=e.moreIcon,c=void 0===l?"More":l,u=e.moreTransitionName,d=e.style,h=e.className,f=e.editable,g=e.tabBarGutter,A=e.rtl,y=e.removeAriaLabel,b=e.onTabClick,x=e.getPopupContainer,S=e.popupClassName,E=(0,o.useState)(!1),C=(0,v.A)(E,2),w=C[0],_=C[1],I=(0,o.useState)(null),T=(0,v.A)(I,2),M=T[0],R=T[1],O="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),N=null!==M?"".concat(O,"-").concat(M):null,k=null==a?void 0:a.dropdownAriaLabel,D=o.createElement(pr,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),_(!1)},prefixCls:"".concat(P,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[M],"aria-label":void 0!==k?k:"expanded dropdown"},i.map(function(e){var t=f&&!1!==e.closable&&!e.disabled;return o.createElement(et,{key:e.key,id:"".concat(O,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},o.createElement("span",null,e.label),t&&o.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(t){var n,r;t.stopPropagation(),n=t,r=e.key,n.preventDefault(),n.stopPropagation(),f.onEdit("remove",{key:r,event:n})}},e.closeIcon||f.removeIcon||"×"))}));function L(e){for(var t=i.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===M})||0,r=t.length,o=0;ot?"left":"right"})}),Y=(0,v.A)(q,2),K=Y[0],J=Y[1],Z=k(0,function(e,t){!X&&_&&_({direction:e>t?"top":"bottom"})}),ee=(0,v.A)(Z,2),te=ee[0],ne=ee[1],re=(0,o.useState)([0,0]),ie=(0,v.A)(re,2),oe=ie[0],ae=ie[1],se=(0,o.useState)([0,0]),le=(0,v.A)(se,2),ce=le[0],ue=le[1],de=(0,o.useState)([0,0]),he=(0,v.A)(de,2),fe=he[0],pe=he[1],me=(0,o.useState)([0,0]),ge=(0,v.A)(me,2),ve=ge[0],Ae=ge[1],ye=function(e){var t=(0,o.useRef)([]),n=(0,o.useState)({}),r=(0,v.A)(n,2)[1],i=(0,o.useRef)("function"==typeof e?e():e),a=B(function(){var e=i.current;t.current.forEach(function(t){e=t(e)}),t.current=[],i.current=e,r({})});return[i.current,function(e){t.current.push(e),a()}]}(new Map),be=(0,v.A)(ye,2),xe=be[0],Se=be[1],Ee=function(e,t,n){return(0,o.useMemo)(function(){for(var n,r=new Map,i=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||N,o=i.left+i.width,a=0;aPe?Pe:e}X&&f?(Oe=0,Pe=Math.max(0,we-Me)):(Oe=Math.min(0,Me-we),Pe=0);var ke=(0,o.useRef)(),De=(0,o.useState)(),Le=(0,v.A)(De,2),Be=Le[0],Fe=Le[1];function Ue(){Fe(Date.now())}function ze(){window.clearTimeout(ke.current)}!function(e,t){var n=(0,o.useState)(),r=(0,v.A)(n,2),i=r[0],a=r[1],s=(0,o.useState)(0),l=(0,v.A)(s,2),c=l[0],u=l[1],d=(0,o.useState)(0),h=(0,v.A)(d,2),f=h[0],p=h[1],m=(0,o.useState)(),g=(0,v.A)(m,2),A=g[0],y=g[1],b=(0,o.useRef)(),x=(0,o.useRef)(),S=(0,o.useRef)(null);S.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(b.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var s=r-i.x,l=o-i.y;t(s,l);var d=Date.now();u(d),p(d-c),y({x:s,y:l})}},onTouchEnd:function(){if(i&&(a(null),y(null),A)){var e=A.x/f,n=A.y/f,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var s=e,l=n;b.current=window.setInterval(function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(b.current):t(20*(s*=D),20*(l*=D))},20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,i=0,o=Math.abs(n),a=Math.abs(r);o===a?i="x"===x.current?n:r:o>a?(i=n,x.current="x"):(i=r,x.current="y"),t(-i,-i)&&e.preventDefault()}},o.useEffect(function(){function t(e){S.current.onTouchMove(e)}function n(e){S.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",function(e){S.current.onTouchStart(e)},{passive:!1}),e.current.addEventListener("wheel",function(e){S.current.onWheel(e)}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(G,function(e,t){function n(e,t){e(function(e){return Ne(e+t)})}return!!Te&&(X?n(J,e):n(ne,t),ze(),Ue(),!0)}),(0,o.useEffect)(function(){return ze(),Be&&(ke.current=window.setTimeout(function(){Fe(0)},100)),ze},[Be]);var je=function(e,t,n,r,i,a,s){var l,c,u,d=s.tabs,h=s.tabPosition,f=s.rtl;return["top","bottom"].includes(h)?(l="width",c=f?"right":"left",u=Math.abs(n)):(l="height",c="top",u=-n),(0,o.useMemo)(function(){if(!d.length)return[0,0];for(var n=d.length,r=n,i=0;iu+t){r=i-1;break}}for(var a=0,s=n-1;s>=0;s-=1)if((e.get(d[s].key)||F)[c]0&&void 0!==arguments[0]?arguments[0]:h,t=Ee.get(e)||{width:0,height:0,left:0,right:0,top:0};if(X){var n=K;f?t.rightK+Me&&(n=t.right+t.width-Me):t.left<-K?n=-t.left:t.left+t.width>-K+Me&&(n=-(t.left+t.width-Me)),ne(0),J(Ne(n))}else{var r=te;t.top<-te?r=-t.top:t.top+t.height>-te+Me&&(r=-(t.top+t.height-Me)),J(0),ne(Ne(r))}}),Ve={};"top"===x||"bottom"===x?Ve[f?"marginRight":"marginLeft"]=S:Ve.marginTop=S;var We=s.map(function(e,t){var n=e.key;return o.createElement(vr,{id:u,prefixCls:a,key:n,tab:e,style:0===t?void 0:Ve,closable:e.closable,editable:y,active:n===h,renderWrapper:C,removeAriaLabel:null==b?void 0:b.removeAriaLabel,onClick:function(e){w(n,e)},onFocus:function(){Qe(n),Ue(),G.current&&(f||(G.current.scrollLeft=0),G.current.scrollTop=0)}})}),Xe=function(){return Se(function(){var e=new Map;return s.forEach(function(t){var n,r=t.key,i=null===(n=Q.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(z(r),'"]'));i&&e.set(r,{width:i.offsetWidth,height:i.offsetHeight,left:i.offsetLeft,top:i.offsetTop})}),e})};(0,o.useEffect)(function(){Xe()},[s.map(function(e){return e.key}).join("_")]);var qe=B(function(){var e=Ar(I),t=Ar(L),n=Ar(j);ae([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Ar(W);pe(r);var i=Ar(V);Ae(i);var o=Ar(Q);ue([o[0]-r[0],o[1]-r[1]]),Xe()}),Ye=s.slice(0,He),Ke=s.slice(Ge+1),Je=[].concat((0,T.A)(Ye),(0,T.A)(Ke)),Ze=(0,o.useState)(),et=(0,v.A)(Ze,2),tt=et[0],nt=et[1],rt=Ee.get(h),it=(0,o.useRef)();function ot(){O.A.cancel(it.current)}(0,o.useEffect)(function(){var e={};return rt&&(X?(f?e.right=rt.right:e.left=rt.left,e.width=rt.width):(e.top=rt.top,e.height=rt.height)),ot(),it.current=(0,O.A)(function(){nt(e)}),ot},[rt,X,f]),(0,o.useEffect)(function(){Qe()},[h,Oe,Pe,U(rt),U(Ee),X]),(0,o.useEffect)(function(){qe()},[f]);var at,st,lt,ct,ut=!!Je.length,dt="".concat(a,"-nav-wrap");return X?f?(st=K>0,at=K!==Pe):(at=K<0,st=K!==Oe):(lt=te<0,ct=te!==Oe),o.createElement(M.A,{onResize:qe},o.createElement("div",{ref:(0,P.xK)(t,I),role:"tablist",className:p()("".concat(a,"-nav"),l),style:c,onKeyDown:function(){Ue()}},o.createElement(H,{ref:L,position:"left",extra:A,prefixCls:a}),o.createElement("div",{className:p()(dt,(n={},(0,m.A)(n,"".concat(dt,"-ping-left"),at),(0,m.A)(n,"".concat(dt,"-ping-right"),st),(0,m.A)(n,"".concat(dt,"-ping-top"),lt),(0,m.A)(n,"".concat(dt,"-ping-bottom"),ct),n)),ref:G},o.createElement(M.A,{onResize:qe},o.createElement("div",{ref:Q,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(K,"px, ").concat(te,"px)"),transition:Be?"none":void 0}},We,o.createElement($,{ref:W,prefixCls:a,locale:b,editable:y,style:(0,g.A)((0,g.A)({},0===We.length?void 0:Ve),{},{visibility:ut?"hidden":null})}),o.createElement("div",{className:p()("".concat(a,"-ink-bar"),(0,m.A)({},"".concat(a,"-ink-bar-animated"),d.inkBar)),style:tt})))),o.createElement(gr,(0,i.A)({},e,{removeAriaLabel:null==b?void 0:b.removeAriaLabel,ref:V,prefixCls:a,tabs:Je,className:!ut&&Re,tabMoving:!!Be})),o.createElement(H,{ref:j,position:"right",extra:A,prefixCls:a})))}const xr=o.forwardRef(br);var Sr=["renderTabBar"],Er=["label","key"];function Cr(e){var t=e.renderTabBar,n=(0,y.A)(e,Sr),r=o.useContext(E).tabs;return t?t((0,g.A)((0,g.A)({},n),{},{panes:r.map(function(e){var t=e.label,n=e.key,r=(0,y.A)(e,Er);return o.createElement(w,(0,i.A)({tab:t,key:n,tabKey:n},r))})}),xr):o.createElement(xr,n)}var wr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],_r=0;function Ir(e,t){var n,r=e.id,a=e.prefixCls,s=void 0===a?"rc-tabs":a,l=e.className,c=e.items,u=e.direction,d=e.activeKey,h=e.defaultActiveKey,f=e.editable,S=e.animated,C=e.tabPosition,w=void 0===C?"top":C,_=e.tabBarGutter,T=e.tabBarStyle,M=e.tabBarExtraContent,R=e.locale,O=e.moreIcon,P=e.moreTransitionName,N=e.destroyInactiveTabPane,k=e.renderTabBar,D=e.onChange,L=e.onTabClick,B=e.onTabScroll,F=e.getPopupContainer,U=e.popupClassName,z=(0,y.A)(e,wr),j=o.useMemo(function(){return(c||[]).filter(function(e){return e&&"object"===(0,A.A)(e)&&"key"in e})},[c]),$="rtl"===u,H=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,g.A)({inkBar:!0},"object"===(0,A.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(S),G=(0,o.useState)(!1),Q=(0,v.A)(G,2),V=Q[0],W=Q[1];(0,o.useEffect)(function(){W((0,b.A)())},[]);var X=(0,x.A)(function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key},{value:d,defaultValue:h}),q=(0,v.A)(X,2),Y=q[0],K=q[1],J=(0,o.useState)(function(){return j.findIndex(function(e){return e.key===Y})}),Z=(0,v.A)(J,2),ee=Z[0],te=Z[1];(0,o.useEffect)(function(){var e,t=j.findIndex(function(e){return e.key===Y});-1===t&&(t=Math.max(0,Math.min(ee,j.length-1)),K(null===(e=j[t])||void 0===e?void 0:e.key)),te(t)},[j.map(function(e){return e.key}).join("_"),Y,ee]);var ne=(0,x.A)(null,{value:r}),re=(0,v.A)(ne,2),ie=re[0],oe=re[1];(0,o.useEffect)(function(){r||(oe("rc-tabs-".concat(_r)),_r+=1)},[]);var ae={id:ie,activeKey:Y,animated:H,tabPosition:w,rtl:$,mobile:V},se=(0,g.A)((0,g.A)({},ae),{},{editable:f,locale:R,moreIcon:O,moreTransitionName:P,tabBarGutter:_,onTabClick:function(e,t){null==L||L(e,t);var n=e!==Y;K(e),n&&(null==D||D(e))},onTabScroll:B,extra:M,style:T,panes:null,getPopupContainer:F,popupClassName:U});return o.createElement(E.Provider,{value:{tabs:j,prefixCls:s}},o.createElement("div",(0,i.A)({ref:t,id:r,className:p()(s,"".concat(s,"-").concat(w),(n={},(0,m.A)(n,"".concat(s,"-mobile"),V),(0,m.A)(n,"".concat(s,"-editable"),f),(0,m.A)(n,"".concat(s,"-rtl"),$),n),l)},z),void 0,o.createElement(Cr,(0,i.A)({},se,{renderTabBar:k})),o.createElement(I,(0,i.A)({destroyInactiveTabPane:N},ae,{animated:H}))))}const Tr=o.forwardRef(Ir);var Mr=n(77140),Rr=n(96718);var Or=n(42014);const Pr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Nr=n(28170),kr=n(51121),Dr=n(79218),Lr=n(22916);const Br=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,Lr._j)(e,"slide-up"),(0,Lr._j)(e,"slide-down")]]},Fr=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorBorderSecondary:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ur=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,Dr.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Dr.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},zr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},jr=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${1.5*e.paddingXXS}px`}}}}}},$r=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:o}=e,a=`${t}-tab`;return{[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,Dr.K8)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},Hr=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=e,o=`${t}-rtl`;return{[o]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Gr=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dr.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,Dr.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),$r(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Qr=(0,Nr.A)("Tabs",e=>{const t=e.controlHeightLG,n=(0,kr.h1)(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[jr(n),Hr(n),zr(n),Ur(n),Fr(n),Gr(n),Br(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));function Vr(e){var{type:t,className:n,rootClassName:i,size:a,onEdit:s,hideAdd:l,centered:u,addIcon:d,popupClassName:f,children:m,items:g,animated:v}=e,A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{let{key:n,event:r}=t;null==s||s("add"===e?r:n,e)},removeIcon:o.createElement(r.A,null),addIcon:d||o.createElement(h,null),showAdd:!0!==l});const T=S(),M=function(e,t){return e||function(e){return e.filter(e=>e)}((0,ot.A)(t).map(e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:i}=r,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Pr),{motionName:(0,Or.by)(e,"switch")})),t}(C,v),O=(0,Rr.A)(a);return w(o.createElement(Tr,Object.assign({direction:x,getPopupContainer:E,moreTransitionName:`${T}-slide-up`},A,{items:M,className:p()({[`${C}-${O}`]:O,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:"editable-card"===t,[`${C}-centered`]:u},n,i,_),popupClassName:p()(f,_),editable:I,moreIcon:b,prefixCls:C,animated:R})))}Vr.TabPane=()=>null;const Wr=Vr},86596(e,t,n){"use strict";n.d(t,{A:()=>b});var r=n(46083),i=n(73059),o=n.n(i),a=n(40366),s=n(25580),l=n(66798),c=n(77140),u=n(79218),d=n(36399),h=n(28170),f=n(51121);const p=(e,t,n)=>{const r="string"!=typeof(i=n)?i:i.charAt(0).toUpperCase()+i.slice(1);var i;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`]}}},m=e=>(0,d.A)(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),g=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i}=e,o=r-n,a=t-n;return{[i]:Object.assign(Object.assign({},(0,u.dF)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:a,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-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(${i}-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:o}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},v=(0,h.A)("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:i}=e,o=Math.round(t*n),a=e.fontSizeSM,s=o-2*r,l=e.colorFillQuaternary,c=e.colorText,u=(0,f.h1)(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:i-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[g(u),m(u),p(u,"success","Success"),p(u,"processing","Info"),p(u,"error","Error"),p(u,"warning","Warning")]});const A=(e,t)=>{const{prefixCls:n,className:i,rootClassName:u,style:d,children:h,icon:f,color:p,onClose:m,closeIcon:g,closable:A=!1,bordered:y=!0}=e,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{"visible"in b&&C(b.visible)},[b.visible]);const w=(0,s.nP)(p)||(0,s.ZZ)(p),_=Object.assign({backgroundColor:p&&!w?p:void 0},d),I=x("tag",n),[T,M]=v(I),R=o()(I,{[`${I}-${p}`]:w,[`${I}-has-color`]:p&&!w,[`${I}-hidden`]:!E,[`${I}-rtl`]:"rtl"===S,[`${I}-borderless`]:!y},i,u,M),O=e=>{e.stopPropagation(),null==m||m(e),e.defaultPrevented||C(!1)},P=a.useMemo(()=>A?g?a.createElement("span",{className:`${I}-close-icon`,onClick:O},g):a.createElement(r.A,{className:`${I}-close-icon`,onClick:O}):null,[A,g,I,O]),N="function"==typeof b.onClick||h&&"a"===h.type,k=f||null,D=k?a.createElement(a.Fragment,null,k,a.createElement("span",null,h)):h,L=a.createElement("span",Object.assign({},b,{ref:t,className:R,style:_}),D,P);return T(N?a.createElement(l.A,null,L):L)},y=a.forwardRef(A);y.CheckableTag=e=>{const{prefixCls:t,className:n,checked:r,onChange:i,onClick:s}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{null==i||i(!r),null==s||s(e)}})))};const b=y},45822(e,t,n){"use strict";n.d(t,{A:()=>m});var r=n(26333),i=n(78983),o=n(56819),a=n(67992),s=n(30113),l=n(18347);const c=(e,t)=>new l.q(e).setAlpha(t).toRgbString(),u=(e,t)=>new l.q(e).lighten(t).toHexString(),d=e=>{const t=(0,o.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},h=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:c(r,.85),colorTextSecondary:c(r,.65),colorTextTertiary:c(r,.45),colorTextQuaternary:c(r,.25),colorFill:c(r,.18),colorFillSecondary:c(r,.12),colorFillTertiary:c(r,.08),colorFillQuaternary:c(r,.04),colorBgElevated:u(n,12),colorBgContainer:u(n,8),colorBgLayout:u(n,0),colorBgSpotlight:u(n,26),colorBorder:u(n,26),colorBorderSecondary:u(n,19)}};var f=n(28791),p=n(10552);const m={defaultConfig:r.sb,defaultSeed:r.sb.token,useToken:function(){const[e,t,n]=(0,r.rd)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:i.A,darkAlgorithm:(e,t)=>{const n=Object.keys(a.r).map(t=>{const n=(0,o.cM)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}),r=null!=t?t:(0,i.A)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,s.A)(e,{generateColorPalettes:d,generateNeutralColorPalettes:h}))},compactAlgorithm:(e,t)=>{const n=null!=t?t:(0,i.A)(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),(0,p.A)(r)),{controlHeight:o}),(0,f.A)(Object.assign(Object.assign({},n),{controlHeight:o})))}}},14159(e,t,n){"use strict";n.d(t,{s:()=>r});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},26333(e,t,n){"use strict";n.d(t,{vG:()=>f,sb:()=>h,rd:()=>p});var r=n(5147),i=n(40366),o=n(78983),a=n(67992),s=n(18347);function l(e){return e>=0&&e<=255}const c=function(e,t){const{r:n,g:r,b:i,a:o}=new s.q(e).toRgb();if(o<1)return e;const{r:a,g:c,b:u}=new s.q(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),o=Math.round((r-c*(1-e))/e),d=Math.round((i-u*(1-e))/e);if(l(t)&&l(o)&&l(d))return new s.q({r:t,g:o,b:d,a:Math.round(100*e)/100}).toRgbString()}return new s.q({r:n,g:r,b:i,a:1}).toRgbString()};function u(e){const{override:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{delete r[e]});const i=Object.assign(Object.assign({},n),r);if(!1===i.motion){const e="0s";i.motionDurationFast=e,i.motionDurationMid=e,i.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:c(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:c(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:c(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:4*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:c(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new s.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new s.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new s.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const d=(0,r.an)(o.A),h={token:a.A,hashed:!0},f=i.createContext(h);function p(){const{token:e,hashed:t,theme:n,components:o}=i.useContext(f),s=`5.5.1-${t||""}`,l=n||d,[c,h]=(0,r.hV)(l,[a.A,e],{salt:s,override:Object.assign({override:e},o),formatToken:u});return[l,c,t?h:""]}},78983(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(56819),i=n(28791),o=n(67992),a=n(30113);var s=n(18347);const l=(e,t)=>new s.q(e).setAlpha(t).toRgbString(),c=(e,t)=>new s.q(e).darken(t).toHexString(),u=e=>{const t=(0,r.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:l(r,.88),colorTextSecondary:l(r,.65),colorTextTertiary:l(r,.45),colorTextQuaternary:l(r,.25),colorFill:l(r,.15),colorFillSecondary:l(r,.06),colorFillTertiary:l(r,.04),colorFillQuaternary:l(r,.02),colorBgLayout:c(n,4),colorBgContainer:c(n,0),colorBgElevated:c(n,0),colorBgSpotlight:l(r,.85),colorBorder:c(n,15),colorBorderSecondary:c(n,6)}};var h=n(10552);function f(e){const t=Object.keys(o.r).map(t=>{const n=(0,r.cM)(e[t]);return new Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,a.A)(e,{generateColorPalettes:u,generateNeutralColorPalettes:d})),(0,h.A)(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,i.A)(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:i+1},(e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}})(r))}(e))}},67992(e,t,n){"use strict";n.d(t,{A:()=>i,r:()=>r});const r={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},i=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},30113(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(18347);function i(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:i}=t;const{colorSuccess:o,colorWarning:a,colorError:s,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,h=n(c),f=n(o),p=n(a),m=n(s),g=n(l),v=i(u,d);return Object.assign(Object.assign({},v),{colorPrimaryBg:h[1],colorPrimaryBgHover:h[2],colorPrimaryBorder:h[3],colorPrimaryBorderHover:h[4],colorPrimaryHover:h[5],colorPrimary:h[6],colorPrimaryActive:h[7],colorPrimaryTextHover:h[8],colorPrimaryText:h[9],colorPrimaryTextActive:h[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new r.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},28791(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},10552(e,t,n){"use strict";n.d(t,{A:()=>r});const r=e=>{const t=function(e){const t=new Array(10).fill(null).map((t,n)=>{const r=n-1,i=e*Math.pow(2.71828,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}}},28170(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(5147),i=n(40366),o=n(77140),a=n(79218),s=n(26333),l=n(51121);function c(e,t,n,c){return u=>{const[d,h,f]=(0,s.rd)(),{getPrefixCls:p,iconPrefixCls:m,csp:g}=(0,i.useContext)(o.QO),v=p(),A={theme:d,token:h,hashId:f,nonce:()=>null==g?void 0:g.nonce};return(0,r.IV)(Object.assign(Object.assign({},A),{path:["Shared",v]}),()=>[{"&":(0,a.av)(h)}]),[(0,r.IV)(Object.assign(Object.assign({},A),{path:[e,u,m]}),()=>{const{token:r,flush:i}=(0,l.Ay)(h),o="function"==typeof n?n(r):n,s=Object.assign(Object.assign({},o),h[e]),d=`.${u}`,p=(0,l.h1)(r,{componentCls:d,prefixCls:u,iconCls:`.${m}`,antCls:`.${v}`},s),g=t(p,{hashId:f,prefixCls:u,rootPrefixCls:v,iconPrefixCls:m,overrideComponentToken:h[e]});return i(e,s),[!1===(null==c?void 0:c.resetStyle)?null:(0,a.vj)(h,u),g]}),f]}}},36399(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(14159);function i(e,t){return r.s.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}},51121(e,t,n){"use strict";n.d(t,{Ay:()=>l,h1:()=>o});const r="undefined"!=typeof CSSINJS_STATISTIC;let i=!0;function o(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach(t=>{Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),i=!0,o}const a={};function s(){}function l(e){let t,n=e,o=s;return r&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(i&&t.add(n),e[n])}),o=(e,n)=>{a[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:o}}},91482(e,t,n){"use strict";n.d(t,{A:()=>T});var r=n(73059),i=n.n(r),o=n(93350),a=n(5522),s=n(40366),l=n(42014),c=n(91479);const u={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},d={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},h=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);var f=n(81857),p=n(77140),m=n(43136),g=n(45822),v=n(79218),A=n(82986),y=n(36399),b=n(51121),x=n(28170);const S=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:d,tooltipRadiusOuter:h}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.dF)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${u/2}px ${d}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(o,c.Zs)}},[`${t}-content`]:{position:"relative"}}),(0,y.A)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,c.Ay)((0,b.h1)(e,{borderRadiusOuter:h}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},E=(e,t)=>(0,x.A)("Tooltip",e=>{if(!1===t)return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:i,borderRadiusOuter:o}=e,a=(0,b.h1)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:i,tooltipRadiusOuter:o>4?4:o});return[S(a),(0,A.aB)(e,"zoom-big-fast")]},e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}},{resetStyle:!1})(e);(Object.getOwnPropertyDescriptor(E,"name")||{}).writable||Object.defineProperty(E,"name",{value:"default",configurable:!0});var C=n(25580);function w(e,t){const n=(0,C.nP)(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const{useToken:_}=g.A;const I=s.forwardRef((e,t)=>{var n,r;const{prefixCls:g,openClassName:v,getTooltipContainer:A,overlayClassName:y,color:b,overlayInnerStyle:x,children:S,afterOpenChange:C,afterVisibleChange:I,destroyTooltipOnHide:T,arrow:M=!0,title:R,overlay:O,builtinPlacements:P,arrowPointAtCenter:N=!1,autoAdjustOverflow:k=!0}=e,D=!!M,{token:L}=_(),{getPopupContainer:B,getPrefixCls:F,direction:U}=s.useContext(p.QO),z=s.useRef(null),j=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:j,forcePopupAlign:()=>{j()}}));const[$,H]=(0,a.A)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),G=!R&&!O&&0!==R,Q=s.useMemo(()=>{var e,t;let n=N;return"object"==typeof M&&(n=null!==(t=null!==(e=M.pointAtCenter)&&void 0!==e?e:M.arrowPointAtCenter)&&void 0!==t?t:N),P||function(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(u).forEach(e=>{const f=r&&d[e]||u[e],p=Object.assign(Object.assign({},f),{offset:[0,0]});switch(l[e]=p,h.has(e)&&(p.autoArrow=!1),e){case"top":case"topLeft":case"topRight":p.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=s+i}const m=(0,c.Di)({contentRadius:o,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":p.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":p.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":p.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":p.offset[1]=m.dropdownArrowOffset+s}p.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const i=r&&"object"==typeof r?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":o.shiftY=2*t.dropdownArrowOffsetVertical+n}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),a&&(p.htmlRegion="visibleFirst")}),l}({arrowPointAtCenter:n,autoAdjustOverflow:k,arrowWidth:D?L.sizePopupArrow:0,borderRadius:L.borderRadius,offset:L.marginXXS,visibleFirst:!0})},[N,M,P,L]),V=s.useMemo(()=>0===R?R:O||R||"",[O,R]),W=s.createElement(m.K6,null,"function"==typeof V?V():V),{getPopupContainer:X,placement:q="top",mouseEnterDelay:Y=.1,mouseLeaveDelay:K=.1,overlayStyle:J,rootClassName:Z}=e,ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const t={},n=Object.assign({},e);return["position","left","right","top","bottom","float","display","zIndex"].forEach(r=>{e&&r in e&&(t[r]=e[r],delete n[r])}),{picked:t,omitted:n}})(e.props.style),o=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},r),{pointerEvents:"none"}),l=(0,f.Ob)(e,{style:a,className:null});return s.createElement("span",{style:o,className:i()(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}((0,f.zO)(S)&&!(0,f.zv)(S)?S:s.createElement("span",null,S),te),ae=oe.props,se=ae.className&&"string"!=typeof ae.className?ae.className:i()(ae.className,{[v||`${te}-open`]:!0}),[le,ce]=E(te,!re),ue=w(te,b),de=Object.assign(Object.assign({},x),ue.overlayStyle),he=ue.arrowStyle,fe=i()(y,{[`${te}-rtl`]:"rtl"===U},ue.className,Z,ce);return le(s.createElement(o.A,Object.assign({},ee,{showArrow:D,placement:q,mouseEnterDelay:Y,mouseLeaveDelay:K,prefixCls:te,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},he),J),getTooltipContainer:X||A||B,ref:z,builtinPlacements:Q,overlay:W,visible:ie,onVisibleChange:t=>{var n,r;H(!G&&t),G||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=C?C:I,overlayInnerStyle:de,arrowContent:s.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:(0,l.by)(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!T}),ie?(0,f.Ob)(oe,{className:se}):oe))});I._InternalPanelDoNotUseOrYouWillBeFired=function(e){const{prefixCls:t,className:n,placement:r="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=s.useContext(p.QO),d=u("tooltip",t),[h,f]=E(d,!0),m=w(d,l),g=Object.assign(Object.assign({},c),m.overlayStyle),v=m.arrowStyle;return h(s.createElement("div",{className:i()(f,d,`${d}-pure`,`${d}-placement-${r}`,n,m.className),style:v},s.createElement("div",{className:`${d}-arrow`}),s.createElement(o.z,Object.assign({},e,{className:f,prefixCls:d,overlayInnerStyle:g}),a)))};const T=I},44350(e,t,n){"use strict";n.d(t,{A:()=>At});var r=n(32549),i=n(22256),o=n(35739),a=n(40942),s=n(53563),l=n(20582),c=n(79520),u=n(59472),d=n(31856),h=n(2330),f=n(73059),p=n.n(f),m=n(95589),g=n(59880),v=n(3455),A=n(40366),y=A.createContext(null);function b(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var x=n(34355),S=n(57889),E=n(34148),C=n(95540),w=n(7041),_=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),s=[],l=0;l1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(d,h){for(var f,p=P(r?r.pos:"0",h),m=N(d[o],p),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,a=t.externalGetKey,l=t.childrenPropName,c=t.fieldNames,u=a||(arguments.length>2?arguments[2]:void 0),d={},h={},f={posEntities:d,keyEntities:h};return n&&(f=n(f)||f),function(e,t,n){var i,a=("object"===(0,o.A)(n)?n:{externalGetKey:n})||{},l=a.childrenPropName,c=a.externalGetKey,u=k(a.fieldNames),p=u.key,m=u.children,g=l||m;c?"string"==typeof c?i=function(e){return e[c]}:"function"==typeof c&&(i=function(e){return c(e)}):i=function(e,t){return N(e[p],t)},function t(n,o,a,l){var c=n?n[g]:e,u=n?P(a.pos,o):"0",p=n?[].concat((0,s.A)(l),[n]):[];if(n){var m=i(n,u);!function(e){var t=e.node,n=e.index,i=e.pos,o=e.key,a=e.parentPos,s=e.level,l={node:t,nodes:e.nodes,index:n,key:o,pos:i,level:s},c=N(o,i);d[i]=l,h[c]=l,l.parent=d[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),r&&r(l,f)}({node:n,index:o,pos:u,key:m,parentPos:a.node?a.pos:null,level:a.level+1,nodes:p})}c&&c.forEach(function(e,r){t(e,r,{node:n,pos:u,level:a?a.level+1:-1},p)})}(null)}(e,0,{externalGetKey:u,childrenPropName:l,fieldNames:c}),i&&i(f),f}function F(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=T(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==i.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function U(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,s=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,h=e.pos,f=e.active,p=e.eventKey,m=(0,a.A)((0,a.A)({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:s,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:h,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,v.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}var z=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],j="open",$="close",H=function(e){(0,d.A)(n,e);var t=(0,h.A)(n);function n(){var e;(0,l.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var r=t.filter(function(e){return!n.has(e)});return 1===r.length?r[0]:null}return n ").concat(t);return t}(I)),A.createElement("div",null,A.createElement("input",{style:K,disabled:!1===_||h,tabIndex:!1!==_?M:null,onKeyDown:R,onFocus:O,onBlur:P,value:"",onChange:J,"aria-label":"for screen reader"})),A.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},A.createElement("div",{className:"".concat(n,"-indent")},A.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),A.createElement(C.A,(0,r.A)({},B,{data:Ae,itemKey:ie,height:v,fullHeight:!1,virtual:w,itemHeight:y,prefixCls:"".concat(n,"-list"),ref:U,onVisibleChange:function(e,t){var n=new Set(e);t.filter(function(e){return!n.has(e)}).some(function(e){return ie(e)===Z})&&ve()}}),function(e){var t=e.pos,n=(0,r.A)({},(b(e.data),e.data)),i=e.title,o=e.key,a=e.isStart,s=e.isEnd,l=N(o,t);delete n.key,delete n.children;var c=F(l,ye);return A.createElement(X,(0,r.A)({},n,c,{title:i,active:!!I&&o===I.key,pos:t,data:e.data,isStart:a,isEnd:s,motion:g,motionNodes:o===Z?ue:null,motionType:pe,onMotionStart:D,onMotionEnd:ve,treeNodeRequiredProps:ye,onMouseMove:function(){k(null)}}))}))});oe.displayName="NodeList";const ae=oe;function se(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function le(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function ce(e){return e.split("-")}function ue(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var r=t.key,i=t.children;n.push(r),e(i)})}(T(t,e).children),n}function de(e){if(e.parent){var t=ce(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function he(e,t,n,r,i,o,a,s,l,c){var u,d=e.clientX,h=e.clientY,f=e.target.getBoundingClientRect(),p=f.top,m=f.height,g=(("rtl"===c?-1:1)*(((null==i?void 0:i.x)||0)-d)-12)/r,v=T(s,n.props.eventKey);if(h-1.5?o({dragNode:I,dropNode:M,dropPosition:1})?E=1:R=!1:o({dragNode:I,dropNode:M,dropPosition:0})?E=0:o({dragNode:I,dropNode:M,dropPosition:1})?E=1:R=!1:o({dragNode:I,dropNode:M,dropPosition:1})?E=1:R=!1,{dropPosition:E,dropLevelOffset:C,dropTargetKey:v.key,dropTargetPos:v.pos,dragOverNodeKey:S,dropContainerKey:0===E?null:(null===(u=v.parent)||void 0===u?void 0:u.key)||null,dropAllowed:R}}function fe(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function pe(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.A)(e))return(0,v.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function me(e,t){var n=new Set;function r(e){if(!n.has(e)){var i=T(t,e);if(i){n.add(e);var o=i.parent;i.node.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(e){r(e)}),(0,s.A)(n)}function ge(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function ve(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function Ae(e,t,n,r){var i,o=[];i=r||ve;var a,s=new Set(e.filter(function(e){var t=!!T(n,e);return t||o.push(e),t})),l=new Map,c=0;return Object.keys(n).forEach(function(e){var t=n[e],r=t.level,i=l.get(r);i||(i=new Set,l.set(r,i)),i.add(t),c=Math.max(c,r)}),(0,v.Ay)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)&&!r(n)&&a.filter(function(e){return!r(e.node)}).forEach(function(e){i.add(e.key)})});for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);a&&!n&&(a=!1),l||!n&&!o.has(t)||(l=!0)}),a&&i.add(t.key),l&&o.add(t.key),s.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(ge(o,i))}}(s,l,c,i):function(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),s=0;s<=r;s+=1)(n.get(s)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;o.has(t)||a.has(t)||i(n)||s.filter(function(e){return!i(e.node)}).forEach(function(e){o.delete(e.key)})});a=new Set;for(var l=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!l.has(e.parent.key))if(i(e.parent.node))l.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter(function(e){return!i(e.node)}).forEach(function(e){var t=e.key,n=o.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)}),r||o.delete(t.key),s&&a.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(ge(a,o))}}(s,t.halfCheckedKeys,l,c,i),a}var ye=function(e){(0,d.A)(n,e);var t=(0,h.A)(n);function n(){var e;(0,l.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],o=e.state,s=o.dragChildrenKeys,l=o.dropPosition,c=o.dropTargetKey,u=o.dropTargetPos;if(o.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var h=(0,a.A)((0,a.A)({},F(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:T(e.state.keyEntities,c).node}),f=-1!==s.indexOf(c);(0,v.Ay)(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=ce(u),m={event:t,node:U(h),dragNode:e.dragNode?U(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};i||null==d||d(m),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,n){var r=e.state,i=r.expandedKeys,o=r.flattenNodes,s=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=o.filter(function(e){return e.key===l})[0],u=U((0,a.A)((0,a.A)({},F(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(s?se(i,l):le(i,l)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,n){var r=e.props,i=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props,i=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==i||i(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,i=e.state,o=i.keyEntities,a=i.fieldNames,s=e.props,l=s.onSelect,c=s.multiple,u=n.selected,d=n[a.key],h=!u,f=(r=h?c?le(r,d):[d]:se(r,d)).map(function(e){var t=T(o,e);return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:r}),null==l||l(r,{event:"select",selected:h,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var i,o=e.state,a=o.keyEntities,l=o.checkedKeys,c=o.halfCheckedKeys,u=e.props,d=u.checkStrictly,h=u.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var m=r?le(l,f):se(l,f);i={checked:m,halfChecked:se(c,f)},p.checkedNodes=m.map(function(e){return T(a,e)}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:m})}else{var g=Ae([].concat((0,s.A)(l),[f]),!0,a),v=g.checkedKeys,A=g.halfCheckedKeys;if(!r){var y=new Set(v);y.delete(f);var b=Ae(Array.from(y),{checked:!1,halfCheckedKeys:A},a);v=b.checkedKeys,A=b.halfCheckedKeys}i=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=A,v.forEach(function(e){var t=T(a,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}}),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:A})}null==h||h(i,p)},e.onNodeLoad=function(t){var n=t.key,r=new Promise(function(r,i){e.setState(function(o){var a=o.loadedKeys,s=void 0===a?[]:a,l=o.loadingKeys,c=void 0===l?[]:l,u=e.props,d=u.loadData,h=u.onLoad;return d&&-1===s.indexOf(n)&&-1===c.indexOf(n)?(d(t).then(function(){var i=le(e.state.loadedKeys,n);null==h||h(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState(function(e){return{loadingKeys:se(e.loadingKeys,n)}}),r()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:se(e.loadingKeys,n)}}),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var o=e.state.loadedKeys;(0,v.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:le(o,n)}),r()}i(t)}),{loadingKeys:le(c,n)}):null})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var i=!1,o=!0,s={};Object.keys(t).forEach(function(n){n in e.props?o=!1:(i=!0,s[n]=t[n])}),!i||n&&!o||e.setState((0,a.A)((0,a.A)({},s),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,c.A)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,n=this.state,a=n.focused,s=n.flattenNodes,l=n.keyEntities,c=n.draggingNodeKey,u=n.activeKey,d=n.dropLevelOffset,h=n.dropContainerKey,f=n.dropTargetKey,m=n.dropPosition,v=n.dragOverNodeKey,b=n.indent,x=this.props,S=x.prefixCls,E=x.className,C=x.style,w=x.showLine,_=x.focusable,I=x.tabIndex,T=void 0===I?0:I,M=x.selectable,R=x.showIcon,O=x.icon,P=x.switcherIcon,N=x.draggable,k=x.checkable,D=x.checkStrictly,L=x.disabled,B=x.motion,F=x.loadData,U=x.filterTreeNode,z=x.height,j=x.itemHeight,$=x.virtual,H=x.titleRender,G=x.dropIndicatorRender,Q=x.onContextMenu,V=x.onScroll,W=x.direction,X=x.rootClassName,q=x.rootStyle,Y=(0,g.A)(this.props,{aria:!0,data:!0});return N&&(t="object"===(0,o.A)(N)?N:"function"==typeof N?{nodeDraggable:N}:{}),A.createElement(y.Provider,{value:{prefixCls:S,selectable:M,showIcon:R,icon:O,switcherIcon:P,draggable:t,draggingNodeKey:c,checkable:k,checkStrictly:D,disabled:L,keyEntities:l,dropLevelOffset:d,dropContainerKey:h,dropTargetKey:f,dropPosition:m,dragOverNodeKey:v,indent:b,direction:W,dropIndicatorRender:G,loadData:F,filterTreeNode:U,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},A.createElement("div",{role:"tree",className:p()(S,E,X,(e={},(0,i.A)(e,"".concat(S,"-show-line"),w),(0,i.A)(e,"".concat(S,"-focused"),a),(0,i.A)(e,"".concat(S,"-active-focused"),null!==u),e)),style:q},A.createElement(ae,(0,r.A)({ref:this.listRef,prefixCls:S,style:C,data:s,disabled:L,selectable:M,checkable:!!k,motion:B,dragging:null!==c,height:z,itemHeight:j,virtual:$,focusable:_,focused:a,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Q,onScroll:V},this.getTreeNodeRequiredProps(),Y))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function s(t){return!r&&t in e||r&&r[t]!==e[t]}var l=t.fieldNames;if(s("fieldNames")&&(l=k(e.fieldNames),o.fieldNames=l),s("treeData")?n=e.treeData:s("children")&&((0,v.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=D(e.children)),n){o.treeData=n;var c=B(n,{fieldNames:l});o.keyEntities=(0,a.A)((0,i.A)({},Z,te),c.keyEntities)}var u,d=o.keyEntities||t.keyEntities;if(s("expandedKeys")||r&&s("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?me(e.expandedKeys,d):e.expandedKeys;else if(!r&&e.defaultExpandAll){var h=(0,a.A)({},d);delete h[Z],o.expandedKeys=Object.keys(h).map(function(e){return h[e].key})}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?me(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var f=L(n||t.treeData,o.expandedKeys||t.expandedKeys,l);o.flattenNodes=f}if(e.selectable&&(s("selectedKeys")?o.selectedKeys=fe(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=fe(e.defaultSelectedKeys,e))),e.checkable&&(s("checkedKeys")?u=pe(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?u=pe(e.defaultCheckedKeys)||{}:n&&(u=pe(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),u)){var p=u,m=p.checkedKeys,g=void 0===m?[]:m,A=p.halfCheckedKeys,y=void 0===A?[]:A;if(!e.checkStrictly){var b=Ae(g,!0,d);g=b.checkedKeys,y=b.halfCheckedKeys}o.checkedKeys=g,o.halfCheckedKeys=y}return s("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(A.Component);ye.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return A.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1},ye.TreeNode=Q;const be=ye,xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var Se=n(70245),Ee=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:xe}))};const Ce=A.forwardRef(Ee);var we=n(42014),_e=n(77140),Ie=n(5147),Te=n(9846),Me=n(83522),Re=n(51121),Oe=n(28170),Pe=n(79218);const Ne=new Ie.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ke=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),De=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Le=(e,t)=>{const{treeCls:n,treeNodeCls:r,controlInteractiveSize:i,treeNodePadding:o,treeTitleHeight:a}=t,s=t.lineHeight*t.fontSize/2-i/2,l=(a-t.fontSizeLG)/2-s,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},(0,Pe.dF)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},(0,Pe.jk)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Ne,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:Object.assign({},(0,Pe.jk)(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},ke(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${a}px`,userSelect:"none"},De(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:a/2+"px !important"}}}}})}},Be=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},Fe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.paddingXS/2,o=t.controlHeightSM,a=(0,Re.h1)(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i,treeTitleHeight:o});return[Le(e,a),Be(a)]},Ue=(0,Oe.A)("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,Me.gd)(`${n}-checkbox`,e)},Fe(n,e),(0,Te.A)(e)]});function ze(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,a="ltr"===o?"left":"right",s="ltr"===o?"right":"left",l={[a]:-n*i+4,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=i+4}return A.createElement("div",{style:l,className:`${r}-drop-indicator`})}const je={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var $e=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:je}))};const He=A.forwardRef($e),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var Qe=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:Ge}))};const Ve=A.forwardRef(Qe);var We=n(82980);const Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var qe=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:Xe}))};const Ye=A.forwardRef(qe),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Je=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:Ke}))};const Ze=A.forwardRef(Je);var et=n(81857);const tt=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i}=e,{isLeaf:o,expanded:a,loading:s}=r;if(s)return A.createElement(We.A,{className:`${t}-switcher-loading-icon`});let l;if(i&&"object"==typeof i&&(l=i.showLeafIcon),o){if(!i)return null;if("boolean"!=typeof l&&l){const e="function"==typeof l?l(r):l,n=`${t}-switcher-line-custom-icon`;return(0,et.zO)(e)?(0,et.Ob)(e,{className:p()(e.props.className||"",n)}):e}return l?A.createElement(Ve,{className:`${t}-switcher-line-icon`}):A.createElement("span",{className:`${t}-switcher-leaf-line`})}const c=`${t}-switcher-icon`,u="function"==typeof n?n(r):n;return(0,et.zO)(u)?(0,et.Ob)(u,{className:p()(u.props.className||"",c)}):void 0!==u?u:i?a?A.createElement(Ye,{className:`${t}-switcher-line-icon`}):A.createElement(Ze,{className:`${t}-switcher-line-icon`}):A.createElement(He,{className:c})},nt=A.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,virtual:i}=A.useContext(_e.QO),{prefixCls:o,className:a,showIcon:s=!1,showLine:l,switcherIcon:c,blockNode:u=!1,children:d,checkable:h=!1,selectable:f=!0,draggable:m,motion:g}=e,v=n("tree",o),y=n(),b=null!=g?g:Object.assign(Object.assign({},(0,we.Ay)(y)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:h,selectable:f,showIcon:s,motion:b,blockNode:u,showLine:Boolean(l),dropIndicatorRender:ze}),[S,E]=Ue(v),C=A.useMemo(()=>{if(!m)return!1;let e={};switch(typeof m){case"function":e.nodeDraggable=m;break;case"object":e=Object.assign({},m)}return!1!==e.icon&&(e.icon=e.icon||A.createElement(Ce,null)),e},[m]);return S(A.createElement(be,Object.assign({itemHeight:20,ref:t,virtual:i},x,{prefixCls:v,className:p()({[`${v}-icon-hide`]:!s,[`${v}-block-node`]:u,[`${v}-unselectable`]:!f,[`${v}-rtl`]:"rtl"===r},a,E),direction:r,checkable:h?A.createElement("span",{className:`${v}-checkbox-inner`}):h,selectable:f,switcherIcon:e=>A.createElement(tt,{prefixCls:v,switcherIcon:c,treeNodeProps:e,showLine:l}),draggable:C}),d))}),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var it=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:rt}))};const ot=A.forwardRef(it),at={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var st=function(e,t){return A.createElement(Se.A,(0,r.A)({},e,{ref:t,icon:at}))};const lt=A.forwardRef(st);var ct;function ut(e,t){e.forEach(function(e){const{key:n,children:r}=e;!1!==t(n,e)&&ut(r||[],t)})}function dt(e,t){const n=(0,s.A)(t),r=[];return ut(e,(e,t)=>{const i=n.indexOf(e);return-1!==i&&(r.push(t),n.splice(i,1)),!!n.length}),r}!function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(ct||(ct={}));var ht=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=ht(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=A.useRef(),l=A.useRef(),[c,u]=A.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,h]=A.useState(()=>(()=>{const{keyEntities:e}=B(pt(o));let t;return t=n?Object.keys(e):r?me(o.expandedKeys||i||[],e):o.expandedKeys||i,t})());A.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),A.useEffect(()=>{"expandedKeys"in o&&h(o.expandedKeys)},[o.expandedKeys]);const{getPrefixCls:f,direction:m}=A.useContext(_e.QO),{prefixCls:g,className:v,showIcon:y=!0,expandAction:b="click"}=o,x=ht(o,["prefixCls","className","showIcon","expandAction"]),S=f("tree",g),E=p()(`${S}-directory`,{[`${S}-directory-rtl`]:"rtl"===m},v);return A.createElement(nt,Object.assign({icon:ft,ref:t,blockNode:!0},x,{showIcon:y,expandAction:b,prefixCls:S,className:E,expandedKeys:d,selectedKeys:c,onSelect:(e,t)=>{var n;const{multiple:r}=o,{node:i,nativeEvent:c}=t,{key:h=""}=i,f=pt(o),p=Object.assign(Object.assign({},t),{selected:!0}),m=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),g=null==c?void 0:c.shiftKey;let v;r&&m?(v=e,a.current=h,l.current=v,p.selectedNodes=dt(f,v)):r&&g?(v=Array.from(new Set([].concat((0,s.A)(l.current||[]),(0,s.A)(function(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i}=e;const o=[];let a=ct.None;return r&&r===i?[r]:r&&i?(ut(t,e=>{if(a===ct.End)return!1;if(function(e){return e===r||e===i}(e)){if(o.push(e),a===ct.None)a=ct.Start;else if(a===ct.Start)return a=ct.End,!1}else a===ct.Start&&o.push(e);return n.includes(e)}),o):[]}({treeData:f,expandedKeys:d,startKey:h,endKey:a.current}))))),p.selectedNodes=dt(f,v)):(v=[h],a.current=h,l.current=v,p.selectedNodes=dt(f,v)),null===(n=o.onSelect)||void 0===n||n.call(o,v,p),"selectedKeys"in o||u(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in o||h(e),null===(n=o.onExpand)||void 0===n?void 0:n.call(o,e,t)}}))},gt=A.forwardRef(mt),vt=nt;vt.DirectoryTree=gt,vt.TreeNode=Q;const At=vt},53228(e,t,n){var r=n(88905);function i(e,t){var n=new r(e,t);return function(e){return n.convert(e)}}i.BIN="01",i.OCT="01234567",i.DEC="0123456789",i.HEX="0123456789abcdef",e.exports=i},88905(e){"use strict";function t(e,t){if(!(e&&t&&e.length&&t.length))throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}t.prototype.convert=function(e){var t,n,r,i={},o=this.srcAlphabet.length,a=this.dstAlphabet.length,s=e.length,l="string"==typeof e?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t=a?(i[r++]=parseInt(n/a,10),n%=a):r>0&&(i[r++]=0);s=r,l=this.dstAlphabet.slice(n,n+1).concat(l)}while(0!==r);return l},t.prototype.isValid=function(e){for(var t=0;t=t?e:""+Array(t+1-r.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;y[s]=t,i=s}return!r&&i&&(A=i),i||!r&&A},E=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},C=v;C.l=S,C.i=x,C.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return C},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return E(e)-1}},59106(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=t?e:t)),e}},49192(e,t,n){var r=n(99310),i=n(32130),o=n(56312),a=n(32516),s=n(65771),l=n(21733),c=n(85240),u=n(26752),d=n(64239),h=n(21679),f=n(56628),p=n(81344),m=n(37928),g=n(24290),v=n(86082),A=n(79464),y=n(53371),b=n(56043),x=n(56130),S=n(66885),E=n(59125),C=n(57798),w="[object Arguments]",_="[object Function]",I="[object Object]",T={};T[w]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[I]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[_]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,M,R,O,P){var N,k=1&n,D=2&n,L=4&n;if(M&&(N=O?M(t,R,O,P):M(t)),void 0!==N)return N;if(!x(t))return t;var B=A(t);if(B){if(N=m(t),!k)return c(t,N)}else{var F=p(t),U=F==_||"[object GeneratorFunction]"==F;if(y(t))return l(t,k);if(F==I||F==w||U&&!O){if(N=D||U?{}:v(t),!k)return D?d(t,s(N,t)):u(t,a(N,t))}else{if(!T[F])return O?t:{};N=g(t,F,k)}}P||(P=new r);var z=P.get(t);if(z)return z;P.set(t,N),S(t)?t.forEach(function(r){N.add(e(r,n,M,r,t,P))}):b(t)&&t.forEach(function(r,i){N.set(i,e(r,n,M,i,t,P))});var j=B?void 0:(L?D?f:h:D?C:E)(t);return i(j||t,function(r,i){j&&(r=t[i=r]),o(N,i,e(r,n,M,i,t,P))}),N}},86309(e,t,n){var r=n(56130),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},28906(e){e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}},82070(e,t,n){var r=n(46874),i=n(33574),o=n(59106),a=n(76233),s=n(57746),l=n(74854);e.exports=function(e,t,n,c){var u=-1,d=i,h=!0,f=e.length,p=[],m=t.length;if(!f)return p;n&&(t=a(t,s(n))),c?(d=o,h=!1):t.length>=200&&(d=l,h=!1,t=new r(t));e:for(;++u0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},74350(e,t,n){var r=n(62294)();e.exports=r},45828(e,t,n){var r=n(74350),i=n(59125);e.exports=function(e,t){return e&&r(e,t,i)}},23117(e,t,n){var r=n(78328),i=n(81966);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&ni?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);h=!1,u=a,p=new r}else p=t?[]:f;e:for(;++c1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++ru))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},34710(e,t,n){var r=n(25096);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},20615(e,t,n){var r=n(85072),i=n(45332),o=n(30016);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},99859(e,t,n){var r=n(5930);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},25170(e,t,n){var r=n(5930);e.exports=function(e){return r(this,e).get(e)}},98470(e,t,n){var r=n(5930);e.exports=function(e){return r(this,e).has(e)}},87646(e,t,n){var r=n(5930);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},25860(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},89738(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},35647(e,t,n){var r=n(7105);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},40267(e,t,n){var r=n(93789)(Object,"create");e.exports=r},89963(e,t,n){var r=n(22344)(Object.keys,Object);e.exports=r},312(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1172(e,t,n){e=n.nmd(e);var r=n(28565),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},43371(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},22344(e){e.exports=function(e,t){return function(n){return e(t(n))}}},94088(e,t,n){var r=n(89822),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},9333(e,t,n){var r=n(45332);e.exports=function(){this.__data__=new r,this.size=0}},41893(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},49676(e){e.exports=function(e){return this.__data__.get(e)}},46536(e){e.exports=function(e){return this.__data__.has(e)}},3336(e,t,n){var r=n(45332),i=n(30016),o=n(21708);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},50016(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||g&&e-p>=u}function b(){var e=i();if(y(e))return x(e);h=setTimeout(b,function(e){var n=t-(e-f);return g?s(n,u-(e-p)):n}(e))}function x(e){return h=void 0,v&&l?A(e):(l=c=void 0,d)}function S(){var e=i(),n=y(e);if(l=arguments,c=this,f=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(b,t),m?A(e):d}(f);if(g)return clearTimeout(h),h=setTimeout(b,t),A(f)}return void 0===h&&(h=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},S.flush=function(){return void 0===h?d:x(i())},S}},30767(e,t,n){var r=n(39210),i=n(58753),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},31329(e,t,n){var r=n(28906),i=n(8339)(function(e,t){return r(e,1,t)});e.exports=i},61998(e,t,n){var r=n(82070),i=n(15951),o=n(8339),a=n(38796),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},97936(e,t,n){var r=n(76699),i=n(80464);e.exports=function(e,t,n){var o=null==e?0:e.length;return o?(t=n||void 0===t?1:i(t),r(e,t<0?0:t,o)):[]}},83300(e,t,n){var r=n(76699),i=n(80464);e.exports=function(e,t,n){var o=null==e?0:e.length;return o?(t=n||void 0===t?1:i(t),r(e,0,(t=o-t)<0?0:t)):[]}},59679(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},19607(e,t,n){var r=n(15951);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},10613(e,t,n){var r=n(23117);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},58146(e,t,n){var r=n(22282),i=n(63773);e.exports=function(e,t){return null!=e&&i(e,t,r)}},40515(e){e.exports=function(e){return e}},7933(e,t,n){var r=n(15301),i=n(24189),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},79464(e){var t=Array.isArray;e.exports=t},60623(e,t,n){var r=n(46553),i=n(5841);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},38796(e,t,n){var r=n(60623),i=n(24189);e.exports=function(e){return i(e)&&r(e)}},53371(e,t,n){e=n.nmd(e);var r=n(15036),i=n(8042),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},5276(e,t,n){var r=n(64829),i=n(81344),o=n(7933),a=n(79464),s=n(60623),l=n(53371),c=n(82632),u=n(30264),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},24169(e,t,n){var r=n(96161);e.exports=function(e,t){return r(e,t)}},46553(e,t,n){var r=n(46077),i=n(56130);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5841(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56043(e,t,n){var r=n(71939),i=n(57746),o=n(1172),a=o&&o.isMap,s=a?i(a):r;e.exports=s},56130(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24189(e){e.exports=function(e){return null!=e&&"object"==typeof e}},56446(e,t,n){var r=n(46077),i=n(24754),o=n(24189),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},66885(e,t,n){var r=n(8685),i=n(57746),o=n(1172),a=o&&o.isSet,s=a?i(a):r;e.exports=s},25733(e,t,n){var r=n(46077),i=n(24189);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},30264(e,t,n){var r=n(48912),i=n(57746),o=n(1172),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},688(e,t,n){var r=n(42222)(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});e.exports=r},59125(e,t,n){var r=n(36272),i=n(64829),o=n(60623);e.exports=function(e){return o(e)?r(e):i(e)}},57798(e,t,n){var r=n(36272),i=n(49262),o=n(60623);e.exports=function(e){return o(e)?r(e,!0):i(e)}},81853(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},15076(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=32,c=128,u=1/0,d=9007199254740991,h=NaN,f=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",l],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",A="[object Date]",y="[object Error]",b="[object Function]",x="[object GeneratorFunction]",S="[object Map]",E="[object Number]",C="[object Object]",w="[object Promise]",_="[object RegExp]",I="[object Set]",T="[object String]",M="[object Symbol]",R="[object WeakMap]",O="[object ArrayBuffer]",P="[object DataView]",N="[object Float32Array]",k="[object Float64Array]",D="[object Int8Array]",L="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",j="[object Uint32Array]",$=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,W=RegExp(Q.source),X=RegExp(V.source),q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,Ae=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",we="A-Z\\xc0-\\xd6\\xd8-\\xde",_e="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="["+xe+"]",Me="["+Ie+"]",Re="["+Se+"]",Oe="\\d+",Pe="["+Ee+"]",Ne="["+Ce+"]",ke="[^"+xe+Ie+Oe+Ee+Ce+we+"]",De="\\ud83c[\\udffb-\\udfff]",Le="[^"+xe+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+we+"]",ze="\\u200d",je="(?:"+Ne+"|"+ke+")",$e="(?:"+Ue+"|"+ke+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Re+"|"+De+")?",Ve="["+_e+"]?",We=Ve+Qe+"(?:"+ze+"(?:"+[Le,Be,Fe].join("|")+")"+Ve+Qe+")*",Xe="(?:"+[Pe,Be,Fe].join("|")+")"+We,qe="(?:"+[Le+Re+"?",Re,Be,Fe,Te].join("|")+")",Ye=RegExp("['’]","g"),Ke=RegExp(Re,"g"),Je=RegExp(De+"(?="+De+")|"+qe+We,"g"),Ze=RegExp([Ue+"?"+Ne+"+"+He+"(?="+[Me,Ue,"$"].join("|")+")",$e+"+"+Ge+"(?="+[Me,Ue+je,"$"].join("|")+")",Ue+"?"+je+"+"+He,Ue+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Xe].join("|"),"g"),et=RegExp("["+ze+xe+Se+_e+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[N]=it[k]=it[D]=it[L]=it[B]=it[F]=it[U]=it[z]=it[j]=!0,it[m]=it[g]=it[O]=it[v]=it[P]=it[A]=it[y]=it[b]=it[S]=it[E]=it[C]=it[_]=it[I]=it[T]=it[R]=!1;var ot={};ot[m]=ot[g]=ot[O]=ot[P]=ot[v]=ot[A]=ot[N]=ot[k]=ot[D]=ot[L]=ot[B]=ot[S]=ot[E]=ot[C]=ot[_]=ot[I]=ot[T]=ot[M]=ot[F]=ot[U]=ot[z]=ot[j]=!0,ot[y]=ot[b]=ot[R]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,lt=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ut="object"==typeof self&&self&&self.Object===Object&&self,dt=ct||ut||Function("return this")(),ht=t&&!t.nodeType&&t,ft=ht&&e&&!e.nodeType&&e,pt=ft&&ft.exports===ht,mt=pt&&ct.process,gt=function(){try{return ft&&ft.require&&ft.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,At=gt&>.isDate,yt=gt&>.isMap,bt=gt&>.isRegExp,xt=gt&>.isSet,St=gt&>.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Rt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var en=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+at[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function an(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?dt:pn.defaults(dt.Object(),t,pn.pick(dt,nt))).Array,ie=t.Date,xe=t.Error,Se=t.Function,Ee=t.Math,Ce=t.Object,we=t.RegExp,_e=t.String,Ie=t.TypeError,Te=r.prototype,Me=Se.prototype,Re=Ce.prototype,Oe=t["__core-js_shared__"],Pe=Me.toString,Ne=Re.hasOwnProperty,ke=0,De=(n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Le=Re.toString,Be=Pe.call(Ce),Fe=dt._,Ue=we("^"+Pe.call(Ne).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=pt?t.Buffer:i,je=t.Symbol,$e=t.Uint8Array,He=ze?ze.allocUnsafe:i,Ge=an(Ce.getPrototypeOf,Ce),Qe=Ce.create,Ve=Re.propertyIsEnumerable,We=Te.splice,Xe=je?je.isConcatSpreadable:i,qe=je?je.iterator:i,Je=je?je.toStringTag:i,et=function(){try{var e=lo(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==dt.Date.now&&ie.now,ut=t.setTimeout!==dt.setTimeout&&t.setTimeout,ht=Ee.ceil,ft=Ee.floor,mt=Ce.getOwnPropertySymbols,gt=ze?ze.isBuffer:i,Lt=t.isFinite,Gt=Te.join,mn=an(Ce.keys,Ce),gn=Ee.max,vn=Ee.min,An=ie.now,yn=t.parseInt,bn=Ee.random,xn=Te.reverse,Sn=lo(t,"DataView"),En=lo(t,"Map"),Cn=lo(t,"Promise"),wn=lo(t,"Set"),_n=lo(t,"WeakMap"),In=lo(Ce,"create"),Tn=_n&&new _n,Mn={},Rn=Bo(Sn),On=Bo(En),Pn=Bo(Cn),Nn=Bo(wn),kn=Bo(_n),Dn=je?je.prototype:i,Ln=Dn?Dn.valueOf:i,Bn=Dn?Dn.toString:i;function Fn(e){if(es(e)&&!Ha(e)&&!(e instanceof $n)){if(e instanceof jn)return e;if(Ne.call(e,"__wrapped__"))return Fo(e)}return new jn(e)}var Un=function(){function e(){}return function(t){if(!Za(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function zn(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ar(e,t,n,r,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Za(e))return e;var d=Ha(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return _i(e,s)}else{var h=ho(e),f=h==b||h==x;if(Wa(e))return bi(e,l);if(h==C||h==m||f&&!o){if(s=c||f?{}:po(e),!l)return c?function(e,t){return Ii(e,uo(e),t)}(e,function(e,t){return e&&Ii(t,Os(t),e)}(s,e)):function(e,t){return Ii(e,co(e),t)}(e,nr(s,e))}else{if(!ot[h])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case O:return xi(e);case v:case A:return new i(+e);case P:return function(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case k:case D:case L:case B:case F:case U:case z:case j:return Si(e,n);case S:return new i;case E:case T:return new i(e);case _:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new i;case M:return r=e,Ln?Ce(Ln.call(r)):{}}}(e,h,l)}}a||(a=new Wn);var p=a.get(e);if(p)return p;a.set(e,s),os(e)?e.forEach(function(r){s.add(ar(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,i){s.set(i,ar(r,t,n,i,e,a))});var g=d?i:(u?c?to:eo:c?Os:Rs)(e);return wt(g||e,function(r,i){g&&(r=e[i=r]),Zn(s,i,ar(r,t,n,i,e,a))}),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Ie(o);return To(function(){e.apply(i,n)},t)}function cr(e,t,n,r){var i=-1,o=Mt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Ot(t,qt(n))),r?(o=Rt,a=!1):t.length>=200&&(o=Kt,a=!1,t=new Vn(t));e:for(;++i-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(En||Gn),string:new Hn}},Qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return ao(this,e).get(e)},Qn.prototype.has=function(e){return ao(this,e).has(e)},Qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,a),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Wn.prototype.get=function(e){return this.__data__.get(e)},Wn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var ur=Ri(Ar),dr=Ri(yr,!0);function hr(e,t){var n=!0;return ur(e,function(e,r,i){return n=!!t(e,r,i)}),n}function fr(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?mr(s,t-1,n,r,i):Pt(i,s):r||(i[i.length]=s)}return i}var gr=Oi(),vr=Oi(!0);function Ar(e,t){return e&&gr(e,t,Rs)}function yr(e,t){return e&&vr(e,t,Rs)}function br(e,t){return Tt(t,function(t){return Ya(e[t])})}function xr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&nt}function wr(e,t){return null!=e&&Ne.call(e,t)}function _r(e,t){return null!=e&&t in Ce(e)}function Ir(e,t,n){for(var o=n?Rt:Mt,a=e[0].length,s=e.length,l=s,c=r(s),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Ot(h,qt(t))),u=vn(h.length,u),c[l]=!n&&(t||a>=120&&h.length>=120)?new Vn(l&&h):i}h=e[0];var f=-1,p=c[0];e:for(;++f=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(i)}function $r(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&We.call(s,l,1),We.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?We.call(e,i,1):li(e,i)}}return e}function Qr(e,t){return e+ft(bn()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Wr(e,t){return Mo(Co(e,t,nl),e+"")}function Xr(e){return qn(Us(e))}function qr(e,t){var n=Us(e);return Po(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Za(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,l=e;null!=l&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!ss(a)&&(n?a<=t:a=200){var c=t?null:Vi(e);if(c)return ln(c);a=!1,i=Kt,l=new Vn}else l=t?[]:s;e:for(;++r=r?e:ei(e,t,n)}var yi=at||function(e){return dt.clearTimeout(e)};function bi(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function xi(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function Si(e,t){var n=t?xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=ss(e),s=t!==i,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&vo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=Ce(t);++r-1?o[a?t[s]:s]:i}}function Li(e){return Zi(function(t){var n=t.length,r=n,a=jn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ie(o);if(a&&!l&&"wrapper"==ro(s))var l=new jn([],!0)}for(r=l?r:n;++r1&&b.reverse(),f&&dl))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Vn:i;for(a.set(e,t),a.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return wt(p,function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Oo(e){var t=0,n=0;return function(){var r=An(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Po(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ia(e,n)});function da(e){var t=Fn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var fa=Zi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new jn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)}),pa=Ti(function(e,t,n){Ne.call(e,n)?++e[n]:rr(e,n,1)}),ma=Di($o),ga=Di(Ho);function va(e,t){return(Ha(e)?wt:ur)(e,oo(t,3))}function Aa(e,t){return(Ha(e)?_t:dr)(e,oo(t,3))}var ya=Ti(function(e,t,n){Ne.call(e,n)?e[n].push(t):rr(e,n,[t])}),ba=Wr(function(e,t,n){var i=-1,o="function"==typeof t,a=Qa(e)?r(e.length):[];return ur(e,function(e){a[++i]=o?Et(t,e,n):Tr(e,t,n)}),a}),xa=Ti(function(e,t,n){rr(e,n,t)});function Sa(e,t){return(Ha(e)?Ot:Lr)(e,oo(t,3))}var Ea=Ti(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ca=Wr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vo(e,t[0],t[1])?t=[]:n>2&&vo(t[0],t[1],t[2])&&(t=[t[0]]),jr(e,mr(t,1),[])}),wa=ct||function(){return dt.Date.now()};function _a(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xi(e,c,i,i,i,i,t)}function Ia(e,t){var n;if("function"!=typeof t)throw new Ie(o);return e=fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ta=Wr(function(e,t,n){var r=1;if(n.length){var i=sn(n,io(Ta));r|=l}return Xi(e,r,t,n,i)}),Ma=Wr(function(e,t,n){var r=3;if(n.length){var i=sn(n,io(Ma));r|=l}return Xi(t,r,e,n,i)});function Ra(e,t,n){var r,a,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ie(o);function m(t){var n=r,o=a;return r=a=i,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||f&&e-d>=s}function v(){var e=wa();if(g(e))return A(e);c=To(v,function(e){var n=t-(e-u);return f?vn(n,s-(e-d)):n}(e))}function A(e){return c=i,p&&r?m(e):(r=a=i,l)}function y(){var e=wa(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===i)return function(e){return d=e,c=To(v,t),h?m(e):l}(u);if(f)return yi(c),c=To(v,t),m(u)}return c===i&&(c=To(v,t)),l}return t=ms(t)||0,Za(n)&&(h=!!n.leading,s=(f="maxWait"in n)?gn(ms(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){c!==i&&yi(c),d=0,r=u=a=c=i},y.flush=function(){return c===i?l:A(wa())},y}var Oa=Wr(function(e,t){return lr(e,1,t)}),Pa=Wr(function(e,t,n){return lr(e,ms(t)||0,n)});function Na(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Na.Cache||Qn),n}function ka(e){if("function"!=typeof e)throw new Ie(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Na.Cache=Qn;var Da=vi(function(e,t){var n=(t=1==t.length&&Ha(t[0])?Ot(t[0],qt(oo())):Ot(mr(t,1),qt(oo()))).length;return Wr(function(r){for(var i=-1,o=vn(r.length,n);++i=t}),$a=Mr(function(){return arguments}())?Mr:function(e){return es(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")},Ha=r.isArray,Ga=vt?qt(vt):function(e){return es(e)&&Er(e)==O};function Qa(e){return null!=e&&Ja(e.length)&&!Ya(e)}function Va(e){return es(e)&&Qa(e)}var Wa=gt||ml,Xa=At?qt(At):function(e){return es(e)&&Er(e)==A};function qa(e){if(!es(e))return!1;var t=Er(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ya(e){if(!Za(e))return!1;var t=Er(e);return t==b||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ka(e){return"number"==typeof e&&e==fs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=yt?qt(yt):function(e){return es(e)&&ho(e)==S};function ns(e){return"number"==typeof e||es(e)&&Er(e)==E}function rs(e){if(!es(e)||Er(e)!=C)return!1;var t=Ge(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Be}var is=bt?qt(bt):function(e){return es(e)&&Er(e)==_},os=xt?qt(xt):function(e){return es(e)&&ho(e)==I};function as(e){return"string"==typeof e||!Ha(e)&&es(e)&&Er(e)==T}function ss(e){return"symbol"==typeof e||es(e)&&Er(e)==M}var ls=St?qt(St):function(e){return es(e)&&Ja(e.length)&&!!it[Er(e)]},cs=Hi(Dr),us=Hi(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Qa(e))return as(e)?dn(e):_i(e);if(qe&&e[qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qe]());var t=ho(e);return(t==S?on:t==I?ln:Us)(e)}function hs(e){return e?(e=ms(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function fs(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?or(fs(e),0,f):0}function ms(e){if("number"==typeof e)return e;if(ss(e))return h;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=pe.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):fe.test(e)?h:+e}function gs(e){return Ii(e,Os(e))}function vs(e){return null==e?"":ai(e)}var As=Mi(function(e,t){if(xo(t)||Qa(t))Ii(t,Rs(t),e);else for(var n in t)Ne.call(t,n)&&Zn(e,n,t[n])}),ys=Mi(function(e,t){Ii(t,Os(t),e)}),bs=Mi(function(e,t,n,r){Ii(t,Os(t),e,r)}),xs=Mi(function(e,t,n,r){Ii(t,Rs(t),e,r)}),Ss=Zi(ir),Es=Wr(function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&vo(t[0],t[1],o)&&(r=1);++n1),t}),Ii(e,to(e),n),r&&(n=ar(n,7,Ki));for(var i=t.length;i--;)li(n,t[i]);return n}),Ds=Zi(function(e,t){return null==e?{}:function(e,t){return $r(e,t,function(t,n){return _s(e,n)})}(e,t)});function Ls(e,t){if(null==e)return{};var n=Ot(to(e),function(e){return[e]});return t=oo(t),$r(e,n,function(e,n){return t(e,n[0])})}var Bs=Wi(Rs),Fs=Wi(Os);function Us(e){return null==e?[]:Yt(e,Rs(e))}var zs=Ni(function(e,t,n){return t=t.toLowerCase(),e+(n?js(t):t)});function js(e){return qs(vs(e).toLowerCase())}function $s(e){return(e=vs(e))&&e.replace(Ae,en).replace(Ke,"")}var Hs=Ni(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Gs=Ni(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qs=Pi("toLowerCase"),Vs=Ni(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ws=Ni(function(e,t,n){return e+(n?" ":"")+qs(t)}),Xs=Ni(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),qs=Pi("toUpperCase");function Ys(e,t,n){return e=vs(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Ks=Wr(function(e,t){try{return Et(e,i,t)}catch(e){return qa(e)?e:new xe(e)}}),Js=Zi(function(e,t){return wt(t,function(t){t=Lo(t),rr(e,t,Ta(e[t],e))}),e});function Zs(e){return function(){return e}}var el=Li(),tl=Li(!0);function nl(e){return e}function rl(e){return Nr("function"==typeof e?e:ar(e,1))}var il=Wr(function(e,t){return function(n){return Tr(n,e,t)}}),ol=Wr(function(e,t){return function(n){return Tr(e,n,t)}});function al(e,t,n){var r=Rs(t),i=br(t,r);null!=n||Za(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=br(t,Rs(t)));var o=!(Za(n)&&"chain"in n&&!n.chain),a=Ya(e);return wt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=_i(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Pt([this.value()],arguments))})}),e}function sl(){}var ll=zi(Ot),cl=zi(It),ul=zi(Dt);function dl(e){return Ao(e)?Ht(Lo(e)):function(e){return function(t){return xr(t,e)}}(e)}var hl=$i(),fl=$i(!0);function pl(){return[]}function ml(){return!1}var gl,vl=Ui(function(e,t){return e+t},0),Al=Qi("ceil"),yl=Ui(function(e,t){return e/t},1),bl=Qi("floor"),xl=Ui(function(e,t){return e*t},1),Sl=Qi("round"),El=Ui(function(e,t){return e-t},0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Ie(o);return e=fs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=_a,Fn.assign=As,Fn.assignIn=ys,Fn.assignInWith=bs,Fn.assignWith=xs,Fn.at=Ss,Fn.before=Ia,Fn.bind=Ta,Fn.bindAll=Js,Fn.bindKey=Ma,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Fn.chain=da,Fn.chunk=function(e,t,n){t=(n?vo(e,t,n):t===i)?1:gn(fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(ht(o/t));ao?0:o+n),(r=r===i||r>o?o:fs(r))<0&&(r+=o),r=n>r?0:ps(r);n>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ai(t))&&rn(e)?Ai(dn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Ie(o);return t=null==t?0:gn(fs(t),0),Wr(function(n){var r=n[t],i=Ai(n,0,t);return r&&Pt(i,r),Et(e,this,i)})},Fn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:fs(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:fs(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?ui(e,oo(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?ui(e,oo(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ie(o);return Za(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ra(e,t,{leading:r,maxWait:t,trailing:i})},Fn.thru=ha,Fn.toArray=ds,Fn.toPairs=Bs,Fn.toPairsIn=Fs,Fn.toPath=function(e){return Ha(e)?Ot(e,Lo):ss(e)?[e]:_i(Do(vs(e)))},Fn.toPlainObject=gs,Fn.transform=function(e,t,n){var r=Ha(e),i=r||Wa(e)||ls(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Za(e)&&Ya(o)?Un(Ge(e)):{}}return(i?wt:Ar)(e,function(e,r,i){return t(n,e,r,i)}),n},Fn.unary=function(e){return _a(e,1)},Fn.union=ea,Fn.unionBy=ta,Fn.unionWith=na,Fn.uniq=function(e){return e&&e.length?si(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?si(e,oo(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?si(e,i,t):[]},Fn.unset=function(e,t){return null==e||li(e,t)},Fn.unzip=ra,Fn.unzipWith=ia,Fn.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},Fn.values=Us,Fn.valuesIn=function(e){return null==e?[]:Yt(e,Os(e))},Fn.without=oa,Fn.words=Ys,Fn.wrap=function(e,t){return La(mi(t),e)},Fn.xor=aa,Fn.xorBy=sa,Fn.xorWith=la,Fn.zip=ca,Fn.zipObject=function(e,t){return fi(e||[],t||[],Zn)},Fn.zipObjectDeep=function(e,t){return fi(e||[],t||[],Yr)},Fn.zipWith=ua,Fn.entries=Bs,Fn.entriesIn=Fs,Fn.extend=ys,Fn.extendWith=bs,al(Fn,Fn),Fn.add=vl,Fn.attempt=Ks,Fn.camelCase=zs,Fn.capitalize=js,Fn.ceil=Al,Fn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ms(n))==n?n:0),t!==i&&(t=(t=ms(t))==t?t:0),or(ms(e),t,n)},Fn.clone=function(e){return ar(e,4)},Fn.cloneDeep=function(e){return ar(e,5)},Fn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Fn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Fn.conformsTo=function(e,t){return null==t||sr(e,t,Rs(t))},Fn.deburr=$s,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=yl,Fn.endsWith=function(e,t,n){e=vs(e),t=ai(t);var r=e.length,o=n=n===i?r:or(fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Fn.eq=Ua,Fn.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(V,tn):e},Fn.escapeRegExp=function(e){return(e=vs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Ha(e)?It:hr;return n&&vo(e,t,n)&&(t=i),r(e,oo(t,3))},Fn.find=ma,Fn.findIndex=$o,Fn.findKey=function(e,t){return Bt(e,oo(t,3),Ar)},Fn.findLast=ga,Fn.findLastIndex=Ho,Fn.findLastKey=function(e,t){return Bt(e,oo(t,3),yr)},Fn.floor=bl,Fn.forEach=va,Fn.forEachRight=Aa,Fn.forIn=function(e,t){return null==e?e:gr(e,oo(t,3),Os)},Fn.forInRight=function(e,t){return null==e?e:vr(e,oo(t,3),Os)},Fn.forOwn=function(e,t){return e&&Ar(e,oo(t,3))},Fn.forOwnRight=function(e,t){return e&&yr(e,oo(t,3))},Fn.get=ws,Fn.gt=za,Fn.gte=ja,Fn.has=function(e,t){return null!=e&&fo(e,t,wr)},Fn.hasIn=_s,Fn.head=Qo,Fn.identity=nl,Fn.includes=function(e,t,n,r){e=Qa(e)?e:Us(e),n=n&&!r?fs(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),as(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ut(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:fs(n);return i<0&&(i=gn(r+i,0)),Ut(e,t,i)},Fn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=vn(t,n)&&e=-9007199254740991&&e<=d},Fn.isSet=os,Fn.isString=as,Fn.isSymbol=ss,Fn.isTypedArray=ls,Fn.isUndefined=function(e){return e===i},Fn.isWeakMap=function(e){return es(e)&&ho(e)==R},Fn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Er(e)},Fn.join=function(e,t){return null==e?"":Gt.call(e,t)},Fn.kebabCase=Hs,Fn.last=qo,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=fs(n))<0?gn(r+o,0):vn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ft(e,jt,o,!0)},Fn.lowerCase=Gs,Fn.lowerFirst=Qs,Fn.lt=cs,Fn.lte=us,Fn.max=function(e){return e&&e.length?fr(e,nl,Cr):i},Fn.maxBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Cr):i},Fn.mean=function(e){return $t(e,nl)},Fn.meanBy=function(e,t){return $t(e,oo(t,2))},Fn.min=function(e){return e&&e.length?fr(e,nl,Dr):i},Fn.minBy=function(e,t){return e&&e.length?fr(e,oo(t,2),Dr):i},Fn.stubArray=pl,Fn.stubFalse=ml,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=xl,Fn.nth=function(e,t){return e&&e.length?zr(e,fs(t)):i},Fn.noConflict=function(){return dt._===this&&(dt._=Fe),this},Fn.noop=sl,Fn.now=wa,Fn.pad=function(e,t,n){e=vs(e);var r=(t=fs(t))?un(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ji(ft(i),n)+e+ji(ht(i),n)},Fn.padEnd=function(e,t,n){e=vs(e);var r=(t=fs(t))?un(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=bn();return vn(e+o*(t-e+st("1e-"+((o+"").length-1))),t)}return Qr(e,t)},Fn.reduce=function(e,t,n){var r=Ha(e)?Nt:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,ur)},Fn.reduceRight=function(e,t,n){var r=Ha(e)?kt:Qt,i=arguments.length<3;return r(e,oo(t,4),n,i,dr)},Fn.repeat=function(e,t,n){return t=(n?vo(e,t,n):t===i)?1:fs(t),Vr(vs(e),t)},Fn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++rd)return[];var n=f,r=vn(e,f);t=oo(t),e-=f;for(var i=Wt(r,t);++n=a)return e;var l=n-un(r);if(l<1)return r;var c=s?Ai(s,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=we(o.source,vs(he.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ai(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},Fn.unescape=function(e){return(e=vs(e))&&W.test(e)?e.replace(Q,fn):e},Fn.uniqueId=function(e){var t=++ke;return vs(e)+t},Fn.upperCase=Xs,Fn.upperFirst=qs,Fn.each=va,Fn.eachRight=Aa,Fn.first=Qo,al(Fn,(gl={},Ar(Fn,function(e,t){Ne.call(Fn.prototype,t)||(gl[t]=e)}),gl),{chain:!1}),Fn.VERSION="4.18.1",wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Fn[e].placeholder=Fn}),wt(["drop","take"],function(e,t){$n.prototype[e]=function(n){n=n===i?1:gn(fs(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,f),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),wt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),wt(["head","last"],function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}}),wt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}}),$n.prototype.compact=function(){return this.filter(nl)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Wr(function(e,t){return"function"==typeof e?new $n(this):this.map(function(n){return Tr(n,e,t)})}),$n.prototype.reject=function(e){return this.filter(ka(oo(e)))},$n.prototype.slice=function(e,t){e=fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(f)},Ar($n.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof $n,c=s[0],u=l||Ha(t),d=function(e){var t=o.apply(Fn,Pt([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=l&&!f;if(!a&&u){t=m?t:new $n(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[d],thisArg:i}),new jn(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}),wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n](function(n){return t.apply(Ha(n)?n:[],e)})}}),Ar($n.prototype,function(e,t){var n=Fn[t];if(n){var r=n.name+"";Ne.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}}),Mn[Bi(i,2).name]=[{name:"wrapper",func:i}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=_i(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_i(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_i(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=Fo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ha,args:[Zo],thisArg:i}),new jn(t,this.__chain__)}return this.thru(Zo)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,qe&&(Fn.prototype[qe]=function(){return this}),Fn}();dt._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},7105(e,t,n){var r=n(21708);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},93125(e){e.exports=function(){}},28593(e,t,n){var r=n(15036);e.exports=function(){return r.Date.now()}},41972(e,t,n){var r=n(76233),i=n(49192),o=n(13704),a=n(78328),s=n(35634),l=n(25589),c=n(30565),u=n(56628),d=c(function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,u(e),n),c&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},8644(e,t,n){var r=n(13612),i=n(30565)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},76405(e,t,n){var r=n(76233),i=n(72916),o=n(36333),a=n(56628);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=i(t),o(e,n,function(e,n){return t(e,n[0])})}},50416(e,t,n){var r=n(24024),i=n(44822),o=n(63297),a=n(81966);e.exports=function(e){return o(e)?r(a(e)):i(e)}},25073(e,t,n){var r=n(86601);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},73864(e){e.exports=function(){return[]}},8042(e){e.exports=function(){return!1}},69438(e,t,n){var r=n(76699),i=n(80464);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),r(e,0,t<0?0:t)):[]}},33005(e,t,n){var r=n(9738),i=n(56130);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},95187(e,t,n){var r=n(22909),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},80464(e,t,n){var r=n(95187);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},22909(e,t,n){var r=n(87625),i=n(56130),o=n(25733),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},58753(e,t,n){var r=n(68761);e.exports=function(e){return null==e?"":r(e)}},25116(e,t,n){var r=n(4900);e.exports=function(e){return e&&e.length?r(e):[]}},2099(e,t,n){var r=n(34923),i=n(59125);e.exports=function(e){return null==e?[]:r(e,i(e))}},16376(e,t,n){var r=n(76564),i=n(38683),o=n(58753),a=n(4160);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},99359(){},36738(){},64260(e,t){!function(e){"use strict";function t(){}function n(e,n){this.dv=new DataView(e),this.offset=0,this.littleEndian=void 0===n||n,this.encoder=new t}function r(){}function i(){}t.prototype.s2u=function(e){for(var t=this.s2uTable,n="",r=0;r=0&&i<=126||i>=161&&i<=223)&&r0;){var n=this.getUint8();if(e--,0===n)break;t+=String.fromCharCode(n)}for(;e>0;)this.getUint8(),e--;return t},getSjisStringsAsUnicode:function(e){for(var t=[];e>0;){var n=this.getUint8();if(e--,0===n)break;t.push(n)}for(;e>0;)this.getUint8(),e--;return this.encoder.s2u(new Uint8Array(t))},getUnicodeStrings:function(e){for(var t="";e>0;){var n=this.getUint16();if(e-=2,0===n)break;t+=String.fromCharCode(n)}for(;e>0;)this.getUint8(),e--;return t},getTextBuffer:function(){var e=this.getUint32();return this.getUnicodeStrings(e)}},r.prototype={constructor:r,leftToRightVector3:function(e){e[2]=-e[2]},leftToRightQuaternion:function(e){e[0]=-e[0],e[1]=-e[1]},leftToRightEuler:function(e){e[0]=-e[0],e[1]=-e[1]},leftToRightIndexOrder:function(e){var t=e[2];e[2]=e[0],e[0]=t},leftToRightVector3Range:function(e,t){var n=-t[2];t[2]=-e[2],e[2]=n},leftToRightEulerRange:function(e,t){var n=-t[0],r=-t[1];t[0]=-e[0],t[1]=-e[1],e[0]=n,e[1]=r}},i.prototype.parsePmd=function(e,t){var r={},i=new n(e);r.metadata={},r.metadata.format="pmd",r.metadata.coordinateSystem="left";var o;return function(){var e=r.metadata;if(e.magic=i.getChars(3),"Pmd"!==e.magic)throw"PMD file magic is not Pmd, but "+e.magic;e.version=i.getFloat32(),e.modelName=i.getSjisStringsAsUnicode(20),e.comment=i.getSjisStringsAsUnicode(256)}(),function(){var e=function(){var e={};return e.position=i.getFloat32Array(3),e.normal=i.getFloat32Array(3),e.uv=i.getFloat32Array(2),e.skinIndices=i.getUint16Array(2),e.skinWeights=[i.getUint8()/100],e.skinWeights.push(1-e.skinWeights[0]),e.edgeFlag=i.getUint8(),e},t=r.metadata;t.vertexCount=i.getUint32(),r.vertices=[];for(var n=0;n0&&(o.englishModelName=i.getSjisStringsAsUnicode(20),o.englishComment=i.getSjisStringsAsUnicode(256)),function(){var e=function(){var e={};return e.name=i.getSjisStringsAsUnicode(20),e},t=r.metadata;if(0!==t.englishCompatibility){r.englishBoneNames=[];for(var n=0;n{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i={};((t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})})(i,{BoundingBox:()=>R,Font:()=>qi,Glyph:()=>tt,Path:()=>D,_parse:()=>ge,load:()=>fo,loadSync:()=>po,parse:()=>ho});var o=0,a=-3;function s(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function l(e,t){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=t,this.destLen=0,this.ltree=new s,this.dtree=new s}var c=new s,u=new s,d=new Uint8Array(30),h=new Uint16Array(30),f=new Uint8Array(30),p=new Uint16Array(30),m=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new s,v=new Uint8Array(320);function A(e,t,n,r){var i,o;for(i=0;i>>=1,t}function S(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function E(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<>>=1,++i,n+=t.table[i],r-=t.table[i]}while(r>=0);return e.tag=o,e.bitcount-=i,t.trans[n+r]}function C(e,t,n){var r,i,o,a,s,l;for(r=S(e,5,257),i=S(e,5,1),o=S(e,4,4),a=0;a<19;++a)v[a]=0;for(a=0;a8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return a;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,o}function I(e,t){var n,r,i=new l(e,t);do{switch(n=x(i),S(i,2,0)){case 0:r=_(i);break;case 1:r=w(i,c,u);break;case 2:C(i,i.ltree,i.dtree),r=w(i,i.ltree,i.dtree);break;default:r=a}if(r!==o)throw new Error("Data error")}while(!n);return i.destLenthis.x2&&(this.x2=e)),"number"==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},M.prototype.addX=function(e){this.addPoint(e,null)},M.prototype.addY=function(e){this.addPoint(null,e)},M.prototype.addBezier=function(e,t,n,r,i,o,a,s){const l=[e,t],c=[n,r],u=[i,o],d=[a,s];this.addPoint(e,t),this.addPoint(a,s);for(let e=0;e<=1;e++){const t=6*l[e]-12*c[e]+6*u[e],n=-3*l[e]+9*c[e]-9*u[e]+3*d[e],r=3*c[e]-3*l[e];if(0===n){if(0===t)continue;const n=-r/t;01||Math.abs(a.y-r)>1||o.pop()}return[].concat.apply([],t)}O.prototype.fromSVG=function(e,t={}){"undefined"!=typeof SVGPathElement&&e instanceof SVGPathElement&&(e=e.getAttribute("d")),t=function(e){return Object.assign({},{decimalPlaces:2,optimize:!0,flipY:!0,flipYBase:void 0,scale:1,x:0,y:0},e)}(t),this.commands=[];const n="MmLlQqCcZzHhVv";let r={},i=[""],o=!1;function a(e){if(!this.commands.length)return e;const t=this.commands[this.commands.length-1];for(let n=0;ne.length).map(e=>{let n=parseFloat(e);return(t.decimalPlaces||0===t.decimalPlaces)&&(n=N(n,t.decimalPlaces)),n});if(i=[""],!o.length&&"Z"!==e)return;n&&"H"!==e&&"V"!==e&&(o=a.apply(this,[o]));const s=this.commands.length&&this.commands[this.commands.length-1].x||0,l=this.commands.length&&this.commands[this.commands.length-1].y||0;switch(e){case"M":this.moveTo(...o);break;case"L":this.lineTo(...o);break;case"V":for(let e=0;e-1)i[i.length-1]+=a;else if("-+".indexOf(a)>-1)if(r.type||this.commands.length||(r.type="L"),"-"===a)!r.type||l.indexOf("-")>0?o=!0:l.length?i.push("-"):i[i.length-1]=a;else{if(r.type&&!(l.length>0))continue;o=!0}else if(n.indexOf(a)>-1)r.type?(s.apply(this),r={type:a}):r.type=a;else{if("SsTtAa".indexOf(a)>-1)throw new Error("Unsupported path command: "+a+". Currently supported commands are "+n.split("").join(", ")+".");" ,\t\n\r\f\v".indexOf(a)>-1?i.push(""):"."===a?!r.type||l.indexOf(a)>-1?o=!0:i[i.length-1]+=a:o=!0}if(o)throw new Error("Unexpected character: "+a+" at offset "+t)}s.apply(this),t.optimize&&(this.commands=k(this.commands));const l=t.flipY;let c=t.flipYBase;if(!0===l&&void 0===t.flipYBase){const e=this.getBoundingBox();c=e.y1+e.y2}for(const e in this.commands){const n=this.commands[e];for(const r in n)["x","x1","x2"].includes(r)?this.commands[e][r]=t.x+n[r]*t.scale:["y","y1","y2"].includes(r)&&(this.commands[e][r]=t.y+(l?c-n[r]:n[r])*t.scale)}return this},O.fromSVG=function(e,t){return(new O).fromSVG(e,t)},O.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},O.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},O.prototype.curveTo=O.prototype.bezierCurveTo=function(e,t,n,r,i,o){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:r,x:i,y:o})},O.prototype.quadTo=O.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:r})},O.prototype.close=O.prototype.closePath=function(){this.commands.push({type:"Z"})},O.prototype.extend=function(e){if(e.commands)e=e.commands;else if(e instanceof R){const t=e;return this.moveTo(t.x1,t.y1),this.lineTo(t.x2,t.y1),this.lineTo(t.x2,t.y2),this.lineTo(t.x1,t.y2),void this.close()}Array.prototype.push.apply(this.commands,e)},O.prototype.getBoundingBox=function(){const e=new R;let t=0,n=0,r=0,i=0;for(let o=0;o=0&&n>0&&(e+=" "),e+=t(r)}return e}e=function(e){return parseInt(e)===e&&(e={decimalPlaces:e,flipY:!1}),Object.assign({},{decimalPlaces:2,optimize:!0,flipY:!0,flipYBase:void 0},e)}(e);let r=this.commands;e.optimize&&(r=JSON.parse(JSON.stringify(this.commands)),r=k(r));const i=e.flipY;let o=e.flipYBase;if(!0===i&&void 0===o){const e=new O;e.extend(r);const t=e.getBoundingBox();o=t.y1+t.y2}let a="";for(let e=0;e=0&&e<=255,"Byte value should be between 0 and 255."),[e]},$.BYTE=H(1),j.CHAR=function(e){return[e.charCodeAt(0)]},$.CHAR=H(1),j.CHARARRAY=function(e){null==e&&(e="",console.warn("CHARARRAY with undefined or null value encountered and treated as an empty string. This is probably caused by a missing glyph name."));const t=[];for(let n=0;n>8&255,255&e]},$.USHORT=H(2),j.SHORT=function(e){return e>=32768&&(e=-(65536-e)),[e>>8&255,255&e]},$.SHORT=H(2),j.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},$.UINT24=H(3),j.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},$.ULONG=H(4),j.LONG=function(e){return e>=U&&(e=-(2*U-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},$.LONG=H(4),j.FLOAT=function(e){if(e>32767.00001525879||e<-32768)throw new Error(`Value ${e} is outside the range of representable values in 16.16 format`);const t=0|Math.round(65536*e);return j.ULONG(t)},$.FLOAT=$.ULONG,j.FIXED=j.ULONG,$.FIXED=$.ULONG,j.FWORD=j.SHORT,$.FWORD=$.SHORT,j.UFWORD=j.USHORT,$.UFWORD=$.USHORT,j.F2DOT14=function(e){return j.USHORT(16384*e)},$.F2DOT14=$.USHORT,j.LONGDATETIME=function(e){return[0,0,0,0,e>>24&255,e>>16&255,e>>8&255,255&e]},$.LONGDATETIME=H(8),j.TAG=function(e){return F.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},$.TAG=H(4),j.Card8=j.BYTE,$.Card8=$.BYTE,j.Card16=j.USHORT,$.Card16=$.USHORT,j.OffSize=j.BYTE,$.OffSize=$.BYTE,j.SID=j.USHORT,$.SID=$.USHORT,j.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?j.NUMBER16(e):j.NUMBER32(e)},$.NUMBER=function(e){return j.NUMBER(e).length},j.NUMBER16=function(e){return[28,e>>8&255,255&e]},$.NUMBER16=H(3),j.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},$.NUMBER32=H(5),j.REAL=function(e){let t=e.toString();const n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){const r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}let r="";for(let e=0,n=t.length;e>8&255,t[t.length]=255&r}return t},$.UTF16=function(e){return 2*e.length};var G={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-cyrillic":"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ­","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ",macintosh:"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"};z.MACSTRING=function(e,t,n,r){const i=G[r];if(void 0===i)return;let o="";for(let r=0;r=-128&&e<=127}function X(e,t,n){let r=0;const i=e.length;for(;t>8&255,t+256&255)}return o}j.MACSTRING=function(e,t){const n=function(e){if(!Q){Q={};for(let e in G)Q[e]=new String(e)}const t=Q[e];if(void 0===t)return;if(V){const e=V.get(t);if(void 0!==e)return e}const n=G[e];if(void 0===n)return;const r={};for(let e=0;e=128&&(i=n[i],void 0===i))return;r[t]=i}return r},$.MACSTRING=function(e,t){const n=j.MACSTRING(e,t);return void 0!==n?n.length:0},j.VARDELTAS=function(e){let t=0;const n=[];for(;t=-128&&r<=127?q(e,t,n):Y(e,t,n)}return n},j.INDEX=function(e){let t=1;const n=[t],r=[];for(let i=0;i>8,t[o+1]=255&a;for(let e=0;e0)return new pe(this.data,this.offset+t).parseStruct(e)},pe.prototype.parsePointer32=function(e){const t=this.parseOffset32();if(t>0)return new pe(this.data,this.offset+t).parseStruct(e)},pe.prototype.parseListOfLists=function(e){const t=this.parseOffset16List(),n=t.length,r=this.relativeOffset,i=new Array(n);for(let r=0;r>4);for(let e=0;e>i,r=e&(1<[]),i=32768&t,o=32767&t;if(o>n)throw Error("wordCount must be less than or equal to regionIndexCount");const a=(i?this.parseLong:this.parseShort).bind(this),s=(i?this.parseShort:this.parseChar).bind(this);for(let t=0;t{let s,l;const c=()=>{let e=0;if("gvar"===n){if(e=t.privatePoints.length||d.length,!e){const t=r.get(i);t.path,e=t.points.length,e+=4}}else"cvar"===n&&(e=r.length);this.offset=o,this.relativeOffset=a,s=this.parsePackedDeltas(e),"gvar"===n&&(l=this.parsePackedDeltas(e))};return{configurable:!0,get:function(){return void 0===s&&c(),"deltasY"===e?l:s},set:function(t){void 0===s&&c(),"deltasY"===e?l=t:s=t}}};Object.defineProperty(t,"deltas",s.call(this,"deltas")),"gvar"===n&&Object.defineProperty(t,"deltasY",s.call(this,"deltasY")),h+=t.variationDataSize,delete t.variationDataSize}this.relativeOffset=o;const f={headers:u};return f.sharedPoints=d,f},pe.prototype.parseTupleVariationHeader=function(e,t){const n=this.parseUShort(),r=this.parseUShort(),i=!!(32768&r),o=!!(16384&r),a=!!(8192&r),s=i?void 0:4095&r,l={variationDataSize:n,peakTuple:i?this.parseTupleRecords(1,e)[0]:void 0,intermediateStartTuple:o?this.parseTupleRecords(1,e)[0]:void 0,intermediateEndTuple:o?this.parseTupleRecords(1,e)[0]:void 0,flags:{embeddedPeakTuple:i,intermediateRegion:o,privatePointNumbers:a}};return"gvar"===t&&(l.sharedTupleRecordsIndex=s),l},pe.prototype.parsePackedPointNumbers=function(){const e=this.parseByte(),t=[];let n=e;if(e>=128){n=(127&e)<<8|this.parseByte()}let r=0;for(;t.length=0;u-=1)if(a=ge.getUShort(e,t+4+8*u),s=ge.getUShort(e,t+4+8*u+2),3===a&&c.includes(s)||0===a&&l.includes(s)||1===a&&0===s){if(o>0)continue;if(o=ge.getULong(e,t+4+8*u+4),r)break}else if(0===a&&5===s)if(i=ge.getULong(e,t+4+8*u+4),r=new ge.Parser(e,t+i),14!==r.parseUShort())i=-1,r=null;else if(o>0)break;if(-1===o)throw new Error("No valid cmap sub-tables found.");const u=new ge.Parser(e,t+o);if(n.format=u.parseUShort(),0===n.format)!function(e,t,n,r){e.length=t.parseUShort(),e.language=t.parseUShort()-1;const i=t.parseByteList(e.length),o=Object.assign({},i),a=we(n,r,e.language),s=G[a];for(let e=0;e>1,t.skip("uShort",3),e.glyphIndexMap={};const a=new ge.Parser(n,r+i+14),s=new ge.Parser(n,r+i+16+2*o),l=new ge.Parser(n,r+i+16+4*o),c=new ge.Parser(n,r+i+16+6*o);let u=r+i+16+8*o;for(let t=0;t0;t-=1)if(e.get(t).unicode>65535){n=!1;break}let r=[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:n?1:2},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:n?12:20}];n||r.push({name:"cmap12PlatformID",type:"USHORT",value:3},{name:"cmap12EncodingID",type:"USHORT",value:10},{name:"cmap12Offset",type:"ULONG",value:0}),r.push({name:"format",type:"USHORT",value:4},{name:"cmap4Length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0});const i=new se.Table("cmap",r);for(i.segments=[],t=0;t>24,n=(16711680&e)>>16,r=(65280&e)>>8,i=255&e;return{b:t=t+256&255,g:n=n+256&255,r:r=r+256&255,a:i=(i+256&255)/255}}function Xe(e,t,n=0,r="hexa"){if(65535==t)return"currentColor";const i=e&&e.tables&&e.tables.cpal;if(!i)return"currentColor";if(n>i.colorRecordIndices.length-1)throw new Error(`Palette index out of range (colorRecordIndices.length: ${i.colorRecordIndices.length}, index: ${t})`);if(t>i.numPaletteEntries)throw new Error(`Color index out of range (numPaletteEntries: ${i.numPaletteEntries}, index: ${t})`);const o=i.colorRecordIndices[n]+t;if(o>i.colorRecords)throw new Error(`Color index out of range (colorRecords.length: ${i.colorRecords.length}, lookupIndex: ${o})`);const a=We(i.colorRecords[o]);return"bgra"===r?a:Je(a,r)}function qe(e){return("0"+parseInt(e).toString(16)).slice(-2)}function Ye(e){return parseInt(`0x${qe(e.b)}${qe(e.g)}${qe(e.r)}${qe(255*e.a)}`,16)}function Ke(e,t="hexa"){const n="raw"==t||"cpal"==t,r=Number.isInteger(e);let i=!0;if(r&&n||"currentColor"===e)return e;if("object"==typeof e){if("bgra"==t)return e;if(n)return Ye(e)}else if(!r&&/^#([a-f0-9]{3}|[a-f0-9]{4}|[a-f0-9]{6}|[a-f0-9]{8})$/i.test(e.trim())){switch((e=e.trim().substring(1)).length){case 3:e={r:parseInt(e[0].repeat(2),16),g:parseInt(e[1].repeat(2),16),b:parseInt(e[2].repeat(2),16),a:1};break;case 4:e={r:parseInt(e[0].repeat(2),16),g:parseInt(e[1].repeat(2),16),b:parseInt(e[2].repeat(2),16),a:parseInt(e[3].repeat(2),16)/255};break;case 6:e={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16),a:1};break;case 8:e={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16),a:parseInt(e[6]+e[7],16)/255}}if("bgra"==t)return e}else if("undefined"!=typeof document&&/^[a-z]+$/i.test(e)){const t=document.createElement("canvas").getContext("2d");t.fillStyle=e;const n=Je(t.fillStyle,"hexa");"#000000ff"===n&&"black"!==e.toLowerCase()?i=!1:e=n}else{e=e.trim();const t=/rgba?\(\s*(?:(\d*\.\d+)(%?)|(\d+)(%?))\s*(?:,|\s*)\s*(?:(\d*\.\d+)(%?)|(\d+)(%?))\s*(?:,|\s*)\s*(?:(\d*\.\d+)(%?)|(\d+)(%?))\s*(?:(?:,|\s|\/)\s*(?:(0*(?:\.\d+)?()|0*1(?:\.0+)?())|(?:\.\d+)|(\d+)(%)|(\d*\.\d+)(%)))?\s*\)/;if(t.test(e)){const n=e.match(t).filter(e=>void 0!==e);e={r:Math.round(parseFloat(n[1])/(n[2]?100/255:1)),g:Math.round(parseFloat(n[3])/(n[4]?100/255:1)),b:Math.round(parseFloat(n[5])/(n[6]?100/255:1)),a:n[7]?parseFloat(n[7])/(n[8]?100:1):1}}else{const t=/hsla?\(\s*(?:(\d*\.\d+|\d+)(deg|turn|))\s*(?:,|\s*)\s*(?:(\d*\.\d+)%?|(\d+)%?)\s*(?:,|\s*)\s*(?:(\d*\.\d+)%?|(\d+)%?)\s*(?:(?:,|\s|\/)\s*(?:(0*(?:\.\d+)?()|0*1(?:\.0+)?())|(?:\.\d+)|(\d+)(%)|(\d*\.\d+)(%)))?\s*\)/;if(t.test(e)){const n=e.match(t).filter(e=>void 0!==e);e=function(e){let{h:t,s:n,l:r,a:i}=e;t%=360,n/=100,r/=100;const o=(1-Math.abs(2*r-1))*n,a=o*(1-Math.abs(t/60%2-1)),s=r-o/2;let l=0,c=0,u=0;return 0<=t&&t<60?(l=o,c=a,u=0):60<=t&&t<120?(l=a,c=o,u=0):120<=t&&t<180?(l=0,c=o,u=a):180<=t&&t<240?(l=0,c=a,u=o):240<=t&&t<300?(l=a,c=0,u=o):300<=t&&t<=360&&(l=o,c=0,u=a),{r:Math.round(255*(l+s)),g:Math.round(255*(c+s)),b:Math.round(255*(u+s)),a:i}}({h:parseFloat(n[1])*("turn"===n[2]?360:1),s:parseFloat(n[3]),l:parseFloat(n[4]),a:n[5]?parseFloat(n[5])/(n[6]?100:1):1})}else i=!1}}if(!i)throw new Error(`Invalid color format: ${e}`);return Je(e,t)}function Je(e,t="hexa"){if("currentColor"===e)return e;if(Number.isInteger(e)){if("raw"==t||"cpal"==t)return e;e=We(e)}else"object"!=typeof e&&(e=Ke(e,"bgra"));let n=["hsl","hsla"].includes(t)?function(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r);let a,s,l=(i+o)/2;if(i===o)a=s=0;else{const e=i-o;switch(s=l>.5?e/(2-i-o):e/(i+o),i){case t:a=(n-r)/e+(n1&&F.argument(t,"Can't infer numPaletteEntries on multiple colorRecordIndices"),new se.Table("CPAL",[{name:"version",type:"USHORT",value:e},{name:"numPaletteEntries",type:"USHORT",value:t||n.length},{name:"numPalettes",type:"USHORT",value:r.length},{name:"numColorRecords",type:"USHORT",value:n.length},{name:"colorRecordsArrayOffset",type:"ULONG",value:12+2*r.length},...r.map((e,t)=>({name:"colorRecordIndices_"+t,type:"USHORT",value:e})),...n.map((e,t)=>({name:"colorRecords_"+t,type:"ULONG",value:e}))])},getPaletteColor:Xe,parseColor:Ke,formatColor:Je};function et(e){this.bindConstructorValues(e)}et.prototype.bindConstructorValues=function(e){if(this.index=e.index||0,".notdef"===e.name?e.unicode=void 0:".null"===e.name&&(e.unicode=0),0===e.unicode&&".null"!==e.name)throw new Error('The unicode value "0" is reserved for the glyph name ".null" and cannot be used by any other glyph.');this.name=e.name||null,this.unicode=e.unicode,this.unicodes=e.unicodes||(void 0!==e.unicode?[e.unicode]:[]),"xMin"in e&&(this.xMin=e.xMin),"yMin"in e&&(this.yMin=e.yMin),"xMax"in e&&(this.xMax=e.xMax),"yMax"in e&&(this.yMax=e.yMax),"advanceWidth"in e&&(this.advanceWidth=e.advanceWidth),"leftSideBearing"in e&&(this.leftSideBearing=e.leftSideBearing),"points"in e&&(this.points=e.points),Object.defineProperty(this,"path",function(e,t){let n=t||new D;return{configurable:!0,get:function(){return"function"==typeof n&&(n=n()),n},set:function(e){n=e}}}(0,e.path))},et.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},et.prototype.getBoundingBox=function(){return this.path.getBoundingBox()},et.prototype.getPath=function(e,t,n,r,i){let o,a;e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72;let s=(r=Object.assign({},i&&i.defaultRenderOptions,r)).xScale,l=r.yScale;const c=1/(this.path.unitsPerEm||1e3)*n;let u=this;i&&i.variation&&(u=i.variation.getTransform(this,r.variation),o=u.path.commands),r.hinting&&i&&i.hinting&&(a=u.path&&i.hinting.exec(u,n,r)),a?(o=i.hinting.getCommands(a),e=Math.round(e),t=Math.round(t),s=l=1):(o=u.path.commands,void 0===s&&(s=c),void 0===l&&(l=c));const d=new D;if(r.drawSVG){const n=this.getSvgImage(i);if(n){const r=new D;return r._image={image:n.image,x:e+n.leftSideBearing*c,y:t-n.baseline*c,width:n.image.width*c,height:n.image.height*c},d._layers=[r],d}}if(r.drawLayers){const o=this.getLayers(i);if(o&&o.length){d._layers=[];for(let a=0;a=this.length-1;return{value:this.get(e),done:t}}.bind(this)}}),rt.prototype.get=function(e){if(this.font._push&&void 0===this.glyphs[e]){this.font._push(e),"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]());let t=this.glyphs[e],n=this.font._IndexToUnicodeMap[e];if(n)for(let e=0;e1?ge.getULong(e,t):ge.getCard16(e,t),s=r>1?4:2;let l,c;if(0!==a){const n=ge.getByte(e,t+s);l=t+(a+1)*n+s;let r=t+s+1;for(let t=0;t>4,o=15&r;if(15===i)break;if(t+=n[i],15===o)break;t+=n[o]}return parseFloat(t)}(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return n=e.parseByte(),256*(t-247)+n+108;if(t>=251&&t<=254)return n=e.parseByte(),256*-(t-251)-n-108;throw new Error("Invalid b0 "+t)}function ct(e,t,n,r){t=void 0!==t?t:0;const i=new ge.Parser(e,t),o=[];let a=[];n=void 0!==n?n:e.byteLength;let s=r<2?22:28;for(;i.relativeOffset1&&23===e){xt(a);continue}o.push([e,a]),a=[]}else a.push(lt(i,e))}return function(e){const t={};for(let n=0;n1?ft:ht,n)}function At(e,t,n,r,i){return dt(ct(e,t,n,i),i>1?mt:pt,r)}function yt(e,t,n){return dt(ct(e,t,void 0,n),gt)}function bt(e,t,n,r,i){const o=[];for(let a=0;at;)e.pop()}function St(e,t){const n=e.tables.cff&&e.tables.cff.topDict&&e.tables.cff.topDict.paintType||0;return 2===n&&(t.fill=null,t.stroke="black",t.strokeWidth=e.tables.cff.topDict.strokeWidth||0),n}function Et(e,t,n,r,i){let o,a,s,l;const c=new D,u=[];let d,h,f,p,m,g=0,v=!1,A=!1,y=0,b=0,x=0,S=[],E=0;const C=e.tables.cff2||e.tables.cff;if(f=C.topDict._defaultWidthX,p=C.topDict._nominalWidthX,i=i||e.variation&&e.variation.get(),t.getBlendPath||(t.getBlendPath=function(i){return Et(e,t,n,r,i)}),e.isCIDFont||r>1){const e=C.topDict._fdSelect?C.topDict._fdSelect[t.index]:0,n=C.topDict._fdArray[e];d=n._subrs,h=n._subrsBias,r>1?(S=C.topDict._vstore.itemVariationStore,x=n._privateDict.vsindex):(f=n._defaultWidthX,p=n._nominalWidthX)}else d=C.topDict._subrs,h=C.topDict._subrsBias;const w=St(e,c);let _=f;function I(e,t){A&&2!==w&&c.closePath(),c.moveTo(e,t),A=!0}function T(){let e;e=!!(1&u.length),e&&!v&&(_=u.shift()+p),g+=u.length>>1,u.length=0,v=!0}return function n(f){let C,M,R,O,P,N,k,D,L,B,F,U,z=0;for(;z1&&!v&&(_=u.shift()+p,v=!0),b+=u.pop(),I(y,b);break;case 5:for(;u.length>0;)y+=u.shift(),b+=u.shift(),c.lineTo(y,b);break;case 6:for(;u.length>0&&(y+=u.shift(),c.lineTo(y,b),0!==u.length);)b+=u.shift(),c.lineTo(y,b);break;case 7:for(;u.length>0&&(b+=u.shift(),c.lineTo(y,b),0!==u.length);)y+=u.shift(),c.lineTo(y,b);break;case 8:for(;u.length>0;)o=y+u.shift(),a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),y=s+u.shift(),b=l+u.shift(),c.curveTo(o,a,s,l,y,b);break;case 10:if(P=u.pop()+h,N=d[P],N){if(E>=10){console.warn("CFF charstring subroutine call depth exceeded, skipping callsubr");break}E++,n(N),E--}break;case 11:if(r>1){console.error("CFF CharString operator return (11) is not supported in CFF2");break}return;case 12:switch(W=f[z],z+=1,W){case 35:o=y+u.shift(),a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),k=s+u.shift(),D=l+u.shift(),L=k+u.shift(),B=D+u.shift(),F=L+u.shift(),U=B+u.shift(),y=F+u.shift(),b=U+u.shift(),u.shift(),c.curveTo(o,a,s,l,k,D),c.curveTo(L,B,F,U,y,b);break;case 34:o=y+u.shift(),a=b,s=o+u.shift(),l=a+u.shift(),k=s+u.shift(),D=l,L=k+u.shift(),B=l,F=L+u.shift(),U=b,y=F+u.shift(),c.curveTo(o,a,s,l,k,D),c.curveTo(L,B,F,U,y,b);break;case 36:o=y+u.shift(),a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),k=s+u.shift(),D=l,L=k+u.shift(),B=l,F=L+u.shift(),U=B+u.shift(),y=F+u.shift(),c.curveTo(o,a,s,l,k,D),c.curveTo(L,B,F,U,y,b);break;case 37:o=y+u.shift(),a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),k=s+u.shift(),D=l+u.shift(),L=k+u.shift(),B=D+u.shift(),F=L+u.shift(),U=B+u.shift(),Math.abs(F-y)>Math.abs(U-b)?y=F+u.shift():b=U+u.shift(),c.curveTo(o,a,s,l,k,D),c.curveTo(L,B,F,U,y,b);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+W),u.length=0}break;case 14:if(r>1){console.error("CFF CharString operator endchar (14) is not supported in CFF2");break}if(u.length>=4){const n=Ue[u.pop()],r=Ue[u.pop()],i=u.pop(),o=u.pop();if(n&&r){t.isComposite=!0,t.components=[];const a=e.cffEncoding.charset.indexOf(n),s=e.cffEncoding.charset.indexOf(r);t.components.push({glyphIndex:s,dx:0,dy:0}),t.components.push({glyphIndex:a,dx:o,dy:i}),c.extend(e.glyphs.get(s).path);const l=e.glyphs.get(a),u=JSON.parse(JSON.stringify(l.path.commands));for(let e=0;e0&&!v&&(_=u.shift()+p,v=!0);A&&2!==w&&(c.closePath(),A=!1);break;case 15:if(r<2){console.error("CFF2 CharString operator vsindex (15) is not supported in CFF");break}x=u.pop();break;case 16:if(r<2){console.error("CFF2 CharString operator blend (16) is not supported in CFF");break}m||(m=e.variation&&i&&e.variation.process.getBlendVector(S,x,i));var j=u.pop(),$=m?m.length:S.itemVariationSubtables[x].regionIndexes.length,H=j*$,G=u.length-H,Q=G-j;if(m)for(let e=0;e>3;break;case 21:u.length>2&&!v&&(_=u.shift()+p,v=!0),b+=u.pop(),y+=u.pop(),I(y,b);break;case 22:u.length>1&&!v&&(_=u.shift()+p,v=!0),y+=u.pop(),I(y,b);break;case 24:for(;u.length>2;)o=y+u.shift(),a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),y=s+u.shift(),b=l+u.shift(),c.curveTo(o,a,s,l,y,b);y+=u.shift(),b+=u.shift(),c.lineTo(y,b);break;case 25:for(;u.length>6;)y+=u.shift(),b+=u.shift(),c.lineTo(y,b);o=y+u.shift(),a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),y=s+u.shift(),b=l+u.shift(),c.curveTo(o,a,s,l,y,b);break;case 26:for(1&u.length&&(y+=u.shift());u.length>0;)o=y,a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),y=s,b=l+u.shift(),c.curveTo(o,a,s,l,y,b);break;case 27:for(1&u.length&&(b+=u.shift());u.length>0;)o=y+u.shift(),a=b,s=o+u.shift(),l=a+u.shift(),y=s+u.shift(),b=l,c.curveTo(o,a,s,l,y,b);break;case 28:C=f[z],M=f[z+1],u.push((C<<24|M<<16)>>16),z+=2;break;case 29:if(P=u.pop()+e.gsubrsBias,N=e.gsubrs[P],N){if(E>=10){console.warn("CFF charstring subroutine call depth exceeded, skipping callgsubr");break}E++,n(N),E--}break;case 30:for(;u.length>0&&(o=y,a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),y=s+u.shift(),b=l+(1===u.length?u.shift():0),c.curveTo(o,a,s,l,y,b),0!==u.length);)o=y+u.shift(),a=b,s=o+u.shift(),l=a+u.shift(),b=l+u.shift(),y=s+(1===u.length?u.shift():0),c.curveTo(o,a,s,l,y,b);break;case 31:for(;u.length>0&&(o=y+u.shift(),a=b,s=o+u.shift(),l=a+u.shift(),b=l+u.shift(),y=s+(1===u.length?u.shift():0),c.curveTo(o,a,s,l,y,b),0!==u.length);)o=y,a=b+u.shift(),s=o+u.shift(),l=a+u.shift(),y=s+u.shift(),b=l+(1===u.length?u.shift():0),c.curveTo(o,a,s,l,y,b);break;default:W<32?console.log("Glyph "+t.index+": unknown operator "+W):W<247?u.push(W-139):W<251?(C=f[z],z+=1,u.push(256*(W-247)+C+108)):W<255?(C=f[z],z+=1,u.push(256*-(W-251)-C-108)):(C=f[z],M=f[z+1],R=f[z+2],O=f[z+3],z+=4,u.push((C<<24|M<<16|R<<8|O)/65536))}}}(n),e.variation&&i&&(c.commands=c.commands.map(e=>{const t=Object.keys(e);for(let n=0;n=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");o.push(a)}else{if(!(3===l||i>1&&4===l))throw new Error("CFF Table CID Font FDSelect table has unsupported format "+l);{const e=4===l?s.parseULong():s.parseCard16();let t,c=4===l?s.parseULong():s.parseCard16();if(0!==c)throw new Error(`CFF Table CID Font FDSelect format ${l} range has bad initial GID ${c}`);for(let u=0;u=r)throw new Error("CFF table CID Font FDSelect has bad FD index value "+a+" (FD count "+r+")");if(t>n)throw new Error(`CFF Table CID Font FDSelect format ${i} range has bad GID ${t}`);for(;c=0&&(n=r),r=t.indexOf(e),r>=0?n=r+De.length:(n=De.length+t.length,t.push(e)),n}function _t(e,t,n){const r={};for(let i=0;i1?ft:ht,e,t),r}function Tt(e){const t=new se.Record("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function Mt(e,t){const n=[],r=e.path;t<2&&n.push({name:"width",type:"NUMBER",value:e.advanceWidth});let i=0,o=0;for(let e=0;e2)throw new Error(`Unsupported CFF table version ${n.formatMajor}.${n.formatMinor}`);return n.size=ge.getCard8(e,t+2),n.formatMajor<2?(n.offsetSize=ge.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4):(n.topDictLength=ge.getCard16(e,t+3),n.endOffset=t+8),n}(e,t);i=2===o.formatMajor?n.tables.cff2={}:n.tables.cff={};const a=o.formatMajor>1?null:st(e,o.endOffset,ge.bytesToString),s=o.formatMajor>1?null:st(e,a.endOffset),l=o.formatMajor>1?null:st(e,s.endOffset,ge.bytesToString),c=st(e,o.formatMajor>1?t+o.size+o.topDictLength:l.endOffset,void 0,o.formatMajor);let u,d;if(n.gsubrs=c.objects,n.gsubrsBias=at(n.gsubrs),o.formatMajor>1){const n=t+o.size,r=ge.getBytes(e,n,n+o.topDictLength);u=bt(e,0,[r],void 0,o.formatMajor)[0]}else{const n=bt(e,t,s.objects,l.objects,o.formatMajor);if(1!==n.length)throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = "+n.length);u=n[0]}if(i.topDict=u,u._privateDict&&(n.defaultWidthX=u._privateDict.defaultWidthX,n.nominalWidthX=u._privateDict.nominalWidthX),o.formatMajor<2&&void 0!==u.ros[0]&&void 0!==u.ros[1]&&(n.isCIDFont=!0),o.formatMajor>1){let r=u.fdArray,i=u.fdSelect;if(!r)throw new Error("This is a CFF2 font, but FDArray information is missing");const a=st(e,t+r,null,o.formatMajor),s=function(e,t,n){const r=[];for(let i=0;i1?ge.getULong(e,t):ge.getCard16(e,t),o=n>1?4:2;let a,s;if(0!==i){const n=ge.getByte(e,t+o);a=t+(i+1)*n+o;let l=t+o+1;for(let t=0;t1?1:0)):(d=st(e,t+u.charStrings,null,o.formatMajor),n.nGlyphs=d.objects.length),o.formatMajor>1&&n.tables.maxp&&n.nGlyphs!==n.tables.maxp.numGlyphs&&console.error(`Glyph count in the CFF2 table (${n.nGlyphs}) must correspond to the glyph count in the maxp table (${n.tables.maxp.numGlyphs})`),o.formatMajor<2){let r=[],i=[];r=0===u.charset?Le:1===u.charset?Be:2===u.charset?Fe:function(e,t,n,r,i){let o,a;const s=new ge.Parser(e,t);n-=1;const l=[".notdef"],c=s.parseCard8();if(0===c)for(let e=0;e1?ge.getULong(n,r):ge.getCard16(n,r),s=o>1?4:2;let l=0;0!==a&&(l=r+(a+1)*ge.getByte(n,r+s)+s);let c=ge.getBytes(n,l+t[e],l+t[e+1]);return c}(r,d.offsets,e,t+u.charStrings,0,o.formatMajor);n.glyphs.push(r,it.cffGlyphLoader(n,r,Et,i,o.formatMajor))};else for(let e=0;e=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n},make:function(e){return new se.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)},unicodeRanges:Lt,getUnicodeRange:function(e){for(let t=0;t=n.begin&&e=je.length){const e=r.parseChar();n.names.push(r.parseString(e))}break;case 2.5:n.numberOfGlyphs=r.parseUShort(),n.offset=new Array(n.numberOfGlyphs);for(let e=0;e[{name:"glyphID_"+t,type:"USHORT",value:e.glyphID},{name:"firstLayerIndex_"+t,type:"USHORT",value:e.firstLayerIndex},{name:"numLayers_"+t,type:"USHORT",value:e.numLayers}]).flat(),...n.map((e,t)=>[{name:"LayerGlyphID_"+t,type:"USHORT",value:e.glyphID},{name:"paletteIndex_"+t,type:"USHORT",value:e.paletteIndex}]).flat()])}};function Qt(e,t){return[{name:"tag_"+e,type:"TAG",value:t.tag},{name:"minValue_"+e,type:"FIXED",value:t.minValue<<16},{name:"defaultValue_"+e,type:"FIXED",value:t.defaultValue<<16},{name:"maxValue_"+e,type:"FIXED",value:t.maxValue<<16},{name:"flags_"+e,type:"USHORT",value:0},{name:"nameID_"+e,type:"USHORT",value:t.axisNameID}]}function Vt(e,t,n){const r={},i=new ge.Parser(e,t);r.tag=i.parseTag(),r.minValue=i.parseFixed(),r.defaultValue=i.parseFixed(),r.maxValue=i.parseFixed(),i.skip("uShort",1);const o=i.parseUShort();return r.axisNameID=o,r.name=Oe(n,o),r}function Wt(e,t,n,r={}){const i=[{name:"nameID_"+e,type:"USHORT",value:t.subfamilyNameID},{name:"flags_"+e,type:"USHORT",value:0}];for(let r=0;r1||o>0?r.parseUShort():void 0;void 0!==n&&F.argument(l>=n.axes.length,"STAT axis count must be greater than or equal to fvar axis count"),u>0&&F.argument(l>=0,"STAT axis count must be greater than 0 if STAT axis value count is greater than 0");const f=[];for(let e=0;et.value.tag?1:-1}),t.fields=t.fields.concat(r),t.fields=t.fields.concat(i),t}function mn(e,t,n){for(let n=0;n0)return e.glyphs.get(r).getMetrics()}return n}function gn(e){let t=0;for(let n=0;ng||void 0===l)&&g>0&&(l=g),c 123 are reserved for internal usage");f|=1<=600&&(m|=e.macStyleValues.BOLD),e.italicAngle<0&&(m|=e.macStyleValues.ITALIC);const g=Ot.make({flags:3,unitsPerEm:e.unitsPerEm,xMin:p.xMin,yMin:p.yMin,xMax:p.xMax,yMax:p.yMax,lowestRecPPEM:3,macStyle:m,createdTimestamp:e.createdTimestamp}),v=Pt.make({ascender:p.ascender,descender:p.descender,advanceWidthMax:p.advanceWidthMax,minLeftSideBearing:p.minLeftSideBearing,minRightSideBearing:p.minRightSideBearing,xMaxExtent:p.maxLeftSideBearing+(p.xMax-p.xMin),numberOfHMetrics:e.glyphs.length}),A=Dt.make(e.glyphs.length),y=Bt.make(Object.assign({xAvgCharWidth:Math.round(p.advanceWidthAvg),usFirstCharIndex:l,usLastCharIndex:c,ulUnicodeRange1:u,ulUnicodeRange2:d,ulUnicodeRange3:h,ulUnicodeRange4:f,sTypoAscender:p.ascender,sTypoDescender:p.descender,sTypoLineGap:0,usWinAscent:p.yMax,usWinDescent:Math.abs(p.yMin),ulCodePageRange1:1,sxHeight:mn(e,"xyvw",{yMax:Math.round(p.ascender/2)}).yMax,sCapHeight:mn(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",p).yMax,usDefaultChar:e.hasChar(" ")?32:0,usBreakChar:e.hasChar(" ")?32:0},e.tables.os2)),b=Nt.make(e.glyphs),x=ke.make(e.glyphs),S=e.getEnglishName("fontFamily"),E=e.getEnglishName("fontSubfamily"),C=S+" "+E;let w=e.getEnglishName("postScriptName");w||(w=S.replace(/\s/g,"")+"-"+E);const _={};for(let t in e.names)_[t]=e.names[t];_.unicode=_.unicode||{},_.macintosh=_.macintosh||{},_.windows=_.windows||{};const I=e.names.unicode||{},T=e.names.macintosh||{},M=e.names.windows||{};for(const t in _){if(_[t]=_[t]||{},!_[t].uniqueID){const n=e.getEnglishName("manufacturer")||"";_[t].uniqueID={en:`${n}: ${C}`}}_[t].postScriptName||(_[t].postScriptName={en:w})}_.unicode.preferredFamily||(_.unicode.preferredFamily=I.fontFamily||T.fontFamily||M.fontFamily),_.macintosh.preferredFamily||(_.macintosh.preferredFamily=T.fontFamily||I.fontFamily||M.fontFamily),_.windows.preferredFamily||(_.windows.preferredFamily=M.fontFamily||I.fontFamily||T.fontFamily),_.unicode.preferredSubfamily||(_.unicode.preferredSubfamily=I.fontSubfamily||T.fontSubfamily||M.fontSubfamily),_.macintosh.preferredSubfamily||(_.macintosh.preferredSubfamily=T.fontSubfamily||I.fontSubfamily||M.fontSubfamily),_.windows.preferredSubfamily||(_.windows.preferredSubfamily=M.fontSubfamily||I.fontSubfamily||T.fontSubfamily);const R=[],O=Pe.make(_,R),P=R.length>0?kt.make(R):void 0,N=Ft.make(e),k=Rt.make(e.glyphs,{version:e.getEnglishName("version"),fullName:C,familyName:S,weightName:E,postScriptName:w,unitsPerEm:e.unitsPerEm,fontBBox:[0,p.yMin,p.ascender,p.advanceWidthMax],topDict:e.tables.cff&&e.tables.cff.topDict||{}}),D=e.metas&&Object.keys(e.metas).length>0?Ht.make(e.metas):void 0,L=[g,v,A,y,O,x,N,k,b];P&&L.push(P);const B={gsub:$t,cpal:Ze,colr:Gt,stat:nn,avar:an,cvar:sn,fvar:qt,gvar:ln,gasp:cn,svg:un},F={avar:[e.tables.fvar],fvar:[e.names]};for(let t in B){const n=e.tables[t];if(n){const r=B[t].make.call(e,n,...F[t]||[]);r&&L.push(r)}}D&&L.push(D);const U=pn(L),z=hn(U.encode()),j=U.fields;let $=!1;for(let e=0;e>>1,o=e[i].tag;if(o===t)return i;o>>1,o=e[i];if(o===t)return i;o>>1;n=e[o];const a=n.start;if(a===t)return n;a0)return n=e[r-1],t>n.end?0:n}function xn(e,t){this.font=e,this.tableName=t}xn.prototype={searchTag:An,binSearch:yn,getTable:function(e){let t=this.font.tables[this.tableName];return!t&&e&&(t=this.font.tables[this.tableName]=this.createDefaultTable()),t},getScriptNames:function(){let e=this.getTable();return e?e.scripts.map(function(e){return e.tag}):[]},getDefaultScriptName:function(){let e=this.getTable();if(!e)return;let t=!1;for(let n=0;n=0)return r[i].script;if(t){const t={tag:e,script:{defaultLangSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]},langSysRecords:[]}};return r.splice(-1-i,0,t),t.script}}},getLangSysTable:function(e,t,n){const r=this.getScriptTable(e,n);if(r){if(!t||"dflt"===t||"DFLT"===t)return r.defaultLangSys;const e=An(r.langSysRecords,t);if(e>=0)return r.langSysRecords[e].langSys;if(n){const n={tag:t,langSys:{reserved:0,reqFeatureIndex:65535,featureIndexes:[]}};return r.langSysRecords.splice(-1-e,0,n),n.langSys}}},getFeatureTable:function(e,t,n,r){const i=this.getLangSysTable(e,t,r);if(i){let e;const t=i.featureIndexes,o=this.font.tables[this.tableName].features;for(let r=0;r=o[r-1].tag,"Features must be added in alphabetical order."),e={tag:n,feature:{params:0,lookupListIndexes:[]}},o.push(e),t.push(r),e.feature}}},getLookupTables:function(e,t,n,r,i){const o=this.getFeatureTable(e,t,n,i),a=[];if(o){let e;const t=o.lookupListIndexes,n=this.font.tables[this.tableName].lookups;for(let i=0;i=0?n:-1}case 2:{const n=bn(e.ranges,t);return n?n.index+t-n.start:-1}}},expandCoverage:function(e){if(1===e.format)return e.glyphs;{const t=[],n=e.ranges;for(let e=0;e1,'Multiple: "by" must be an array of two or more ids');const i=Rn(this.getLookupTables(n,r,e,2,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},sequences:[]});F.assert(1===i.coverage.format,"Multiple: unable to modify coverage table format "+i.coverage.format);const o=t.sub;let a=this.binSearch(i.coverage.glyphs,o);a<0&&(a=-1-a,i.coverage.glyphs.splice(a,0,o),i.sequences.splice(a,0,0)),i.sequences[a]=t.by},Mn.prototype.addAlternate=function(e,t,n,r){const i=Rn(this.getLookupTables(n,r,e,3,!0)[0],1,{substFormat:1,coverage:{format:1,glyphs:[]},alternateSets:[]});F.assert(1===i.coverage.format,"Alternate: unable to modify coverage table format "+i.coverage.format);const o=t.sub;let a=this.binSearch(i.coverage.glyphs,o);a<0&&(a=-1-a,i.coverage.glyphs.splice(a,0,o),i.alternateSets.splice(a,0,0)),i.alternateSets[a]=t.by},Mn.prototype.addLigature=function(e,t,n,r){const i=this.getLookupTables(n,r,e,4,!0)[0];let o=i.subtables[0];o||(o={substFormat:1,coverage:{format:1,glyphs:[]},ligatureSets:[]},i.subtables[0]=o),F.assert(1===o.coverage.format,"Ligature: unable to modify coverage table format "+o.coverage.format);const a=t.sub[0],s=t.sub.slice(1),l={ligGlyph:t.by,components:s};let c=this.binSearch(o.coverage.glyphs,a);if(c>=0){const e=o.ligatureSets[c];for(let t=0;tKe(e,"raw")):Ke(e,"raw")}fillPalette(e,t=[],n=this.cpal().numPaletteEntries){return e=Number.isInteger(e)?this.get(e,"raw"):e,Object.assign(Array(n).fill(this.defaultValue),this.toCPALcolor(e).concat(this.toCPALcolor(t)))}extend(e){if(this.ensureCPAL(Array(e).fill(this.defaultValue)))return;const t=this.cpal(),n=t.numPaletteEntries+e,r=this.getAll().map(e=>this.fillPalette(e,[],n));t.numPaletteEntries=n,t.colorRecords=this.toCPALcolor(r.flat()),this.updateIndices()}get(e,t="hexa"){return this.getAll(t)[e]||null}getColor(e,t=0,n="hexa"){return Xe(this.font,e,t,n)}setColor(e,t,n=0){e=parseInt(e),n=parseInt(n);let r=this.getAll("raw"),i=r[n];if(!i)throw Error(`paletteIndex ${n} out of range`);const o=this.cpal(),a=o.numPaletteEntries;Array.isArray(t)||(t=[t]),t.length+e>a&&(this.extend(t.length+e-a),r=this.getAll("raw"),i=r[n]);for(let n=0;nn?this.extend(e.length-n):e.lengthn.numPaletteEntries-1)throw Error(`Replacement index out of range: numPaletteEntries after deletion: ${n.numPaletteEntries-1}, replacementIndex: ${t})`);for(let t=0;tn!==e);i.push(n)}const o=this.font.tables.colr;if(o){const n=o.layerRecords;for(let i=0;ie){const e=1;n[i].paletteIndex-=e}else if(o===e){let o=0;for(let n=0;ne&&t<=e+r[n].length){o++;break}n[i].paletteIndex=t-o}}this.font.tables.colr={...o,layerRecords:n}}const a=i.flat();for(let e=0;en)){o=a;break}i=t-1}}return o}(r.baseGlyphRecords,0,e);if(!o)return n;const a=o.firstLayerIndex,s=o.numLayers;for(let e=0;er.length?n=r.length:n<0&&(n=r.length+1+n%(r.length+1))>=r.length+1&&(n-=r.length+1);const i=[];for(let e=0;e({glyphID:e.glyph.index,paletteIndex:r===t?n:e.paletteIndex})),this.updateColrTable(e,r)):console.error("Invalid layer index")}remove(e,t,n=t){let r=this.get(e);r=r.map(e=>({glyphID:e.glyph.index,paletteIndex:e.paletteIndex})),r.splice(t,n-t+1),this.updateColrTable(e,r)}updateColrTable(e,t){this.ensureCOLR();const n=this.font.tables.colr;let r=function(e,t,n){let r=0,i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),a=e[o];if(a[t]n))return o;i=o-1}}return-1}(n.baseGlyphRecords,"glyphID",e);if(-1===r){const t={glyphID:e,firstLayerIndex:n.layerRecords.length,numLayers:0};r=function(e,t,n){let r=0,i=e.length;const o=(e,n)=>e[t]-n[t];for(;r>>1;o(e[t],n)<0?r=t+1:i=t}return e.splice(r,0,n),r}(n.baseGlyphRecords,"glyphID",t)}const i=n.baseGlyphRecords[r],o=i.numLayers,a=t.length,s=a-o;if(s>0){const e=t.slice(o).map(e=>({glyphID:e.glyphID,paletteIndex:e.paletteIndex}));n.layerRecords.splice(i.firstLayerIndex+o,0,...e)}else s<0&&n.layerRecords.splice(i.firstLayerIndex+a,-s);for(let e=0;e{let r;"string"==typeof t?r=t:(t[4]=n,r=t.join(""));const i=function(e,t){const n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,r=n.viewBox.baseVal,i=n.width.baseVal,o=n.height.baseVal;let a=1,s=1;r.width>0&&r.height>0&&(1===i.unitType?(a=i.valueInSpecifiedUnits/r.width,s=1===o.unitType?o.valueInSpecifiedUnits/r.height:a):1===o.unitType?(s=o.valueInSpecifiedUnits/r.height,a=s):t&&(a=t/r.width,s=t/r.height));const l=document.createElement("div");l.style.position="fixed",l.style.visibility="hidden",l.appendChild(n),document.body.appendChild(l);const c=n.getBBox();document.body.removeChild(l);const u=(c.x-r.x)*a,d=(r.y-c.y)*s,h=c.width*a,f=c.height*s;n.setAttribute("viewBox",[c.x,c.y,c.width,c.height].join(" ")),1!==a&&n.setAttribute("width",h),1!==s&&n.setAttribute("height",f);const p=new Image(h,f);return p.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n.outerHTML),{leftSideBearing:u,baseline:d,image:p}}(r,e.unitsPerEm);return i.image.decode().then(()=>i)}),image:void 0}}(this.font,r.template,e),i.promise.then(t=>{if(i.image=t,"function"==typeof this.font.onGlyphUpdated)try{this.font.onGlyphUpdated(e)}catch(t){console.error("font.onGlyphUpdated",e,t)}}),r.images.set(e,i)),i}},Dn="function"==typeof DecompressionStream?function(e){if(_n(e))return new Response(new Response(e).body.pipeThrough(new DecompressionStream("gzip"))).text();try{return Promise.resolve((new TextDecoder).decode(e))}catch(e){return Promise.reject(e)}}:function(e){try{return Promise.resolve((new TextDecoder).decode(_n(e)?function(e){const t=new DataView(e.buffer,e.byteOffset,e.byteLength);let n=10;const r=e.byteLength-8,i=t.getInt8(3);if(4&i&&(n+=2+t.getUint16(n,!0)),8&i)for(;n=r)throw new Error("Can't find compressed blocks");const o=t.getUint32(t.byteLength-4,!0);return I(e.subarray(n,r),new Uint8Array(o))}(e):e))}catch(e){return Promise.reject(e)}};function Ln(e){const t=e.indexOf("",t+4)+1;if(/ id=['"]glyph\d+['"]/.test(e.substring(t,n)))return e;const r=e.lastIndexOf("");return[e.substring(0,n),"",e.substring(n,r),'',e.substring(r)]}var Bn=new WeakMap;function Fn(e,t,n,r,i){let o;return(t&r)>0?(o=e.parseByte(),0===(t&i)&&(o=-o),o=n+o):o=(t&i)>0?n:n+e.parseShort(),o}function Un(e,t,n){const r=new ge.Parser(t,n);let i,o;if(e._numberOfContours=r.parseShort(),e._xMin=r.parseShort(),e._yMin=r.parseShort(),e._xMax=r.parseShort(),e._yMax=r.parseShort(),e._numberOfContours>0){const t=e.endPointIndices=[];for(let n=0;n0){const t=r.parseByte();for(let n=0;n0){const a=[];let s;if(n>0){for(let e=0;e=0,a.push(s);let e=0;for(let t=0;t0?(2&i)>0?(n.dx=r.parseShort(),n.dy=r.parseShort()):n.matchedPoints=[r.parseUShort(),r.parseUShort()]:(2&i)>0?(n.dx=r.parseChar(),n.dy=r.parseChar()):n.matchedPoints=[r.parseByte(),r.parseByte()],(8&i)>0?n.xScale=n.yScale=r.parseF2Dot14():(64&i)>0?(n.xScale=r.parseF2Dot14(),n.yScale=r.parseF2Dot14()):(128&i)>0&&(n.xScale=r.parseF2Dot14(),n.scale01=r.parseF2Dot14(),n.scale10=r.parseF2Dot14(),n.yScale=r.parseF2Dot14()),e.components.push(n),t=!!(32&i)}if(256&i){e.instructionLength=r.parseUShort(),e.instructions=[];for(let t=0;tt.points.length-1||i.matchedPoints[1]>o.points.length-1)throw Error("Matched points out of range in "+t.name);const n=t.points[i.matchedPoints[0]];let r=o.points[i.matchedPoints[1]];const a={xScale:i.xScale,scale01:i.scale01,scale10:i.scale10,yScale:i.yScale,dx:0,dy:0};r=zn([r],a)[0],a.dx=n.x-r.x,a.dy=n.y-r.y,e=zn(o.points,a)}t.points=t.points.concat(e)}}}finally{n.delete(t.index)}}return jn(t.points)}var Hn,Gn,Qn,Vn,Wn={getPath:jn,parse:function(e,t,n,r,i){return i.lowMemory?function(e,t,n,r){const i=new it.GlyphSet(r);return r._push=function(o){const a=n[o];a!==n[o+1]?i.push(o,it.ttfGlyphLoader(r,o,Un,e,t+a,$n)):i.push(o,it.glyphLoader(r,o))},i}(e,t,n,r):function(e,t,n,r){const i=new it.GlyphSet(r);for(let o=0;o=1&&t[e]o)continue;let s=r,l=r;for(r++;r<=o;)n[r]&&(this.deltaInterpolate(l+1,r-1,l,r,t,e),l=r),r++;l===s?this.deltaShift(i,o,l,t,e):(this.deltaInterpolate(l+1,o,l,s,t,e),s>0&&this.deltaInterpolate(i,s-1,l,s,t,e)),r=o+1}}deltaInterpolate(e,t,n,r,i,o){if(e>t)return;let a=["x","y"];for(let l=0;li[r][c]){var s=n;n=r,r=s}let u=i[n][c],d=i[r][c],h=o[n][c],f=o[r][c];if(u!==d||h===f){let n=u===d?0:(f-h)/(d-u);for(let r=e;r<=t;r++){let e=i[r][c];e<=u?e+=h-u:e>=d?e+=f-d:e=h+(e-u)*n,o[r][c]=e}}}}deltaShift(e,t,n,r,i){let o=i[n].x-r[n].x,a=i[n].y-r[n].y;if(0!==o||0!==a)for(let r=e;r<=t;r++)r!==n&&(i[r].x+=o,i[r].y+=a)}transformComponents(e,t,n,r,i,o){let a=0;for(let s=0;s-1&&(u.dx+=Math.round(i.deltas[d]*o),u.dy+=Math.round(i.deltasY[d]*o));const h=zn(this.getTransform(c,n).points,u);t.splice(a,h.length,...h),a+=c.points.length}}applyTupleVariationStore(e,t,n,r="gvar",i={}){n||(n=this.font.variation.get());const o=this.getNormalizedCoords(n),{headers:a,sharedPoints:s}=e,l=this.fvar().axes.length;let c;"gvar"===r?c=t.map(In):"cvar"===r&&(c=[...t]);for(let e=0;eu.intermediateEndTuple[e]){d=0;break}d=o[e]Math.max(0,t[e])){d=0;break}d=(d*o[e]+Number.EPSILON)/(t[e]+Number.EPSILON)}}}if(0===d)continue;const h=u.privatePoints.length?u.privatePoints:s;if("gvar"===r&&i.glyph&&i.glyph.isComposite)this.transformComponents(i.glyph,c,n,h,u,d);else if(0===h.length)for(let e=0;e=s&&(t=s-1),({outerIndex:i,innerIndex:o}=a[n].map[t])}else i=0,o=e;return this.getDelta(a.itemVariationStore,i,o,r)}getDelta(e,t,n,r){if(t>=e.itemVariationSubtables.length)return 0;let i=e.itemVariationSubtables[t];if(n>=i.deltaSets.length)return 0;let o=i.deltaSets[n],a=this.getBlendVector(e,t,r),s=0;for(let e=0;er.peakCoord||r.peakCoord>r.endCoord||r.startCoord<0&&r.endCoord>0&&0!==r.peakCoord||0===r.peakCoord?1:i[e]r.endCoord?0:i[e]===r.peakCoord?1:i[e]-1?this.set(e):this.set(this.getDefaultCoordinates())}getDefaultCoordinates(){return this.fvar().axes.reduce((e,t)=>(e[t.tag]=t.defaultValue,e),{})}getDefaultInstanceIndex(){const e=this.getDefaultCoordinates();let t=this.getInstanceIndex(e);return t<0&&(t=this.fvar().instances.findIndex(e=>e.name&&"Regular"===e.name.en)),t}getInstanceIndex(e){return this.fvar().instances.findIndex(t=>Object.keys(e).every(n=>t.coordinates[n]===e[n]))}getInstance(e){return this.fvar().instances&&this.fvar().instances[e]}set(e){let t;if(Number.isInteger(e)){const n=this.getInstance(e);if(!n)throw Error(`Invalid instance index ${e}`);t={...n.coordinates}}else t=e,this.process.normalizeCoordTags(t);t=Object.assign({},this.font.defaultRenderOptions.variation,t),this.font.defaultRenderOptions=Object.assign({},this.font.defaultRenderOptions,{variation:t})}get(){return Object.assign({},this.font.defaultRenderOptions.variation)}avar(){return this.font.tables.avar}cvar(){return this.font.tables.cvar}fvar(){return this.font.tables.fvar}gvar(){return this.font.tables.gvar}hvar(){return this.font.tables.hvar}},Yn=1e6,Kn=1e4;function Jn(e){this.font=e,this.getCommands=function(e){return Wn.getPath(e).commands},this._fpgmState=this._prepState=void 0,this._errorState=0}function Zn(e){return e}function er(e){return Math.sign(e)*Math.round(Math.abs(e))}function tr(e){return Math.sign(e)*Math.round(Math.abs(2*e))/2}function nr(e){return Math.sign(e)*(Math.round(Math.abs(e)+.5)-.5)}function rr(e){return Math.sign(e)*Math.ceil(Math.abs(e))}function ir(e){return Math.sign(e)*Math.floor(Math.abs(e))}var or=function(e){const t=this.srPeriod;let n=this.srPhase,r=1;return e<0&&(e=-e,r=-1),e+=this.srThreshold-n,e=Math.trunc(e/t)*t,(e+=n)<0?n*r:e*r},ar={x:1,y:0,axis:"x",distance:function(e,t,n,r){return(n?e.xo:e.x)-(r?t.xo:t.x)},interpolate:function(e,t,n,r){let i,o,a,s,l,c,u;if(!r||r===this)return i=e.xo-t.xo,o=e.xo-n.xo,l=t.x-t.xo,c=n.x-n.xo,a=Math.abs(i),s=Math.abs(o),u=a+s,0===u?void(e.x=e.xo+(l+c)/2):void(e.x=e.xo+(l*s+c*a)/u);i=r.distance(e,t,!0,!0),o=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),c=r.distance(n,n,!1,!0),a=Math.abs(i),s=Math.abs(o),u=a+s,0!==u?ar.setRelative(e,e,(l*s+c*a)/u,r,!0):ar.setRelative(e,e,(l+c)/2,r,!0)},normalSlope:Number.NEGATIVE_INFINITY,setRelative:function(e,t,n,r,i){if(!r||r===this)return void(e.x=(i?t.xo:t.x)+n);const o=i?t.xo:t.x,a=i?t.yo:t.y,s=o+n*r.x,l=a+n*r.y;e.x=s+(e.y-l)/r.normalSlope},slope:0,touch:function(e){e.xTouched=!0},touched:function(e){return e.xTouched},untouch:function(e){e.xTouched=!1}},sr={x:0,y:1,axis:"y",distance:function(e,t,n,r){return(n?e.yo:e.y)-(r?t.yo:t.y)},interpolate:function(e,t,n,r){let i,o,a,s,l,c,u;if(!r||r===this)return i=e.yo-t.yo,o=e.yo-n.yo,l=t.y-t.yo,c=n.y-n.yo,a=Math.abs(i),s=Math.abs(o),u=a+s,0===u?void(e.y=e.yo+(l+c)/2):void(e.y=e.yo+(l*s+c*a)/u);i=r.distance(e,t,!0,!0),o=r.distance(e,n,!0,!0),l=r.distance(t,t,!1,!0),c=r.distance(n,n,!1,!0),a=Math.abs(i),s=Math.abs(o),u=a+s,0!==u?sr.setRelative(e,e,(l*s+c*a)/u,r,!0):sr.setRelative(e,e,(l+c)/2,r,!0)},normalSlope:0,setRelative:function(e,t,n,r,i){if(!r||r===this)return void(e.y=(i?t.yo:t.y)+n);const o=i?t.xo:t.x,a=i?t.yo:t.y,s=o+n*r.x,l=a+n*r.y;e.y=l+r.normalSlope*(e.x-s)},slope:Number.POSITIVE_INFINITY,touch:function(e){e.yTouched=!0},touched:function(e){return e.yTouched},untouch:function(e){e.yTouched=!1}};function lr(e,t){this.x=e,this.y=t,this.axis=void 0,this.slope=t/e,this.normalSlope=-e/t,Object.freeze(this)}function cr(e,t){const n=Math.sqrt(e*e+t*t);return t/=n,1===(e/=n)&&0===t?ar:0===e&&1===t?sr:new lr(e,t)}function ur(e,t,n,r){this.x=this.xo=Math.round(64*e)/64,this.y=this.yo=Math.round(64*t)/64,this.lastPointOfContour=n,this.onCurve=r,this.prevPointOnContour=void 0,this.nextPointOnContour=void 0,this.xTouched=!1,this.yTouched=!1,Object.preventExtensions(this)}Object.freeze(ar),Object.freeze(sr),lr.prototype.distance=function(e,t,n,r){return this.x*ar.distance(e,t,n,r)+this.y*sr.distance(e,t,n,r)},lr.prototype.interpolate=function(e,t,n,r){let i,o,a,s,l,c,u;a=r.distance(e,t,!0,!0),s=r.distance(e,n,!0,!0),i=r.distance(t,t,!1,!0),o=r.distance(n,n,!1,!0),l=Math.abs(a),c=Math.abs(s),u=l+c,0!==u?this.setRelative(e,e,(i*c+o*l)/u,r,!0):this.setRelative(e,e,(i+o)/2,r,!0)},lr.prototype.setRelative=function(e,t,n,r,i){r=r||this;const o=i?t.xo:t.x,a=i?t.yo:t.y,s=o+n*r.x,l=a+n*r.y,c=r.normalSlope,u=this.slope,d=e.x,h=e.y;e.x=(u*d-c*s+l-h)/(u-c),e.y=u*(e.x-d)+h},lr.prototype.touch=function(e){e.xTouched=!0,e.yTouched=!0},ur.prototype.nextTouched=function(e){let t=this.nextPointOnContour;for(;!e.touched(t)&&t!==this;)t=t.nextPointOnContour;return t},ur.prototype.prevTouched=function(e){let t=this.prevPointOnContour;for(;!e.touched(t)&&t!==this;)t=t.prevPointOnContour;return t};var dr=Object.freeze(new ur(0,0)),hr={cvCutIn:17/16,deltaBase:9,deltaShift:.125,loop:1,minDis:1,autoFlip:!0};function fr(e,t){switch(this.env=e,this.stack=[],this.prog=t,e){case"glyf":this.zp0=this.zp1=this.zp2=1,this.rp0=this.rp1=this.rp2=0;case"prep":this.fv=this.pv=this.dpv=ar,this.round=er}}function pr(e){const t=e.tZone=new Array(e.gZone.length);for(let e=0;e=176&&r<=183)i+=r-176+1;else if(r>=184&&r<=191)i+=2*(r-184+1);else if(t&&1===o&&27===r)break}while(o>0);e.ip=i}function gr(e,t){t.fv=t.pv=t.dpv=e}function vr(e,t){t.pv=t.dpv=e}function Ar(e,t){t.fv=e}function yr(e,t){const n=t.stack,r=n.pop(),i=n.pop(),o=t.z2[r],a=t.z1[i];let s,l;e?(s=o.y-a.y,l=a.x-o.x):(s=a.x-o.x,l=a.y-o.y),t.pv=t.dpv=cr(s,l)}function br(e,t){const n=t.stack,r=n.pop(),i=n.pop(),o=t.z2[r],a=t.z1[i];let s,l;e?(s=o.y-a.y,l=a.x-o.x):(s=a.x-o.x,l=a.y-o.y),t.fv=cr(s,l)}function xr(e){e.stack.pop()}function Sr(e,t){const n=t.stack.pop(),r=t.z0[n],i=t.fv,o=t.pv;let a=o.distance(r,dr);e&&(a=t.round(a)),i.setRelative(r,dr,a,o),i.touch(r),t.rp0=t.rp1=n}function Er(e,t){const n=t.z2,r=n.length-2;let i,o,a;for(let t=0;t>4)!==a)continue;let r=(15&t)-8;r>=0&&r++;const u=c[e];i.setRelative(u,u,r*l,o)}}function Pr(e,t){const n=t.stack,r=n.pop();n.push(64*t.round(r/64))}function Nr(e,t){const n=t.stack,r=n.pop(),i=t.ppem,o=t.deltaBase+16*(e-1),a=t.deltaShift;for(let e=0;e>4)!==i)continue;let s=(15&r)-8;s>=0&&s++;const l=s*a;t.cvt[e]+=l}}function kr(e,t){const n=t.stack,r=n.pop(),i=n.pop(),o=t.z2[r],a=t.z1[i];let s,l;e?(s=o.y-a.y,l=a.x-o.x):(s=a.x-o.x,l=a.y-o.y),t.dpv=cr(s,l)}function Dr(e,t){const n=t.stack,r=t.prog;let i=t.ip;for(let t=0;t=0?1:-1,g=Math.abs(g),e&&(A=o.cvt[s],r&&Math.abs(g-A)2)return;const n=this.font;let r=this._prepState;if(!r||r.ppem!==t){let e=this._fpgmState;if(!e){fr.prototype=hr,e=this._fpgmState=new fr("fpgm",n.tables.fpgm),e.funcs=[],e.font=n,e.instructionCount=0,e.callDepth=0;try{Gn(e)}catch(e){return console.log("Hinting error in FPGM:"+e),void(this._errorState=3)}}fr.prototype=e,r=this._prepState=new fr("prep",n.tables.prep),r.ppem=t,r.instructionCount=0,r.callDepth=0;const i=n.variation&&n.variation.process.getCvarTransform()||n.tables.cvt;if(i){const e=r.cvt=new Array(i.length),o=t/n.unitsPerEm;for(let t=0;t1))try{return Qn(e,r)}catch(e){return this._errorState<1&&(console.log("Hinting error:"+e),console.log("Note: further hinting errors are silenced")),void(this._errorState=1)}},Qn=function(e,t){const n=t.ppem/t.font.unitsPerEm,r=n;let i,o,a,s=e.components;if(fr.prototype=t,s){const l=t.font;o=[],i=[];for(let e=0;eYn)throw new Error("Hinting instructions exceeded maximum of "+Yn);if(r=Hn[t[e.ip]],!r)throw new Error("unknown instruction: 0x"+Number(t[e.ip]).toString(16));r(e)}},Hn=[gr.bind(void 0,sr),gr.bind(void 0,ar),vr.bind(void 0,sr),vr.bind(void 0,ar),Ar.bind(void 0,sr),Ar.bind(void 0,ar),yr.bind(void 0,0),yr.bind(void 0,1),br.bind(void 0,0),br.bind(void 0,1),function(e){const t=e.stack,n=t.pop(),r=t.pop();e.pv=e.dpv=cr(r,n)},function(e){const t=e.stack,n=t.pop(),r=t.pop();e.fv=cr(r,n)},function(e){const t=e.stack,n=e.pv;t.push(16384*n.x),t.push(16384*n.y)},function(e){const t=e.stack,n=e.fv;t.push(16384*n.x),t.push(16384*n.y)},function(e){e.fv=e.pv},function(e){const t=e.stack,n=t.pop(),r=t.pop(),i=t.pop(),o=t.pop(),a=t.pop(),s=e.z0,l=e.z1,c=s[n],u=s[r],d=l[i],h=l[o],f=e.z2[a],p=c.x,m=c.y,g=u.x,v=u.y,A=d.x,y=d.y,b=h.x,x=h.y,S=(p-g)*(y-x)-(m-v)*(A-b),E=p*v-m*g,C=A*x-y*b;f.x=(E*(A-b)-C*(p-g))/S,f.y=(E*(y-x)-C*(m-v))/S},function(e){e.rp0=e.stack.pop()},function(e){e.rp1=e.stack.pop()},function(e){e.rp2=e.stack.pop()},function(e){const t=e.stack.pop();switch(e.zp0=t,t){case 0:e.tZone||pr(e),e.z0=e.tZone;break;case 1:e.z0=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){const t=e.stack.pop();switch(e.zp1=t,t){case 0:e.tZone||pr(e),e.z1=e.tZone;break;case 1:e.z1=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){const t=e.stack.pop();switch(e.zp2=t,t){case 0:e.tZone||pr(e),e.z2=e.tZone;break;case 1:e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){const t=e.stack.pop();switch(e.zp0=e.zp1=e.zp2=t,t){case 0:e.tZone||pr(e),e.z0=e.z1=e.z2=e.tZone;break;case 1:e.z0=e.z1=e.z2=e.gZone;break;default:throw new Error("Invalid zone pointer")}},function(e){e.loop=e.stack.pop(),e.loop>Kn&&(e.loop=Kn)},function(e){e.round=er},function(e){e.round=nr},function(e){const t=e.stack.pop();e.minDis=t/64},function(e){mr(e,!1)},function(e){const t=e.stack.pop();e.ip+=t-1},function(e){const t=e.stack.pop();e.cvCutIn=t/64},void 0,void 0,function(e){const t=e.stack;t.push(t[t.length-1])},xr,function(e){e.stack.length=0},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(n),t.push(r)},function(e){const t=e.stack;t.push(t.length)},function(e){const t=e.stack,n=t.pop();t.push(t[t.length-n])},function(e){const t=e.stack,n=t.pop();t.push(t.splice(t.length-n,1)[0])},void 0,void 0,void 0,function(e){const t=e.stack,n=t.pop();let r=t.pop();if(r>Kn&&(r=Kn),++e.callDepth>64)throw new Error("Hinting call depth exceeded maximum of 64");const i=e.ip,o=e.prog;e.prog=e.funcs[n];for(let t=0;t64)throw new Error("Hinting call depth exceeded maximum of 64");const n=e.ip,r=e.prog;e.prog=e.funcs[t],Gn(e),e.ip=n,e.prog=r,e.callDepth--},function(e){if("fpgm"!==e.env)throw new Error("FDEF not allowed here");const t=e.stack,n=e.prog;let r=e.ip;const i=t.pop(),o=r;for(;45!==n[++r];);e.ip=r,e.funcs[i]=n.slice(o+1,r)},void 0,Sr.bind(void 0,0),Sr.bind(void 0,1),Er.bind(void 0,sr),Er.bind(void 0,ar),Cr.bind(void 0,0),Cr.bind(void 0,1),wr.bind(void 0,0),wr.bind(void 0,1),_r.bind(void 0,0),_r.bind(void 0,1),function(e){const t=e.stack;let n=e.loop;const r=e.fv,i=t.pop()/64,o=e.z2;for(;n--;){const e=o[t.pop()];r.setRelative(e,e,i),r.touch(e)}e.loop=1},function(e){const t=e.stack,n=e.rp1,r=e.rp2;let i=e.loop;const o=e.z0[n],a=e.z1[r],s=e.fv,l=e.dpv,c=e.z2;for(;i--;){const e=c[t.pop()];s.interpolate(e,o,a,l),s.touch(e)}e.loop=1},Ir.bind(void 0,0),Ir.bind(void 0,1),function(e){const t=e.stack,n=e.rp0,r=e.z0[n];let i=e.loop;const o=e.fv,a=e.pv,s=e.z1;for(;i--;){const e=s[t.pop()];o.setRelative(e,r,0,a),o.touch(e)}e.loop=1},function(e){e.round=tr},Tr.bind(void 0,0),Tr.bind(void 0,1),function(e){const t=e.prog;let n=e.ip;const r=e.stack,i=t[++n];for(let e=0;en?1:0)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(r>=n?1:0)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(n===r?1:0)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(n!==r?1:0)},function(e){const t=e.stack,n=t.pop();t.push(1&Math.trunc(n)?1:0)},function(e){const t=e.stack,n=t.pop();t.push(1&Math.trunc(n)?0:1)},function(e){e.stack.pop()||mr(e,!0)},function(e){},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(n&&r?1:0)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(n||r?1:0)},function(e){const t=e.stack,n=t.pop();t.push(n?0:1)},Or.bind(void 0,1),function(e){const t=e.stack.pop();e.deltaBase=t},function(e){const t=e.stack.pop();e.deltaShift=Math.pow(.5,t)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(r+n)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(r-n)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(64*r/n)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(r*n/64)},function(e){const t=e.stack,n=t.pop();t.push(Math.abs(n))},function(e){const t=e.stack;let n=t.pop();t.push(-n)},function(e){const t=e.stack,n=t.pop();t.push(64*Math.floor(n/64))},function(e){const t=e.stack,n=t.pop();t.push(64*Math.ceil(n/64))},Pr.bind(void 0,0),Pr.bind(void 0,1),Pr.bind(void 0,2),Pr.bind(void 0,3),void 0,void 0,void 0,void 0,function(e){const t=e.stack,n=t.pop(),r=t.pop();e.cvt[r]=n*e.ppem/e.font.unitsPerEm},Or.bind(void 0,2),Or.bind(void 0,3),Nr.bind(void 0,1),Nr.bind(void 0,2),Nr.bind(void 0,3),function(e){let t,n=e.stack.pop();switch(e.round=or,192&n){case 0:t=.5;break;case 64:t=1;break;case 128:t=2;break;default:throw new Error("invalid SROUND value")}switch(e.srPeriod=t,48&n){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid SROUND value")}n&=15,e.srThreshold=0===n?0:(n/8-.5)*t},function(e){let t,n=e.stack.pop();switch(e.round=or,192&n){case 0:t=Math.sqrt(2)/2;break;case 64:t=Math.sqrt(2);break;case 128:t=2*Math.sqrt(2);break;default:throw new Error("invalid S45ROUND value")}switch(e.srPeriod=t,48&n){case 0:e.srPhase=0;break;case 16:e.srPhase=.25*t;break;case 32:e.srPhase=.5*t;break;case 48:e.srPhase=.75*t;break;default:throw new Error("invalid S45ROUND value")}n&=15,e.srThreshold=0===n?0:(n/8-.5)*t},void 0,void 0,function(e){e.round=Zn},void 0,function(e){e.round=rr},function(e){e.round=ir},xr,xr,void 0,void 0,void 0,void 0,void 0,function(e){e.stack.pop()},kr.bind(void 0,0),kr.bind(void 0,1),function(e){const t=e.stack,n=t.pop();let r=0;1&n&&(r=35),32&n&&(r|=4096),t.push(r)},void 0,function(e){const t=e.stack,n=t.pop(),r=t.pop(),i=t.pop();t.push(r),t.push(n),t.push(i)},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(Math.max(r,n))},function(e){const t=e.stack,n=t.pop(),r=t.pop();t.push(Math.min(r,n))},function(e){e.stack.pop()},function(e){const t=e.stack.pop();let n=e.stack.pop();switch(t){case 1:return void(e.inhibitGridFit=!!n);case 2:return void(e.ignoreCvt=!!n);default:throw new Error("invalid INSTCTRL[] selector")}},void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Dr.bind(void 0,1),Dr.bind(void 0,2),Dr.bind(void 0,3),Dr.bind(void 0,4),Dr.bind(void 0,5),Dr.bind(void 0,6),Dr.bind(void 0,7),Dr.bind(void 0,8),Lr.bind(void 0,1),Lr.bind(void 0,2),Lr.bind(void 0,3),Lr.bind(void 0,4),Lr.bind(void 0,5),Lr.bind(void 0,6),Lr.bind(void 0,7),Lr.bind(void 0,8),Br.bind(void 0,0,0,0,0,0),Br.bind(void 0,0,0,0,0,1),Br.bind(void 0,0,0,0,0,2),Br.bind(void 0,0,0,0,0,3),Br.bind(void 0,0,0,0,1,0),Br.bind(void 0,0,0,0,1,1),Br.bind(void 0,0,0,0,1,2),Br.bind(void 0,0,0,0,1,3),Br.bind(void 0,0,0,1,0,0),Br.bind(void 0,0,0,1,0,1),Br.bind(void 0,0,0,1,0,2),Br.bind(void 0,0,0,1,0,3),Br.bind(void 0,0,0,1,1,0),Br.bind(void 0,0,0,1,1,1),Br.bind(void 0,0,0,1,1,2),Br.bind(void 0,0,0,1,1,3),Br.bind(void 0,0,1,0,0,0),Br.bind(void 0,0,1,0,0,1),Br.bind(void 0,0,1,0,0,2),Br.bind(void 0,0,1,0,0,3),Br.bind(void 0,0,1,0,1,0),Br.bind(void 0,0,1,0,1,1),Br.bind(void 0,0,1,0,1,2),Br.bind(void 0,0,1,0,1,3),Br.bind(void 0,0,1,1,0,0),Br.bind(void 0,0,1,1,0,1),Br.bind(void 0,0,1,1,0,2),Br.bind(void 0,0,1,1,0,3),Br.bind(void 0,0,1,1,1,0),Br.bind(void 0,0,1,1,1,1),Br.bind(void 0,0,1,1,1,2),Br.bind(void 0,0,1,1,1,3),Br.bind(void 0,1,0,0,0,0),Br.bind(void 0,1,0,0,0,1),Br.bind(void 0,1,0,0,0,2),Br.bind(void 0,1,0,0,0,3),Br.bind(void 0,1,0,0,1,0),Br.bind(void 0,1,0,0,1,1),Br.bind(void 0,1,0,0,1,2),Br.bind(void 0,1,0,0,1,3),Br.bind(void 0,1,0,1,0,0),Br.bind(void 0,1,0,1,0,1),Br.bind(void 0,1,0,1,0,2),Br.bind(void 0,1,0,1,0,3),Br.bind(void 0,1,0,1,1,0),Br.bind(void 0,1,0,1,1,1),Br.bind(void 0,1,0,1,1,2),Br.bind(void 0,1,0,1,1,3),Br.bind(void 0,1,1,0,0,0),Br.bind(void 0,1,1,0,0,1),Br.bind(void 0,1,1,0,0,2),Br.bind(void 0,1,1,0,0,3),Br.bind(void 0,1,1,0,1,0),Br.bind(void 0,1,1,0,1,1),Br.bind(void 0,1,1,0,1,2),Br.bind(void 0,1,1,0,1,3),Br.bind(void 0,1,1,1,0,0),Br.bind(void 0,1,1,1,0,1),Br.bind(void 0,1,1,1,0,2),Br.bind(void 0,1,1,1,0,3),Br.bind(void 0,1,1,1,1,0),Br.bind(void 0,1,1,1,1,1),Br.bind(void 0,1,1,1,1,2),Br.bind(void 0,1,1,1,1,3)];var Fr=Jn;function Ur(e){this.char=e,this.state={},this.activeState=null}function zr(e,t,n){this.contextName=n,this.startIndex=e,this.endOffset=t}function jr(e,t,n){this.contextName=e,this.openRange=null,this.ranges=[],this.checkStart=t,this.checkEnd=n}function $r(e,t){this.context=e,this.index=t,this.length=e.length,this.current=e[t],this.backtrack=e.slice(0,t),this.lookahead=e.slice(t+1)}function Hr(e){this.eventId=e,this.subscribers=[]}function Gr(e){const t=["start","end","next","newToken","contextStart","contextEnd","insertToken","removeToken","removeRange","replaceToken","replaceRange","composeRUD","updateContextsRanges"];for(let e=0;e=0&&ethis[e[0]].apply(this,e.slice(1).concat(!0))),n=e=>"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"FAIL");if(t.every(n))return{FAIL:"composeRUD: one or more operations hasn't completed successfully",report:t.filter(n)};this.dispatch("composeRUD",[t.filter(e=>!n(e))])},Qr.prototype.replaceRange=function(e,t,n,r){t=null!==t?t:this.tokens.length;const i=n.every(e=>e instanceof Ur);if(!isNaN(e)&&this.inboundIndex(e)&&i){const i=this.tokens.splice.apply(this.tokens,[e,t].concat(n));return r||this.dispatch("replaceToken",[e,t,n]),[i,n]}return{FAIL:"replaceRange: invalid tokens or startIndex."}},Qr.prototype.replaceToken=function(e,t,n){if(!isNaN(e)&&this.inboundIndex(e)&&t instanceof Ur){const r=this.tokens.splice(e,1,t);return n||this.dispatch("replaceToken",[e,t]),[r[0],t]}return{FAIL:"replaceToken: invalid token or index."}},Qr.prototype.removeRange=function(e,t,n){t=isNaN(t)?this.tokens.length:t;const r=this.tokens.splice(e,t);return n||this.dispatch("removeRange",[r,e,t]),r},Qr.prototype.removeToken=function(e,t){if(!isNaN(e)&&this.inboundIndex(e)){const n=this.tokens.splice(e,1);return t||this.dispatch("removeToken",[n,e]),n}return{FAIL:"removeToken: invalid token index."}},Qr.prototype.insertToken=function(e,t,n){return e.every(e=>e instanceof Ur)?(this.tokens.splice.apply(this.tokens,[t,0].concat(e)),n||this.dispatch("insertToken",[e,t]),e):{FAIL:"insertToken: invalid token(s)."}},Qr.prototype.registerModifier=function(e,t,n){this.events.newToken.subscribe(function(r,i){const o=[r,i],a=[r,i];if(null===t||!0===t.apply(this,o)){let t=n.apply(this,a);r.setState(e,t)}}),this.registeredModifiers.push(e)},Hr.prototype.subscribe=function(e){return"function"==typeof e?this.subscribers.push(e)-1:{FAIL:`invalid '${this.eventId}' event handler`}},Hr.prototype.unsubscribe=function(e){this.subscribers.splice(e,1)},$r.prototype.setCurrentIndex=function(e){this.index=e,this.current=this.context[e],this.backtrack=this.context.slice(0,e),this.lookahead=this.context.slice(e+1)},$r.prototype.get=function(e){switch(!0){case 0===e:return this.current;case e<0&&Math.abs(e)<=this.backtrack.length:return this.backtrack.slice(e)[0];case e>0&&e<=this.lookahead.length:return this.lookahead[e-1];default:return null}},Qr.prototype.rangeToText=function(e){if(e instanceof zr)return this.getRangeTokens(e).map(e=>e.char).join("")},Qr.prototype.getText=function(){return this.tokens.map(e=>e.char).join("")},Qr.prototype.getContext=function(e){return this.registeredContexts[e]||null},Qr.prototype.on=function(e,t){const n=this.events[e];return n?n.subscribe(t):null},Qr.prototype.dispatch=function(e,t){const n=this.events[e];if(n instanceof Hr)for(let e=0;ee.char);for(let t=0;t=r.start&&e<=r.end){let t=e-r.start;return r.index+t}}break}default:return-1}return-1}function ti(e,t){return-1===ei(e,t.coverage)?null:e+t.deltaGlyphId}function ni(e,t){let n=ei(e,t.coverage);return-1===n?null:t.substitute[n]}function ri(e,t){let n=[];for(let r=0;r{const{lookupListIndex:n,sequenceIndex:r}=t,{subtables:i}=this.getLookupByIndex(n);for(const t of i)-1!==ei(e[r],t.coverage)&&(e[r]=t.deltaGlyphId)};for(let n=0;nr.features[e]),this.features[e]=t,this.mapTagsToFeatures(t,e),t},Jr.prototype.getSubstitutionType=function(e,t){return e.lookupType.toString()+t.substFormat.toString()},Jr.prototype.getLookupMethod=function(e,t){let n=this.getSubstitutionType(e,t);switch(n){case"11":return e=>ti.apply(this,[e,t]);case"12":return e=>ni.apply(this,[e,t]);case"63":return e=>ii.apply(this,[e,t]);case"41":return e=>oi.apply(this,[e,t]);case"21":return e=>li.apply(this,[e,t]);case"51":return e=>ai.apply(this,[e,t]);case"53":return e=>si.apply(this,[e,t]);default:throw new Error(`substitutionType : ${n} lookupType: ${e.lookupType} - substFormat: ${t.substFormat} is not yet supported`)}},Jr.prototype.lookupFeature=function(e){let t=e.contextParams,n=t.index;const r=this.getFeature({tag:e.tag,script:e.script});if(!r)return new Error(`font '${(this.font.names.unicode||this.font.names.windows||this.font.names.macintosh).fullName.en}' doesn't support feature '${e.tag}' for script '${e.script}'.`);const i=this.getFeatureLookups(r),o=[].concat(t.context);for(let r=0;rt.tag===e.tag);return t&&n},Jr.prototype.getLookupSubtables=function(e){return e.subtables||null},Jr.prototype.getLookupByIndex=function(e){return this.font.tables.gsub.lookups[e]||null},Jr.prototype.getFeatureLookups=function(e){return e.lookupListIndexes.map(this.getLookupByIndex.bind(this))},Jr.prototype.getFeature=function(e){if(!this.font)return{FAIL:"No font was found"};Object.prototype.hasOwnProperty.call(this.features,e.script)||this.getScriptFeatures(e.script);const t=this.features[e.script];return t?t.tags[e.tag]?this.features[e.script].tags[e.tag]:null:{FAIL:`No feature for script ${e.script}`}};var ci=Jr,ui={startCheck:function(e){const t=e.current,n=e.get(-1);return null===n&&Wr(t)||!Wr(n)&&Wr(t)},endCheck:function(e){const t=e.get(1);return null===t||!Wr(t)}},di={startCheck:function(e){const t=e.current,n=e.get(-1);return(Wr(t)||qr(t))&&!Wr(n)},endCheck:function(e){const t=e.get(1);switch(!0){case null===t:return!0;case!Wr(t)&&!qr(t):{const n=/\s/.test(t);if(!n)return!0;if(n){let t=!1;if(t=e.lookahead.some(e=>Wr(e)||qr(e)),!t)return!0}break}default:return!1}}};function hi(e,t,n){for(let r=0;r=0;e--){const n=t[e],r=Xr(n),i=qr(n);if(!r&&!i)return!0;if(r)return!1}return!1}function gi(e){if(Xr(e.current))return!1;for(let t=0;te.getState("glyphIndex")),0);const o=new $r(r.map(e=>e.char),0);for(let e=0;ee.activeState.value),t||0)}var yi=function(e){let t=this.tokenizer.getRangeTokens(e),n=Ai(t);for(let e=0;ee.activeState.value),t||0)}var xi=function(e){const t="delf",n="ccmp";let r=this.tokenizer.getRangeTokens(e),i=bi(r);for(let e=0;ee.activeState.value),t||0)}var Ci=function(e){let t=this.tokenizer.getRangeTokens(e),n=Ei(t);for(let e=0;ee.activeState.value),t||0)}var Ii=function(e){let t=this.tokenizer.getRangeTokens(e),n=_i(t,0);for(let e=0;ee.activeState.value),t||0)}var Mi=function(e){let t=this.tokenizer.getRangeTokens(e),n=Ti(t,0);for(let e=0;ee.activeState.value),t||0)}var Oi=function(e){let t=this.tokenizer.getRangeTokens(e),n=Ri(t,0);for(let e=0;e=6155&&t<=6157||t>=65024&&t<=65039||t>=917760&&t<=917999}var Ni={startCheck:function(e){const t=e.current,n=e.get(1);return null===n&&Pi(t)||Pi(n)},endCheck:function(e){const t=e.get(1);return null===t||!Pi(t)}},ki=function(e){const t=this.query.font,n=this.tokenizer.getRangeTokens(e);if(n[1].setState("deleted",!0),t.tables.cmap&&t.tables.cmap.varSelectorList){const e=n[0].char.codePointAt(0),r=n[1].char.codePointAt(0),i=t.tables.cmap.varSelectorList[r];if(void 0!==i&&i.nonDefaultUVS){const r=i.nonDefaultUVS.uvsMappings;if(r[e]){const i=r[e].glyphID;void 0!==t.glyphs.glyphs[i]&&n[0].setState("glyphIndex",i)}}}};function Di(e){this.baseDir=e||"ltr",this.tokenizer=new Vr,this.featuresTags={}}function Li(e){const t=this.contextChecks[`${e}Check`];return this.tokenizer.registerContextChecker(e,t.startCheck,t.endCheck)}function Bi(){return Li.call(this,"ccmpReplacement"),Li.call(this,"latinWord"),Li.call(this,"arabicWord"),Li.call(this,"arabicSentence"),Li.call(this,"thaiWord"),Li.call(this,"unicodeVariationSequence"),this.tokenizer.tokenize(this.text)}function Fi(){const e=this.tokenizer.getContextRanges("arabicSentence");for(let t=0;t1},endCheck:function(e){return e.index===e.context.length-1}},latinWordCheck:Si,arabicWordCheck:ui,arabicSentenceCheck:di,thaiWordCheck:wi,unicodeVariationSequenceCheck:Ni},Di.prototype.registerFeatures=function(e,t){const n=t.filter(t=>this.query.supports({script:e,tag:t}));Object.prototype.hasOwnProperty.call(this.featuresTags,e)?this.featuresTags[e]=this.featuresTags[e].concat(n):this.featuresTags[e]=n},Di.prototype.applyFeatures=function(e,t){if(!e)throw new Error("No valid font was provided to apply features");this.query||(this.query=new ci(e));for(let e=0;e0)throw new Error("When creating a new Font object, negative descender value is required.");this.names={},this.names.unicode=Wi(e),this.names.macintosh=Wi(e),this.names.windows=Wi(e),this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.createdTimestamp=e.createdTimestamp,this.italicAngle=e.italicAngle||0,this.weightClass=e.weightClass||0;let t=0;e.fsSelection?t=e.fsSelection:(this.italicAngle<0?t|=this.fsSelectionValues.ITALIC:this.italicAngle>0&&(t|=this.fsSelectionValues.OBLIQUE),this.weightClass>=600&&(t|=this.fsSelectionValues.BOLD),0===t&&(t=this.fsSelectionValues.REGULAR)),e.panose&&Array.isArray(e.panose)||(e.panose=[0,0,0,0,0,0,0,0,0]),this.tables=Object.assign(e.tables,{os2:Object.assign({usWeightClass:e.weightClass||this.usWeightClasses.MEDIUM,usWidthClass:e.widthClass||this.usWidthClasses.MEDIUM,bFamilyType:e.panose[0]||0,bSerifStyle:e.panose[1]||0,bWeight:e.panose[2]||0,bProportion:e.panose[3]||0,bContrast:e.panose[4]||0,bStrokeVariation:e.panose[5]||0,bArmStyle:e.panose[6]||0,bLetterform:e.panose[7]||0,bMidline:e.panose[8]||0,bXHeight:e.panose[9]||0,fsSelection:t},e.tables.os2)})}this.supported=!0,this.glyphs=new it.GlyphSet(this,e.glyphs||[]),this.encoding=new $e(this),this.position=new Cn(this),this.substitution=new On(this),this.tables=this.tables||{},this.tables=new Proxy(this.tables,{set:(e,t,n)=>(e[t]=n,e.fvar&&(e.gvar||e.cff2)&&!this.variation&&(this.variation=new qn(this)),!0)}),this.palettes=new Pn(this),this.layers=new Nn(this),this.svgImages=new kn(this),this._push=null,this._hmtxTableData={},Object.defineProperty(this,"hinting",{get:function(){return this._hinting?this._hinting:"truetype"===this.outlinesFormat?this._hinting=new Fr(this):null}})}Xi.prototype.hasChar=function(e){return this.encoding.charToGlyphIndex(e)>0},Xi.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},Xi.prototype.charToGlyph=function(e){const t=this.charToGlyphIndex(e);let n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},Xi.prototype.updateFeatures=function(e){return this.defaultRenderOptions.features.map(t=>"latn"===t.script?{script:"latn",tags:t.tags.filter(t=>e[t])}:t)},Xi.prototype.stringToGlyphIndexes=function(e,t){const n=new Vi;n.registerModifier("glyphIndex",null,e=>this.charToGlyphIndex(e.char));let r=t?this.updateFeatures(t.features):this.defaultRenderOptions.features;return n.applyFeatures(this,r),n.getTextGlyphs(e)},Xi.prototype.stringToGlyphs=function(e,t){const n=this.stringToGlyphIndexes(e,t);let r=n.length;const i=new Array(r),o=this.glyphs.get(0);for(let e=0;e{const a=e.getPath(t,n,r,i,this);if(i.drawSVG||i.drawLayers){const e=a._layers;if(e&&e.length){for(let t=0;t0,"No English "+e+" specified.")}if(r("fontFamily"),r("weightName"),r("manufacturer"),r("copyright"),r("version"),n(this.unitsPerEm>0,"No unitsPerEm specified."),this.tables.colr){const e=this.tables.colr.baseGlyphRecords;let t=-1;for(let r=0;re[r].glyphID)break;t=i}}return e},Xi.prototype.toTables=function(){return vn(this)},Xi.prototype.toBuffer=function(){return console.warn("Font.toBuffer is deprecated. Use Font.toArrayBuffer instead."),this.toArrayBuffer()},Xi.prototype.toArrayBuffer=function(){const e=this.toTables().encode(),t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let t=0;t=1.2&&(i.markGlyphSets=n.parsePointer(to)),i}},ro=new Array(10);ro[1]=function(){const e=this.offset+this.relativeOffset,t=this.parseUShort();return 1===t?{posFormat:1,coverage:this.parsePointer(pe.coverage),value:this.parseValueRecord()}:2===t?{posFormat:2,coverage:this.parsePointer(pe.coverage),values:this.parseValueRecordList()}:void F.assert(!1,"0x"+e.toString(16)+": GPOS lookup type 1 format must be 1 or 2.")},ro[2]=function(){const e=this.offset+this.relativeOffset,t=this.parseUShort();F.assert(1===t||2===t,"0x"+e.toString(16)+": GPOS lookup type 2 format must be 1 or 2.");const n=this.parsePointer(pe.coverage),r=this.parseUShort(),i=this.parseUShort();if(1===t)return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,pairSets:this.parseList(pe.pointer(pe.list(function(){return{secondGlyph:this.parseUShort(),value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}})))};if(2===t){const e=this.parsePointer(pe.classDef),o=this.parsePointer(pe.classDef),a=this.parseUShort(),s=this.parseUShort();return{posFormat:t,coverage:n,valueFormat1:r,valueFormat2:i,classDef1:e,classDef2:o,class1Count:a,class2Count:s,classRecords:this.parseList(a,pe.list(s,function(){return{value1:this.parseValueRecord(r),value2:this.parseValueRecord(i)}}))}}},ro[3]=function(){return{error:"GPOS Lookup 3 not supported"}},ro[4]=function(){return{error:"GPOS Lookup 4 not supported"}},ro[5]=function(){return{error:"GPOS Lookup 5 not supported"}},ro[6]=function(){return{error:"GPOS Lookup 6 not supported"}},ro[7]=function(){return{error:"GPOS Lookup 7 not supported"}},ro[8]=function(){return{error:"GPOS Lookup 8 not supported"}},ro[9]=function(){return{error:"GPOS Lookup 9 not supported"}};var io,oo=new Array(10),ao={parse:function(e,t){const n=new pe(e,t=t||0),r=n.parseVersion(1);return F.argument(1===r||1.1===r,"Unsupported GPOS table version "+r),1===r?{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ro)}:{version:r,scripts:n.parseScriptList(),features:n.parseFeatureList(),lookups:n.parseLookupList(ro),variations:n.parseFeatureVariationsList()}},make:function(e){return new se.Table("GPOS",[{name:"version",type:"ULONG",value:65536},{name:"scripts",type:"TABLE",value:new se.ScriptList(e.scripts)},{name:"features",type:"TABLE",value:new se.FeatureList(e.features)},{name:"lookups",type:"TABLE",value:new se.LookupList(e.lookups,oo)}])}},so={parse:function(e,t){const n=new ge.Parser(e,t),r=n.parseUShort();if(0===r)return function(e){const t={};e.skip("uShort");const n=e.parseUShort();F.argument(0===n,"Unsupported kern sub-table version."),e.skip("uShort",2);const r=e.parseUShort();e.skip("uShort",3);for(let n=0;n1&&console.warn("Only the first kern subtable is supported."),e.skip("uLong");const n=255&e.parseUShort();if(e.skip("uShort"),0===n){const n=e.parseUShort();e.skip("uShort",3);for(let r=0;r{if(o&&"object"==typeof o||"function"==typeof o)for(let a of n(o))r.call(i,a)||void 0===a||e(i,a,{get:()=>o[a],enumerable:!(s=t(o,a))||s.enumerable});return i})(e({},"__esModule",{value:!0}),io)})();"undefined"!=typeof self&&self,void 0===(i="function"==typeof(r=()=>({...o,default:o}))?r.call(t,n,t,e):r)||(e.exports=i)},42649(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u1)for(var n=1;n>>0",r,r);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",r,r);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",r,r,c)('else if(typeof d%s==="string")',r)("m%s=parseInt(d%s,10)",r,r)('else if(typeof d%s==="number")',r)("m%s=d%s",r,r)('else if(typeof d%s==="object")',r)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",r,r,r,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',r)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",r,r,r)("else if(d%s.length >= 0)",r)("m%s=d%s",r,r);break;case"string":e("m%s=String(d%s)",r,r);break;case"bool":e("m%s=Boolean(d%s)",r,r)}}return e}function s(e,t,n,r){if(t.resolvedType)t.resolvedType instanceof i?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",r,n,r,r,n,r,r):e("d%s=types[%i].toObject(m%s,o)",r,n,r);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",r,r,r,r);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',r)("d%s=o.longs===String?String(m%s):m%s",r,r,r)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",r,r,r,r,o?"true":"",r);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",r,r,r,r,r);break;default:e("d%s=m%s",r,r)}}return e}r.fromObject=function(e){var t=e.fieldsArray,n=o.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return n("return new this.ctor");n("var m=new this.ctor");for(var r=0;rReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),n=0;n>>3){")("case 1: k=r.%s(); break",s.keyType)("case 2:"),void 0===i.basic[l]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",n):t("value=r.%s()",l),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==i.long[s.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===s.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):s.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==i.packed[l]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|i.mapKey[c.keyType],c.keyType),void 0===h?n("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",u,t):n(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,d,t),n("}")("}")):c.repeated?(n("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==i.packed[d]?n("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",d,t)("w.ldelim()"):(n("for(var i=0;i<%s.length;++i)",t),void 0===h?a(n,c,u,t+"[i]"):n("w.uint32(%i).%s(%s[i])",(c.id<<3|h)>>>0,d,t)),n("}")):(c.optional&&n("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===h?a(n,c,u,t):n("w.uint32(%i).%s(%s)",(c.id<<3|h)>>>0,d,t))}return n("return w")};var r=n(25720),i=n(2112),o=n(99769);function a(e,t,n,r){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",n,r,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",n,r,(t.id<<3|2)>>>0)}},25720(e,t,n){"use strict";e.exports=a;var r=n(38122);((a.prototype=Object.create(r.prototype)).constructor=a).className="Enum";var i=n(86874),o=n(99769);function a(e,t,n,i,o,a){if(r.call(this,e,n),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=i,this.comments=o||{},this.valuesOptions=a,this._valuesFeatures={},this.reserved=void 0,t)for(var s=Object.keys(t),l=0;l{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},a.fromJSON=function(e,t){var n=new a(e,t.values,t.options,t.comment,t.comments);return n.reserved=t.reserved,t.edition&&(n._edition=t.edition),n._defaultEdition="proto3",n},a.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},a.prototype.add=function(e,t,n,r){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return r&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=r||null),this.comments[e]=n||null,this},a.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},a.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},a.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)}},8665(e,t,n){"use strict";e.exports=c;var r=n(38122);((c.prototype=Object.create(r.prototype)).constructor=c).className="Field";var i,o=n(25720),a=n(2112),s=n(99769),l=/^required|optional|repeated$/;function c(e,t,n,i,o,c,u){if(s.isObject(i)?(u=o,c=i,i=o=void 0):s.isObject(o)&&(u=c,c=o,o=void 0),r.call(this,e,c),!s.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!s.isString(n))throw TypeError("type must be a string");if(void 0!==i&&!l.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!s.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=n,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!s.Long&&void 0!==a.long[n],this.bytes="bytes"===n,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=u}c.fromJSON=function(e,t){var n=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(n._edition=t.edition),n._defaultEdition="proto3",n},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,n){return r.prototype.setOption.call(this,e,t,n)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return s.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=a.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=s.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;s.base64.test(this.typeDefault)?s.base64.decode(this.typeDefault,e=s.newBuffer(s.base64.length(this.typeDefault)),0):s.utf8.write(this.typeDefault,e=s.newBuffer(s.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=s.emptyObject:this.repeated?this.defaultValue=s.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),r.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===a.defaults[this.type]){var n=this.parent.get(this.type.split(".").pop());n&&n instanceof i&&n.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return r.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,n,r){return"function"==typeof t?t=s.decorateType(t).name:t&&"object"==typeof t&&(t=s.decorateEnum(t).name),function(i,o){s.decorateType(i.constructor).add(new c(o,e,t,n,{default:r}))}},c._configure=function(e){i=e}},8912(e,t,n){"use strict";var r=e.exports=n(30995);r.build="light",r.load=function(e,t,n){return"function"==typeof t?(n=t,t=new r.Root):t||(t=new r.Root),t.load(e,n)},r.loadSync=function(e,t){return t||(t=new r.Root),t.loadSync(e)},r.encoder=n(11673),r.decoder=n(2357),r.verifier=n(71351),r.converter=n(69589),r.ReflectionObject=n(38122),r.Namespace=n(86874),r.Root=n(54489),r.Enum=n(25720),r.Type=n(47957),r.Field=n(8665),r.OneOf=n(34416),r.MapField=n(21159),r.Service=n(75074),r.Method=n(58452),r.Message=n(31082),r.wrappers=n(80837),r.types=n(2112),r.util=n(99769),r.ReflectionObject._configure(r.Root),r.Namespace._configure(r.Type,r.Service,r.Enum),r.Root._configure(r.Type),r.Field._configure(r.Type)},30995(e,t,n){"use strict";var r=t;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(94006),r.BufferWriter=n(15623),r.Reader=n(11366),r.BufferReader=n(95895),r.util=n(69737),r.rpc=n(85178),r.roots=n(84156),r.configure=i,i()},55953(e,t,n){"use strict";var r=e.exports=n(8912);r.build="full",r.tokenize=n(79300),r.parse=n(50246),r.common=n(38600),r.Root._configure(r.Type,r.parse,r.common)},21159(e,t,n){"use strict";e.exports=a;var r=n(8665);((a.prototype=Object.create(r.prototype)).constructor=a).className="MapField";var i=n(2112),o=n(99769);function a(e,t,n,i,a,s){if(r.call(this,e,t,i,void 0,void 0,a,s),!o.isString(n))throw TypeError("keyType must be a string");this.keyType=n,this.resolvedKeyType=null,this.map=!0}a.fromJSON=function(e,t){return new a(e,t.id,t.keyType,t.type,t.options,t.comment)},a.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===i.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return r.prototype.resolve.call(this)},a.d=function(e,t,n){return"function"==typeof n?n=o.decorateType(n).name:n&&"object"==typeof n&&(n=o.decorateEnum(n).name),function(r,i){o.decorateType(r.constructor).add(new a(i,e,t,n))}}},31082(e,t,n){"use strict";e.exports=i;var r=n(69737);function i(e){if(e)for(var t=Object.keys(e),n=0;nt)return!0;return!1},d.isReservedName=function(e,t){if(e)for(var n=0;n0;){var r=e.shift();if(n.nested&&n.nested[r]){if(!((n=n.nested[r])instanceof d))throw Error("path conflicts with non-namespace objects")}else n.add(n=new d(r))}return t&&n.addJSON(t),n},d.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},d.prototype.lookup=function(e,t,n){if("boolean"==typeof t?(n=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),l.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var r=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var i=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+r];if(i&&(!t||t.indexOf(i.constructor)>-1))return i;if((i=this._lookupImpl(e,r))&&(!t||t.indexOf(i.constructor)>-1))return i;if(n)return null;for(var o=this;o.parent;){if((i=o.parent._lookupImpl(e,r))&&(!t||t.indexOf(i.constructor)>-1))return i;o=o.parent}return null},d.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var n=this.get(e[0]),r=null;if(n)1===e.length?r=n:n instanceof d&&(e=e.slice(1),r=n._lookupImpl(e,e.join(".")));else for(var i=0;i-1&&this.oneof.splice(t,1),e.partOf=null,this},a.prototype.onAdd=function(e){r.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw r;e.push(n)}else{var i=H();if(e.push(i),B>=2023)throw $(i,"id")}}while(k(",",!0));var o={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};J(o,function(e){if("option"!==e)throw $(e);ne(o,e),k(";")},function(){oe(o)})}function V(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(g.test(e))return parseInt(e,10);if(A.test(e))return parseInt(e,16);if(b.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==w)throw $("package");if(w=O(),!E.test(w))throw $(w,"name");F=F.define(w),k(";")}function X(){var e,t=N();switch(t){case"weak":e=I||(I=[]),O();break;case"public":O();default:e=_||(_=[])}t=H(),k(";"),e.push(t)}function q(){if(k("="),(B=H())<2023)throw $(B,"syntax");k(";")}function Y(){if(k("="),B=H(),!["2023"].includes(B))throw $(B,"edition");k(";")}function K(e,t){switch(t){case"option":return ne(e,t),k(";"),!0;case"message":return Z(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!S.test(t=O()))throw $(t,"service name");var n=new u(t);J(n,function(e){if(!K(n,e)){if("rpc"!==e)throw $(e);!function(e,t){var n=D(),r=t;if(!S.test(t=O()))throw $(t,"name");var i,o,a,s,l=t;if(k("("),k("stream",!0)&&(o=!0),!E.test(t=O()))throw $(t);if(i=t,k(")"),k("returns"),k("("),k("stream",!0)&&(s=!0),!E.test(t=O()))throw $(t);a=t,k(")");var c=new d(l,r,i,a,o,s);c.comment=n,J(c,function(e){if("option"!==e)throw $(e);ne(c,e),k(";")}),e.add(c)}(n,e)}}),e.add(n),e===F&&U.push(n)}(e,t),!0;case"extend":return function(e,t){if(!E.test(t=O()))throw $(t,"reference");var n=t;J(null,function(t){switch(t){case"required":case"repeated":ee(e,t,n);break;case"optional":ee(e,"proto3"===B?"proto3_optional":"optional",n);break;default:if("proto2"===B||!E.test(t))throw $(t);P(t),ee(e,"optional",n)}})}(e,t),!0}return!1}function J(e,t,n){var r=R.line;if(e&&("string"!=typeof e.comment&&(e.comment=D()),e.filename=C.filename),k("{",!0)){for(var i;"}"!==(i=O());)t(i);k(";",!0)}else n&&n(),k(";"),e&&("string"!=typeof e.comment||M)&&(e.comment=D(r)||e.comment)}function Z(e,t){if(!S.test(t=O()))throw $(t,"type name");var n=new o(t);J(n,function(e){if(!K(n,e))switch(e){case"map":!function(e){k("<");var t=O();if(void 0===f.mapKey[t])throw $(t,"type");k(",");var n=O();if(!E.test(n))throw $(n,"type");k(">");var r=O();if(!S.test(r))throw $(r,"name");k("=");var i=new s(j(r),V(O()),t,n);J(i,function(e){if("option"!==e)throw $(e);ne(i,e),k(";")},function(){oe(i)}),e.add(i)}(n);break;case"required":if("proto2"!==B)throw $(e);case"repeated":ee(n,e);break;case"optional":if("proto3"===B)ee(n,"proto3_optional");else{if("proto2"!==B)throw $(e);ee(n,"optional")}break;case"oneof":!function(e,t){if(!S.test(t=O()))throw $(t,"name");var n=new l(j(t));J(n,function(e){"option"===e?(ne(n,e),k(";")):(P(e),ee(n,"optional"))}),e.add(n)}(n,e);break;case"extensions":Q(n.extensions||(n.extensions=[]));break;case"reserved":Q(n.reserved||(n.reserved=[]),!0);break;default:if("proto2"===B||!E.test(e))throw $(e);P(e),ee(n,"optional")}}),e.add(n),e===F&&U.push(n)}function ee(e,t,n){var r=O();if("group"!==r){for(;r.endsWith(".")||N().startsWith(".");)r+=O();if(!E.test(r))throw $(r,"type");var i=O();if(!S.test(i))throw $(i,"name");i=j(i),k("=");var s=new a(i,V(O()),r,t,n);if(J(s,function(e){if("option"!==e)throw $(e);ne(s,e),k(";")},function(){oe(s)}),"proto3_optional"===t){var c=new l("_"+i);s.setOption("proto3_optional",!0),c.add(s),e.add(c)}else e.add(s);e===F&&U.push(s)}else!function(e,t){if(B>=2023)throw $("group");var n=O();if(!S.test(n))throw $(n,"name");var r=p.lcFirst(n);n===r&&(n=p.ucFirst(n)),k("=");var i=V(O()),s=new o(n);s.group=!0;var l=new a(r,i,n,t);l.filename=C.filename,J(s,function(e){switch(e){case"option":ne(s,e),k(";");break;case"required":case"repeated":ee(s,e);break;case"optional":ee(s,"proto3"===B?"proto3_optional":"optional");break;case"message":Z(s,e);break;case"enum":te(s,e);break;case"reserved":Q(s.reserved||(s.reserved=[]),!0);break;default:throw $(e)}}),e.add(s).add(l)}(e,t)}function te(e,t){if(!S.test(t=O()))throw $(t,"name");var n=new c(t);J(n,function(e){switch(e){case"option":ne(n,e),k(";");break;case"reserved":Q(n.reserved||(n.reserved=[]),!0),void 0===n.reserved&&(n.reserved=[]);break;default:!function(e,t){if(!S.test(t))throw $(t,"name");k("=");var n=V(O(),!0),r={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){h.prototype.setOption.call(r,e,t)},setParsedOption:function(){}};J(r,function(e){if("option"!==e)throw $(e);ne(r,e),k(";")},function(){oe(r)}),e.add(t,n,r.comment,r.parsedOptions||r.options)}(n,e)}}),e.add(n),e===F&&U.push(n)}function ne(e,t){var n,r,i=!0;for("option"===t&&(t=O());"="!==t;){if("("===t){var o=O();k(")"),t="("+o+")"}if(i){if(i=!1,t.includes(".")&&!t.includes("(")){var a=t.split(".");n=a[0]+".",t=a[1];continue}n=t}else r=r?r+=t:t;t=O()}var s=re(e,r?n.concat(r):n);r=r&&"."===r[0]?r.slice(1):r,function(e,t,n,r){e.setParsedOption&&e.setParsedOption(t,n,r)}(e,n=n&&"."===n[n.length-1]?n.slice(0,-1):n,s,r)}function re(e,t){if(k("{",!0)){for(var n={};!k("}",!0);){if(!S.test(T=O()))throw $(T,"name");if(null===T)throw $(T,"end of input");var r,i=T;if(k(":",!0),"{"===N())r=re(e,t+"."+T);else if("["===N()){var o;if(r=[],k("[",!0)){do{o=G(!0),r.push(o)}while(k(",",!0));k("]"),void 0!==o&&ie(e,t+"."+T,o)}}else r=G(!0),ie(e,t+"."+T,r);var a=n[i];a&&(r=[].concat(a).concat(r)),"__proto__"!==i&&(n[i]=r),k(",",!0),k(";",!0)}return n}var s=G(!0);return ie(e,t,s),s}function ie(e,t,n){F===e&&/^features\./.test(t)?z[t]=n:e.setOption&&e.setOption(t,n)}function oe(e){if(k("[",!0)){do{ne(e,"option")}while(k(",",!0));k("]")}return e}for(;null!==(T=O());)switch(T){case"package":if(!L)throw $(T);W();break;case"import":if(!L)throw $(T);X();break;case"syntax":if(!L)throw $(T);q();break;case"edition":if(!L)throw $(T);Y();break;case"option":ne(F,T),k(";",!0);break;default:if(K(F,T)){L=!1;continue}throw $(T)}return U.forEach(e=>{e._edition=B,Object.keys(z).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,z[t],!0)})}),C.filename=null,{package:w,imports:_,weakImports:I,root:t}}},11366(e,t,n){"use strict";e.exports=l;var r,i=n(69737),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function l(e){this.buf=e,this.pos=0,this.len=e.length}var c,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new l(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new l(e);throw Error("illegal buffer")},d=function(){return i.Buffer?function(e){return(l.create=function(e){return i.Buffer.isBuffer(e)?new r(e):u(e)})(e)}:u};function h(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function f(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new o(f(this.buf,this.pos+=4),f(this.buf,this.pos+=4))}l.create=d(),l.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,l.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return f(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|f(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},l.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,n);if(t===n){var r=i.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,n)},l.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},l.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.recursionLimit=i.recursionLimit,l.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>l.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},l._configure=function(e){r=e,l.create=d(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(l.prototype,{int64:function(){return h.call(this)[t](!1)},uint64:function(){return h.call(this)[t](!0)},sint64:function(){return h.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},95895(e,t,n){"use strict";e.exports=o;var r=n(11366);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(69737);function o(e){r.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},54489(e,t,n){"use strict";e.exports=d;var r=n(86874);((d.prototype=Object.create(r.prototype)).constructor=d).className="Root";var i,o,a,s=n(8665),l=n(25720),c=n(34416),u=n(99769);function d(e){r.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function h(){}d.fromJSON=function(e,t){return t||(t=new d),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},d.prototype.resolvePath=u.path.resolve,d.prototype.fetch=u.fetch,d.prototype.load=function e(t,n,r){"function"==typeof n&&(r=n,n=void 0);var i=this;if(!r)return u.asPromise(e,i,t,n);var s=r===h;function l(e,t){if(r){if(s)throw e;t&&t.resolveAll();var n=r;r=null,n(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var n=e.substring(t);if(n in a)return n}return null}function d(e,t){try{if(u.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),u.isString(t)){o.filename=e;var r,a=o(t,i,n),d=0;if(a.imports)for(;d-1))if(i.files.push(e),e in a)s?d(e,a[e]):(++p,setTimeout(function(){--p,d(e,a[e])}));else if(s){var n;try{n=u.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||l(e))}d(e,n)}else++p,i.fetch(e,function(n,o){--p,r&&(n?t?p||l(null,i):l(n):d(e,o))})}var p=0;u.isString(t)&&(t=[t]);for(var m,g=0;g-1&&this.deferred.splice(t,1)}}else if(e instanceof l)f.test(e.name)&&delete e.parent[e.name];else if(e instanceof r){for(var n=0;n{t._resolveFeaturesRecursive(e)}),this):this},l.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof i?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):r.prototype.add.call(this,e)},l.prototype.remove=function(e){if(e instanceof i){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return r.prototype.remove.call(this,e)},l.prototype.create=function(e,t,n){for(var r,i=new a.Service(e,t,n),l=0;l]/g,n=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,r=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,i=/^ *[*/]+ */,o=/^\s*\*?\/*/,a=/\n/g,s=/\s/,l=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function u(e){return e.replace(l,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function d(e,l){e=e.toString();var c=0,d=e.length,h=1,f=0,p={},m=[],g=null;function v(e){return Error("illegal "+e+" (line "+h+")")}function A(t){return e.charAt(t)}function y(t,n,r){var s,c={type:e.charAt(t++),lineEmpty:!1,leading:r},u=t-(l?2:3);do{if(--u<0||"\n"===(s=e.charAt(u))){c.lineEmpty=!0;break}}while(" "===s||"\t"===s);for(var d=e.substring(t,n).split(a),m=0;m0)return m.shift();if(g)return function(){var t="'"===g?r:n;t.lastIndex=c-1;var i=t.exec(e);if(!i)throw v("string");return c=t.lastIndex,E(g),g=null,u(i[1])}();var i,o,a,f,p,S=0===c;do{if(c===d)return null;for(i=!1;s.test(a=A(c));)if("\n"===a&&(S=!0,++h),++c===d)return null;if("/"===A(c)){if(++c===d)throw v("comment");if("/"===A(c))if(l){if(f=c,p=!1,b(c-1)){p=!0;do{if((c=x(c))===d)break;if(c++,!S)break}while(b(c))}else c=Math.min(d,x(c)+1);p&&(y(f,c,S),S=!0),h++,i=!0}else{for(p="/"===A(f=c+1);"\n"!==A(++c);)if(c===d)return null;++c,p&&(y(f,c-1,S),S=!0),++h,i=!0}else{if("*"!==(a=A(c)))return"/";f=c+1,p=l||"*"===A(f);do{if("\n"===a&&++h,++c===d)throw v("comment");o=a,a=A(c)}while("*"!==o||"/"!==a);++c,p&&(y(f,c-2,S),S=!0),i=!0}}}while(i);var C=c;if(t.lastIndex=0,!t.test(A(C++)))for(;C{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},A.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},A.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof a&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),y(this))}return e instanceof o?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),y(this)):r.prototype.add.call(this,e)},A.prototype.remove=function(e){if(e instanceof a&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),y(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),y(this)}return r.prototype.remove.call(this,e)},A.prototype.isReservedId=function(e){return r.isReservedId(this.reserved,e)},A.prototype.isReservedName=function(e){return r.isReservedName(this.reserved,e)},A.prototype.create=function(e){return new this.ctor(e)},A.prototype.setup=function(){for(var e=this.fullName,t=[],n=0;n0)t[o]=e(t[o]||{},n,i);else{var a=t[o];if(a&&r)return t;a&&(i=[].concat(a).concat(i)),t[o]=i}return t}(e,t=t.split("."),n)},Object.defineProperty(o,"decorateRoot",{get:function(){return a.decorated||(a.decorated=new(n(54489)))}})},42130(e,t,n){"use strict";e.exports=i;var r=n(69737);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},69737(e,t,n){"use strict";var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.recursionLimit=100,r.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;nutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),n={};e.oneofsArray.length&&t("var p={}");for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function g(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=h(),d.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(d.alloc=i.pool(d.alloc,i.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new l(e,t,n),this.len+=t,this},p.prototype=Object.create(l.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(m,10,o.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=o.from(e);return this._push(m,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(m,t.length(),t)},d.prototype.bool=function(e){return this._push(f,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=o.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var v=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(f,1,0);if(i.isString(e)){var n=d.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(v,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(f,1,0)},d.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new l(c,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(c,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=h(),r._configure()}},15623(e,t,n){"use strict";e.exports=o;var r=n(94006);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(69737);function o(){r.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},59700(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(32549),i=n(40942),o=n(22256),a=n(34355),s=n(57889),l=n(73059),c=n.n(l),u=n(5522),d=n(40366),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"];const f=(0,d.forwardRef)(function(e,t){var n,l=e.prefixCls,f=void 0===l?"rc-checkbox":l,p=e.className,m=e.style,g=e.checked,v=e.disabled,A=e.defaultChecked,y=void 0!==A&&A,b=e.type,x=void 0===b?"checkbox":b,S=e.onChange,E=(0,s.A)(e,h),C=(0,d.useRef)(null),w=(0,u.A)(y,{value:g}),_=(0,a.A)(w,2),I=_[0],T=_[1];(0,d.useImperativeHandle)(t,function(){return{focus:function(){var e;null===(e=C.current)||void 0===e||e.focus()},blur:function(){var e;null===(e=C.current)||void 0===e||e.blur()},input:C.current}});var M=c()(f,p,(n={},(0,o.A)(n,"".concat(f,"-checked"),I),(0,o.A)(n,"".concat(f,"-disabled"),v),n));return d.createElement("span",{className:M,style:m},d.createElement("input",(0,r.A)({},E,{className:"".concat(f,"-input"),ref:C,onChange:function(t){v||("checked"in e||T(t.target.checked),null==S||S({target:(0,i.A)((0,i.A)({},e),{},{type:x,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:v,checked:!!I,type:x})),d.createElement("span",{className:"".concat(f,"-inner")}))})},94339(e,t,n){"use strict";n.d(t,{D0:()=>pe,_z:()=>A,Op:()=>Ie,B8:()=>me,EF:()=>y,Ay:()=>ke,mN:()=>we,FH:()=>Pe});var r=n(40366),i=n(32549),o=n(57889),a=n(22256),s=n(40942),l=n(53563),c=n(20582),u=n(79520),d=n(59472),h=n(31856),f=n(2330),p=n(51281),m=n(3455),g="RC_FORM_INTERNAL_HOOKS",v=function(){(0,m.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const A=r.createContext({getFieldValue:v,getFieldsValue:v,getFieldError:v,getFieldWarning:v,getFieldsError:v,isFieldsTouched:v,isFieldTouched:v,isFieldValidating:v,isFieldsValidating:v,resetFields:v,setFields:v,setFieldValue:v,setFieldsValue:v,validateFields:v,submit:v,getInternalHooks:function(){return v(),{dispatch:v,initEntityValue:v,registerField:v,useSubscribe:v,setInitialValues:v,destroyForm:v,setCallbacks:v,registerWatch:v,getFields:v,setValidateMessages:v,setPreserve:v,getInitialValue:v}}}),y=r.createContext(null);var b=n(42148),x=n(43980),S=n(1888);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}}):e}function O(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e)}function P(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,U=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!z.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(F)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(L)return L;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(e){return e&&e.exact?o:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+i+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+i+t(e),"g")};var c=l.v4().source,u=l.v6().source;return L=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(U)}},j="enum",$=B,H=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(R(i.messages.whitespace,e.fullField))},G=function(e,t,n,r,i){if(e.required&&void 0===t)B(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?z[o](t)||r.push(R(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(R(i.messages.types[o],e.fullField,e.type))}},Q=function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(R(i.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(R(i.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(R(i.messages[c].range,e.fullField,e.min,e.max))},V=function(e,t,n,r,i){e[j]=Array.isArray(e[j])?e[j]:[],-1===e[j].indexOf(t)&&r.push(R(i.messages[j],e.fullField,e[j].join(", ")))},W=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(R(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},X=function(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t,o)&&!e.required)return n();$(e,t,r,a,i,o),O(t,o)||G(e,t,r,a,i)}n(a)},q={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t,"string")&&!e.required)return n();$(e,t,r,o,i,"string"),O(t,"string")||(G(e,t,r,o,i),Q(e,t,r,o,i),W(e,t,r,o,i),!0===e.whitespace&&H(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&G(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&(G(e,t,r,o,i),Q(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&G(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),O(t)||G(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&(G(e,t,r,o,i),Q(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&(G(e,t,r,o,i),Q(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();$(e,t,r,o,i,"array"),null!=t&&(G(e,t,r,o,i),Q(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&G(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i),void 0!==t&&V(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t,"string")&&!e.required)return n();$(e,t,r,o,i),O(t,"string")||W(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t,"date")&&!e.required)return n();var a;$(e,t,r,o,i),O(t,"date")||(a=t instanceof Date?t:new Date(t),G(e,a,r,o,i),a&&Q(e,a.getTime(),r,o,i))}n(o)},url:X,hex:X,email:X,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;$(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(O(t)&&!e.required)return n();$(e,t,r,o,i)}n(o)}};function Y(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var K=Y(),J=function(){function e(e){this.rules=null,this._messages=K,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=D(Y(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,s=r;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);if(a.messages){var l=this.messages();l===K&&(l=Y()),D(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach(function(e){var n=i.rules[e],r=o[e];n.forEach(function(n){var a=n;"function"==typeof a.transform&&(o===t&&(o=E({},o)),r=o[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:E({},a)).validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:o,field:e}))})});var u={};return function(e,t,n,r,i){if(t.first){var o=new Promise(function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}(e);P(a,n,function(e){return r(e),e.length?o(new N(e,M(e))):t(i)})});return o.catch(function(e){return e}),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(t,o){var d=function(e){if(u.push.apply(u,e),++c===l)return r(u),u.length?o(new N(u,M(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?P(r,n,d):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e||[]),++i===o&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}(c,a,function(t,n){var r,i=t.rule,s=!("object"!==i.type&&"array"!==i.type||"object"!=typeof i.fields&&"object"!=typeof i.defaultField);function l(e,t){return E({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==i.message&&(c=[].concat(i.message));var d=c.map(k(i,o));if(a.first&&d.length)return u[i.field]=1,n(d);if(s){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(k(i,o)):a.error&&(d=[a.error(i,R(a.messages.required,i.field))]),n(d);var h={};i.defaultField&&Object.keys(t.value).map(function(e){h[e]=i.defaultField}),h=E({},h,t.rule.fields);var f={};Object.keys(h).forEach(function(e){var t=h[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))});var p=new e(f);p.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),p.validate(t.value,t.rule.options||a,function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(d)}if(s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)r=i.asyncValidator(i,t.value,c,t.source,a);else if(i.validator){try{r=i.validator(i,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}!0===r?c():!1===r?c("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:de;if(i.validatePromise===c){var t;i.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors,o=void 0===i?de:i;t?r.push.apply(r,(0,l.A)(o)):n.push.apply(n,(0,l.A)(o))}),i.errors=n,i.warnings=r,i.triggerMetaEvent(),i.reRender()}}),h});return s||(i.validatePromise=c,i.dirty=!0,i.errors=de,i.warnings=de,i.triggerMetaEvent(),i.reRender()),c},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(g).getInitialValue)(i.getNamePath())},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}},i.getOnlyChild=function(e){if("function"==typeof e){var t=i.getMeta();return(0,s.A)((0,s.A)({},i.getOnlyChild(e(i.getControlled(),t,i.props.fieldContext))),{},{isFunction:!0})}var n=(0,p.A)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},i.getValue=function(e){var t=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return(0,te._W)(e||t(!0),n)},i.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=i.props,n=t.trigger,r=t.validateTrigger,o=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,u=t.getValueProps,d=t.fieldContext,h=void 0!==r?r:d.validateTrigger,f=i.getNamePath(),p=d.getInternalHooks,m=d.getFieldsValue,v=p(g).dispatch,A=i.getValue(),y=u||function(e){return(0,a.A)({},c,e)},x=e[n],S=(0,s.A)((0,s.A)({},e),y(A));return S[n]=function(){var e;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(h.keys=[].concat((0,l.A)(h.keys.slice(0,t)),[h.id],(0,l.A)(h.keys.slice(t))),o([].concat((0,l.A)(n.slice(0,t)),[e],(0,l.A)(n.slice(t))))):(h.keys=[].concat((0,l.A)(h.keys),[h.id]),o([].concat((0,l.A)(n),[e]))),h.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(h.keys=h.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(h.keys=(0,te.Cy)(h.keys,e,t),o((0,te.Cy)(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),i(d.map(function(e,t){var n=h.keys[t];return void 0===n&&(h.keys[t]=h.id,n=h.keys[t],h.id+=1),{name:t,key:n,isListField:!0}}),c,t)})))};var ge=n(34355),ve=n(85985),Ae=n(35739),ye="__@field_split__";function be(e){return e.map(function(e){return"".concat((0,Ae.A)(e),":").concat(e)}).join(ye)}var xe=function(){function e(){(0,c.A)(this,e),this.kvs=new Map}return(0,u.A)(e,[{key:"set",value:function(e,t){this.kvs.set(be(e),t)}},{key:"get",value:function(e){return this.kvs.get(be(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(be(e))}},{key:"map",value:function(e){return(0,l.A)(this.kvs.entries()).map(function(t){var n=(0,ge.A)(t,2),r=n[0],i=n[1],o=r.split(ye);return e({key:o.map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ge.A)(t,3),r=n[1],i=n[2];return"number"===r?Number(i):i}),value:i})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}();const Se=xe;var Ee=["name"],Ce=(0,u.A)(function e(t){var n=this;(0,c.A)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===g?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,m.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,i=(0,te.VI)({},e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;i=(0,te.KY)(i,n,(0,te._W)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(i)}},this.destroyForm=function(){var e=new Se;n.getFieldEntities(!0).forEach(function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=(0,te._W)(n.initialValues,e);return e.length?(0,ve.A)(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Se;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=(0,te.XK)(e);return t.get(n)||{INVALIDATE_NAME_PATH:(0,te.XK)(e)}})},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return r.forEach(function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&i.push(o)}else i.push(o)}),(0,te.fm)(n.store,i.map(te.XK))},this.getFieldValue=function(e){n.warningUnhooked();var t=(0,te.XK)(e);return(0,te._W)(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:(0,te.XK)(e[n]),errors:[],warnings:[]}})},this.getFieldError=function(e){n.warningUnhooked();var t=(0,te.XK)(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=(0,te.XK)(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=new Se,i=n.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var i=r.get(n)||new Set;i.add({entity:e,value:t}),r.set(n,i)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,i=r.get(t);i&&(n=e).push.apply(n,(0,l.A)((0,l.A)(i).map(function(e){return e.entity})))})):e=i,e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==n.getInitialValue(i))(0,m.Ay)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=r.get(i);if(o&&o.size>1)(0,m.Ay)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);t.skipExist&&void 0!==a||n.updateStore((0,te.KY)(n.store,i,(0,l.A)(o)[0].value))}}}})},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,te.VI)({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(te.XK);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,te.KY)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var i=e.name,a=(0,o.A)(e,Ee),s=(0,te.XK)(i);r.push(s),"value"in a&&n.updateStore((0,te.KY)(n.store,s,a.value)),n.notifyObservers(t,[s],{type:"setField",data:e})}),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),i=(0,s.A)((0,s.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,te._W)(n.store,r)&&n.updateStore((0,te.KY)(n.store,r,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null==t||t},this.registerField=function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!(0,te.Am)(e.getNamePath(),t)})){var s=n.store;n.updateStore((0,te.KY)(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var i=(0,s.A)((0,s.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,i)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,l.A)(r))}),r},this.updateValue=function(e,t){var r=(0,te.XK)(e),i=n.store;n.updateStore((0,te.KY)(n.store,r,t)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a((0,te.fm)(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,l.A)(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,te.VI)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],i=new Se;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=(0,te.XK)(t);i.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(i.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}})}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new Se;t.forEach(function(e){var t=e.name,n=e.errors;o.set(t,n)}),i.forEach(function(e){e.errors=o.get(e.name)||e.errors})}r(i.filter(function(t){var n=t.name;return(0,te.Ah)(e,n)}),i)}},this.validateFields=function(e,t){var r,i;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,i=t):i=e;var o=!!r,a=o?r.map(te.XK):[],c=[];n.getFieldEntities(!0).forEach(function(e){var t;if(o||a.push(e.getNamePath()),(null===(t=i)||void 0===t?void 0:t.recursive)&&o){var u=e.getNamePath();u.every(function(e,t){return r[t]===e||void 0===r[t]})&&a.push(u)}if(e.props.rules&&e.props.rules.length){var d=e.getNamePath();if(!o||(0,te.Ah)(a,d)){var h=e.validateRules((0,s.A)({validateMessages:(0,s.A)((0,s.A)({},ee),n.validateMessages)},i));c.push(h.then(function(){return{name:d,errors:[],warnings:[]}}).catch(function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors;t?r.push.apply(r,(0,l.A)(i)):n.push.apply(n,(0,l.A)(i))}),n.length?Promise.reject({name:d,errors:n,warnings:r}):{name:d,errors:n,warnings:r}}))}}});var u=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))})})}):Promise.resolve([])}(c);n.lastValidatePromise=u,u.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var d=u.then(function(){return n.lastValidatePromise===u?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==u})});return d.catch(function(e){return e}),n.triggerOnFieldsChange(a),d},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t});const we=function(e){var t=r.useRef(),n=r.useState({}),i=(0,ge.A)(n,2)[1];if(!t.current)if(e)t.current=e;else{var o=new Ce(function(){i({})});t.current=o.getForm()}return[t.current]};var _e=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ie=function(e){var t=e.validateMessages,n=e.onFormChange,i=e.onFormFinish,o=e.children,l=r.useContext(_e),c=r.useRef({});return r.createElement(_e.Provider,{value:(0,s.A)((0,s.A)({},l),{},{validateMessages:(0,s.A)((0,s.A)({},l.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:c.current}),l.triggerFormChange(e,t)},triggerFormFinish:function(e,t){i&&i(e,{values:t,forms:c.current}),l.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=(0,s.A)((0,s.A)({},c.current),{},(0,a.A)({},e,t))),l.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.A)({},c.current);delete t[e],c.current=t,l.unregisterForm(e)}})},o)};const Te=_e;var Me=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const Re=function(e,t){var n=e.name,a=e.initialValues,l=e.fields,c=e.form,u=e.preserve,d=e.children,h=e.component,f=void 0===h?"form":h,p=e.validateMessages,m=e.validateTrigger,v=void 0===m?"onChange":m,y=e.onValuesChange,b=e.onFieldsChange,x=e.onFinish,S=e.onFinishFailed,E=(0,o.A)(e,Me),C=r.useContext(Te),w=we(c),_=(0,ge.A)(w,1)[0],I=_.getInternalHooks(g),T=I.useSubscribe,M=I.setInitialValues,R=I.setCallbacks,O=I.setValidateMessages,P=I.setPreserve,N=I.destroyForm;r.useImperativeHandle(t,function(){return _}),r.useEffect(function(){return C.registerForm(n,_),function(){C.unregisterForm(n)}},[C,_,n]),O((0,s.A)((0,s.A)({},C.validateMessages),p)),R({onValuesChange:y,onFieldsChange:function(e){if(C.triggerFormChange(n,e),b){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;ii});var r=n(35739);const i=function e(t){return Array.isArray(t)?function(t){return t.map(function(t){return e(t)})}(t):"object"===(0,r.A)(t)&&null!==t?function(t){if(Object.getPrototypeOf(t)===Object.prototype){var n={};for(var r in t)n[r]=e(t[r]);return n}return t}(t):t}},42148(e,t,n){"use strict";function r(e){return null==e?[]:Array.isArray(e)?e:[e]}function i(e){return e&&!!e._init}n.d(t,{$:()=>r,c:()=>i})},76627(e,t,n){"use strict";n.d(t,{Ah:()=>h,Am:()=>g,Cy:()=>y,HP:()=>A,KY:()=>s.A,S5:()=>v,VI:()=>m,XK:()=>u,_W:()=>a.A,fm:()=>d});var r=n(40942),i=n(53563),o=n(35739),a=n(81569),s=n(66949),l=n(42148),c=n(85985);function u(e){return(0,l.$)(e)}function d(e,t){var n={};return t.forEach(function(t){var r=(0,a.A)(e,t);n=(0,s.A)(n,t,r)}),n}function h(e,t){return e&&e.some(function(e){return g(e,t)})}function f(e){return"object"===(0,o.A)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function p(e,t){var n=Array.isArray(e)?(0,i.A)(e):(0,r.A)({},e);return t?(Object.keys(t).forEach(function(e){var r=n[e],i=t[e],o=f(r)&&f(i);n[e]=o?p(r,i||{}):(0,c.A)(i)}),n):n}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat((0,i.A)(e.slice(0,n)),[o],(0,i.A)(e.slice(n,t)),(0,i.A)(e.slice(t+1,r))):a<0?[].concat((0,i.A)(e.slice(0,t)),(0,i.A)(e.slice(t+1,n+1)),[o],(0,i.A)(e.slice(n+1,r))):e}},7041(e,t,n){"use strict";n.d(t,{aF:()=>Ae,Kq:()=>m,Ay:()=>ye});var r=n(22256),i=n(40942),o=n(34355),a=n(35739),s=n(73059),l=n.n(s),c=n(24981),u=n(81834),d=n(40366),h=n(57889),f=["children"],p=d.createContext({});function m(e){var t=e.children,n=(0,h.A)(e,f);return d.createElement(p.Provider,{value:n},t)}var g=n(20582),v=n(79520),A=n(31856),y=n(2330),b=function(e){(0,A.A)(n,e);var t=(0,y.A)(n);function n(){return(0,g.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);const x=b;var S=n(89615),E=n(94570),C=n(69211),w="none",_="appear",I="enter",T="leave",M="none",R="prepare",O="start",P="active",N="end",k="prepared",D=n(39999);function L(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var B,F,U,z=(B=(0,D.A)(),F="undefined"!=typeof window?window:{},U={animationend:L("Animation","AnimationEnd"),transitionend:L("Transition","TransitionEnd")},B&&("AnimationEvent"in F||delete U.animationend.animation,"TransitionEvent"in F||delete U.transitionend.transition),U),j={};if((0,D.A)()){var $=document.createElement("div");j=$.style}var H={};function G(e){if(H[e])return H[e];var t=z[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:2;t();var o=(0,Z.A)(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o},t]};(Object.getOwnPropertyDescriptor(ee,"name")||{}).writable||Object.defineProperty(ee,"name",{value:"default",configurable:!0});var te=[R,O,P,N],ne=[R,k],re=!1;function ie(e){return e===P||e===N}const oe=function(e,t,n){var r=(0,E.A)(M),i=(0,o.A)(r,2),a=i[0],s=i[1],l=ee(),c=(0,o.A)(l,2),u=c[0],h=c[1],f=t?ne:te;return J(function(){if(a!==M&&a!==N){var e=f.indexOf(a),t=f[e+1],r=n(a);r===re?s(t,!0):t&&u(function(e){function n(){e.isCanceled()||s(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,a]),d.useEffect(function(){return function(){h()}},[]),[function(){s(R,!0)},a]};(Object.getOwnPropertyDescriptor(oe,"name")||{}).writable||Object.defineProperty(oe,"name",{value:"default",configurable:!0});const ae=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var n=d.forwardRef(function(e,n){var a=e.visible,s=void 0===a||a,h=e.removeOnLeave,f=void 0===h||h,m=e.forceRender,g=e.children,v=e.motionName,A=e.leavedClassName,y=e.eventProps,b=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(p).motion),M=(0,d.useRef)(),N=(0,d.useRef)(),D=function(e,t,n,a){var s,l,c,u,h=a.motionEnter,f=void 0===h||h,p=a.motionAppear,m=void 0===p||p,g=a.motionLeave,v=void 0===g||g,A=a.motionDeadline,y=a.motionLeaveImmediately,b=a.onAppearPrepare,x=a.onEnterPrepare,M=a.onLeavePrepare,N=a.onAppearStart,D=a.onEnterStart,L=a.onLeaveStart,B=a.onAppearActive,F=a.onEnterActive,U=a.onLeaveActive,z=a.onAppearEnd,j=a.onEnterEnd,$=a.onLeaveEnd,H=a.onVisibleChanged,G=(0,E.A)(),Q=(0,o.A)(G,2),V=Q[0],W=Q[1],X=(s=w,l=d.useReducer(function(e){return e+1},0),c=(0,o.A)(l,2)[1],u=d.useRef(s),[(0,C.A)(function(){return u.current}),(0,C.A)(function(e){u.current="function"==typeof e?e(u.current):e,c()})]),q=(0,o.A)(X,2),Y=q[0],Z=q[1],ee=(0,E.A)(null),te=(0,o.A)(ee,2),ne=te[0],ae=te[1],se=Y(),le=(0,d.useRef)(!1),ce=(0,d.useRef)(null);function ue(){return n()}var de=(0,d.useRef)(!1);function he(){Z(w),ae(null,!0)}var fe=(0,S._q)(function(e){var t=Y();if(t!==w){var n=ue();if(!e||e.deadline||e.target===n){var r,i=de.current;t===_&&i?r=null==z?void 0:z(n,e):t===I&&i?r=null==j?void 0:j(n,e):t===T&&i&&(r=null==$?void 0:$(n,e)),i&&!1!==r&&he()}}}),pe=K(fe),me=(0,o.A)(pe,1)[0],ge=function(e){switch(e){case _:return(0,r.A)((0,r.A)((0,r.A)({},R,b),O,N),P,B);case I:return(0,r.A)((0,r.A)((0,r.A)({},R,x),O,D),P,F);case T:return(0,r.A)((0,r.A)((0,r.A)({},R,M),O,L),P,U);default:return{}}},ve=d.useMemo(function(){return ge(se)},[se]),Ae=oe(se,!e,function(e){if(e===R){var t=ve[R];return t?t(ue()):re}var n;return xe in ve&&ae((null===(n=ve[xe])||void 0===n?void 0:n.call(ve,ue(),null))||null),xe===P&&se!==w&&(me(ue()),A>0&&(clearTimeout(ce.current),ce.current=setTimeout(function(){fe({deadline:!0})},A))),xe===k&&he(),!0}),ye=(0,o.A)(Ae,2),be=ye[0],xe=ye[1],Se=ie(xe);de.current=Se;var Ee=(0,d.useRef)(null);J(function(){if(!le.current||Ee.current!==t){W(t);var n,r=le.current;le.current=!0,!r&&t&&m&&(n=_),r&&t&&f&&(n=I),(r&&!t&&v||!r&&y&&!t&&v)&&(n=T);var i=ge(n);n&&(e||i[R])?(Z(n),be()):Z(w),Ee.current=t}},[t]),(0,d.useEffect)(function(){(se===_&&!m||se===I&&!f||se===T&&!v)&&Z(w)},[m,f,v]),(0,d.useEffect)(function(){return function(){le.current=!1,clearTimeout(ce.current)}},[]);var Ce=d.useRef(!1);(0,d.useEffect)(function(){V&&(Ce.current=!0),void 0!==V&&se===w&&((Ce.current||V)&&(null==H||H(V)),Ce.current=!0)},[V,se]);var we=ne;return ve[R]&&xe===O&&(we=(0,i.A)({transition:"none"},we)),[se,xe,we,null!=V?V:t]}(b,s,function(){try{return M.current instanceof HTMLElement?M.current:(0,c.Ay)(N.current)}catch(e){return null}},e),L=(0,o.A)(D,4),B=L[0],F=L[1],U=L[2],z=L[3],j=d.useRef(z);z&&(j.current=!0);var $,H=d.useCallback(function(e){M.current=e,(0,u.Xf)(n,e)},[n]),G=(0,i.A)((0,i.A)({},y),{},{visible:s});if(g)if(B===w)$=z?g((0,i.A)({},G),H):!f&&j.current&&A?g((0,i.A)((0,i.A)({},G),{},{className:A}),H):m||!f&&!A?g((0,i.A)((0,i.A)({},G),{},{style:{display:"none"}}),H):null;else{var Q;F===R?Q="prepare":ie(F)?Q="active":F===O&&(Q="start");var V=Y(v,"".concat(B,"-").concat(Q));$=g((0,i.A)((0,i.A)({},G),{},{className:l()(Y(v,B),(0,r.A)((0,r.A)({},V,V&&Q),v,"string"==typeof v)),style:U}),H)}else $=null;return d.isValidElement($)&&(0,u.f3)($)&&((0,u.A9)($)||($=d.cloneElement($,{ref:H}))),d.createElement(x,{ref:N},$)});return n.displayName="CSSMotion",n}(W);var se=n(32549),le=n(59472),ce="add",ue="keep",de="remove",he="removed";function fe(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,i.A)((0,i.A)({},t),{},{key:String(t.key)})}function pe(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(fe)}var me=["component","children","onVisibleChanged","onAllRemoved"],ge=["status"],ve=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Ae=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,t=function(t){(0,A.A)(o,t);var n=(0,y.A)(o);function o(){var e;(0,g.A)(this,o);for(var t=arguments.length,a=new Array(t),s=0;s0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,a=pe(e),s=pe(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==de})).forEach(function(t){t.key===e&&(t.status=ue)})}),n}(r,o);return{keyEntities:a.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==he||e.status!==de})}}}]),o}(d.Component);return(0,r.A)(t,"defaultProps",{component:"div"}),t}(W),ye=ae},91860(e,t,n){"use strict";n.d(t,{A:()=>k});var r=n(32549),i=n(40942),o=n(34355),a=n(57889),s=n(40366),l=n(73059),c=n.n(l),u=n(86141),d=n(34148),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function p(e,t){var n=e.prefixCls,o=e.invalidate,l=e.item,d=e.renderItem,p=e.responsive,m=e.responsiveDisabled,g=e.registerSize,v=e.itemKey,A=e.className,y=e.style,b=e.children,x=e.display,S=e.order,E=e.component,C=void 0===E?"div":E,w=(0,a.A)(e,h),_=p&&!x;function I(e){g(v,e)}s.useEffect(function(){return function(){I(null)}},[]);var T,M=d&&l!==f?d(l,{index:S}):b;o||(T={opacity:_?0:1,height:_?0:f,overflowY:_?"hidden":f,order:p?S:f,pointerEvents:_?"none":f,position:_?"absolute":f});var R={};_&&(R["aria-hidden"]=!0);var O=s.createElement(C,(0,r.A)({className:c()(!o&&n,A),style:(0,i.A)((0,i.A)({},T),y)},R,w,{ref:t}),M);return p&&(O=s.createElement(u.A,{onResize:function(e){I(e.offsetWidth)},disabled:m},O)),O}var m=s.forwardRef(p);m.displayName="Item";const g=m;var v=n(69211),A=n(76212),y=n(77230);function b(e,t){var n=s.useState(t),r=(0,o.A)(n,2),i=r[0],a=r[1];return[i,(0,v.A)(function(t){e(function(){a(t)})})]}var x=s.createContext(null),S=["component"],E=["className"],C=["className"],w=function(e,t){var n=s.useContext(x);if(!n){var i=e.component,o=void 0===i?"div":i,l=(0,a.A)(e,S);return s.createElement(o,(0,r.A)({},l,{ref:t}))}var u=n.className,d=(0,a.A)(n,E),h=e.className,f=(0,a.A)(e,C);return s.createElement(x.Provider,{value:null},s.createElement(g,(0,r.A)({ref:t,className:c()(u,h)},d,f)))},_=s.forwardRef(w);_.displayName="RawItem";const I=_;var T=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],M="responsive",R="invalidate";function O(e){return"+ ".concat(e.length," ...")}function P(e,t){var n,l=e.prefixCls,h=void 0===l?"rc-overflow":l,f=e.data,p=void 0===f?[]:f,m=e.renderItem,v=e.renderRawItem,S=e.itemKey,E=e.itemWidth,C=void 0===E?10:E,w=e.ssr,_=e.style,I=e.className,P=e.maxCount,N=e.renderRest,k=e.renderRawRest,D=e.prefix,L=e.suffix,B=e.component,F=void 0===B?"div":B,U=e.itemComponent,z=e.onVisibleChange,j=(0,a.A)(e,T),$="full"===w,H=(n=s.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.A)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,A.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),G=b(H,null),Q=(0,o.A)(G,2),V=Q[0],W=Q[1],X=V||0,q=b(H,new Map),Y=(0,o.A)(q,2),K=Y[0],J=Y[1],Z=b(H,0),ee=(0,o.A)(Z,2),te=ee[0],ne=ee[1],re=b(H,0),ie=(0,o.A)(re,2),oe=ie[0],ae=ie[1],se=b(H,0),le=(0,o.A)(se,2),ce=le[0],ue=le[1],de=b(H,0),he=(0,o.A)(de,2),fe=he[0],pe=he[1],me=(0,s.useState)(null),ge=(0,o.A)(me,2),ve=ge[0],Ae=ge[1],ye=(0,s.useState)(null),be=(0,o.A)(ye,2),xe=be[0],Se=be[1],Ee=s.useMemo(function(){return null===xe&&$?Number.MAX_SAFE_INTEGER:xe||0},[xe,V]),Ce=(0,s.useState)(!1),we=(0,o.A)(Ce,2),_e=we[0],Ie=we[1],Te="".concat(h,"-item"),Me=Math.max(te,oe),Re=P===M,Oe=p.length&&Re,Pe=P===R,Ne=Oe||"number"==typeof P&&p.length>P,ke=(0,s.useMemo)(function(){var e=p;return Oe?e=null===V&&$?p:p.slice(0,Math.min(p.length,X/C)):"number"==typeof P&&(e=p.slice(0,P)),e},[p,C,V,P,Oe]),De=(0,s.useMemo)(function(){return Oe?p.slice(Ee+1):p.slice(ke.length)},[p,ke,Oe,Ee]),Le=(0,s.useCallback)(function(e,t){var n;return"function"==typeof S?S(e):null!==(n=S&&(null==e?void 0:e[S]))&&void 0!==n?n:t},[S]),Be=(0,s.useCallback)(m||function(e){return e},[m]);function Fe(e,t,n){(xe!==e||void 0!==t&&t!==ve)&&(Se(e),n||(Ie(eX){Fe(r-1,e-i-fe+oe);break}}L&&ze(0)+fe>X&&Ae(null)}},[X,K,oe,ce,fe,Le,ke]);var je=_e&&!!De.length,$e={};null!==ve&&Oe&&($e={position:"absolute",left:ve,top:0});var He={prefixCls:Te,responsive:Oe,component:U,invalidate:Pe},Ge=v?function(e,t){var n=Le(e,t);return s.createElement(x.Provider,{key:n,value:(0,i.A)((0,i.A)({},He),{},{order:t,item:e,itemKey:n,registerSize:Ue,display:t<=Ee})},v(e,t))}:function(e,t){var n=Le(e,t);return s.createElement(g,(0,r.A)({},He,{order:t,key:n,item:e,renderItem:Be,itemKey:n,registerSize:Ue,display:t<=Ee}))},Qe={order:je?Ee:Number.MAX_SAFE_INTEGER,className:"".concat(Te,"-rest"),registerSize:function(e,t){ae(t),ne(oe)},display:je},Ve=N||O,We=k?s.createElement(x.Provider,{value:(0,i.A)((0,i.A)({},He),Qe)},k(De)):s.createElement(g,(0,r.A)({},He,Qe),"function"==typeof Ve?Ve(De):Ve),Xe=s.createElement(F,(0,r.A)({className:c()(!Pe&&h,I),style:_,ref:t},j),D&&s.createElement(g,(0,r.A)({},He,{responsive:Re,responsiveDisabled:!Oe,order:-1,className:"".concat(Te,"-prefix"),registerSize:function(e,t){ue(t)},display:!0}),D),ke.map(Ge),Ne?We:null,L&&s.createElement(g,(0,r.A)({},He,{responsive:Re,responsiveDisabled:!Oe,order:Ee,className:"".concat(Te,"-suffix"),registerSize:function(e,t){pe(t)},display:!0,style:$e}),L));return Re?s.createElement(u.A,{onResize:function(e,t){W(t.clientWidth)},disabled:!Oe},Xe):Xe}var N=s.forwardRef(P);N.displayName="Overflow",N.Item=I,N.RESPONSIVE=M,N.INVALIDATE=R;const k=N},9754(e,t,n){"use strict";n.d(t,{A:()=>r});const r={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},86141(e,t,n){"use strict";n.d(t,{A:()=>E});var r=n(32549),i=n(40366),o=n(51281),a=(n(3455),n(40942)),s=n(35739),l=n(24981),c=n(81834),u=i.createContext(null),d=n(78944),h=new Map,f=new d.A(function(e){e.forEach(function(e){var t,n=e.target;null===(t=h.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),p=n(20582),m=n(79520),g=n(31856),v=n(2330),A=function(e){(0,g.A)(n,e);var t=(0,v.A)(n);function n(){return(0,p.A)(this,n),t.apply(this,arguments)}return(0,m.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function y(e,t){var n=e.children,r=e.disabled,o=i.useRef(null),d=i.useRef(null),p=i.useContext(u),m="function"==typeof n,g=m?n(o):n,v=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),y=!m&&i.isValidElement(g)&&(0,c.f3)(g),b=y?(0,c.A9)(g):null,x=(0,c.xK)(b,o),S=function(){var e;return(0,l.Ay)(o.current)||(o.current&&"object"===(0,s.A)(o.current)?(0,l.Ay)(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||(0,l.Ay)(d.current)};i.useImperativeHandle(t,function(){return S()});var E=i.useRef(e);E.current=e;var C=i.useCallback(function(e){var t=E.current,n=t.onResize,r=t.data,i=e.getBoundingClientRect(),o=i.width,s=i.height,l=e.offsetWidth,c=e.offsetHeight,u=Math.floor(o),d=Math.floor(s);if(v.current.width!==u||v.current.height!==d||v.current.offsetWidth!==l||v.current.offsetHeight!==c){var h={width:u,height:d,offsetWidth:l,offsetHeight:c};v.current=h;var f=l===Math.round(o)?o:l,m=c===Math.round(s)?s:c,g=(0,a.A)((0,a.A)({},h),{},{offsetWidth:f,offsetHeight:m});null==p||p(g,e,r),n&&Promise.resolve().then(function(){n(g,e)})}},[]);return i.useEffect(function(){var e,t,n=S();return n&&!r&&(e=n,t=C,h.has(e)||(h.set(e,new Set),f.observe(e)),h.get(e).add(t)),function(){return function(e,t){h.has(e)&&(h.get(e).delete(t),h.get(e).size||(f.unobserve(e),h.delete(e)))}(n,C)}},[o.current,r]),i.createElement(A,{ref:d},y?i.cloneElement(g,{ref:x}):g)}const b=i.forwardRef(y);function x(e,t){var n=e.children;return("function"==typeof n?[n]:(0,o.A)(n)).map(function(n,o){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return i.createElement(b,(0,r.A)({},e,{key:a,ref:0===o?t:void 0}),n)})}var S=i.forwardRef(x);S.Collection=function(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),o=i.useRef([]),a=i.useContext(u),s=i.useCallback(function(e,t,i){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:i}),Promise.resolve().then(function(){s===r.current&&(null==n||n(o.current),o.current=[])}),null==a||a(e,t,i)},[n,a]);return i.createElement(u.Provider,{value:s},t)};const E=S},51515(e,t,n){"use strict";n.d(t,{A:()=>p});var r=n(32549),i=n(22256),o=n(34355),a=n(57889),s=n(40366),l=n(73059),c=n.n(l),u=n(5522),d=n(95589),h=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],f=s.forwardRef(function(e,t){var n,l=e.prefixCls,f=void 0===l?"rc-switch":l,p=e.className,m=e.checked,g=e.defaultChecked,v=e.disabled,A=e.loadingIcon,y=e.checkedChildren,b=e.unCheckedChildren,x=e.onClick,S=e.onChange,E=e.onKeyDown,C=(0,a.A)(e,h),w=(0,u.A)(!1,{value:m,defaultValue:g}),_=(0,o.A)(w,2),I=_[0],T=_[1];function M(e,t){var n=I;return v||(T(n=e),null==S||S(n,t)),n}var R=c()(f,p,(n={},(0,i.A)(n,"".concat(f,"-checked"),I),(0,i.A)(n,"".concat(f,"-disabled"),v),n));return s.createElement("button",(0,r.A)({},C,{type:"button",role:"switch","aria-checked":I,disabled:v,className:R,ref:t,onKeyDown:function(e){e.which===d.A.LEFT?M(!1,e):e.which===d.A.RIGHT&&M(!0,e),null==E||E(e)},onClick:function(e){var t=M(!I,e);null==x||x(t,e)}}),A,s.createElement("span",{className:"".concat(f,"-inner")},s.createElement("span",{className:"".concat(f,"-inner-checked")},y),s.createElement("span",{className:"".concat(f,"-inner-unchecked")},b)))});f.displayName="Switch";const p=f},24751(e,t,n){"use strict";n.d(t,{Ay:()=>Me});var r={},i="rc-table-internal-hook",o=n(34355),a=n(69211),s=n(34148),l=n(81211),c=n(40366),u=n(76212);function d(e,t){var n=(0,a.A)("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=c.useContext(null==e?void 0:e.Context),i=r||{},u=i.listeners,d=i.getValue,h=c.useRef();h.current=n(r?d():null==e?void 0:e.defaultValue);var f=c.useState({}),p=(0,o.A)(f,2)[1];return(0,s.A)(function(){if(r)return u.add(e),function(){u.delete(e)};function e(e){var t=n(e);(0,l.A)(h.current,t,!0)||p({})}},[r]),h.current}var h,f=n(32549),p=n(81834),m=function(){var e=c.createContext(null);function t(){return c.useContext(e)}return{makeImmutable:function(n,r){var i=(0,p.f3)(n),o=function(o,a){var s=i?{ref:a}:{},l=c.useRef(0),u=c.useRef(o);return null!==t()?c.createElement(n,(0,f.A)({},o,s)):(r&&!r(u.current,o)||(l.current+=1),u.current=o,c.createElement(e.Provider,{value:l.current},c.createElement(n,(0,f.A)({},o,s))))};return i?c.forwardRef(o):o},responseImmutable:function(e,n){var r=(0,p.f3)(e),i=function(n,i){var o=r?{ref:i}:{};return t(),c.createElement(e,(0,f.A)({},n,o))};return r?c.memo(c.forwardRef(i),n):c.memo(i,n)},useImmutableMark:t}}(),g=m.makeImmutable,v=m.responseImmutable,A=m.useImmutableMark;const y={Context:h=c.createContext(void 0),Provider:function(e){var t=e.value,n=e.children,r=c.useRef(t);r.current=t;var i=c.useState(function(){return{getValue:function(){return r.current},listeners:new Set}}),a=(0,o.A)(i,1)[0];return(0,s.A)(function(){(0,u.unstable_batchedUpdates)(function(){a.listeners.forEach(function(e){e(t)})})},[t]),c.createElement(h.Provider,{value:a},n)},defaultValue:void 0};c.memo(function(){var e=function(e){var t=c.useRef(0);t.current+=1;var n=c.useRef(e),r=[];Object.keys({}).map(function(e){var t;void 0!==(null===(t=n.current)||void 0===t?void 0:t[e])&&r.push(e)}),n.current=e;var i=c.useRef([]);return r.length&&(i.current=r),c.useDebugValue(t.current),c.useDebugValue(i.current.join(", ")),t.current}();return c.createElement("h1",null,"Render Times: ",e)}).displayName="RenderBlock";var b=n(35739),x=n(40942),S=n(22256),E=n(73059),C=n.n(E),w=n(11489),_=n(81569);n(3455);const I=c.createContext({renderWithProps:!1});function T(e){var t=[],n={};return e.forEach(function(e){for(var r,i=e||{},o=i.key,a=i.dataIndex,s=o||(r=a,null==r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function M(e){return null!=e}function R(e){var t,n,r,i,a,s,u,h,p=e.component,m=e.children,g=e.ellipsis,v=e.scope,E=e.prefixCls,T=e.className,R=e.align,O=e.record,P=e.render,N=e.dataIndex,k=e.renderIndex,D=e.shouldCellUpdate,L=e.index,B=e.rowType,F=e.colSpan,U=e.rowSpan,z=e.fixLeft,j=e.fixRight,$=e.firstFixLeft,H=e.lastFixLeft,G=e.firstFixRight,Q=e.lastFixRight,V=e.appendNode,W=e.additionalProps,X=void 0===W?{}:W,q=e.isSticky,Y="".concat(E,"-cell"),K=d(y,["supportSticky","allColumnsFixedLeft"]),J=K.supportSticky,Z=K.allColumnsFixedLeft,ee=function(e,t,n,r,i,a){var s=c.useContext(I),u=A();return(0,w.A)(function(){if(M(r))return[r];var o,a=null==t||""===t?[]:Array.isArray(t)?t:[t],l=(0,_.A)(e,a),u=l,d=void 0;if(i){var h=i(l,e,n);!(o=h)||"object"!==(0,b.A)(o)||Array.isArray(o)||c.isValidElement(o)?u=h:(u=h.children,d=h.props,s.renderWithProps=!0)}return[u,d]},[u,e,r,t,i,n],function(e,t){if(a){var n=(0,o.A)(e,2)[1],r=(0,o.A)(t,2)[1];return a(r,n)}return!!s.renderWithProps||!(0,l.A)(e,t,!0)})}(O,N,k,m,P,D),te=(0,o.A)(ee,2),ne=te[0],re=te[1],ie={},oe="number"==typeof z&&J,ae="number"==typeof j&&J;oe&&(ie.position="sticky",ie.left=z),ae&&(ie.position="sticky",ie.right=j);var se=null!==(t=null!==(n=null!==(r=null==re?void 0:re.colSpan)&&void 0!==r?r:X.colSpan)&&void 0!==n?n:F)&&void 0!==t?t:1,le=null!==(i=null!==(a=null!==(s=null==re?void 0:re.rowSpan)&&void 0!==s?s:X.rowSpan)&&void 0!==a?a:U)&&void 0!==i?i:1,ce=function(e,t){return d(y,function(n){var r,i,o,a;return[(r=e,i=t||1,o=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+i-1>=o),n.onHover]})}(L,le),ue=(0,o.A)(ce,2),de=ue[0],he=ue[1];if(0===se||0===le)return null;var fe=null!==(u=X.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"==typeof i||"number"==typeof i?t=i.toString():c.isValidElement(i)&&"string"==typeof i.props.children&&(t=i.props.children)),t}({rowType:B,ellipsis:g,children:ne}),pe=C()(Y,T,(h={},(0,S.A)(h,"".concat(Y,"-fix-left"),oe&&J),(0,S.A)(h,"".concat(Y,"-fix-left-first"),$&&J),(0,S.A)(h,"".concat(Y,"-fix-left-last"),H&&J),(0,S.A)(h,"".concat(Y,"-fix-left-all"),H&&Z&&J),(0,S.A)(h,"".concat(Y,"-fix-right"),ae&&J),(0,S.A)(h,"".concat(Y,"-fix-right-first"),G&&J),(0,S.A)(h,"".concat(Y,"-fix-right-last"),Q&&J),(0,S.A)(h,"".concat(Y,"-ellipsis"),g),(0,S.A)(h,"".concat(Y,"-with-append"),V),(0,S.A)(h,"".concat(Y,"-fix-sticky"),(oe||ae)&&q&&J),(0,S.A)(h,"".concat(Y,"-row-hover"),!re&&de),h),X.className,null==re?void 0:re.className),me={};R&&(me.textAlign=R);var ge=(0,x.A)((0,x.A)((0,x.A)((0,x.A)({},X.style),me),ie),null==re?void 0:re.style),ve=ne;return"object"!==(0,b.A)(ve)||Array.isArray(ve)||c.isValidElement(ve)||(ve=null),g&&(H||G)&&(ve=c.createElement("span",{className:"".concat(Y,"-content")},ve)),c.createElement(p,(0,f.A)({},re,X,{className:pe,style:ge,title:fe,scope:v,onMouseEnter:function(e){var t;O&&he(L,L+le-1),null==X||null===(t=X.onMouseEnter)||void 0===t||t.call(X,e)},onMouseLeave:function(e){var t;O&&he(-1,-1),null==X||null===(t=X.onMouseLeave)||void 0===t||t.call(X,e)},colSpan:1!==se?se:null,rowSpan:1!==le?le:null}),V,ve)}const O=c.memo(R);function P(e,t,n,r,i,o){var a,s,l=n[e]||{},c=n[t]||{};"left"===l.fixed?a=r.left["rtl"===i?t:e]:"right"===c.fixed&&(s=r.right["rtl"===i?e:t]);var u=!1,d=!1,h=!1,f=!1,p=n[t+1],m=n[e-1],g=!(null!=o&&o.children);return"rtl"===i?void 0!==a?f=!(m&&"left"===m.fixed)&&g:void 0!==s&&(h=!(p&&"right"===p.fixed)&&g):void 0!==a?u=!(p&&"left"===p.fixed)&&g:void 0!==s&&(d=!(m&&"right"===m.fixed)&&g),{fixLeft:a,fixRight:s,lastFixLeft:u,firstFixRight:d,lastFixRight:h,firstFixLeft:f,isSticky:r.isSticky}}const N=c.createContext({});var k=n(57889),D=["children"];function L(e){return e.children}L.Row=function(e){var t=e.children,n=(0,k.A)(e,D);return c.createElement("tr",n,t)},L.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=void 0===i?1:i,a=e.rowSpan,s=e.align,l=d(y,["prefixCls","direction"]),u=l.prefixCls,h=l.direction,p=c.useContext(N),m=p.scrollColumnIndex,g=p.stickyOffsets,v=p.flattenColumns,A=p.columns,b=n+o-1+1===m?o+1:o,x=P(n,n+b-1,v,g,h,null==A?void 0:A[n]);return c.createElement(O,(0,f.A)({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:b,rowSpan:a,render:function(){return r}},x))};const B=L,F=v(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=e.columns,o=d(y,"prefixCls"),a=r.length-1,s=r[a],l=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!=s&&s.scrollbar?a:null,columns:i}},[s,r,a,n,i]);return c.createElement(N.Provider,{value:l},c.createElement("tfoot",{className:"".concat(o,"-summary")},t))});var U=B,z=n(86141),j=n(99682),$=n(39999),H=function(e){if((0,$.A)()&&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};var G=n(91732),Q=n(59880),V=n(53563);function W(e,t,n,r,i,o){var a=[];a.push({record:e,indent:t,index:o});var s=i(e),l=null==r?void 0:r.has(s);if(e&&Array.isArray(e[n])&&l)for(var c=0;c1?n-1:0),o=1;o=0;o-=1){var a=t[o],s=n&&n[o],l=s&&s[ne];if(a||l||i){var u=l||{},d=(u.columnType,(0,k.A)(u,re));r.unshift(c.createElement("col",(0,f.A)({key:o,style:{width:a}},d))),i=!0}}return c.createElement("colgroup",null,r)};var oe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],ae=c.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,s=e.columCount,l=e.stickyOffsets,u=e.direction,h=e.fixHeader,f=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,v=e.onScroll,A=e.maxContentScroll,b=e.children,E=(0,k.A)(e,oe),w=d(y,["prefixCls","scrollbarSize","isSticky"]),_=w.prefixCls,I=w.scrollbarSize,T=w.isSticky,M=T&&!h?0:I,R=c.useRef(null),O=c.useCallback(function(e){(0,p.Xf)(t,e),(0,p.Xf)(R,e)},[]);c.useEffect(function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(v({currentTarget:n,scrollLeft:n.scrollLeft+r}),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 P=c.useMemo(function(){return o.every(function(e){return e.width>=0})},[o]),N=o[o.length-1],D={fixed:N?N.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_,"-cell-scrollbar")}}},L=(0,c.useMemo)(function(){return M?[].concat((0,V.A)(i),[D]):i},[M,i]),B=(0,c.useMemo)(function(){return M?[].concat((0,V.A)(o),[D]):o},[M,o]),F=(0,c.useMemo)(function(){var e=l.right,t=l.left;return(0,x.A)((0,x.A)({},l),{},{left:"rtl"===u?[].concat((0,V.A)(t.map(function(e){return e+M})),[0]):t,right:"rtl"===u?e:[].concat((0,V.A)(e.map(function(e){return e+M})),[0]),isSticky:T})},[M,l,T]),U=function(e,t){return(0,c.useMemo)(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?a:s,prefixCls:p,key:g[t]},l,{additionalProps:n,rowType:"header"}))}))}le.displayName="HeaderRow";const ce=le,ue=v(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,o=d(y,["prefixCls","getComponent"]),a=o.prefixCls,s=o.getComponent,l=c.useMemo(function(){return function(e){var t=[];!function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];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,s=n.children;return s&&s.length>0&&(a=e(s,o,i+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[i].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)})},i=0;i0?[].concat((0,V.A)(e),(0,V.A)(me(i).map(function(e){return(0,x.A)({fixed:r},e)}))):[].concat((0,V.A)(e),[(0,x.A)((0,x.A)({},t),{},{fixed:r})])},[])}const ge=function(e,t){var n=e.prefixCls,i=e.columns,o=e.children,a=e.expandable,s=e.expandedKeys,l=e.columnTitle,u=e.getRowKey,d=e.onTriggerExpand,h=e.expandIcon,f=e.rowExpandable,p=e.expandIconColumnIndex,m=e.direction,g=e.expandRowByClick,v=e.columnWidth,A=e.fixed,y=c.useMemo(function(){return i||pe(o)},[i,o]),b=c.useMemo(function(){if(a){var e,t=y.slice();if(!t.includes(r)){var i=p||0;i>=0&&t.splice(i,0,r)}var o=t.indexOf(r);t=t.filter(function(e,t){return e!==r||t===o});var m,b=y[o];m="left"!==A&&!A||p?"right"!==A&&!A||p!==y.length?b?b.fixed:null:"right":"left";var x=(e={},(0,S.A)(e,ne,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,S.A)(e,"title",l),(0,S.A)(e,"fixed",m),(0,S.A)(e,"className","".concat(n,"-row-expand-icon-cell")),(0,S.A)(e,"width",v),(0,S.A)(e,"render",function(e,t,r){var i=u(t,r),o=s.has(i),a=!f||f(t),l=h({prefixCls:n,expanded:o,expandable:a,record:t,onExpand:d});return g?c.createElement("span",{onClick:function(e){return e.stopPropagation()}},l):l}),e);return t.map(function(e){return e===r?x:e})}return y.filter(function(e){return e!==r})},[a,y,u,s,h,m]),E=c.useMemo(function(){var e=b;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,b,m]),C=c.useMemo(function(){return"rtl"===m?function(e){return e.map(function(e){var t=e.fixed,n=(0,k.A)(e,fe),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,x.A)({fixed:r},n)})}(me(E)):me(E)},[E,m]);return[E,C]};function ve(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,o=e.expanded,a=e.expandable,s="".concat(n,"-row-expand-icon");return a?c.createElement("span",{className:C()(s,(t={},(0,S.A)(t,"".concat(n,"-row-expanded"),o),(0,S.A)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){i(r,e),e.stopPropagation()}}):c.createElement("span",{className:C()(s,"".concat(n,"-row-spaced"))})}function Ae(e){var t=(0,c.useRef)(e),n=(0,c.useState)({}),r=(0,o.A)(n,2)[1],i=(0,c.useRef)(null),a=(0,c.useRef)([]);return(0,c.useEffect)(function(){return function(){i.current=null}},[]),[t.current,function(e){a.current.push(e);var n=Promise.resolve();i.current=n,n.then(function(){if(i.current===n){var e=a.current,o=t.current;a.current=[],e.forEach(function(e){t.current=e(t.current)}),i.current=null,o!==t.current&&r({})}})}]}var ye=(0,$.A)()?window:null;const be=function(e){var t=e.className,n=e.children;return c.createElement("div",{className:t},n)};var xe=n(37467);function Se(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)}}var Ee=function(e,t){var n,r,i=e.scrollBodyRef,a=e.onScroll,s=e.offsetScroll,l=e.container,u=d(y,"prefixCls"),h=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,f=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,p=h&&f*(f/h),m=c.useRef(),g=Ae({scrollLeft:0,isHiddenScrollBar:!1}),v=(0,o.A)(g,2),A=v[0],b=v[1],E=c.useRef({delta:0,x:0}),w=c.useState(!1),_=(0,o.A)(w,2),I=_[0],T=_[1],M=function(){T(!1)},R=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(I&&0!==n){var r=E.current.x+e.pageX-E.current.x-E.current.delta;r<=0&&(r=0),r+p>=f&&(r=f-p),a({scrollLeft:r/f*(h+2)}),E.current.x=e.pageX}else I&&T(!1)},O=function(){if(i.current){var e=Se(i.current).top,t=e+i.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:Se(l).top+l.clientHeight;t-(0,G.A)()<=n||e>=n-s?b(function(e){return(0,x.A)((0,x.A)({},e),{},{isHiddenScrollBar:!0})}):b(function(e){return(0,x.A)((0,x.A)({},e),{},{isHiddenScrollBar:!1})})}},P=function(e){b(function(t){return(0,x.A)((0,x.A)({},t),{},{scrollLeft:e/h*f||0})})};return c.useImperativeHandle(t,function(){return{setScrollLeft:P}}),c.useEffect(function(){var e=(0,xe.A)(document.body,"mouseup",M,!1),t=(0,xe.A)(document.body,"mousemove",R,!1);return O(),function(){e.remove(),t.remove()}},[p,I]),c.useEffect(function(){var e=(0,xe.A)(l,"scroll",O,!1),t=(0,xe.A)(window,"resize",O,!1);return function(){e.remove(),t.remove()}},[l]),c.useEffect(function(){A.isHiddenScrollBar||b(function(e){var t=i.current;return t?(0,x.A)((0,x.A)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[A.isHiddenScrollBar]),h<=f||!p||A.isHiddenScrollBar?null:c.createElement("div",{style:{height:(0,G.A)(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},c.createElement("div",{onMouseDown:function(e){e.persist(),E.current.delta=e.pageX-A.scrollLeft,E.current.x=0,T(!0),e.preventDefault()},ref:m,className:C()("".concat(u,"-sticky-scroll-bar"),(0,S.A)({},"".concat(u,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(A.scrollLeft,"px, 0, 0)")}}))};const Ce=c.forwardRef(Ee);var we=[],_e={};function Ie(){return"No Data"}var Te=g(function(e){var t,n,r,s,u=(0,x.A)({rowKey:"key",prefixCls:"rc-table",emptyText:Ie},e),d=u.prefixCls,h=u.className,p=u.rowClassName,m=u.style,g=u.data,v=u.rowKey,A=u.scroll,E=u.tableLayout,I=u.direction,R=u.title,O=u.footer,N=u.summary,D=u.caption,L=u.id,U=u.showHeader,$=u.components,W=u.emptyText,X=u.onRow,q=u.onHeaderRow,Y=u.internalHooks,K=u.transformColumns,J=u.internalRefs,Z=u.sticky,ne=g||we,re=!!ne.length,oe=c.useCallback(function(e,t){return(0,_.A)($,e)||t},[$]),ae=c.useMemo(function(){return"function"==typeof v?v:function(e){return e&&e[v]}},[v]),le=function(){var e=c.useState(-1),t=(0,o.A)(e,2),n=t[0],r=t[1],i=c.useState(-1),a=(0,o.A)(i,2),s=a[0],l=a[1];return[n,s,c.useCallback(function(e,t){r(e),l(t)},[])]}(),ce=(0,o.A)(le,3),de=ce[0],he=ce[1],fe=ce[2],pe=function(e,t,n){var r=function(e){var t,n=e.expandable,r=(0,k.A)(e,te);return!1===(t="expandable"in e?(0,x.A)((0,x.A)({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),a=r.expandIcon,s=r.expandedRowKeys,l=r.defaultExpandedRowKeys,u=r.defaultExpandAllRows,d=r.expandedRowRender,h=r.onExpand,f=r.onExpandedRowsChange,p=a||ve,m=r.childrenColumnName||"children",g=c.useMemo(function(){return d?"row":!!(e.expandable&&e.internalHooks===i&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===(0,b.A)(e)&&e[m]}))&&"nest"},[!!d,t]),v=c.useState(function(){return l||(u?function(e,t,n){var r=[];return function e(i){(i||[]).forEach(function(i,o){r.push(t(i,o)),e(i[n])})}(e),r}(t,n,m):[])}),A=(0,o.A)(v,2),y=A[0],S=A[1],E=c.useMemo(function(){return new Set(s||y||[])},[s,y]),C=c.useCallback(function(e){var r,i=n(e,t.indexOf(e)),o=E.has(i);o?(E.delete(i),r=(0,V.A)(E)):r=[].concat((0,V.A)(E),[i]),S(r),h&&h(!o,e),f&&f(r)},[n,E,t,h,f]);return[r,g,E,p,m,C]}(u,ne,ae),me=(0,o.A)(pe,6),xe=me[0],Se=me[1],Ee=me[2],Te=me[3],Me=me[4],Re=me[5],Oe=c.useState(0),Pe=(0,o.A)(Oe,2),Ne=Pe[0],ke=Pe[1],De=ge((0,x.A)((0,x.A)((0,x.A)({},u),xe),{},{expandable:!!xe.expandedRowRender,columnTitle:xe.columnTitle,expandedKeys:Ee,getRowKey:ae,onTriggerExpand:Re,expandIcon:Te,expandIconColumnIndex:xe.expandIconColumnIndex,direction:I}),Y===i?K:null),Le=(0,o.A)(De,2),Be=Le[0],Fe=Le[1],Ue=c.useMemo(function(){return{columns:Be,flattenColumns:Fe}},[Be,Fe]),ze=c.useRef(),je=c.useRef(),$e=c.useRef(),He=c.useRef(),Ge=c.useRef(),Qe=c.useState(!1),Ve=(0,o.A)(Qe,2),We=Ve[0],Xe=Ve[1],qe=c.useState(!1),Ye=(0,o.A)(qe,2),Ke=Ye[0],Je=Ye[1],Ze=Ae(new Map),et=(0,o.A)(Ze,2),tt=et[0],nt=et[1],rt=T(Fe).map(function(e){return tt.get(e)}),it=c.useMemo(function(){return rt},[rt.join("_")]),ot=function(e,t,n){return(0,c.useMemo)(function(){for(var r=[],i=[],o=0,a=0,s=0;s0)):(Xe(o>0),Je(op,A:()=>v});var r=n(32549),i=n(40942),o=n(57889),a=n(7980),s=n(40366),l={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],d={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}},h=n(73059),f=n.n(h);function p(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return s.createElement("div",{className:f()("".concat(n,"-content"),o),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t))}var m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],g=function(e,t){var n=e.overlayClassName,l=e.trigger,c=void 0===l?["hover"]:l,u=e.mouseEnterDelay,h=void 0===u?0:u,f=e.mouseLeaveDelay,g=void 0===f?.1:f,v=e.overlayStyle,A=e.prefixCls,y=void 0===A?"rc-tooltip":A,b=e.children,x=e.onVisibleChange,S=e.afterVisibleChange,E=e.transitionName,C=e.animation,w=e.motion,_=e.placement,I=void 0===_?"right":_,T=e.align,M=void 0===T?{}:T,R=e.destroyTooltipOnHide,O=void 0!==R&&R,P=e.defaultVisible,N=e.getTooltipContainer,k=e.overlayInnerStyle,D=(e.arrowContent,e.overlay),L=e.id,B=e.showArrow,F=void 0===B||B,U=(0,o.A)(e,m),z=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,function(){return z.current});var j=(0,i.A)({},U);return"visible"in e&&(j.popupVisible=e.visible),s.createElement(a.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){return s.createElement(p,{key:"content",prefixCls:y,id:L,overlayInnerStyle:k},D)},action:c,builtinPlacements:d,popupPlacement:I,ref:z,popupAlign:M,getPopupContainer:N,onPopupVisibleChange:x,afterPopupVisibleChange:S,popupTransitionName:E,popupAnimation:C,popupMotion:w,defaultPopupVisible:P,autoDestroy:O,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:h,arrow:F},j),b)};const v=(0,s.forwardRef)(g)},51281(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(98563),i=n(40366);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i.Children.forEach(e,function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(o(e)):(0,r.A)(e)&&e.props?n=n.concat(o(e.props.children,t)):n.push(e))}),n}},37467(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(76212);function i(e,t,n,i){var o=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,i),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,i)}}}},39999(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},70255(e,t,n){"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},48222(e,t,n){"use strict";n.d(t,{BD:()=>m,m6:()=>p});var r=n(40942),i=n(39999),o=n(70255),a="data-rc-order",s="data-rc-priority",l=new Map;function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function u(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,i.A)())return null;var n=t.csp,r=t.prepend,o=t.priority,l=void 0===o?0:o,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),h="prependQueue"===c,f=document.createElement("style");f.setAttribute(a,c),h&&l&&f.setAttribute(s,"".concat(l)),null!=n&&n.nonce&&(f.nonce=null==n?void 0:n.nonce),f.innerHTML=e;var p=u(t),m=p.firstChild;if(r){if(h){var g=(t.styles||d(p)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(s)||0);return l>=t});if(g.length)return p.insertBefore(f,g[g.length-1].nextSibling),f}p.insertBefore(f,m)}else p.appendChild(f);return f}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=u(t);return(t.styles||d(n)).find(function(n){return n.getAttribute(c(t))===e})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(e,t);n&&u(t).removeChild(n)}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=u(n),a=d(i),s=(0,r.A)((0,r.A)({},n),{},{styles:a});!function(e,t){var n=l.get(e);if(!n||!(0,o.A)(document,n)){var r=h("",t),i=r.parentNode;l.set(e,i),e.removeChild(r)}}(i,s);var p,m,g,v=f(t,s);if(v)return null!==(p=s.csp)&&void 0!==p&&p.nonce&&v.nonce!==(null===(m=s.csp)||void 0===m?void 0:m.nonce)&&(v.nonce=null===(g=s.csp)||void 0===g?void 0:g.nonce),v.innerHTML!==e&&(v.innerHTML=e),v;var A=h(e,s);return A.setAttribute(c(s),t),A}},24981(e,t,n){"use strict";n.d(t,{Ay:()=>s,fk:()=>a});var r=n(35739),i=n(40366),o=n(76212);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function s(e){var t,n=function(e){return e&&"object"===(0,r.A)(e)&&a(e.nativeElement)?e.nativeElement:a(e)?e:null}(e);return n||(e instanceof i.Component?null===(t=o.findDOMNode)||void 0===t?void 0:t.call(o,e):null)}},99682(e,t,n){"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},92442(e,t,n){"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function i(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{j:()=>i})},95589(e,t,n){"use strict";n.d(t,{A:()=>i});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const i=r},98563(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(35739),i=Symbol.for("react.element"),o=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(e){return e&&"object"===(0,r.A)(e)&&(e.$$typeof===i||e.$$typeof===o)&&e.type===a}},74603(e,t,n){"use strict";var r;n.d(t,{X:()=>g,v:()=>b});var i,o=n(43980),a=n(1888),s=n(35739),l=n(40942),c=n(76212),u=(0,l.A)({},r||(r=n.t(c,2))),d=u.version,h=u.render,f=u.unmountComponentAtNode;try{Number((d||"").split(".")[0])>=18&&(i=u.createRoot)}catch(e){}function p(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,s.A)(t)&&(t.usingClientEntryPoint=e)}var m="__rc_react_root__";function g(e,t){i?function(e,t){p(!0);var n=t[m]||i(t);p(!1),n.render(e),t[m]=n}(e,t):function(e,t){null==h||h(e,t)}(e,t)}function v(e){return A.apply(this,arguments)}function A(){return(A=(0,a.A)((0,o.A)().mark(function e(t){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[m])||void 0===e||e.unmount(),delete t[m]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){f(e)}function b(e){return x.apply(this,arguments)}function x(){return(x=(0,a.A)((0,o.A)().mark(function e(t){return(0,o.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===i){e.next=2;break}return e.abrupt("return",v(t));case 2:y(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},91732(e,t,n){"use strict";n.d(t,{A:()=>a,V:()=>s});var r,i=n(48222);function o(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,a=n.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var s=getComputedStyle(e);a.scrollbarColor=s.scrollbarColor,a.scrollbarWidth=s.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",h=u?"height: ".concat(l.height,";"):"";(0,i.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(d,"\n").concat(h,"\n}"),t)}catch(e){console.error(e),r=c,o=u}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,i.m6)(t),{width:f,height:p}}function a(e){return"undefined"==typeof document?0:((e||void 0===r)&&(r=o()),r.width)}function s(e){return"undefined"!=typeof document&&e&&e instanceof Element?o(e):{width:0,height:0}}},69211(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(40366);function i(e){var t=r.useRef();t.current=e;var n=r.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),i=0;ic});var i=n(34355),o=n(40942),a=n(40366),s=0,l=(0,o.A)({},r||(r=n.t(a,2))).useId;const c=l?function(e){var t=l();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,i.A)(t,2),r=n[0],o=n[1];return a.useEffect(function(){var e=s;s+=1,o("rc_unique_".concat(e))},[]),e||r}},34148(e,t,n){"use strict";n.d(t,{A:()=>s,o:()=>a});var r=n(40366),i=(0,n(39999).A)()?r.useLayoutEffect:r.useEffect,o=function(e,t){var n=r.useRef(!0);i(function(){return e(n.current)},t),i(function(){return n.current=!1,function(){n.current=!0}},[])},a=function(e,t){o(function(t){if(!t)return e()},t)};const s=o},11489(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(40366);function i(e,t,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,t)||(i.current.value=e(),i.current.condition=t),i.current.value}},5522(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(34355),i=n(69211),o=n(34148),a=n(94570);function s(e){return void 0!==e}function l(e,t){var n=t||{},l=n.defaultValue,c=n.value,u=n.onChange,d=n.postState,h=(0,a.A)(function(){return s(c)?c:s(l)?"function"==typeof l?l():l:"function"==typeof e?e():e}),f=(0,r.A)(h,2),p=f[0],m=f[1],g=void 0!==c?c:p,v=d?d(g):g,A=(0,i.A)(u),y=(0,a.A)([g]),b=(0,r.A)(y,2),x=b[0],S=b[1];return(0,o.o)(function(){var e=x[0];p!==e&&A(p,e)},[x]),(0,o.o)(function(){s(c)||m(c)},[c]),[v,(0,i.A)(function(e,t){m(e,t),S([g],t)})]}},94570(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(34355),i=n(40366);function o(e){var t=i.useRef(!1),n=i.useState(e),o=(0,r.A)(n,2),a=o[0],s=o[1];return i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[a,function(e,n){n&&t.current||s(e)}]}},89615(e,t,n){"use strict";n.d(t,{_q:()=>r.A});var r=n(69211);n(5522),n(81834),n(66949),n(3455)},81211(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(35739),i=n(3455);const o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=o.has(t);if((0,i.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===a)return!0;if(n&&s>1)return!1;o.add(t);var c=s+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;ur});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0})},43978(e,t,n){"use strict";function r(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}n.d(t,{A:()=>r})},59880(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(40942),i="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function o(e,t){return 0===e.indexOf(t)}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);var a={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||o(n,"aria-"))||t.data&&o(n,"data-")||t.attr&&i.includes(n))&&(a[n]=e[n])}),a}},77230(e,t,n){"use strict";n.d(t,{A:()=>c});var r=function(e){return+setTimeout(e,16)},i=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},i=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function s(e){a.delete(e)}var l=function(e){var t=o+=1;return function n(i){if(0===i)s(t),e();else{var o=r(function(){n(i-1)});a.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=a.get(e);return s(e),i(t)};const c=l},81834(e,t,n){"use strict";n.d(t,{A9:()=>p,K4:()=>u,Xf:()=>c,f3:()=>h,xK:()=>d});var r=n(35739),i=n(40366),o=n(79580),a=n(11489),s=n(98563),l=Number(i.version.split(".")[0]),c=function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n=19)return!0;var r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)};function f(e){return(0,i.isValidElement)(e)&&!(0,s.A)(e)}var p=function(e){if(e&&f(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}},81569(e,t,n){"use strict";function r(e,t){for(var n=e,r=0;rr})},66949(e,t,n){"use strict";n.d(t,{A:()=>l});var r=n(40942),i=n(53563),o=n(41406),a=n(81569);function s(e,t,n,a){if(!t.length)return n;var l,c=(0,o.A)(t),u=c[0],d=c.slice(1);return l=e||"number"!=typeof u?Array.isArray(e)?(0,i.A)(e):(0,r.A)({},e):[],a&&void 0===n&&1===d.length?delete l[u][d[0]]:l[u]=s(l[u],d,n,a),l}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,a.A)(e,t.slice(0,-1))?e:s(e,t,n,r)}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys},3455(e,t,n){"use strict";n.d(t,{$e:()=>o,Ay:()=>c});var r={},i=[];function o(e,t){}function a(e,t){}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function l(e,t){s(o,e,t)}l.preMessage=function(e){i.push(e)},l.resetWarned=function(){r={}},l.noteOnce=function(e,t){s(a,e,t)};const c=l},18080(e,t,n){"use strict";var r=n(77771).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&"object"===(0,i.default)(e)&&(e.$$typeof===o||e.$$typeof===a)&&e.type===s};var i=r(n(77249)),o=Symbol.for("react.element"),a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment")},66120(e,t,n){"use strict";var r=n(93346).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value};var i=r(n(40366))},50317(e,t){"use strict";t.A=function(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}},14895(e,t,n){"use strict";var r=n(77771).default;t.K4=void 0;var i=r(n(77249)),o=n(40366);n(79580),r(n(66120)),r(n(18080)),Number(o.version.split(".")[0]),t.K4=function(){for(var e=arguments.length,t=new Array(e),n=0;nL});var r=n(32549),i=n(35739),o=n(40942),a=n(22256),s=n(34355),l=n(57889),c=n(73059),u=n.n(c),d=n(86141),h=n(89615),f=n(34148),p=n(40366),m=n(76212),g=p.forwardRef(function(e,t){var n=e.height,i=e.offsetY,s=e.offsetX,l=e.children,c=e.prefixCls,h=e.onInnerResize,f=e.innerProps,m=e.rtl,g=e.extra,v={},A={display:"flex",flexDirection:"column"};return void 0!==i&&(v={height:n,position:"relative",overflow:"hidden"},A=(0,o.A)((0,o.A)({},A),{},(0,a.A)((0,a.A)((0,a.A)((0,a.A)((0,a.A)({transform:"translateY(".concat(i,"px)")},m?"marginRight":"marginLeft",-s),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:v},p.createElement(d.A,{onResize:function(e){e.offsetHeight&&h&&h()}},p.createElement("div",(0,r.A)({style:A,className:u()((0,a.A)({},"".concat(c,"-holder-inner"),c)),ref:t},f),l,g)))});g.displayName="Filler";const v=g;function A(e){var t=e.children,n=e.setRef,r=p.useCallback(function(e){n(e)},[]);return p.cloneElement(t,{ref:r})}var y=n(77230);const b="object"===("undefined"==typeof navigator?"undefined":(0,i.A)(navigator))&&/Firefox/i.test(navigator.userAgent),x=function(e,t,n,r){var i=(0,p.useRef)(!1),o=(0,p.useRef)(null),a=(0,p.useRef)({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&r?(clearTimeout(o.current),i.current=!1):r&&!i.current||(clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)),!i.current&&r}};(Object.getOwnPropertyDescriptor(x,"name")||{}).writable||Object.defineProperty(x,"name",{value:"default",configurable:!0});var S=n(20582),E=n(79520);const C=function(){function e(){(0,S.A)(this,e),(0,a.A)(this,"maps",void 0),(0,a.A)(this,"id",0),(0,a.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,E.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function w(e){var t=parseFloat(e);return isNaN(t)?0:t}var _=14/15;function I(e){return Math.floor(Math.pow(e,.5))}function T(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}const M=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,d=e.onStopMove,h=e.onScroll,f=e.horizontal,m=e.spinSize,g=e.containerSize,v=e.style,A=e.thumbStyle,b=e.showScrollBar,x=p.useState(!1),S=(0,s.A)(x,2),E=S[0],C=S[1],w=p.useState(null),_=(0,s.A)(w,2),I=_[0],M=_[1],R=p.useState(null),O=(0,s.A)(R,2),P=O[0],N=O[1],k=!r,D=p.useRef(),L=p.useRef(),B=p.useState(b),F=(0,s.A)(B,2),U=F[0],z=F[1],j=p.useRef(),$=function(){!0!==b&&!1!==b&&(clearTimeout(j.current),z(!0),j.current=setTimeout(function(){z(!1)},3e3))},H=l-g||0,G=g-m||0,Q=p.useMemo(function(){return 0===i||0===H?0:i/H*G},[i,H,G]),V=p.useRef({top:Q,dragging:E,pageY:I,startTop:P});V.current={top:Q,dragging:E,pageY:I,startTop:P};var W=function(e){C(!0),M(T(e,f)),N(V.current.top),c(),e.stopPropagation(),e.preventDefault()};p.useEffect(function(){var e=function(e){e.preventDefault()},t=D.current,n=L.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",W,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",W)}},[]);var X=p.useRef();X.current=H;var q=p.useRef();q.current=G,p.useEffect(function(){if(E){var e,t=function(t){var n=V.current,r=n.dragging,i=n.pageY,o=n.startTop;y.A.cancel(e);var a=D.current.getBoundingClientRect(),s=g/(f?a.width:a.height);if(r){var l=(T(t,f)-i)*s,c=o;!k&&f?c-=l:c+=l;var u=X.current,d=q.current,p=d?c/d:0,m=Math.ceil(p*u);m=Math.max(m,0),m=Math.min(m,u),e=(0,y.A)(function(){h(m,f)})}},n=function(){C(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),y.A.cancel(e)}}},[E]),p.useEffect(function(){return $(),function(){clearTimeout(j.current)}},[i]),p.useImperativeHandle(t,function(){return{delayHidden:$}});var Y="".concat(n,"-scrollbar"),K={position:"absolute",visibility:U?null:"hidden"},J={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return f?(Object.assign(K,{height:8,left:0,right:0,bottom:0}),Object.assign(J,(0,a.A)({height:"100%",width:m},k?"left":"right",Q))):(Object.assign(K,(0,a.A)({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(J,{width:"100%",height:m,top:Q})),p.createElement("div",{ref:D,className:u()(Y,(0,a.A)((0,a.A)((0,a.A)({},"".concat(Y,"-horizontal"),f),"".concat(Y,"-vertical"),!f),"".concat(Y,"-visible"),U)),style:(0,o.A)((0,o.A)({},K),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:$},p.createElement("div",{ref:L,className:u()("".concat(Y,"-thumb"),(0,a.A)({},"".concat(Y,"-thumb-moving"),E)),style:(0,o.A)((0,o.A)({},J),A),onMouseDown:W}))});function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var O=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],P=[],N={overflowY:"auto",overflowAnchor:"none"};function k(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,g=e.className,S=e.height,E=e.itemHeight,k=e.fullHeight,D=void 0===k||k,L=e.style,B=e.data,F=e.children,U=e.itemKey,z=e.virtual,j=e.direction,$=e.scrollWidth,H=e.component,G=void 0===H?"div":H,Q=e.onScroll,V=e.onVirtualScroll,W=e.onVisibleChange,X=e.innerProps,q=e.extraRender,Y=e.styles,K=e.showScrollBar,J=void 0===K?"optional":K,Z=(0,l.A)(e,O),ee=p.useCallback(function(e){return"function"==typeof U?U(e):null==e?void 0:e[U]},[U]),te=function(e){var t=p.useState(0),n=(0,s.A)(t,2),r=n[0],i=n[1],o=(0,p.useRef)(new Map),a=(0,p.useRef)(new C),l=(0,p.useRef)(0);function c(){l.current+=1}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){var e=!1;o.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,i=getComputedStyle(t),o=i.marginTop,s=i.marginBottom,l=r+w(o)+w(s);a.current.get(n)!==l&&(a.current.set(n,l),e=!0)}}),e&&i(function(e){return e+1})};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&t()})}}return(0,p.useEffect)(function(){return c},[]),[function(t,n){var r=e(t);o.current.get(r);n?(o.current.set(r,n),u()):o.current.delete(r)},u,a.current,r]}(ee),ne=(0,s.A)(te,4),re=ne[0],ie=ne[1],oe=ne[2],ae=ne[3],se=!(!1===z||!S||!E),le=p.useMemo(function(){return Object.values(oe.maps).reduce(function(e,t){return e+t},0)},[oe.id,oe.maps]),ce=se&&B&&(Math.max(E*B.length,le)>S||!!$),ue="rtl"===j,de=u()(c,(0,a.A)({},"".concat(c,"-rtl"),ue),g),he=B||P,fe=(0,p.useRef)(),pe=(0,p.useRef)(),me=(0,p.useRef)(),ge=(0,p.useState)(0),ve=(0,s.A)(ge,2),Ae=ve[0],ye=ve[1],be=(0,p.useState)(0),xe=(0,s.A)(be,2),Se=xe[0],Ee=xe[1],Ce=(0,p.useState)(!1),we=(0,s.A)(Ce,2),_e=we[0],Ie=we[1],Te=function(){Ie(!0)},Me=function(){Ie(!1)},Re={getKey:ee};function Oe(e){ye(function(t){var n=function(e){var t=e;return Number.isNaN(Ye.current)||(t=Math.min(t,Ye.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return fe.current.scrollTop=n,n})}var Pe=(0,p.useRef)({start:0,end:he.length}),Ne=(0,p.useRef)(),ke=function(e,t,n){var r=p.useState(e),i=(0,s.A)(r,2),o=i[0],a=i[1],l=p.useState(null),c=(0,s.A)(l,2),u=c[0],d=c[1];return p.useEffect(function(){var r=function(e,t,n){var r,i,o=e.length,a=t.length;if(0===o&&0===a)return null;o=Ae&&void 0===t&&(t=a,n=i),u>Ae+S&&void 0===r&&(r=a),i=u}return void 0===t&&(t=0,n=0,r=Math.ceil(S/E)),void 0===r&&(r=he.length-1),{scrollHeight:i,start:t,end:r=Math.min(r+1,he.length-1),offset:n}},[ce,se,Ae,he,ae,S]),Be=Le.scrollHeight,Fe=Le.start,Ue=Le.end,ze=Le.offset;Pe.current.start=Fe,Pe.current.end=Ue,p.useLayoutEffect(function(){var e=oe.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=he[Fe];if(r&&void 0===n&&ee(r)===t){var i=oe.get(t)-E;Oe(function(e){return e+i})}}oe.resetRecord()},[Be]);var je=p.useState({width:0,height:S}),$e=(0,s.A)(je,2),He=$e[0],Ge=$e[1],Qe=(0,p.useRef)(),Ve=(0,p.useRef)(),We=p.useMemo(function(){return R(He.width,$)},[He.width,$]),Xe=p.useMemo(function(){return R(He.height,Be)},[He.height,Be]),qe=Be-S,Ye=(0,p.useRef)(qe);Ye.current=qe;var Ke=Ae<=0,Je=Ae>=qe,Ze=Se<=0,et=Se>=$,tt=x(Ke,Je,Ze,et),nt=function(){return{x:ue?-Se:Se,y:Ae}},rt=(0,p.useRef)(nt()),it=(0,h._q)(function(e){if(V){var t=(0,o.A)((0,o.A)({},nt()),e);rt.current.x===t.x&&rt.current.y===t.y||(V(t),rt.current=t)}});function ot(e,t){var n=e;t?((0,m.flushSync)(function(){Ee(n)}),it()):Oe(n)}var at=function(e){var t=e,n=$?$-He.width:0;return t=Math.max(t,0),Math.min(t,n)},st=(0,h._q)(function(e,t){t?((0,m.flushSync)(function(){Ee(function(t){return at(t+(ue?-e:e))})}),it()):Oe(function(t){return t+e})}),lt=function(e,t,n,r,i,o,a){var s=(0,p.useRef)(0),l=(0,p.useRef)(null),c=(0,p.useRef)(null),u=(0,p.useRef)(!1),d=x(t,n,r,i),h=(0,p.useRef)(null),f=(0,p.useRef)(null);return[function(t){if(e){y.A.cancel(f.current),f.current=(0,y.A)(function(){h.current=null},2);var n=t.deltaX,r=t.deltaY,i=t.shiftKey,p=n,m=r;("sx"===h.current||!h.current&&i&&r&&!n)&&(p=r,m=0,h.current="sx");var g=Math.abs(p),v=Math.abs(m);null===h.current&&(h.current=o&&g>v?"x":"y"),"y"===h.current?function(e,t){if(y.A.cancel(l.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,c.current=t,b||n.preventDefault(),l.current=(0,y.A)(function(){var e=u.current?10:1;a(s.current*e,!1),s.current=0}))}}(t,m):function(e,t){a(t,!0),b||e.preventDefault()}(t,p)}},function(t){e&&(u.current=t.detail===c.current)}]}(se,Ke,Je,Ze,et,!!$,st),ct=(0,s.A)(lt,2),ut=ct[0],dt=ct[1];!function(e,t,n){var r,i=(0,p.useRef)(!1),o=(0,p.useRef)(0),a=(0,p.useRef)(0),s=(0,p.useRef)(null),l=(0,p.useRef)(null),c=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),s=o.current-t,c=a.current-r,u=Math.abs(s)>Math.abs(c);u?o.current=t:a.current=r;var d=n(u,u?s:c,!1,e);d&&e.preventDefault(),clearInterval(l.current),d&&(l.current=setInterval(function(){u?s*=_:c*=_;var e=Math.floor(u?s:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(l.current)},16))}},u=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,o.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",c,{passive:!1}),s.current.addEventListener("touchend",u,{passive:!0}))};r=function(){s.current&&(s.current.removeEventListener("touchmove",c),s.current.removeEventListener("touchend",u))},(0,f.A)(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(l.current)}},[e])}(se,fe,function(e,t,n,r){var i=r;return!(tt(e,t,n)||i&&i._virtualHandled||(i&&(i._virtualHandled=!0),ut({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))}),function(e,t){p.useEffect(function(){var n=t.current;if(e&&n){var r,i,o=!1,a=function(){y.A.cancel(r)},s=function e(){a(),r=(0,y.A)(function(){var t;t=i,Oe(function(e){return e+t}),e()})},l=function(){o=!1,a()},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,o=!0)}},u=function(e){if(o){var t=T(e,!1),r=n.getBoundingClientRect(),l=r.top,c=r.bottom;t<=l?(i=-I(l-t),s()):t>=c?(i=I(t-c),s()):a()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",l),n.ownerDocument.addEventListener("mousemove",u),n.ownerDocument.addEventListener("dragend",l),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",l),n.ownerDocument.removeEventListener("mousemove",u),n.ownerDocument.removeEventListener("dragend",l),a()}}},[e])}(ce,fe),(0,f.A)(function(){function e(e){var t=Ke&&e.detail<0,n=Je&&e.detail>0;!se||t||n||e.preventDefault()}var t=fe.current;return t.addEventListener("wheel",ut,{passive:!1}),t.addEventListener("DOMMouseScroll",dt,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",ut),t.removeEventListener("DOMMouseScroll",dt),t.removeEventListener("MozMousePixelScroll",e)}},[se,Ke,Je]),(0,f.A)(function(){if($){var e=at(Se);Ee(e),it({x:e})}},[He.width,$]);var ht=function(){var e,t;null===(e=Qe.current)||void 0===e||e.delayHidden(),null===(t=Ve.current)||void 0===t||t.delayHidden()},ft=function(e,t,n,r,a,l,c,u){var d=p.useRef(),h=p.useState(null),m=(0,s.A)(h,2),g=m[0],v=m[1];return(0,f.A)(function(){if(g&&g.times<10){if(!e.current)return void v(function(e){return(0,o.A)({},e)});l();var i=g.targetAlign,s=g.originAlign,u=g.index,d=g.offset,h=e.current.clientHeight,f=!1,p=i,m=null;if(h){for(var A=i||s,y=0,b=0,x=0,S=Math.min(t.length-1,u),E=0;E<=S;E+=1){var C=a(t[E]);b=y;var w=n.get(C);y=x=b+(void 0===w?r:w)}for(var _="top"===A?d:h-d,I=S;I>=0;I-=1){var T=a(t[I]),M=n.get(T);if(void 0===M){f=!0;break}if((_-=M)<=0)break}switch(A){case"top":m=b-d;break;case"bottom":m=x-h+d;break;default:var R=e.current.scrollTop;bR+h&&(p="bottom")}null!==m&&c(m),m!==g.lastTop&&(f=!0)}f&&v((0,o.A)((0,o.A)({},g),{},{times:g.times+1,targetAlign:p,lastTop:m}))}},[g,e.current]),function(e){if(null!=e){if(y.A.cancel(d.current),"number"==typeof e)c(e);else if(e&&"object"===(0,i.A)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return a(t)===e.key});var o=e.offset;v({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else u()}}(fe,he,oe,E,ee,function(){return ie(!0)},Oe,ht);p.useImperativeHandle(t,function(){return{nativeElement:me.current,getScrollInfo:nt,scrollTo:function(e){var t;(t=e)&&"object"===(0,i.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&Ee(at(e.left)),ft(e.top)):ft(e)}}}),(0,f.A)(function(){if(W){var e=he.slice(Fe,Ue+1);W(e,he)}},[Fe,Ue,he]);var pt=function(e,t,n,r){var i=p.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=(0,s.A)(i,2),a=o[0],l=o[1];return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,s=a.get(i),c=a.get(o);if(void 0===s||void 0===c)for(var u=e.length,d=l.length;dS&&p.createElement(M,{ref:Qe,prefixCls:c,scrollOffset:Ae,scrollRange:Be,rtl:ue,onScroll:ot,onStartMove:Te,onStopMove:Me,spinSize:Xe,containerSize:He.height,style:null==Y?void 0:Y.verticalScrollBar,thumbStyle:null==Y?void 0:Y.verticalScrollBarThumb,showScrollBar:J}),ce&&$>He.width&&p.createElement(M,{ref:Ve,prefixCls:c,scrollOffset:Se,scrollRange:$,rtl:ue,onScroll:ot,onStartMove:Te,onStopMove:Me,spinSize:We,containerSize:He.width,horizontal:!0,style:null==Y?void 0:Y.horizontalScrollBar,thumbStyle:null==Y?void 0:Y.horizontalScrollBarThumb,showScrollBar:J}))}var D=p.forwardRef(k);D.displayName="List";const L=D},36462(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,A=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function S(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||x(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===A||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v)},t.typeOf=x},78578(e,t,n){"use strict";e.exports=n(36462)},93214(e,t,n){"use strict";n.d(t,{Ay:()=>kn});var r=n(40366);function i(e){return function(t){return typeof t===e}}var o=i("function"),a=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},s=function(e){return!l(e)&&!function(e){return null===e}(e)&&(o(e)||"object"==typeof e)},l=i("undefined"),c=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(e,t){if(e===t)return!0;if(e&&s(e)&&t&&s(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;0!==r--;)if(!u(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=c(e.entries()),s=a.next();!s.done;s=a.next()){var l=s.value;if(!t.has(l[0]))return!1}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=c(e.entries()),h=d.next();!h.done;h=d.next())if(!u((l=h.value)[1],t.get(l[0])))return!1}catch(e){i={error:e}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=c(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}(e,t);if(a(e)&&a(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;0!==i--;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=n.length;0!==i--;){var o=n[i];if(!("_owner"===o&&e.$$typeof||u(e[o],t[o])))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var d=["innerHTML","ownerDocument","style","attributes","nodeValue"],h=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],f=["bigint","boolean","null","number","string","symbol","undefined"];function p(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,h.includes(t)?n:void 0)}function m(e){return function(t){return p(t)===e}}function g(e){return function(t){return typeof t===e}}function v(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return v.array(e)?"Array":v.plainFunction(e)?"Function":p(e)||"Object"}v.array=Array.isArray,v.arrayOf=function(e,t){return!(!v.array(e)&&!v.function(t))&&e.every(function(e){return t(e)})},v.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===p(e)},v.asyncFunction=m("AsyncFunction"),v.bigint=g("bigint"),v.boolean=function(e){return!0===e||!1===e},v.date=m("Date"),v.defined=function(e){return!v.undefined(e)},v.domElement=function(e){return v.object(e)&&!v.plainObject(e)&&1===e.nodeType&&v.string(e.nodeName)&&d.every(function(t){return t in e})},v.empty=function(e){return v.string(e)&&0===e.length||v.array(e)&&0===e.length||v.object(e)&&!v.map(e)&&!v.set(e)&&0===Object.keys(e).length||v.set(e)&&0===e.size||v.map(e)&&0===e.size},v.error=m("Error"),v.function=g("function"),v.generator=function(e){return v.iterable(e)&&v.function(e.next)&&v.function(e.throw)},v.generatorFunction=m("GeneratorFunction"),v.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},v.iterable=function(e){return!v.nullOrUndefined(e)&&v.function(e[Symbol.iterator])},v.map=m("Map"),v.nan=function(e){return Number.isNaN(e)},v.null=function(e){return null===e},v.nullOrUndefined=function(e){return v.null(e)||v.undefined(e)},v.number=function(e){return g("number")(e)&&!v.nan(e)},v.numericString=function(e){return v.string(e)&&e.length>0&&!Number.isNaN(Number(e))},v.object=function(e){return!v.nullOrUndefined(e)&&(v.function(e)||"object"==typeof e)},v.oneOf=function(e,t){return!!v.array(e)&&e.indexOf(t)>-1},v.plainFunction=m("Function"),v.plainObject=function(e){if("Object"!==p(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},v.primitive=function(e){return v.null(e)||(t=typeof e,f.includes(t));var t},v.promise=m("Promise"),v.propertyOf=function(e,t,n){if(!v.object(e)||!t)return!1;var r=e[t];return v.function(n)?n(r):v.defined(r)},v.regexp=m("RegExp"),v.set=m("Set"),v.string=g("string"),v.symbol=g("symbol"),v.undefined=g("undefined"),v.weakMap=m("WeakMap"),v.weakSet=m("WeakSet");const A=v;function y(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,s=I(e,i),l=I(t,i),c=[s,l].every(A.number)&&("increased"===a?sl);return A.undefined(r)||(c=c&&l===r),A.undefined(o)||(c=c&&s===o),c}function b(e,t,n){var r=n.key,i=n.type,o=n.value,a=I(e,r),s=I(t,r),l="added"===i?a:s,c="added"===i?s:a;return A.nullOrUndefined(o)?[a,s].every(A.array)?!c.every(w(l)):[a,s].every(A.plainObject)?function(e,t){return t.some(function(t){return!e.includes(t)})}(Object.keys(l),Object.keys(c)):![a,s].every(function(e){return A.primitive(e)&&A.defined(e)})&&("added"===i?!A.defined(a)&&A.defined(s):A.defined(a)&&!A.defined(s)):A.defined(l)?!(!A.array(l)&&!A.plainObject(l))&&function(e,t,n){return!!_(e,t)&&([e,t].every(A.array)?!e.some(E(n))&&t.some(E(n)):[e,t].every(A.plainObject)?!Object.entries(e).some(S(n))&&Object.entries(t).some(S(n)):t===n)}(l,c,o):u(c,o)}function x(e,t,n){var r=(void 0===n?{}:n).key,i=I(e,r),o=I(t,r);if(!_(i,o))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;tP(t)===e}function k(e){return t=>typeof t===e}function D(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(D.array(e))return"Array";if(D.plainFunction(e))return"Function";return P(e)||"Object"}D.array=Array.isArray,D.arrayOf=(e,t)=>!(!D.array(e)&&!D.function(t))&&e.every(e=>t(e)),D.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===P(e),D.asyncFunction=N("AsyncFunction"),D.bigint=k("bigint"),D.boolean=e=>!0===e||!1===e,D.date=N("Date"),D.defined=e=>!D.undefined(e),D.domElement=e=>D.object(e)&&!D.plainObject(e)&&1===e.nodeType&&D.string(e.nodeName)&&M.every(t=>t in e),D.empty=e=>D.string(e)&&0===e.length||D.array(e)&&0===e.length||D.object(e)&&!D.map(e)&&!D.set(e)&&0===Object.keys(e).length||D.set(e)&&0===e.size||D.map(e)&&0===e.size,D.error=N("Error"),D.function=k("function"),D.generator=e=>D.iterable(e)&&D.function(e.next)&&D.function(e.throw),D.generatorFunction=N("GeneratorFunction"),D.instanceOf=(e,t)=>!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype,D.iterable=e=>!D.nullOrUndefined(e)&&D.function(e[Symbol.iterator]),D.map=N("Map"),D.nan=e=>Number.isNaN(e),D.null=e=>null===e,D.nullOrUndefined=e=>D.null(e)||D.undefined(e),D.number=e=>k("number")(e)&&!D.nan(e),D.numericString=e=>D.string(e)&&e.length>0&&!Number.isNaN(Number(e)),D.object=e=>!D.nullOrUndefined(e)&&(D.function(e)||"object"==typeof e),D.oneOf=(e,t)=>!!D.array(e)&&e.indexOf(t)>-1,D.plainFunction=N("Function"),D.plainObject=e=>{if("Object"!==P(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},D.primitive=e=>{return D.null(e)||(t=typeof e,O.includes(t));var t},D.promise=N("Promise"),D.propertyOf=(e,t,n)=>{if(!D.object(e)||!t)return!1;const r=e[t];return D.function(n)?n(r):D.defined(r)},D.regexp=N("RegExp"),D.set=N("Set"),D.string=k("string"),D.symbol=k("symbol"),D.undefined=k("undefined"),D.weakMap=N("WeakMap"),D.weakSet=N("WeakSet");var L=D,B=n(76212),F=n(83264),U=n.n(F),z=n(98181),j=n.n(z),$=n(32492),H=n.n($),G=n(78578),Q=n(79465),V=n.n(Q),W=n(97465),X=n.n(W),q="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Y=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}(),K=q&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Y))}};function J(e){return e&&"[object Function]"==={}.toString.call(e)}function Z(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function ee(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function te(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Z(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:te(ee(e))}function ne(e){return e&&e.referenceNode?e.referenceNode:e}var re=q&&!(!window.MSInputMethodContext||!document.documentMode),ie=q&&/MSIE 10/.test(navigator.userAgent);function oe(e){return 11===e?re:10===e?ie:re||ie}function ae(e){if(!e)return document.documentElement;for(var t=oe(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Z(n,"position")?ae(n):n:e?e.ownerDocument.documentElement:document.documentElement}function se(e){return null!==e.parentNode?se(e.parentNode):e}function le(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&ae(a.firstElementChild)!==a?ae(l):l;var c=se(e);return c.host?le(c.host,t):le(e,se(t).host)}function ce(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function ue(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function de(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],oe(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function he(e){var t=e.body,n=e.documentElement,r=oe(10)&&getComputedStyle(n);return{height:de("Height",t,n,r),width:de("Width",t,n,r)}}var fe=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=oe(10),i="HTML"===t.nodeName,o=ve(e),a=ve(t),s=te(e),l=Z(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=ge({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ce(t,"top"),i=ce(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function ye(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Z(e,"position"))return!0;var n=ee(e);return!!n&&ye(n)}function be(e){if(!e||!e.parentElement||oe())return document.documentElement;for(var t=e.parentElement;t&&"none"===Z(t,"transform");)t=t.parentElement;return t||document.documentElement}function xe(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?be(e):le(e,ne(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ae(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:ce(n),s=t?0:ce(n,"left");return ge({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=te(ee(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Ae(s,a,i);if("HTML"!==s.nodeName||ye(a))o=l;else{var c=he(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function Se(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=xe(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map(function(e){return me({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ae(n,r?be(t):le(t,ne(n)),r)}function Ce(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function we(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function _e(e,t,n){n=n.split("-")[0];var r=Ce(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[we(s)],i}function Ie(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Te(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=Ie(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&J(n)&&(t.offsets.popper=ge(t.offsets.popper),t.offsets.reference=ge(t.offsets.reference),t=n(t,e))}),t}function Me(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ee(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Se(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=_e(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Te(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Re(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function Oe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=He.indexOf(e),r=He.slice(n+1).concat(He.slice(0,n));return t?r.reverse():r}var Qe={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:pe({},l,o[l]),end:pe({},l,o[l]+o[c]-a[c])};e.offsets.popper=me({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,l=i.split("-")[0];return n=Fe(+r)?[+r,0]:function(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(Ie(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(c=c.map(function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];return o?0===a.indexOf("%")?ge("%p"===a?n:r)[t]/100*o:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Fe(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}(r,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ae(e.instance.popper);e.instance.reference===n&&(n=ae(n));var r=Oe("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=xe(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),pe({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=me({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!je(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Ce(r)[c];s[f]-pa[f]&&(e.offsets.popper[d]+=s[d]+p-a[f]),e.offsets.popper=ge(e.offsets.popper);var m=s[d]+s[c]/2-p/2,g=Z(e.instance.popper),v=parseFloat(g["margin"+u]),A=parseFloat(g["border"+u+"Width"]),y=m-e.offsets.popper[d]-v-A;return y=Math.max(Math.min(a[c]-p,y),0),e.arrowElement=r,e.offsets.arrow=(pe(n={},d,Math.round(y)),pe(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Re(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=xe(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=we(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,i];break;case"clockwise":a=Ge(r);break;case"counterclockwise":a=Ge(r,!0);break;default:a=t.behavior}return a.forEach(function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=we(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)d(u.top)||"bottom"===r&&d(c.top)d(n.right),m=d(c.top)d(n.bottom),v="left"===r&&f||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,A=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(A&&"start"===o&&f||A&&"end"===o&&p||!A&&"start"===o&&m||!A&&"end"===o&&g),b=!!t.flipVariationsByContent&&(A&&"start"===o&&p||A&&"end"===o&&f||!A&&"start"===o&&g||!A&&"end"===o&&m),x=y||b;(h||v||x)&&(e.flipped=!0,(h||v)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=me({},e.offsets.popper,_e(e.instance.popper,e.offsets.reference,e.placement)),e=Te(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=we(t),e.offsets.popper=ge(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!je(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Ie(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=K(this.update.bind(this)),this.options=me({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(me({},e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=me({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return me({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&J(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return fe(e,[{key:"update",value:function(){return Me.call(this)}},{key:"destroy",value:function(){return Pe.call(this)}},{key:"enableEventListeners",value:function(){return Le.call(this)}},{key:"disableEventListeners",value:function(){return Be.call(this)}}]),e}();We.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,We.placements=$e,We.Defaults=Ve;const Xe=We;function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=nt(e);if(t){var i=nt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ot(e)}(this,n)}}function st(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var lt={flip:{padding:20},preventOverflow:{padding:10}};function ct(e,t,n){return function(e,t){if("function"!=typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(t)&&"string"!=typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(r,i,o){for(var a=arguments.length,s=new Array(a>3?a-3:0),l=3;l1?r.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return dt?this.renderReact16():null}}]),n}(r.Component);et(gt,"propTypes",{children:X().oneOfType([X().element,X().array]),hasChildren:X().bool,id:X().oneOfType([X().string,X().number]),placement:X().string,setRef:X().func.isRequired,target:X().oneOfType([X().object,X().string]),zIndex:X().number});var vt=function(e){tt(n,e);var t=at(n);function n(){return Ke(this,n),t.apply(this,arguments)}return Ze(n,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var e,t=this.props,n=t.placement,i=t.setArrowRef,o=t.styles.arrow,a=o.color,s=o.display,l=o.length,c=o.margin,u=o.position,d=o.spread,h={display:s,position:u},f=d,p=l;return n.startsWith("top")?(e="0,0 ".concat(f/2,",").concat(p," ").concat(f,",0"),h.bottom=0,h.marginLeft=c,h.marginRight=c):n.startsWith("bottom")?(e="".concat(f,",").concat(p," ").concat(f/2,",0 0,").concat(p),h.top=0,h.marginLeft=c,h.marginRight=c):n.startsWith("left")?(p=d,e="0,0 ".concat(f=l,",").concat(p/2," 0,").concat(p),h.right=0,h.marginTop=c,h.marginBottom=c):n.startsWith("right")&&(p=d,e="".concat(f=l,",").concat(p," ").concat(f,",0 0,").concat(p/2),h.left=0,h.marginTop=c,h.marginBottom=c),r.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.createElement("span",{ref:i,style:h},r.createElement("svg",{width:f,height:p,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("polygon",{points:e,fill:a}))))}}]),n}(r.Component);et(vt,"propTypes",{placement:X().string.isRequired,setArrowRef:X().func.isRequired,styles:X().object.isRequired});var At=["color","height","width"];function yt(e){var t=e.handleClick,n=e.styles,i=n.color,o=n.height,a=n.width,s=it(n,At);return r.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.createElement("svg",{width:"".concat(a,"px"),height:"".concat(o,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.createElement("g",null,r.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:i}))))}function bt(e){var t=e.content,n=e.footer,i=e.handleClick,o=e.open,a=e.positionWrapper,s=e.showCloseButton,l=e.title,c=e.styles,u={content:r.isValidElement(t)?t:r.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(u.title=r.isValidElement(l)?l:r.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(u.footer=r.isValidElement(n)?n:r.createElement("div",{className:"__floater__footer",style:c.footer},n)),!s&&!a||A.boolean(o)||(u.close=r.createElement(yt,{styles:c.close,handleClick:i})),r.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}yt.propTypes={handleClick:X().func.isRequired,styles:X().object.isRequired},bt.propTypes={content:X().node.isRequired,footer:X().node,handleClick:X().func.isRequired,open:X().bool,positionWrapper:X().bool.isRequired,showCloseButton:X().bool.isRequired,styles:X().object.isRequired,title:X().node};var xt=function(e){tt(n,e);var t=at(n);function n(){return Ke(this,n),t.apply(this,arguments)}return Ze(n,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,i=e.hideArrow,o=e.status,a=e.styles,s=a.arrow.length,l=a.floater,c=a.floaterCentered,u=a.floaterClosing,d=a.floaterOpening,h=a.floaterWithAnimation,f=a.floaterWithComponent,p={};return i||(r.startsWith("top")?p.padding="0 0 ".concat(s,"px"):r.startsWith("bottom")?p.padding="".concat(s,"px 0 0"):r.startsWith("left")?p.padding="0 ".concat(s,"px 0 0"):r.startsWith("right")&&(p.padding="0 0 0 ".concat(s,"px"))),-1!==[ut.OPENING,ut.OPEN].indexOf(o)&&(p=Ye(Ye({},p),d)),o===ut.CLOSING&&(p=Ye(Ye({},p),u)),o!==ut.OPEN||t||(p=Ye(Ye({},p),h)),"center"===r&&(p=Ye(Ye({},p),c)),n&&(p=Ye(Ye({},p),f)),Ye(Ye({},l),p)}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,i=e.hideArrow,o=e.setFloaterRef,a=e.status,s={},l=["__floater"];return s.content=t?r.isValidElement(t)?r.cloneElement(t,{closeFn:n}):t({closeFn:n}):r.createElement(bt,this.props),a===ut.OPEN&&l.push("__floater__open"),i||(s.arrow=r.createElement(vt,this.props)),r.createElement("div",{ref:o,className:l.join(" "),style:this.style},r.createElement("div",{className:"__floater__body"},s.content,s.arrow))}}]),n}(r.Component);et(xt,"propTypes",{component:X().oneOfType([X().func,X().element]),content:X().node,disableAnimation:X().bool.isRequired,footer:X().node,handleClick:X().func.isRequired,hideArrow:X().bool.isRequired,open:X().bool,placement:X().string.isRequired,positionWrapper:X().bool.isRequired,setArrowRef:X().func.isRequired,setFloaterRef:X().func.isRequired,showCloseButton:X().bool,status:X().string.isRequired,styles:X().object.isRequired,title:X().node});var St=function(e){tt(n,e);var t=at(n);function n(){return Ke(this,n),t.apply(this,arguments)}return Ze(n,[{key:"render",value:function(){var e,t=this.props,n=t.children,i=t.handleClick,o=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,l=t.setWrapperRef,c=t.style,u=t.styles;if(n)if(1===r.Children.count(n))if(r.isValidElement(n)){var d=A.function(n.type)?"innerRef":"ref";e=r.cloneElement(r.Children.only(n),et({},d,s))}else e=r.createElement("span",null,n);else e=n;return e?r.createElement("span",{ref:l,style:Ye(Ye({},u),c),onClick:i,onMouseEnter:o,onMouseLeave:a},e):null}}]),n}(r.Component);et(St,"propTypes",{children:X().node,handleClick:X().func.isRequired,handleMouseEnter:X().func.isRequired,handleMouseLeave:X().func.isRequired,setChildRef:X().func.isRequired,setWrapperRef:X().func.isRequired,style:X().object,styles:X().object.isRequired});var Et={zIndex:100},Ct=["arrow","flip","offset"],wt=["position","top","right","bottom","left"],_t=function(e){tt(n,e);var t=at(n);function n(e){var r;return Ke(this,n),et(ot(r=t.call(this,e)),"setArrowRef",function(e){r.arrowRef=e}),et(ot(r),"setChildRef",function(e){r.childRef=e}),et(ot(r),"setFloaterRef",function(e){r.floaterRef=e}),et(ot(r),"setWrapperRef",function(e){r.wrapperRef=e}),et(ot(r),"handleTransitionEnd",function(){var e=r.state.status,t=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:e===ut.OPENING?ut.OPEN:ut.IDLE},function(){var e=r.state.status;t(e===ut.OPEN?"open":"close",r.props)})}),et(ot(r),"handleClick",function(){var e=r.props,t=e.event,n=e.open;if(!A.boolean(n)){var i=r.state,o=i.positionWrapper,a=i.status;("click"===r.event||"hover"===r.event&&o)&&(pt({title:"click",data:[{event:t,status:a===ut.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}}),et(ot(r),"handleMouseEnter",function(){var e=r.props,t=e.event,n=e.open;if(!A.boolean(n)&&!ft()){var i=r.state.status;"hover"===r.event&&i===ut.IDLE&&(pt({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}}),et(ot(r),"handleMouseLeave",function(){var e=r.props,t=e.event,n=e.eventDelay,i=e.open;if(!A.boolean(i)&&!ft()){var o=r.state,a=o.status,s=o.positionWrapper;"hover"===r.event&&(pt({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:r.debug}),n?-1===[ut.OPENING,ut.OPEN].indexOf(a)||s||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout(function(){delete r.eventDelayTimeout,r.toggle()},1e3*n)):r.toggle(ut.IDLE))}}),r.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:ut.INIT,statusWrapper:ut.INIT},r._isMounted=!1,r.hasMounted=!1,ht()&&window.addEventListener("load",function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()}),r}return Ze(n,[{key:"componentDidMount",value:function(){if(ht()){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,i=t.target;this._isMounted=!0,pt({title:"init",data:{hasChildren:!!n,hasTarget:!!i,isControlled:A.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&i&&A.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(ht()){var n,r=this.props,i=r.autoOpen,o=r.open,a=r.target,s=r.wrapperOptions,l=T(t,this.state),c=l.changedFrom,u=l.changed;e.open!==o&&(A.boolean(o)&&(n=o?ut.OPENING:ut.CLOSING),this.toggle(n)),e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(u("status",ut.IDLE)&&o||c("status",ut.INIT,ut.IDLE)&&i)&&this.toggle(ut.OPEN),this.popper&&u("status",ut.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",ut.OPENING)||u("status",ut.CLOSING))&&function(e,t,n){var r;r=function(i){n(i),function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}(e,t,r)},function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}(e,t,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ht()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,i=r.disableFlip,o=r.getPopper,a=r.hideArrow,s=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:ut.IDLE});else if(t&&this.floaterRef){var d=this.options,h=d.arrow,f=d.flip,p=d.offset,m=it(d,Ct);new Xe(t,this.floaterRef,{placement:l,modifiers:Ye({arrow:Ye({enabled:!a,element:this.arrowRef},h),flip:Ye({enabled:!i,behavior:u},f),offset:Ye({offset:"0, ".concat(s,"px")},p)},m),onCreate:function(t){var n;e.popper=t,null!==(n=e.floaterRef)&&void 0!==n&&n.isConnected?(o(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:ut.IDLE}),l!==t.placement&&setTimeout(function(){t.instance.update()},1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var g=A.undefined(c.offset)?0:c.offset;new Xe(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(g,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:ut.IDLE}),o(t,"wrapper"),l!==t.placement&&setTimeout(function(){t.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval(function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())},50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===ut.OPEN?ut.CLOSING:ut.OPENING;A.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||ht()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&ft()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return V()(lt,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,r=n.status,i=n.positionWrapper,o=n.statusWrapper,a=this.props.styles,s=V()(function(e){var t=V()(Et,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);if(i&&(e=-1===[ut.IDLE].indexOf(r)||-1===[ut.IDLE].indexOf(o)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=Ye(Ye({},s.wrapper),e)),this.target){var l=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=Ye(Ye({},s.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(l.position)&&(this.wrapperStyles={},i||(wt.forEach(function(e){t.wrapperStyles[e]=l[e]}),s.wrapper=Ye(Ye({},s.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!ht())return null;var e=this.props.target;return e?A.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,i=e.status,o=this.props,a=o.children,s=o.component,l=o.content,c=o.disableAnimation,u=o.footer,d=o.hideArrow,h=o.id,f=o.open,p=o.showCloseButton,m=o.style,g=o.target,v=o.title,A=r.createElement(St,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),y={};return n?y.wrapperInPortal=A:y.wrapperAsChildren=A,r.createElement("span",null,r.createElement(gt,{hasChildren:!!a,id:h,placement:t,setRef:this.setFloaterRef,target:g,zIndex:this.styles.options.zIndex},r.createElement(xt,{component:s,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:d||"center"===t,open:f,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:p,status:i,styles:this.styles,title:v}),y.wrapperInPortal),y.wrapperAsChildren)}}]),n}(r.Component);function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=Dt(e);if(t){var i=Dt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ft(e)}(this,n)}}function zt(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}et(_t,"propTypes",{autoOpen:X().bool,callback:X().func,children:X().node,component:ct(X().oneOfType([X().func,X().element]),function(e){return!e.content}),content:ct(X().node,function(e){return!e.component}),debug:X().bool,disableAnimation:X().bool,disableFlip:X().bool,disableHoverToClick:X().bool,event:X().oneOf(["hover","click"]),eventDelay:X().number,footer:X().node,getPopper:X().func,hideArrow:X().bool,id:X().oneOfType([X().string,X().number]),offset:X().number,open:X().bool,options:X().object,placement:X().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:X().bool,style:X().object,styles:X().object,target:X().oneOfType([X().object,X().string]),title:X().node,wrapperOptions:X().shape({offset:X().number,placement:X().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:X().bool})}),et(_t,"defaultProps",{autoOpen:!1,callback:mt,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:mt,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var jt={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},$t="step:after",Ht="error:target_not_found",Gt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Qt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"},Vt=U().canUseDOM,Wt=void 0!==B.createPortal;function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent,t=e;return"undefined"==typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.indexOf(" OPR/")>=0?t="opera":void 0!==window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([0-9._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function qt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Yt(e){var t=[];return function e(n){if("string"==typeof n||"number"==typeof n)t.push(n);else if(Array.isArray(n))n.forEach(function(t){return e(t)});else if(n&&n.props){var r=n.props.children;Array.isArray(r)?r.forEach(function(t){return e(t)}):e(r)}}(e),t.join(" ").trim()}function Kt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Jt(e){return e.disableBeacon||"center"===e.placement}function Zt(e,t){var n,i=(0,r.isValidElement)(e)||(0,r.isValidElement)(t),o=L.undefined(e)||L.undefined(t);if(qt(e)!==qt(t)||i||o)return!1;if(L.domElement(e))return e.isSameNode(t);if(L.number(e))return e===t;if(L.function(e))return e.toString()===t.toString();for(var a in e)if(Kt(e,a)){if(void 0===e[a]||void 0===t[a])return!1;if(n=qt(e[a]),-1!==["object","array"].indexOf(n)&&Zt(e[a],t[a]))continue;if("function"===n&&Zt(e[a],t[a]))continue;if(e[a]!==t[a])return!1}for(var s in t)if(Kt(t,s)&&void 0===e[s])return!1;return!0}function en(){return!(-1!==["chrome","safari","firefox","opera"].indexOf(Xt()))}function tn(e){var t=e.title,n=e.data,r=e.warn,i=void 0!==r&&r,o=e.debug,a=void 0!==o&&o,s=i?console.warn||console.error:console.log;a&&(t&&n?(console.groupCollapsed("%creact-joyride: ".concat(t),"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(e){L.plainObject(e)&&e.key?s.apply(console,[e.key,e.value]):s.apply(console,[e])}):s.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}var nn={action:"",controlled:!1,index:0,lifecycle:Gt.INIT,size:0,status:Qt.IDLE},rn=["action","index","lifecycle","status"];function on(e){var t=new Map,n=new Map,r=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.continuous,o=void 0!==i&&i,a=r.stepIndex,s=r.steps,l=void 0===s?[]:s;Mt(this,e),Pt(this,"listener",void 0),Pt(this,"setSteps",function(e){var r=t.getState(),i=r.size,o=r.status,a={size:e.length,status:o};n.set("steps",e),o===Qt.WAITING&&!i&&e.length&&(a.status=Qt.RUNNING),t.setState(a)}),Pt(this,"addListener",function(e){t.listener=e}),Pt(this,"update",function(e){if(n=e,r=rn,!(L.plainObject(n)&&L.array(r)&&Object.keys(n).every(function(e){return-1!==r.indexOf(e)})))throw new Error("State is not valid. Valid keys: ".concat(rn.join(", ")));var n,r;t.setState(Tt({},t.getNextState(Tt(Tt(Tt({},t.getState()),e),{},{action:e.action||jt.UPDATE}),!0)))}),Pt(this,"start",function(e){var n=t.getState(),r=n.index,i=n.size;t.setState(Tt(Tt({},t.getNextState({action:jt.START,index:L.number(e)?e:r},!0)),{},{status:i?Qt.RUNNING:Qt.WAITING}))}),Pt(this,"stop",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.getState(),r=n.index,i=n.status;-1===[Qt.FINISHED,Qt.SKIPPED].indexOf(i)&&t.setState(Tt(Tt({},t.getNextState({action:jt.STOP,index:r+(e?1:0)})),{},{status:Qt.PAUSED}))}),Pt(this,"close",function(){var e=t.getState(),n=e.index;e.status===Qt.RUNNING&&t.setState(Tt({},t.getNextState({action:jt.CLOSE,index:n+1})))}),Pt(this,"go",function(e){var n=t.getState(),r=n.controlled,i=n.status;if(!r&&i===Qt.RUNNING){var o=t.getSteps()[e];t.setState(Tt(Tt({},t.getNextState({action:jt.GO,index:e})),{},{status:o?i:Qt.FINISHED}))}}),Pt(this,"info",function(){return t.getState()}),Pt(this,"next",function(){var e=t.getState(),n=e.index;e.status===Qt.RUNNING&&t.setState(t.getNextState({action:jt.NEXT,index:n+1}))}),Pt(this,"open",function(){t.getState().status===Qt.RUNNING&&t.setState(Tt({},t.getNextState({action:jt.UPDATE,lifecycle:Gt.TOOLTIP})))}),Pt(this,"prev",function(){var e=t.getState(),n=e.index;e.status===Qt.RUNNING&&t.setState(Tt({},t.getNextState({action:jt.PREV,index:n-1})))}),Pt(this,"reset",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.getState().controlled||t.setState(Tt(Tt({},t.getNextState({action:jt.RESET,index:0})),{},{status:e?Qt.RUNNING:Qt.READY}))}),Pt(this,"skip",function(){t.getState().status===Qt.RUNNING&&t.setState({action:jt.SKIP,lifecycle:Gt.INIT,status:Qt.SKIPPED})}),this.setState({action:jt.INIT,controlled:L.number(a),continuous:o,index:L.number(a)?a:0,lifecycle:Gt.INIT,status:l.length?Qt.READY:Qt.IDLE},!0),this.setSteps(l)}return Ot(e,[{key:"setState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getState(),i=Tt(Tt({},r),e),o=i.action,a=i.index,s=i.lifecycle,l=i.size,c=i.status;t.set("action",o),t.set("index",a),t.set("lifecycle",s),t.set("size",l),t.set("status",c),n&&(t.set("controlled",e.controlled),t.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}},{key:"getState",value:function(){return t.size?{action:t.get("action")||"",controlled:t.get("controlled")||!1,index:parseInt(t.get("index"),10),lifecycle:t.get("lifecycle")||"",size:t.get("size")||0,status:t.get("status")||""}:Tt({},nn)}},{key:"getNextState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getState(),r=n.action,i=n.controlled,o=n.index,a=n.size,s=n.status,l=L.number(e.index)?e.index:o,c=i&&!t?o:Math.min(Math.max(l,0),a);return{action:e.action||r,controlled:i,index:c,lifecycle:e.lifecycle||Gt.INIT,size:e.size||a,status:c===a?Qt.FINISHED:e.status||s}}},{key:"hasUpdatedState",value:function(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}},{key:"getSteps",value:function(){var e=n.get("steps");return Array.isArray(e)?e:[]}},{key:"getHelpers",value:function(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}]),e}();return new r(e)}function an(e){return e?e.getBoundingClientRect():{}}function sn(e){return"string"==typeof e?document.querySelector(e):e}function ln(e,t,n){var r=H()(e);return r.isSameNode(hn())?n?document:hn():r.scrollHeight>r.offsetHeight||t?r:(r.style.overflow="initial",hn())}function cn(e,t){return!!e&&!ln(e,t).isSameNode(hn())}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fixed";if(!(e&&e instanceof HTMLElement))return!1;var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&(function(e){return e&&1===e.nodeType?getComputedStyle(e):{}}(e).position===t||un(e.parentNode,t))}function dn(e){return e instanceof HTMLElement?e.offsetParent instanceof HTMLElement?dn(e.offsetParent)+e.offsetTop:e.offsetTop:0}function hn(){return document.scrollingElement||document.createElement("body")}!function(e){function t(t,n,r,i,o,a){var s=i||"<>",l=a||r;if(null==n[r])return t?new Error("Required ".concat(o," `").concat(l,"` was not specified in `").concat(s,"`.")):null;for(var c=arguments.length,u=new Array(c>6?c-6:0),d=6;d0&&void 0!==arguments[0]?arguments[0]:{},t=V()(fn,e.options||{}),n=290;window.innerWidth>480&&(n=380),t.width&&(n=window.innerWidth1&&void 0!==arguments[1]&&arguments[1];return L.plainObject(e)?!!e.target||(tn({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(tn({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return L.array(e)?e.every(function(e){return yn(e,t)}):(tn({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var xn=Ot(function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Mt(this,e),Pt(this,"element",void 0),Pt(this,"options",void 0),Pt(this,"canBeTabbed",function(e){var t=e.tabIndex;return(null===t||t<0)&&(t=void 0),!isNaN(t)&&n.canHaveFocus(e)}),Pt(this,"canHaveFocus",function(e){var t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&n.isVisible(e)}),Pt(this,"findValidTabElements",function(){return[].slice.call(n.element.querySelectorAll("*"),0).filter(n.canBeTabbed)}),Pt(this,"handleKeyDown",function(e){var t=n.options.keyCode,r=void 0===t?9:t;e.keyCode===r&&n.interceptTab(e)}),Pt(this,"interceptTab",function(e){var t=n.findValidTabElements();if(t.length){e.preventDefault();var r=e.shiftKey,i=t.indexOf(document.activeElement);-1===i||!r&&i+1===t.length?i=0:r&&0===i?i=t.length-1:i+=r?-1:1,t[i].focus()}}),Pt(this,"isHidden",function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display")}),Pt(this,"isVisible",function(e){for(var t=e;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(n.isHidden(t))return!1;t=t.parentNode}return!0}),Pt(this,"removeScope",function(){window.removeEventListener("keydown",n.handleKeyDown)}),Pt(this,"checkFocus",function(e){document.activeElement!==e&&(e.focus(),window.requestAnimationFrame(function(){return n.checkFocus(e)}))}),Pt(this,"setFocus",function(){var e=n.options.selector;if(e){var t=n.element.querySelector(e);t&&window.requestAnimationFrame(function(){return n.checkFocus(t)})}}),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=r,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}),Sn=function(e){kt(n,e);var t=Ut(n);function n(e){var r;if(Mt(this,n),Pt(Ft(r=t.call(this,e)),"setBeaconRef",function(e){r.beacon=e}),!e.beaconComponent){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.id="joyride-beacon-animation",void 0!==e.nonce&&o.setAttribute("nonce",e.nonce),o.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),i.appendChild(o)}return r}return Ot(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.shouldFocus;setTimeout(function(){L.domElement(e.beacon)&&t&&e.beacon.focus()},0)}},{key:"componentWillUnmount",value:function(){var e=document.getElementById("joyride-beacon-animation");e&&e.parentNode.removeChild(e)}},{key:"render",value:function(){var e,t=this.props,n=t.beaconComponent,i=t.locale,o=t.onClickOrHover,a=t.styles,s={"aria-label":i.open,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:i.open};if(n){var l=n;e=r.createElement(l,s)}else e=r.createElement("button",Nt({key:"JoyrideBeacon",className:"react-joyride__beacon",style:a.beacon,type:"button"},s),r.createElement("span",{style:a.beaconInner}),r.createElement("span",{style:a.beaconOuter}));return e}}]),n}(r.Component);function En(e){var t=e.styles;return r.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight",style:t})}var Cn=["mixBlendMode","zIndex"],wn=function(e){kt(n,e);var t=Ut(n);function n(){var e;Mt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=o&&u<=o+l&&c>=s&&c<=s+i;d!==n&&e.updateState({mouseOverSpotlight:d})}),Pt(Ft(e),"handleScroll",function(){var t=sn(e.props.target);e.scrollParent!==document?(e.state.isScrolling||e.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(e.scrollTimeout),e.scrollTimeout=setTimeout(function(){e.updateState({isScrolling:!1,showSpotlight:!0})},50)):un(t,"sticky")&&e.updateState({})}),Pt(Ft(e),"handleResize",function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e._isMounted&&e.forceUpdate()},100)}),e}return Ot(n,[{key:"componentDidMount",value:function(){var e=this.props;e.debug,e.disableScrolling;var t=e.disableScrollParentFix,n=sn(e.target);this.scrollParent=ln(n,t,!0),this._isMounted=!0,window.addEventListener("resize",this.handleResize)}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.lifecycle,i=n.spotlightClicks,o=T(e,this.props).changed;o("lifecycle",Gt.TOOLTIP)&&(this.scrollParent.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(function(){t.state.isScrolling||t.updateState({showSpotlight:!0})},100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(i&&r===Gt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Gt.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),this.scrollParent.removeEventListener("scroll",this.handleScroll)}},{key:"spotlightStyles",get:function(){var e=this.state.showSpotlight,t=this.props,n=t.disableScrollParentFix,r=t.spotlightClicks,i=t.spotlightPadding,o=t.styles,a=sn(t.target),s=an(a),l=un(a),c=function(e,t,n){var r=an(e),i=ln(e,n),o=cn(e,n),a=0;i instanceof HTMLElement&&(a=i.scrollTop);var s=r.top+(o||un(e)?0:a);return Math.floor(s-t)}(a,i,n);return Tt(Tt({},en()?o.spotlightLegacy:o.spotlight),{},{height:Math.round(s.height+2*i),left:Math.round(s.left-i),opacity:e?1:0,pointerEvents:r?"none":"auto",position:l?"fixed":"absolute",top:c,transition:"opacity 0.2s",width:Math.round(s.width+2*i)})}},{key:"updateState",value:function(e){this._isMounted&&this.setState(e)}},{key:"render",value:function(){var e=this.state,t=e.mouseOverSpotlight,n=e.showSpotlight,i=this.props,o=i.disableOverlay,a=i.disableOverlayClose,s=i.lifecycle,l=i.onClickOverlay,c=i.placement,u=i.styles;if(o||s!==Gt.TOOLTIP)return null;var d=u.overlay;en()&&(d="center"===c?u.overlayLegacyCenter:u.overlayLegacy);var h,f,p,m=Tt({cursor:a?"default":"pointer",height:(h=document,f=h.body,p=h.documentElement,f&&p?Math.max(f.scrollHeight,f.offsetHeight,p.clientHeight,p.scrollHeight,p.offsetHeight):0),pointerEvents:t?"none":"auto"},d),g="center"!==c&&n&&r.createElement(En,{styles:this.spotlightStyles});if("safari"===Xt()){m.mixBlendMode,m.zIndex;var v=Bt(m,Cn);g=r.createElement("div",{style:Tt({},v)},g),delete m.backgroundColor}return r.createElement("div",{className:"react-joyride__overlay",style:m,onClick:l},g)}}]),n}(r.Component),_n=["styles"],In=["color","height","width"];function Tn(e){var t=e.styles,n=Bt(e,_n),i=t.color,o=t.height,a=t.width,s=Bt(t,In);return r.createElement("button",Nt({style:s,type:"button"},n),r.createElement("svg",{width:"number"==typeof a?"".concat(a,"px"):a,height:"number"==typeof o?"".concat(o,"px"):o,viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.createElement("g",null,r.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:i}))))}var Mn=function(e){kt(n,e);var t=Ut(n);function n(){return Mt(this,n),t.apply(this,arguments)}return Ot(n,[{key:"render",value:function(){var e=this.props,t=e.backProps,n=e.closeProps,i=e.continuous,o=e.index,a=e.isLastStep,s=e.primaryProps,l=e.size,c=e.skipProps,u=e.step,d=e.tooltipProps,h=u.content,f=u.hideBackButton,p=u.hideCloseButton,m=u.hideFooter,g=u.showProgress,v=u.showSkipButton,A=u.title,y=u.styles,b=u.locale,x=b.back,S=b.close,E=b.last,C=b.next,w=b.skip,_={primary:S};return i&&(_.primary=a?E:C,g&&(_.primary=r.createElement("span",null,_.primary," (",o+1,"/",l,")"))),v&&(_.skip=r.createElement("button",Nt({style:y.buttonSkip,type:"button","aria-live":"off"},c),w)),!f&&o>0&&(_.back=r.createElement("button",Nt({style:y.buttonBack,type:"button"},t),x)),_.close=!p&&r.createElement(Tn,Nt({styles:y.buttonClose},n)),r.createElement("div",Nt({key:"JoyrideTooltip",className:"react-joyride__tooltip",style:y.tooltip},d),r.createElement("div",{style:y.tooltipContainer},A&&r.createElement("h4",{style:y.tooltipTitle,"aria-label":A},A),r.createElement("div",{style:y.tooltipContent},h)),!m&&r.createElement("div",{style:y.tooltipFooter},r.createElement("div",{style:y.tooltipFooterSpacer},_.skip),_.back,r.createElement("button",Nt({style:y.buttonNext,type:"button"},s),_.primary)),_.close)}}]),n}(r.Component),Rn=["beaconComponent","tooltipComponent"],On=function(e){kt(n,e);var t=Ut(n);function n(){var e;Mt(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0||n===jt.PREV),A=p("action")||p("index")||p("lifecycle")||p("status"),y=m("lifecycle",[Gt.TOOLTIP,Gt.INIT],Gt.INIT);if(p("action",[jt.NEXT,jt.PREV,jt.SKIP,jt.CLOSE])&&(y||o)&&r(Tt(Tt({},g),{},{index:e.index,lifecycle:Gt.COMPLETE,step:e.step,type:$t})),"center"===d.placement&&u===Qt.RUNNING&&p("index")&&n!==jt.START&&l===Gt.INIT&&h({lifecycle:Gt.READY}),A){var b=sn(d.target),x=!!b,S=x&&function(e){if(!e)return!1;for(var t=e;t&&t!==document.body;){if(t instanceof HTMLElement){var n=getComputedStyle(t),r=n.display,i=n.visibility;if("none"===r||"hidden"===i)return!1}t=t.parentNode}return!0}(b);S?(m("status",Qt.READY,Qt.RUNNING)||m("lifecycle",Gt.INIT,Gt.READY))&&r(Tt(Tt({},g),{},{step:d,type:"step:before"})):(console.warn(x?"Target not visible":"Target not mounted",d),r(Tt(Tt({},g),{},{type:Ht,step:d})),o||h({index:s+(-1!==[jt.PREV].indexOf(n)?-1:1)}))}m("lifecycle",Gt.INIT,Gt.READY)&&h({lifecycle:Jt(d)||v?Gt.TOOLTIP:Gt.BEACON}),p("index")&&tn({title:"step:".concat(l),data:[{key:"props",value:this.props}],debug:a}),p("lifecycle",Gt.BEACON)&&r(Tt(Tt({},g),{},{step:d,type:"beacon"})),p("lifecycle",Gt.TOOLTIP)&&(r(Tt(Tt({},g),{},{step:d,type:"tooltip"})),this.scope=new xn(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus()),m("lifecycle",[Gt.TOOLTIP,Gt.INIT],Gt.INIT)&&(this.scope.removeScope(),delete this.beaconPopper,delete this.tooltipPopper)}},{key:"componentWillUnmount",value:function(){this.scope.removeScope()}},{key:"open",get:function(){var e=this.props,t=e.step,n=e.lifecycle;return!(!Jt(t)&&n!==Gt.TOOLTIP)}},{key:"render",value:function(){var e=this.props,t=e.continuous,n=e.debug,i=e.helpers,o=e.index,a=e.lifecycle,s=e.nonce,l=e.shouldScroll,c=e.size,u=e.step,d=sn(u.target);return yn(u)&&L.domElement(d)?r.createElement("div",{key:"JoyrideStep-".concat(o),className:"react-joyride__step"},r.createElement(Pn,{id:"react-joyride-portal"},r.createElement(wn,Nt({},u,{debug:n,lifecycle:a,onClickOverlay:this.handleClickOverlay}))),r.createElement(_t,Nt({component:r.createElement(On,{continuous:t,helpers:i,index:o,isLastStep:o+1===c,setTooltipRef:this.setTooltipRef,size:c,step:u}),debug:n,getPopper:this.setPopper,id:"react-joyride-step-".concat(o),isPositioned:u.isFixed||un(d),open:this.open,placement:u.placement,target:u.target},u.floaterProps),r.createElement(Sn,{beaconComponent:u.beaconComponent,locale:u.locale,nonce:s,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:l,styles:u.styles}))):null}}]),n}(r.Component),kn=function(e){kt(n,e);var t=Ut(n);function n(e){var r;return Mt(this,n),Pt(Ft(r=t.call(this,e)),"initStore",function(){var e=r.props,t=e.debug,n=e.getHelpers,i=e.run,o=e.stepIndex;r.store=new on(Tt(Tt({},r.props),{},{controlled:i&&L.number(o)})),r.helpers=r.store.getHelpers();var a=r.store.addListener;return tn({title:"init",data:[{key:"props",value:r.props},{key:"state",value:r.state}],debug:t}),a(r.syncState),n(r.helpers),r.store.getState()}),Pt(Ft(r),"callback",function(e){var t=r.props.callback;L.function(t)&&t(e)}),Pt(Ft(r),"handleKeyboard",function(e){var t=r.state,n=t.index,i=t.lifecycle,o=r.props.steps[n],a=window.Event?e.which:e.keyCode;i===Gt.TOOLTIP&&27===a&&o&&!o.disableCloseOnEsc&&r.store.close()}),Pt(Ft(r),"syncState",function(e){r.setState(e)}),Pt(Ft(r),"setPopper",function(e,t){"wrapper"===t?r.beaconPopper=e:r.tooltipPopper=e}),Pt(Ft(r),"shouldScroll",function(e,t,n,r,i,o,a){return!e&&(0!==t||n||r===Gt.TOOLTIP)&&"center"!==i.placement&&(!i.isFixed||!un(o))&&a.lifecycle!==r&&-1!==[Gt.BEACON,Gt.TOOLTIP].indexOf(r)}),r.state=r.initStore(),r}return Ot(n,[{key:"componentDidMount",value:function(){if(Vt){var e=this.props,t=e.disableCloseOnEsc,n=e.debug,r=e.run,i=e.steps,o=this.store.start;bn(i,n)&&r&&o(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}}},{key:"componentDidUpdate",value:function(e,t){if(Vt){var n=this.state,r=n.action,i=n.controlled,o=n.index,a=n.lifecycle,s=n.status,l=this.props,c=l.debug,u=l.run,d=l.stepIndex,h=l.steps,f=e.steps,p=e.stepIndex,m=this.store,g=m.reset,v=m.setSteps,A=m.start,y=m.stop,b=m.update,x=T(e,this.props).changed,S=T(t,this.state),E=S.changed,C=S.changedFrom,w=An(h[o],this.props),_=!Zt(f,h),I=L.number(d)&&x("stepIndex"),M=sn(null==w?void 0:w.target);if(_&&(bn(h,c)?v(h):console.warn("Steps are not valid",h)),x("run")&&(u?A(d):y()),I){var R=p=0?g:0,i===Qt.RUNNING&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hn(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300;new Promise(function(r,i){var o=t.scrollTop,a=e>o?e-o:o-e;j().top(t,e,{duration:a<100?50:n},function(e){return e&&"Element already at target scroll position"!==e.message?i(e):r()})})}(g,m,u)}}}},{key:"render",value:function(){if(!Vt)return null;var e,t=this.state,n=t.index,i=t.status,o=this.props,a=o.continuous,s=o.debug,l=o.nonce,c=o.scrollToFirstStep,u=An(o.steps[n],this.props);return i===Qt.RUNNING&&u&&(e=r.createElement(Nn,Nt({},this.state,{callback:this.callback,continuous:a,debug:s,setPopper:this.setPopper,helpers:this.helpers,nonce:l,shouldScroll:!u.disableScrolling&&(0!==n||c),step:u,update:this.store.update}))),r.createElement("div",{className:"react-joyride"},e)}}]),n}(r.Component);Pt(kn,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:function(){},hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]})},9117(e,t,n){"use strict";n.d(t,{uZ:()=>m});var r=n(40366),i=n(76212),o=n(9738),a=n.n(o),s=n(33005),l=n.n(s),c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)};var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;nE});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),x="undefined"!=typeof WeakMap?new WeakMap:new r,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new b(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){S.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}});const E=void 0!==o.ResizeObserver?o.ResizeObserver:S},18390(e,t,n){"use strict";n.d(t,{m:()=>a});var r=n(78322),i=n(23110),o=n(91428),a=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=o.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return(0,r.C6)(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;id});var r=n(78322),i=n(23110),o=n(21519),a=n(16027),s=n(11907),l=n(18390),c={url:"",deserializer:function(e){return JSON.parse(e.data)},serializer:function(e){return JSON.stringify(e)}},u=function(e){function t(t,n){var o=e.call(this)||this;if(o._socket=null,t instanceof a.c)o.destination=n,o.source=t;else{var s=o._config=(0,r.Cl)({},c);if(o._output=new i.B,"string"==typeof t)s.url=t;else for(var u in t)t.hasOwnProperty(u)&&(s[u]=t[u]);if(!s.WebSocketCtor&&WebSocket)s.WebSocketCtor=WebSocket;else if(!s.WebSocketCtor)throw new Error("no WebSocket constructor can be found");o.destination=new l.m}return o}return(0,r.C6)(t,e),t.prototype.lift=function(e){var n=new t(this._config,this.destination);return n.operator=e,n.source=this,n},t.prototype._resetState=function(){this._socket=null,this.source||(this.destination=new l.m),this._output=new i.B},t.prototype.multiplex=function(e,t,n){var r=this;return new a.c(function(i){try{r.next(e())}catch(e){i.error(e)}var o=r.subscribe({next:function(e){try{n(e)&&i.next(e)}catch(e){i.error(e)}},error:function(e){return i.error(e)},complete:function(){return i.complete()}});return function(){try{r.next(t())}catch(e){i.error(e)}o.unsubscribe()}})},t.prototype._connectSocket=function(){var e=this,t=this._config,n=t.WebSocketCtor,r=t.protocol,i=t.url,a=t.binaryType,c=this._output,u=null;try{u=r?new n(i,r):new n(i),this._socket=u,a&&(this._socket.binaryType=a)}catch(e){return void c.error(e)}var d=new s.yU(function(){e._socket=null,u&&1===u.readyState&&u.close()});u.onopen=function(t){if(!e._socket)return u.close(),void e._resetState();var n=e._config.openObserver;n&&n.next(t);var r=e.destination;e.destination=o.vU.create(function(t){if(1===u.readyState)try{var n=e._config.serializer;u.send(n(t))}catch(t){e.destination.error(t)}},function(t){var n=e._config.closingObserver;n&&n.next(void 0),t&&t.code?u.close(t.code,t.reason):c.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()},function(){var t=e._config.closingObserver;t&&t.next(void 0),u.close(),e._resetState()}),r&&r instanceof l.m&&d.add(r.subscribe(e.destination))},u.onerror=function(t){e._resetState(),c.error(t)},u.onclose=function(t){u===e._socket&&e._resetState();var n=e._config.closeObserver;n&&n.next(t),t.wasClean?c.complete():c.error(t)},u.onmessage=function(t){try{var n=e._config.deserializer;c.next(n(t))}catch(e){c.error(e)}}},t.prototype._subscribe=function(e){var t=this,n=this.source;return n?n.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(function(){var e=t._socket;0===t._output.observers.length&&(!e||1!==e.readyState&&0!==e.readyState||e.close(),t._resetState())}),e)},t.prototype.unsubscribe=function(){var t=this._socket;!t||1!==t.readyState&&0!==t.readyState||t.close(),this._resetState(),e.prototype.unsubscribe.call(this)},t}(i.k);function d(e){return new u(e)}},82454(e,t,n){"use strict";n.d(t,{R:()=>p});var r=n(78322),i=n(26721),o=n(16027),a=n(35071),s=n(6618),l=n(56782),c=n(65091),u=Array.isArray;var d=["addListener","removeListener"],h=["addEventListener","removeEventListener"],f=["on","off"];function p(e,t,n,g){if((0,l.T)(n)&&(g=n,n=void 0),g)return p(e,t,n).pipe((v=g,(0,c.T)(function(e){return function(e,t){return u(t)?e.apply(void 0,(0,r.fX)([],(0,r.zs)(t))):e(t)}(v,e)})));var v,A=(0,r.zs)(function(e){return(0,l.T)(e.addEventListener)&&(0,l.T)(e.removeEventListener)}(e)?h.map(function(r){return function(i){return e[r](t,i,n)}}):function(e){return(0,l.T)(e.addListener)&&(0,l.T)(e.removeListener)}(e)?d.map(m(e,t)):function(e){return(0,l.T)(e.on)&&(0,l.T)(e.off)}(e)?f.map(m(e,t)):[],2),y=A[0],b=A[1];if(!y&&(0,s.X)(e))return(0,a.Z)(function(e){return p(e,t,n)})((0,i.Tg)(e));if(!y)throw new TypeError("Invalid event target");return new o.c(function(e){var t=function(){for(var t=[],n=0;no});var r=n(85301),i=n(75015);function o(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.E),e<0&&(e=0),(0,i.O)(e,e,t)}},15979(e,t,n){"use strict";n.d(t,{$:()=>o});var r=n(16027),i=n(56782);function o(e,t){var n=(0,i.T)(e)?e:function(){return e},o=function(e){return e.error(n())};return new r.c(t?function(e){return t.schedule(o,0,e)}:o)}},75015(e,t,n){"use strict";n.d(t,{O:()=>a});var r=n(16027),i=n(85301),o=n(54057);function a(e,t,n){void 0===e&&(e=0),void 0===n&&(n=i.b);var a=-1;return null!=t&&((0,o.m)(t)?n=t:a=t),new r.c(function(t){var r,i=(r=e)instanceof Date&&!isNaN(r)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule(function(){t.closed||(t.next(o++),0<=a?this.schedule(void 0,a):t.complete())},i)})}},88946(e,t,n){"use strict";n.d(t,{W:()=>a});var r=n(26721),i=n(29787),o=n(1087);function a(e){return(0,o.N)(function(t,n){var o,s=null,l=!1;s=t.subscribe((0,i._)(n,void 0,void 0,function(i){o=(0,r.Tg)(e(i,a(e)(t))),s?(s.unsubscribe(),s=null,o.subscribe(n)):l=!0})),l&&(s.unsubscribe(),s=null,o.subscribe(n))})}},8235(e,t,n){"use strict";n.d(t,{B:()=>a});var r=n(85301),i=n(1087),o=n(29787);function a(e,t){return void 0===t&&(t=r.E),(0,i.N)(function(n,r){var i=null,a=null,s=null,l=function(){if(i){i.unsubscribe(),i=null;var e=a;a=null,r.next(e)}};function c(){var n=s+e,o=t.now();if(og});var r=n(85301),i=n(35071),o=n(46668);var a=n(64031),s=n(21285),l=n(38213),c=n(1087),u=n(29787),d=n(25386),h=n(65091),f=n(26721);function p(e,t){return t?function(n){return function(){for(var e=[],t=0;ti});var r=n(1087);function i(e){return(0,r.N)(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}},35071(e,t,n){"use strict";n.d(t,{Z:()=>l});var r=n(65091),i=n(26721),o=n(1087),a=(n(84738),n(29787)),s=n(56782);function l(e,t,n){return void 0===n&&(n=1/0),(0,s.T)(t)?l(function(n,o){return(0,r.T)(function(e,r){return t(n,e,o,r)})((0,i.Tg)(e(n,o)))},n):("number"==typeof t&&(n=t),(0,o.N)(function(t,r){return function(e,t,n,r){var o=[],s=0,l=0,c=!1,u=function(){!c||o.length||s||t.complete()},d=function(e){return ss});var r=n(26721),i=n(23110),o=n(1087),a=n(29787);function s(e){return(0,o.N)(function(t,n){var o,s,l=!1,c=function(){o=t.subscribe((0,a._)(n,void 0,void 0,function(t){s||(s=new i.B,(0,r.Tg)(e(s)).subscribe((0,a._)(n,function(){return o?c():l=!0}))),s&&s.next(t)})),l&&(o.unsubscribe(),o=null,l=!1,c())};c()})}},38213(e,t,n){"use strict";n.d(t,{s:()=>a});var r=new(n(16027).c)(function(e){return e.complete()}),i=n(1087),o=n(29787);function a(e){return e<=0?function(){return r}:(0,i.N)(function(t,n){var r=0;t.subscribe((0,o._)(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}},13920(e,t,n){"use strict";n.d(t,{M:()=>s});var r=n(56782),i=n(1087),o=n(29787),a=n(46668);function s(e,t,n){var s=(0,r.T)(e)||t||n?{next:e,error:t,complete:n}:e;return s?(0,i.N)(function(e,t){var n;null===(n=s.subscribe)||void 0===n||n.call(s);var r=!0;e.subscribe((0,o._)(t,function(e){var n;null===(n=s.next)||void 0===n||n.call(s,e),t.next(e)},function(){var e;r=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()},function(e){var n;r=!1,null===(n=s.error)||void 0===n||n.call(s,e),t.error(e)},function(){var e,t;r&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)}))}):a.D}},62961(e,t,n){"use strict";n.d(t,{n:()=>a});var r=n(1087),i=n(29787),o=n(26721);function a(e,t){return(0,r.N)(function(n,r){var a=null!=t?t:{},s=a.leading,l=void 0===s||s,c=a.trailing,u=void 0!==c&&c,d=!1,h=null,f=null,p=!1,m=function(){null==f||f.unsubscribe(),f=null,u&&(A(),p&&r.complete())},g=function(){f=null,p&&r.complete()},v=function(t){return f=(0,o.Tg)(e(t)).subscribe((0,i._)(r,m,g))},A=function(){if(d){d=!1;var e=h;h=null,r.next(e),!p&&v(e)}};n.subscribe((0,i._)(r,function(e){d=!0,h=e,(!f||f.closed)&&(l?A():v(e))},function(){p=!0,(!(u&&d&&f)||f.closed)&&r.complete()}))})}},76036(e,t,n){"use strict";n.d(t,{c:()=>a});var r=n(85301),i=n(62961),o=n(75015);function a(e,t,n){void 0===t&&(t=r.E);var a=(0,o.O)(e,t);return(0,i.n)(function(){return a},n)}},67313(e,t,n){"use strict";n.d(t,{R:()=>s});var r=n(78322),i=function(e){function t(t,n){return e.call(this)||this}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(11907).yU),o={setInterval:function(e,t){for(var n=[],i=2;ia});var r=n(78322),i=n(91428),o=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=i.U.now,e}(),a=function(e){function t(t,n){void 0===n&&(n=o.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,r.C6)(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o)},80737(e,t,n){"use strict";n.d(t,{X:()=>c});var r=n(78322),i=n(67313),o=n(11907),a={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=a.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t(function(t){n=void 0,e(t)});return new o.yU(function(){return null==n?void 0:n(i)})},requestAnimationFrame:function(){for(var e=[],t=0;t0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=a.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var o=t.actions;null!=n&&n===t._scheduled&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(a.cancelAnimationFrame(n),t._scheduled=void 0)},t}(i.R),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.flush=function(e){var t;this._active=!0,e?t=e.id:(t=this._scheduled,this._scheduled=void 0);var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(n(69978).q),c=new l(s)},85301(e,t,n){"use strict";n.d(t,{E:()=>i,b:()=>o});var r=n(67313),i=new(n(69978).q)(r.R),o=i},91428(e,t,n){"use strict";n.d(t,{U:()=>r});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},98181(e){var t=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),r=Math.min,i=Date.now;function o(e){return function(o,l,c,u){"function"==typeof(c=c||{})&&(u=c,c={}),"function"!=typeof u&&(u=s);var d=i(),h=o[e],f=c.ease||a,p=isNaN(c.duration)?350:+c.duration,m=!1;return h===l?u(t,o[e]):requestAnimationFrame(function t(a){if(m)return u(n,o[e]);var s=i(),c=r(1,(s-d)/p),g=f(c);o[e]=g*(l-h)+h,c<1?requestAnimationFrame(t):requestAnimationFrame(function(){u(null,o[e])})}),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:o("scrollLeft"),top:o("scrollTop")}},32492(e,t){var n,r;void 0===(r="function"==typeof(n=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}return function(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var n=t.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}})?n.apply(t,[]):n)||(e.exports=r)},52274(e,t,n){const{v4:r}=n(3282),i=n(53228),o="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",a={consistentLength:!0};let s;const l=(e,t,n)=>{const r=t(e.toLowerCase().replace(/-/g,""));return n&&n.consistentLength?r.padStart(n.shortIdLength,n.paddingChar):r};e.exports=(()=>{const e=(e,t)=>{const n=e||o,s={...a,...t};if([...new Set(Array.from(n))].length!==n.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const c=(u=n.length,Math.ceil(Math.log(2**128)/Math.log(u)));var u;const d={shortIdLength:c,consistentLength:s.consistentLength,paddingChar:n[0]},h=i(i.HEX,n),f=i(n,i.HEX),p=()=>l(r(),h,d),m={new:p,generate:p,uuid:r,fromUUID:e=>l(e,h,d),toUUID:e=>((e,t)=>{const n=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[n[1],n[2],n[3],n[4],n[5]].join("-")})(e,f),alphabet:n,maxLength:c};return Object.freeze(m),m};return e.constants={flickrBase58:o,cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~"},e.uuid=r,e.generate=()=>(s||(s=e(o).generate),s()),e})()},3282(e,t,n){"use strict";var r;n.d(t,{v4:()=>u});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&a.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},u=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return c(r)}},22188(e,t,n){"use strict";n.d(t,{kH:()=>lt,Q2:()=>ct,i7:()=>st});var r=n(40366),i=n.t(r,2);const o=Object.fromEntries?Object.fromEntries:e=>{if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");const t={};return Object.keys(e).forEach(n=>{const[r,i]=e[n];t[r]=i}),t};function a(e){return Object.keys(e)}function s(e,t){if(!e)throw new Error(t)}function l(e,t){return t}const c=e=>{const t=e.length;let n=0,r="";for(;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:y}}function S(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var E=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},C=function(e,t,n){E(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};const{createCssAndCx:w}={createCssAndCx:function(e){const{cache:t}=e,n=(...e)=>{const n=x(e,t.registered);C(t,n,!1);const r=`${t.key}-${n.name}`;{const n=e[0];(function(e){return e instanceof Object&&!("styles"in e)&&!("length"in e)&&!("__emotion_styles"in e)})(n)&&I.saveClassNameCSSObjectMapping(t,r,n)}return r};return{css:n,cx:(...e)=>{const r=c(e),i=I.fixClassName(t,r,n);return function(e,t,n){const r=[],i=S(e,r,n);return r.length<2?n:i+t(r)}(t.registered,n,i)}}}};function _(e){const{useCache:t}=e;return{useCssAndCx:function(){const e=t(),{css:n,cx:i}=function(t,n){var i;const o=(0,r.useRef)();return(!o.current||n.length!==(null===(i=o.current.prevDeps)||void 0===i?void 0:i.length)||o.current.prevDeps.map((e,t)=>e===n[t]).indexOf(!1)>=0)&&(o.current={v:w({cache:e}),prevDeps:[...n]}),o.current.v}(0,[e]);return{css:n,cx:i}}}}const I=(()=>{const e=new WeakMap;return{saveClassNameCSSObjectMapping:(t,n,r)=>{let i=e.get(t);void 0===i&&(i=new Map,e.set(t,i)),i.set(n,r)},fixClassName:(t,n,r)=>{const i=e.get(t);return c(function(e){let t=!1;return e.map(([e,n])=>{if(void 0===n)return e;let r;if(t)r={"&&":n};else{r=e;for(const e in n)if(e.startsWith("@media")){t=!0;break}}return r})}(n.split(" ").map(e=>[e,null==i?void 0:i.get(e)])).map(e=>"string"==typeof e?e:r(e)))}}})();function T(e){if(!(e instanceof Object)||"function"==typeof e)return e;const t=[];for(const n in e){const r=e[n],i=typeof r;if("string"!==i&&("number"!==i||isNaN(r))&&"boolean"!==i&&null!=r)return e;t.push(`${n}:${i}_${r}`)}return"xSqLiJdLMd9s"+t.join("|")}function M(e,t,n){if(!(t instanceof Object))return e;const r={};return a(e).forEach(i=>r[i]=n(e[i],t[i])),a(t).forEach(n=>{if(n in e)return;const i=t[n];"string"==typeof i&&(r[n]=i)}),r}var R=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?B(W,--Q):0,H--,10===V&&(H=1,$--),V}function K(){return V=Q2||te(V)>3?"":" "}function ae(e,t){for(;--t&&K()&&!(V<48||V>102||V>57&&V<65||V>70&&V<97););return ee(e,Z()+(t<6&&32==J()&&32==K()))}function se(e){for(;K();)switch(V){case e:return Q;case 34:case 39:34!==e&&39!==e&&se(V);break;case 40:41===e&&se(e);break;case 92:K()}return Q}function le(e,t){for(;K()&&e+V!==57&&(e+V!==84||47!==J()););return"/*"+ee(t,Q-1)+"*"+P(47===e?e:K())}function ce(e){for(;!te(J());)K();return ee(e,Q)}var ue="-ms-",de="-moz-",he="-webkit-",fe="comm",pe="rule",me="decl",ge="@keyframes";function ve(e,t){for(var n="",r=z(e),i=0;i0&&U(E)-d&&j(f>32?Ee(E+";",r,n,d-1):Ee(D(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(j(S=xe(E,t,n,c,u,i,s,y,b=[],x=[],d),o),123===A)if(0===u)be(E,t,S,S,b,o,d,s,x);else switch(99===h&&110===B(E,3)?100:h){case 100:case 108:case 109:case 115:be(e,S,S,r&&j(xe(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:be(E,S,S,S,[""],x,0,s,x)}}c=u=f=0,m=v=1,y=E="",d=a;break;case 58:d=1+U(E),f=p;default:if(m<1)if(123==A)--m;else if(125==A&&0==m++&&125==Y())continue;switch(E+=P(A),A*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(U(E)-1)*v,v=1;break;case 64:45===J()&&(E+=ie(K())),h=J(),u=d=U(y=E+=ce(Z())),A++;break;case 45:45===p&&2==U(E)&&(m=0)}}return o}function xe(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,h=0===i?o:[""],f=z(h),p=0,m=0,g=0;p0?h[v]+" "+A:D(A,/&\f/g,h[v])))&&(l[g++]=y);return X(e,t,n,0===i?pe:s,l,c,u)}function Se(e,t,n){return X(e,t,n,fe,P(V),F(e,2,-2),0)}function Ee(e,t,n,r){return X(e,t,n,me,F(e,0,r),F(e,r+1,-1),r)}var Ce=function(e,t,n){for(var r=0,i=0;r=i,i=J(),38===r&&12===i&&(t[n]=1),!te(i);)K();return ee(e,Q)},we=new WeakMap,_e=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||we.get(n))&&!r){we.set(e,!0);for(var i=[],o=function(e,t){return re(function(e,t){var n=-1,r=44;do{switch(te(r)){case 0:38===r&&12===J()&&(t[n]=1),e[n]+=Ce(Q-1,t,n);break;case 2:e[n]+=ie(r);break;case 4:if(44===r){e[++n]=58===J()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=P(r)}}while(r=K());return e}(ne(e),t))}(t,i),a=n.props,s=0,l=0;s6)switch(B(e,t+1)){case 109:if(45!==B(e,t+4))break;case 102:return D(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+de+(108==B(e,t+3)?"$3":"$2-$3"))+e;case 115:return~L(e,"stretch")?Te(D(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==B(e,t+1))break;case 6444:switch(B(e,U(e)-3-(~L(e,"!important")&&10))){case 107:return D(e,":",":"+he)+e;case 101:return D(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(45===B(e,14)?"inline-":"")+"box$3$1"+he+"$2$3$1"+ue+"$2box$3")+e}break;case 5936:switch(B(e,t+11)){case 114:return he+e+ue+D(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+ue+D(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+ue+D(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+ue+e+e}return e}var Me=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case me:e.return=Te(e.value,e.length);break;case ge:return ve([q(e,{value:D(e.value,"@","@"+he)})],r);case pe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ve([q(e,{props:[D(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ve([q(e,{props:[D(t,/:(plac\w+)/,":"+he+"input-$1")]}),q(e,{props:[D(t,/:(plac\w+)/,":-moz-$1")]}),q(e,{props:[D(t,/:(plac\w+)/,ue+"input-$1")]})],r)}return""})}}],Re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Me,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;ne;return function(e,h){const f=t();let{css:p,cx:m}=c();const g=i();let v=(0,r.useMemo)(()=>{const t={},r="undefined"!=typeof Proxy&&new Proxy({},{get:(e,n)=>("symbol"==typeof n&&s(!1),t[n]=`${g.key}-${u}${void 0!==d?`-${d}`:""}-${n}-ref`)}),i=n(f,e,r||{}),c=o(a(i).map(e=>{const n=i[e];return n.label||(n.label=`${void 0!==d?`${d}-`:""}${e}`),[e,`${p(n)}${l(0,e in t)?` ${t[e]}`:""}`]}));return a(t).forEach(e=>{e in c||(c[e]=t[e])}),c},[g,p,m,f,T(e)]);{const e=null==h?void 0:h.props.classes;v=(0,r.useMemo)(()=>M(v,e,m),[v,T(e),m])}{const e=(({classes:e,theme:t,muiStyleOverridesParams:n,css:i,cx:o,name:a})=>{var s,l;if("makeStyle no name"!==a){if(void 0!==n&&void 0===a)throw new Error("To use muiStyleOverridesParams, you must specify a name using .withName('MyComponent')")}else a=void 0;let c;try{c=void 0===a?void 0:(null===(l=null===(s=t.components)||void 0===s?void 0:s[a])||void 0===l?void 0:l.styleOverrides)||void 0}catch(e){}const u=(0,r.useMemo)(()=>{if(void 0===c)return;const e={};for(const r in c){const o=c[r];o instanceof Object&&(e[r]=i("function"==typeof o?o({theme:t,ownerState:null==n?void 0:n.ownerState,...null==n?void 0:n.props}):o))}return e},[c,T(null==n?void 0:n.props),T(null==n?void 0:n.ownerState),i]);return{classes:e=(0,r.useMemo)(()=>M(e,u,o),[e,u,o])}})({classes:v,css:p,cx:m,name:null!=d?d:"makeStyle no name",idOfUseStyles:u,muiStyleOverridesParams:h,theme:f});void 0!==e.classes&&(v=e.classes),void 0!==e.css&&(p=e.css),void 0!==e.cx&&(m=e.cx)}return{classes:v,theme:f,css:p,cx:m}}}},useStyles:function(){const e=t(),{css:n,cx:r}=c();return{theme:e,css:n,cx:r}}}}const He=(0,r.createContext)(void 0),{createUseCache:Ge}={createUseCache:function(e){const{cacheProvidedAtInception:t}=e;return{useCache:function(){var e;const n=(0,r.useContext)(ke),i=(0,r.useContext)(He),o=null!==(e=null!=t?t:i)&&void 0!==e?e:n;if(null===o)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join("\n"));return o}}}};function Qe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ve(e){const{useTheme:t,cache:n}=e,{makeStyles:i}=$e({useTheme:t,cache:n});function o(e,t,n){const o="string"==typeof e?(()=>{const t=e,n=function({children:e,...n}){return(0,r.createElement)(t,n,e)};return Object.defineProperty(n,"name",{value:Qe(t)}),n})():e,a=(()=>{{const{name:e}=null!=n?n:{};if(void 0!==e)return"object"!=typeof e?e:Object.keys(e)[0]}let e;{const t=o.displayName;"string"==typeof t&&""!==t&&(e=t)}e:{if(void 0!==e)break e;const t=o.name;"string"==typeof t&&""!==t&&(e=t)}if(void 0!==e)return e=e.replace(/\$/g,"usd"),e=e.replace(/\(/g,"_").replace(/\)/g,"_"),e=e.replace(/[^a-zA-Z0-9-_]/g,"_"),e})(),s=i({...n,name:a})("function"==typeof t?(e,n,r)=>Ye(t(e,n,r)):Ye(t));function l(e){for(const t in e)if("root"!==t)return!0;return!1}const c=(0,r.forwardRef)(function(t,n){const{className:i,classes:a,...c}=t,{classes:u,cx:d}=s(t,{props:t}),h=d(u.root,i);return We.set(u,{...u,root:h}),r.createElement(o,{ref:n,className:l(u)?i:h,..."string"==typeof e?{}:{classes:u},...c})});return void 0!==a&&(c.displayName=`${Qe(a)}WithStyles`,Object.defineProperty(c,"name",{value:c.displayName})),c}return o.getClasses=qe,{withStyles:o}}const We=new WeakMap,Xe="getClasses should only be used in conjunction with withStyles";function qe(e){const t=e.classes;if(void 0===t)throw new Error(Xe);const n=We.get(t);if(void 0===n)throw new Error(Xe);return n}function Ye(e){const t={},n={};return Object.keys(e).forEach(r=>(r.startsWith("@media")?n:t)[r]=e[r]),Object.keys(n).forEach(e=>{const r=n[e];Object.keys(r).forEach(n=>{var i;return t[n]={...null!==(i=t[n])&&void 0!==i?i:{},[e]:r[n]}})}),t}const Ke=(()=>{const e="object"==typeof document&&"function"==typeof(null===document||void 0===document?void 0:document.getElementById),t="undefined"!=typeof jest,n="undefined"!=typeof mocha,r="undefined"!=typeof __vitest_worker__;return!(e||t||n||r)})();let Je=0;const Ze=[];function et(e){const{useContext:t,useCache:n,useCssAndCx:r,usePlugin:i,name:c,doesUseNestedSelectors:u}=e;return{withParams:()=>et({...e}),withName:t=>et({...e,name:"object"!=typeof t?t:Object.keys(t)[0]}),withNestedSelectors:()=>et({...e,doesUseNestedSelectors:!0}),create:e=>{const d="x"+Je++;if(void 0!==c)for(;;){const e=Ze.find(e=>e.name===c);if(void 0===e)break;Ze.splice(Ze.indexOf(e),1)}const h="function"==typeof e?e:()=>e;return function(f){var p,m,g;const{classesOverrides:v,...A}=null!=f?f:{},y=t(),{css:b,cx:x}=r(),S=n(),E=function(e){const{cache:t,cssObjectByRuleNameOrGetCssObjectByRuleName:n,classesOverridesRef:r,paramsAndPluginParamsRef:i,idOfUseStyles:o,context:l,getClasses:c}=e;e:{const e=tt.get(t);if(void 0===e)break e;const s=e.get(n);if(void 0===s)break e;const c=s.get(r);if(void 0===c)break e;const u=c.get(i);if(void 0===u)break e;const d=u.find(({context:e})=>{if(e===l)return!0;if(a(e).length!==a(l).length)return!1;for(const t in e)if(T(e[t])!==T(l[t]))return!1;return!0});if(void 0!==d){if((null==d?void 0:d.idOfUseStyles)===o)return d.result;u.splice(u.indexOf(d),1)}}const u=c();{tt.has(t)||tt.set(t,new WeakMap);const e=tt.get(t);s(void 0!==e),e.has(n)||e.set(n,new Map);const a=e.get(n);s(void 0!==a),a.has(r)||(a.size>200&&a.clear(),a.set(r,new Map));const c=a.get(r);if(s(void 0!==c),!c.has(i)){{const e="string"==typeof i?257:5;c.size5&&(d=[]),d.push({idOfUseStyles:o,context:l,result:u})}return u}({cache:S,cssObjectByRuleNameOrGetCssObjectByRuleName:e,classesOverridesRef:T(v),paramsAndPluginParamsRef:T(A),idOfUseStyles:d,context:y,getClasses:()=>{const e={},t=h({...f,...y,...u?{classes:"undefined"==typeof Proxy?{}:new Proxy({},{get:(t,n)=>{if("symbol"==typeof n&&s(!1),Ke&&void 0===c)throw new Error(["tss-react: In SSR setups, in order to use nested selectors, you must also give a unique name to the useStyle function.",'Solution: Use tss.withName("ComponentName").withNestedSelectors<...>()... to set a name.'].join("\n"));e:{if(void 0===c)break e;let e=Ze.find(e=>e.name===c&&e.idOfUseStyles===d);void 0===e&&(e={name:c,idOfUseStyles:d,nestedSelectorRuleNames:new Set},Ze.push(e)),e.nestedSelectorRuleNames.add(n)}if(void 0!==c&&void 0!==Ze.find(e=>e.name===c&&e.idOfUseStyles!==d&&e.nestedSelectorRuleNames.has(n)))throw new Error([`tss-react: There are in your codebase two different useStyles named "${c}" that`,`both use use the nested selector ${n}.\n`,"This may lead to CSS class name collisions, causing nested selectors to target elements outside of the intended scope.\n","Solution: Ensure each useStyles using nested selectors has a unique name.\n",'Use: tss.withName("UniqueName").withNestedSelectors<...>()...'].join(" "));return e[n]=`${S.key}-${void 0!==c?c:d}-${n}-ref`}})}:{}});let n=o(a(t).map(n=>{const r=t[n];return r.label||(r.label=`${void 0!==c?`${c}-`:""}${n}`),[n,`${b(r)}${l(0,n in e)?` ${e[n]}`:""}`]}));return a(e).forEach(t=>{t in n||(n[t]=e[t])}),n=M(n,v,x),n}}),C=i({classes:E,css:b,cx:x,idOfUseStyles:d,name:c,...y,...A});return{classes:null!==(p=C.classes)&&void 0!==p?p:E,css:null!==(m=C.css)&&void 0!==m?m:b,cx:null!==(g=C.cx)&&void 0!==g?g:x,...y}}}}}const tt=new WeakMap;n(35255);var nt,rt,it=function(e,t){var n=arguments;if(null==t||!Be.call(t,"css"))return r.createElement.apply(void 0,n);var i=n.length,o=new Array(i);o[0]=ze,o[1]=function(e,t){var n={};for(var r in t)Be.call(t,r)&&(n[r]=t[r]);return n[Fe]=e,n}(e,t);for(var a=2;a({})},{useCache:r}=Ge({cacheProvidedAtInception:n}),{useCssAndCx:i}=_({useCache:r}),o=et({useContext:e,useCache:r,useCssAndCx:i,usePlugin:null!=t?t:({classes:e,cx:t,css:n})=>({classes:e,cx:t,css:n}),name:void 0,doesUseNestedSelectors:!1});return{tss:o}}();ut.create({})},66210(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var r=h(n(3189)),i=h(n(4595)),o=h(n(906)),a=h(n(97337)),s=h(n(29789)),l=h(n(10710)),c=h(n(91766)),u=h(n(32383)),d=h(n(13025));function h(e){return e&&e.__esModule?e:{default:e}}},63790(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r((s=r(r(t,e),r(i,a)))<<(l=o)|s>>>32-l,n);var s,l}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function l(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>i%32&255,o=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},98789(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},66551(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};const r=new Uint8Array(16)},90409(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;d=u,u=c,c=r(l,30)>>>0,l=a,a=s}i[0]=i[0]+a>>>0,i[1]=i[1]+l>>>0,i[2]=i[2]+c>>>0,i[3]=i[3]+u>>>0,i[4]=i[4]+d>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},32383(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(91766))&&r.__esModule?r:{default:r};const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}t.default=function(e,t=0){const n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n}},3189(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(66551))&&r.__esModule?r:{default:r},o=n(32383);let a,s,l=0,c=0;t.default=function(e,t,n){let r=t&&n||0;const u=t||new Array(16);let d=(e=e||{}).node||a,h=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==h){const t=e.random||(e.rng||i.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=s=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1;const m=f-l+(p-c)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||f>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=f,c=p,s=h,f+=122192928e5;const g=(1e4*(268435455&f)+p)%4294967296;u[r++]=g>>>24&255,u[r++]=g>>>16&255,u[r++]=g>>>8&255,u[r++]=255&g;const v=f/4294967296*1e4&268435455;u[r++]=v>>>8&255,u[r++]=255&v,u[r++]=v>>>24&15|16,u[r++]=v>>>16&255,u[r++]=h>>>8|128,u[r++]=255&h;for(let e=0;e<6;++e)u[r+e]=d[e];return t||(0,o.unsafeStringify)(u)}},4595(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(62144)),i=o(n(63790));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)("v3",48,i.default);t.default=a},62144(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,a,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;nt.rootElement.offsetHeight?"row":"column";return Promise.resolve(i.apply(void 0,e)).then(function(e){return a.replaceWith(o,{direction:l,second:e,first:(0,w.getAndAssertNodeAtPathExists)(s,o)})})},t.swap=function(){for(var e=[],n=0;n0,p=h?this.props.connectDragSource:function(e){return e};if(l){var m=p(l(this.props,i));return g.default.createElement("div",{className:(0,u.default)("mosaic-window-toolbar",{draggable:h})},m)}var v=p(g.default.createElement("div",{title:r,className:"mosaic-window-title"},r)),A=!(0,f.default)(o);return g.default.createElement("div",{className:(0,u.default)("mosaic-window-toolbar",{draggable:h})},v,g.default.createElement("div",{className:(0,u.default)("mosaic-window-controls",_.OptionalBlueprint.getClasses("BUTTON_GROUP"))},A&&g.default.createElement("button",{onClick:function(){return t.setAdditionalControlsOpen(!c)},className:(0,u.default)(_.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON","MINIMAL"),_.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"MORE"),(e={},e[_.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"ACTIVE")]=c,e))},g.default.createElement("span",{className:"control-text"},a)),A&&g.default.createElement(y.Separator,null),d))},t.prototype.checkCreateNode=function(){if(null==this.props.createNode)throw new Error("Operation invalid unless `createNode` is defined")},t.defaultProps={additionalControlButtonText:"More",draggable:!0,renderPreview:function(e){var t=e.title;return g.default.createElement("div",{className:"mosaic-preview"},g.default.createElement("div",{className:"mosaic-window-toolbar"},g.default.createElement("div",{className:"mosaic-window-title"},t)),g.default.createElement("div",{className:"mosaic-window-body"},g.default.createElement("h4",null,t),g.default.createElement(_.OptionalBlueprint.Icon,{className:"default-preview-icon",size:"large",icon:"APPLICATION"})))},renderToolbar:null},t.contextType=b.MosaicContext,t}(g.default.Component);function T(e){var t=(0,g.useContext)(b.MosaicContext),n=t.mosaicActions,r=t.mosaicId,i=(0,v.useDrag)({type:E.MosaicDragType.WINDOW,item:function(t){e.onDragStart&&e.onDragStart();var i=(0,d.default)(function(){return n.hide(e.path)});return{mosaicId:r,hideTimer:i}},end:function(t,r){var i=t.hideTimer;window.clearTimeout(i);var o=e.path,a=r.getDropResult()||{},s=a.position,l=a.path;null==s||null==l||(0,p.default)(l,o)?(n.updateTree([{path:(0,h.default)(o),spec:{splitPercentage:{$set:void 0}}}]),e.onDragEnd&&e.onDragEnd("reset")):(n.updateTree((0,C.createDragToUpdates)(n.getRoot(),o,l,s)),e.onDragEnd&&e.onDragEnd("drop"))}}),a=i[1],s=i[2],l=(0,v.useDrop)({accept:E.MosaicDragType.WINDOW,collect:function(e){var t;return{isOver:e.isOver(),draggedMosaicId:null===(t=e.getItem())||void 0===t?void 0:t.mosaicId}}}),c=l[0],u=c.isOver,f=c.draggedMosaicId,m=l[1];return g.default.createElement(I,o({},e,{connectDragPreview:s,connectDragSource:a,connectDropTarget:m,isOver:u,draggedMosaicId:f}))}t.InternalMosaicWindow=I;var M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return g.default.createElement(T,o({},this.props))},t}(g.default.PureComponent);t.MosaicWindow=M},40436(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MosaicZeroState=void 0;var a=o(n(73059)),s=o(n(93125)),l=o(n(40366)),c=n(73063),u=n(9559),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.replace=function(){return Promise.resolve(t.props.createNode()).then(function(e){return t.context.mosaicActions.replaceWith([],e)}).catch(s.default)},t}return i(t,e),t.prototype.render=function(){return l.default.createElement("div",{className:(0,a.default)("mosaic-zero-state",u.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"NON_IDEAL_STATE"))},l.default.createElement("div",{className:u.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"NON_IDEAL_STATE_VISUAL")},l.default.createElement(u.OptionalBlueprint.Icon,{className:"default-zero-state-icon",size:"large",icon:"APPLICATIONS"})),l.default.createElement("h4",{className:u.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"HEADING")},"No Windows Present"),l.default.createElement("div",null,this.props.createNode&&l.default.createElement("button",{className:(0,a.default)(u.OptionalBlueprint.getClasses(this.context.blueprintNamespace,"BUTTON"),u.OptionalBlueprint.getIconClass(this.context.blueprintNamespace,"ADD")),onClick:this.replace},"Add New Window")))},t.contextType=c.MosaicContext,t}(l.default.PureComponent);t.MosaicZeroState=d},40066(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RootDropTargets=void 0;var i=r(n(73059)),o=r(n(2099)),a=r(n(40366)),s=n(21726),l=n(97665),c=n(24271),u=n(61674);t.RootDropTargets=a.default.memo(function(){var e,t,n,r=(e=(0,s.useDrop)({accept:u.MosaicDragType.WINDOW,collect:function(e){return{isDragging:null!==e.getItem()&&e.getItemType()===u.MosaicDragType.WINDOW}}})[0].isDragging,t=a.default.useRef(e),n=a.default.useState(0)[1],e||(t.current=!1),a.default.useEffect(function(){if(t.current!==e&&e){var r=window.setTimeout(function(){return e=!0,t.current=e,void n(function(e){return e+1});var e},0);return function(){window.clearTimeout(r)}}},[e]),t.current);return a.default.createElement("div",{className:(0,i.default)("drop-target-container",{"-dragging":r})},(0,o.default)(l.MosaicDropTargetPosition).map(function(e){return a.default.createElement(c.MosaicDropTarget,{position:e,path:[],key:e})}))}),t.RootDropTargets.displayName="RootDropTargets"},50047(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?(0,c.default)({},e.path,e.spec):e.spec}function p(e,t){var n=e;return t.forEach(function(e){n=(0,i.default)(n,f(e))}),n}function m(e,t){var n=(0,a.default)(t),r=(0,l.default)(t),i=n.concat((0,h.getOtherBranch)(r));return{path:n,spec:{$set:(0,h.getAndAssertNodeAtPathExists)(e,i)}}}function g(e,t,n){return(0,s.default)((0,u.default)(e,n),(0,u.default)(t,n))}t.buildSpecFromUpdate=f,t.updateTree=p,t.createRemoveUpdate=m,t.createDragToUpdates=function(e,t,n,r){var i=(0,h.getAndAssertNodeAtPathExists)(e,n),a=[];g(t,n,n.length)?i=p(i,[m(i,(0,o.default)(t,n.length))]):(a.push(m(e,t)),g(t,n,t.length-1)&&n.splice(t.length-1,1));var s,l,c=(0,h.getAndAssertNodeAtPathExists)(e,t);r===d.MosaicDropTargetPosition.LEFT||r===d.MosaicDropTargetPosition.TOP?(s=c,l=i):(s=i,l=c);var u="column";return r!==d.MosaicDropTargetPosition.LEFT&&r!==d.MosaicDropTargetPosition.RIGHT||(u="row"),a.push({path:n,spec:{$set:{first:s,second:l,direction:u}}}),a},t.createHideUpdate=function(e){return{path:(0,a.default)(e),spec:{splitPercentage:{$set:"first"===(0,l.default)(e)?0:100}}}},t.createExpandUpdate=function(e,t){for(var n,r={},i=e.length-1;i>=0;i--){var o=e[i];(n={splitPercentage:{$set:"first"===o?t:100-t}})[o]=r,r=n}return{spec:r,path:[]}}},69548(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAndAssertNodeAtPathExists=t.getNodeAtPath=t.getLeaves=t.getPathToCorner=t.getOtherDirection=t.getOtherBranch=t.createBalancedTreeFromLeaves=t.isParent=t.Corner=void 0;var i,o=r(n(95488)),a=r(n(10613));function s(e,t){if(void 0===t&&(t="row"),l(e)){var n=c(t);return{direction:t,first:s(e.first,n),second:s(e.second,n)}}return e}function l(e){return null!=e.direction}function c(e){return"row"===e?"column":"row"}function u(e,t){return t.length>0?(0,a.default)(e,t,null):e}!function(e){e[e.TOP_LEFT=1]="TOP_LEFT",e[e.TOP_RIGHT=2]="TOP_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=4]="BOTTOM_RIGHT"}(i=t.Corner||(t.Corner={})),t.isParent=l,t.createBalancedTreeFromLeaves=function(e,t){if(void 0===t&&(t="row"),0===e.length)return null;for(var n=(0,o.default)(e),r=[];n.length>1;){for(;n.length>0;)n.length>1?r.push({direction:"row",first:n.shift(),second:n.shift()}):r.unshift(n.shift());n=r,r=[]}return s(n[0],t)},t.getOtherBranch=function(e){if("first"===e)return"second";if("second"===e)return"first";throw new Error("Branch '".concat(e,"' not a valid branch"))},t.getOtherDirection=c,t.getPathToCorner=function(e,t){for(var n=e,r=[];l(n);)("row"!==n.direction||t!==i.TOP_LEFT&&t!==i.BOTTOM_LEFT)&&("column"!==n.direction||t!==i.TOP_LEFT&&t!==i.TOP_RIGHT)?(r.push("second"),n=n.second):(r.push("first"),n=n.first);return r},t.getLeaves=function e(t){return null==t?[]:l(t)?e(t.first).concat(e(t.second)):[t]},t.getNodeAtPath=u,t.getAndAssertNodeAtPathExists=function(e,t){if(null==e)throw new Error("Root is empty, cannot fetch path");var n=u(e,t);if(null==n)throw new Error("Path [".concat(t.join(", "),"] did not resolve to a node"));return n}},1888(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)})}}n.d(t,{A:()=>i})},2330(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(59477);function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}var o=n(45903);function a(e){var t=i();return function(){var n,i=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return(0,o.A)(this,n)}}},32549(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},40942(e,t,n){"use strict";n.d(t,{A:()=>o});var r=n(22256);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;tr})},43980(e,t,n){"use strict";function r(e,t){this.v=e,this.k=t}function i(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,r){function a(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},i(e,t,n,r)}function o(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function s(n,r,o,a){var s=r&&r.prototype instanceof c?r:c,u=Object.create(s.prototype);return i(u,"_invoke",function(n,r,i){var o,a,s,c=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,a=0,s=e,h.n=n,l}};function f(n,r){for(a=n,s=r,t=0;!d&&c&&!i&&t3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&fr||r>p)&&(o[4]=n,o[5]=r,h.n=p,a=0))}if(i||n>1)return l;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),a=u,s=p;(t=a<2?e:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),f(a,s)):h.n=s:h.v=s);try{if(c=2,o){if(a||(i="next"),t=o[i]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((t=(d=h.n<0)?s:n.call(r,h))!==l)break}catch(t){o=e,a=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,a),!0),u}var l={};function c(){}function u(){}function d(){}t=Object.getPrototypeOf;var h=[][r]?t(t([][r]())):(i(t={},r,function(){return this}),t),f=d.prototype=c.prototype=Object.create(h);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,a,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=d,i(f,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,r,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(o=function(){return{w:s,m:p}})()}function a(e,t){function n(i,o,a,s){try{var l=e[i](o),c=l.value;return c instanceof r?t.resolve(c.v).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(c).then(function(e){l.value=e,a(l)},function(e){return n("throw",e,a,s)})}catch(e){s(e)}}var o;this.next||(i(a.prototype),i(a.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,r,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return o=o?o.then(a,a):a()},!0)}function s(e,t,n,r,i){return new a(o().w(e,t,n,r),i||Promise)}function l(e,t,n,r,i){var o=s(e,t,n,r,i);return o.next().then(function(e){return e.done?e.value:o.next()})}function c(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n.d(t,{A:()=>h});var u=n(35739);function d(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,u.A)(e)+" is not iterable")}function h(){var e=o(),t=e.m(h),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function i(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var u={throw:1,return:2,break:3,continue:3};function f(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,u[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,d(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(h=function(){return{wrap:function(t,n,r,i){return e.w(f(t),n,r,i&&i.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:a,async:function(e,t,n,r,o){return(i(t)?s:l)(f(e),t,n,r,o)},keys:c,values:d}})()}},53563(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(23254),i=n(99136),o=n(56199);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,i.A)(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},76807(e,t,n){"use strict";function r(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}n.d(t,{V:()=>r})},9835(e,t,n){"use strict";function r(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;ar})},52149(e,t,n){"use strict";n.d(t,{Ik:()=>_,U2:()=>E,eV:()=>C,lr:()=>w,nf:()=>T,v8:()=>I});var r,i=e=>{throw TypeError(e)},o=(e,t,n)=>t.has(e)||i("Cannot "+n),a=(e,t,n)=>(o(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),l=(e,t,n,r)=>(o(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),c=class{constructor(){s(this,r),this.register=e=>{a(this,r).push(e)},this.unregister=e=>{for(;-1!==a(this,r).indexOf(e);)a(this,r).splice(a(this,r).indexOf(e),1)},this.backendChanged=e=>{for(let t of a(this,r))t.backendChanged(e)},l(this,r,[])}};r=new WeakMap;var u,d,h,f,p,m,g,v,A,y,b,x=class e{constructor(t,n,r){if(s(this,u),s(this,d),s(this,h),s(this,f),s(this,p),s(this,m,(e,t,n)=>{if(!n.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(n)}`);let r=n.backend(e,t,n.options),i=n.id,o=!n.id&&r&&r.constructor;if(o&&(i=r.constructor.name),!i)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(n)}\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(o&&console.warn("Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.\n This might be unsupported in the future, please specify 'id' explicitely for every backend."),a(this,h)[i])throw new Error(`You must specify a unique 'id' property in your Backend entry:\n ${JSON.stringify(n)} (conflicts with: ${JSON.stringify(a(this,h)[i])})`);return{id:i,instance:r,preview:n.preview??!1,transition:n.transition,skipDispatchOnTransition:n.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(e.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");e.isSetUp=!0,a(this,g).call(this,window),a(this,h)[a(this,u)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(e.isSetUp=!1,a(this,v).call(this,window),a(this,h)[a(this,u)].instance.teardown())},this.connectDragSource=(e,t,n)=>a(this,b).call(this,"connectDragSource",e,t,n),this.connectDragPreview=(e,t,n)=>a(this,b).call(this,"connectDragPreview",e,t,n),this.connectDropTarget=(e,t,n)=>a(this,b).call(this,"connectDropTarget",e,t,n),this.profile=()=>a(this,h)[a(this,u)].instance.profile(),this.previewEnabled=()=>a(this,h)[a(this,u)].preview,this.previewsList=()=>a(this,d),this.backendsList=()=>a(this,f),s(this,g,e=>{for(let t of a(this,f))t.transition&&e.addEventListener(t.transition.event,a(this,A))}),s(this,v,e=>{for(let t of a(this,f))t.transition&&e.removeEventListener(t.transition.event,a(this,A))}),s(this,A,e=>{let t=a(this,u);if(a(this,f).some(t=>!(t.id===a(this,u)||!t.transition||!t.transition.check(e)||(l(this,u,t.id),0))),a(this,u)!==t){a(this,h)[t].instance.teardown();for(let[e,t]of Object.entries(a(this,p)))t.unsubscribe(),t.unsubscribe=a(this,y).call(this,t.func,...t.args);a(this,d).backendChanged(this);let n=a(this,h)[a(this,u)];if(n.instance.setup(),n.skipDispatchOnTransition)return;let r=new(0,e.constructor)(e.type,e);e.target?.dispatchEvent(r)}}),s(this,y,(e,t,n,r)=>a(this,h)[a(this,u)].instance[e](t,n,r)),s(this,b,(e,t,n,r)=>{let i=`${e}_${t}`,o=a(this,y).call(this,e,t,n,r);return a(this,p)[i]={func:e,args:[t,n,r],unsubscribe:o},()=>{a(this,p)[i].unsubscribe(),delete a(this,p)[i]}}),!r||!r.backends||r.backends.length<1)throw new Error("You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)\n see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx");l(this,d,new c),l(this,h,{}),l(this,f,[]);for(let e of r.backends){let r=a(this,m).call(this,t,n,e);a(this,h)[r.id]=r,a(this,f).push(r)}l(this,u,a(this,f)[0].id),l(this,p,{})}};u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,A=new WeakMap,y=new WeakMap,b=new WeakMap,x.isSetUp=!1;var S=x,E=(e,t,n)=>new S(e,t,n),C=(e,t)=>({event:e,check:t}),w=C("touchstart",e=>{let t=e;return null!==t.touches&&void 0!==t.touches}),_=C("dragstart",e=>-1!==e.type.indexOf("drag")||-1!==e.type.indexOf("drop")),I=C("mousedown",e=>-1===e.type.indexOf("touch")&&-1!==e.type.indexOf("mouse")),T=C("pointerdown",e=>"mouse"===e.pointerType)},47127(e,t,n){"use strict";n.d(t,{IP:()=>Q,jM:()=>V});var r=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),o=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object.getPrototypeOf;function l(e){return!!e&&!!e[o]}function c(e){return!!e&&(h(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||v(e)||A(e))}var u=Object.prototype.constructor.toString(),d=new WeakMap;function h(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if("function"!=typeof n)return!1;let r=d.get(n);return void 0===r&&(r=Function.toString.call(n),d.set(n,r)),r===u}function f(e,t,n=!0){0===p(e)?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function p(e){const t=e[o];return t?t.type_:Array.isArray(e)?1:v(e)?2:A(e)?3:0}function m(e,t){return 2===p(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g(e,t,n){const r=p(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function v(e){return e instanceof Map}function A(e){return e instanceof Set}function y(e){return e.copy_||e.base_}function b(e,t){if(v(e))return new Map(e);if(A(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=h(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[o];let n=Reflect.ownKeys(t);for(let r=0;r1&&Object.defineProperties(e,{set:S,add:S,clear:S,delete:S}),Object.freeze(e),t&&Object.values(e).forEach(e=>x(e,!0))),e}var S={value:function(){a(2)}};function E(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var C,w={};function _(e){const t=w[e];return t||a(0),t}function I(){return C}function T(e,t){t&&(_("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function M(e){R(e),e.drafts_.forEach(P),e.drafts_=null}function R(e){e===C&&(C=e.parent_)}function O(e){return C={drafts_:[],parent_:C,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function P(e){const t=e[o];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function N(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[o].modified_&&(M(t),a(4)),c(e)&&(e=k(t,e),t.parent_||L(t,e)),t.patches_&&_("Patches").generateReplacementPatches_(n[o].base_,e,t.patches_,t.inversePatches_)):e=k(t,n,[]),M(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function k(e,t,n){if(E(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[o];if(!i)return f(t,(r,o)=>D(e,i,t,r,o,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return L(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),f(o,(r,o)=>D(e,i,t,r,o,n,a),r),L(e,t,!1),n&&e.patches_&&_("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function D(e,t,n,r,i,o,a){if(null==i)return;if("object"!=typeof i&&!a)return;const s=E(i);if(!s||a){if(l(i)){const a=k(e,i,o&&t&&3!==t.type_&&!m(t.assigned_,r)?o.concat(r):void 0);if(g(n,r,a),!l(a))return;e.canAutoFreeze_=!1}else a&&n.add(i);if(c(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[r]===i&&s)return;k(e,i),t&&t.scope_.parent_||"symbol"==typeof r||!(v(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))||L(e,i)}}}function L(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&x(t,n)}var B={get(e,t){if(t===o)return e;const n=y(e);if(!m(n,t))return function(e,t,n){const r=z(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===U(e.base_,t)?($(e),e.copy_[t]=H(r,e)):r},has:(e,t)=>t in y(e),ownKeys:e=>Reflect.ownKeys(y(e)),set(e,t,n){const r=z(y(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=U(y(e),t),s=r?.[o];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||m(e.base_,t)))return!0;$(e),j(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==U(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,$(e),j(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=y(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>s(e.base_),setPrototypeOf(){a(12)}},F={};function U(e,t){const n=e[o];return(n?y(n):e)[t]}function z(e,t){if(!(t in e))return;let n=s(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=s(n)}}function j(e){e.modified_||(e.modified_=!0,e.parent_&&j(e.parent_))}function $(e){e.copy_||(e.copy_=b(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function H(e,t){const n=v(e)?_("MapSet").proxyMap_(e,t):A(e)?_("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:I(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=B;n&&(i=[r],o=F);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:I()).drafts_.push(n),n}function G(e){if(!c(e)||E(e))return e;const t=e[o];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=b(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=b(e,!0);return f(n,(e,t)=>{g(n,e,G(t))},r),t&&(t.finalized_=!1),n}function Q(){class e extends Map{constructor(e,t){super(),this[o]={type_:2,parent_:t,scope_:t?t.scope_:I(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return y(this[o]).size}has(e){return y(this[o]).has(e)}set(e,n){const r=this[o];return i(r),y(r).has(e)&&y(r).get(e)===n||(t(r),j(r),r.assigned_.set(e,!0),r.copy_.set(e,n),r.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;const n=this[o];return i(n),t(n),j(n),n.base_.has(e)?n.assigned_.set(e,!1):n.assigned_.delete(e),n.copy_.delete(e),!0}clear(){const e=this[o];i(e),y(e).size&&(t(e),j(e),e.assigned_=new Map,f(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){y(this[o]).forEach((n,r,i)=>{e.call(t,this.get(r),r,this)})}get(e){const n=this[o];i(n);const r=y(n).get(e);if(n.finalized_||!c(r))return r;if(r!==n.base_.get(e))return r;const a=H(r,n);return t(n),n.copy_.set(e,a),a}keys(){return y(this[o]).keys()}values(){const e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){const e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class n extends Set{constructor(e,t){super(),this[o]={type_:3,parent_:t,scope_:t?t.scope_:I(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return y(this[o]).size}has(e){const t=this[o];return i(t),t.copy_?!!t.copy_.has(e)||!(!t.drafts_.has(e)||!t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){const t=this[o];return i(t),this.has(e)||(r(t),j(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;const t=this[o];return i(t),r(t),j(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){const e=this[o];i(e),y(e).size&&(r(e),j(e),e.copy_.clear())}values(){const e=this[o];return i(e),r(e),e.copy_.values()}entries(){const e=this[o];return i(e),r(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function r(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(c(t)){const n=H(t,e);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)}))}function i(e){e.revoked_&&a(3,JSON.stringify(y(e)))}var s,l;l={proxyMap_:function(t,n){return new e(t,n)},proxySet_:function(e,t){return new n(e,t)}},w[s="MapSet"]||(w[s]=l)}f(B,(e,t)=>{F[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),F.deleteProperty=function(e,t){return F.set.call(this,e,t,void 0)},F.set=function(e,t,n){return B.set.call(this,e[0],t,n,e[0])};var V=(new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}let i;if("function"!=typeof t&&a(6),void 0!==n&&"function"!=typeof n&&a(7),c(e)){const r=O(this),o=H(e,void 0);let a=!0;try{i=t(o),a=!1}finally{a?M(r):R(r)}return T(r,n),N(i,r)}if(!e||"object"!=typeof e){if(i=t(e),void 0===i&&(i=e),i===r&&(i=void 0),this.autoFreeze_&&x(i,!0),n){const t=[],r=[];_("Patches").generateReplacementPatches_(e,i,t,r),n(t,r)}return i}a(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;c(e)||a(8),l(e)&&(l(t=e)||a(10),e=G(t));const n=O(this),r=H(e,void 0);return r[o].isManual_=!0,R(n),r}finishDraft(e,t){const n=e&&e[o];n&&n.isManual_||a(9);const{scope_:r}=n;return T(r,t),N(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=_("Patches").applyPatches_;return l(e)?r(e,t):this.produce(e,e=>r(e,t))}}).produce},60556(e,t,n){"use strict";n.d(t,{K:()=>g});var r=n(40366);function i(e){return e?"hidden":"auto"}function o(e,t){for(const n in t)e.style[n]=t[n]+"px"}function a(e,t,n,r){void 0===r&&(r=20);const i=t-n,o=Math.max(r,i/e*i);return{thumbSize:o,ratio:(i-o)/(e-t)}}function s(e,t,n){e&&(n?e.scrollLeft=t:e.scrollTop=t)}function l(e){const t=(0,r.useRef)(e);return t.current=e,t}function c(e,t,n){const i=l(t);(0,r.useEffect)(()=>{function t(e){i.current(e)}return e&&window.addEventListener(e,t,n),()=>{e&&window.removeEventListener(e,t)}},[e])}function u(e,t){let{leading:n=!1,maxWait:i,wait:o=i||0}=t;const a=l(e),s=(0,r.useRef)(0),c=(0,r.useRef)(),u=()=>c.current&&clearTimeout(c.current);return(0,r.useEffect)(()=>()=>{s.current=0,u()},[o,i,n]),(0,r.useCallback)(function(){var e=[].slice.call(arguments);const t=Date.now();function r(){s.current=t,u(),a.current.apply(null,e)}const l=s.current,d=t-l;if(0===l){if(n)return void r();s.current=t}if(void 0!==i){if(d>i)return void r()}else d{r(),s.current=0},o)},[o,i,n])}n(76212);var d=(0,r.memo)(function(e){let{visible:t,isGlobal:n,trackStyle:i,thumbStyle:o,minThumbSize:l,start:c,gap:u,horizontal:d,pin:h,trackRef:f,boxSize:p,update:m}=e;const{CW:g,CH:v,PT:A,PR:y,PB:b,PL:x,SW:S,SH:E}=p,[C,w,_]=d?["width",g,S]:["height",v,E];function I(){var e,t;const n=null==(e=f.current)||null==(t=e.parentNode)?void 0:t.parentNode;return n===document.body?document.documentElement:n}const T={...n?{[C]:u>0?"calc(100% - "+u+"px)":void 0}:{[C]:w-u,...d?{bottom:-b,left:-x+c}:{top:A-u+c,right:-y,transform:"translateY(-100%)"}},...i&&i(d)};return r.createElement("div",{className:"ms-track"+(d?" ms-x":" ms-y")+(h?" ms-active":t?" ms-track-show":""),onClick:function(e){const t=I(),{scrollLeft:n,scrollTop:r}=t,i=d?n:r,o=e.target.getBoundingClientRect();s(t,(d?(e.clientX-o.left)/o.width:(e.clientY-o.top)/o.height)>i/_?Math.min(_,i+w):Math.max(0,i-w),d)},ref:f,style:T},r.createElement("div",{className:"ms-thumb",draggable:"true",onDragStartCapture:e=>{e.stopPropagation(),e.preventDefault()},onMouseDown:function(e){e.stopPropagation();const{scrollLeft:t,scrollTop:n}=I();m({pinX:d,pinY:!d,lastST:n,lastSL:t,startX:e.clientX,startY:e.clientY})},onClick:e=>e.stopPropagation(),style:{[C]:a(_,w,u,l).thumbSize,...o&&o(d)}}))});const h={CW:0,SW:0,CH:0,SH:0,PT:0,PR:0,PB:0,PL:0},f={pinX:!1,pinY:!1,lastST:0,lastSL:0,startX:0,startY:0};function p(e,t){let{trackGap:n=16,trackStyle:i,thumbStyle:l,minThumbSize:p,suppressAutoHide:m}=t;const g=e===window,v=(0,r.useMemo)(()=>g?{current:document.documentElement}:e,[g,e]),A=(0,r.useRef)(null),y=(0,r.useRef)(null),[b,x]=(0,r.useState)(h),[S,E]=(0,r.useState)(f),[C,w]=(0,r.useState)(!0),_=()=>!m&&w(!1),I=u(_,{wait:1e3}),{CW:T,SW:M,CH:R,SH:O}=b,P=M-T>0,N=O-R>0,[k,D,L,B]=function(e,t){if(Array.isArray(e)){const[t,n,r,i]=e;return[t,t+n,r,r+i]}const n=t?e:0;return[0,n,0,n]}(n,P&&N),F=u(()=>{w(!0),I(),function(e,t,n,r,i,s){if(!e)return;const{scrollTop:l,scrollLeft:c,scrollWidth:u,scrollHeight:d,clientWidth:h,clientHeight:f}=e;t&&o(t.firstChild,{left:c*a(u,h,r,s).ratio}),n&&o(n.firstChild,{top:l*a(d,f,i,s).ratio})}(v.current,A.current,y.current,D,B,p)},{maxWait:8,leading:!0});function U(){v.current&&(x(function(e){const{clientWidth:t,scrollWidth:n,clientHeight:r,scrollHeight:i}=e,{paddingTop:o,paddingRight:a,paddingBottom:s,paddingLeft:l}=window.getComputedStyle(e);return{CW:t,SW:n,CH:r,SH:i,PT:parseInt(o,10),PR:parseInt(a,10),PB:parseInt(s,10),PL:parseInt(l,10)}}(v.current)),F())}return c("mousemove",e=>{if(S.pinX){const t=a(M,T,D,p).ratio;s(v.current,Math.floor(1/t*(e.clientX-S.startX)+S.lastSL),!0)}if(S.pinY){const t=a(O,R,B,p).ratio;s(v.current,Math.floor(1/t*(e.clientY-S.startY)+S.lastST))}},{capture:!0}),c("mouseup",()=>E(f)),function(e,t){const n=u(t,{maxWait:8,leading:!0});(0,r.useEffect)(()=>{const t=new ResizeObserver(()=>{n()});return e.current&&(e.current===document.documentElement?t.observe(document.body):(t.observe(e.current),Array.from(e.current.children).forEach(e=>{t.observe(e)}))),()=>{t.disconnect()}},[e])}(v,U),[P&&r.createElement(d,{visible:C,isGlobal:g,trackStyle:i,thumbStyle:l,minThumbSize:p,start:k,gap:D,horizontal:!0,pin:S.pinX,trackRef:A,boxSize:b,update:E}),N&&r.createElement(d,{visible:C,isGlobal:g,trackStyle:i,thumbStyle:l,minThumbSize:p,start:L,gap:B,pin:S.pinY,trackRef:y,boxSize:b,update:E}),U,F,_]}function m(e){let{className:t="",onScroll:n,onMouseEnter:i,onMouseLeave:o,innerRef:a,children:s,suppressScrollX:l,suppressScrollY:c,suppressAutoHide:u,skin:d="light",trackGap:h,trackStyle:f,thumbStyle:m,minThumbSize:g,Wrapper:v,...A}=e;const y=(0,r.useRef)(null);(0,r.useImperativeHandle)(a,()=>y.current);const[b,x,S,E,C]=p(y,{trackGap:h,trackStyle:f,thumbStyle:m,minThumbSize:g,suppressAutoHide:u});return r.createElement(v,{className:"ms-container"+(t&&" "+t),ref:y,onScroll:function(e){n&&n(e),E()},onMouseEnter:function(e){i&&i(e),S()},onMouseLeave:function(e){o&&o(e),C()},...A},r.createElement("div",{className:"ms-track-box ms-theme-"+d},!l&&b,!c&&x),s)}const g=(0,r.forwardRef)((e,t)=>{let{suppressScrollX:n,suppressScrollY:o,as:a="div",style:s,children:l,...c}=e;const u={overflowX:i(n),overflowY:i(o),...s},d=a;return"undefined"!=typeof navigator?r.createElement(m,{style:u,innerRef:t,suppressScrollX:n,suppressScrollY:o,Wrapper:d,...c},l):r.createElement(d,{style:u,ref:t,...c},l)})},49039(e,t,n){"use strict";n.r(t),n.d(t,{HTML5toTouch:()=>p});var r,i=n(7390),o=n(76807);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));class a{get delay(){var e;return null!==(e=this.args.delay)&&void 0!==e?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return null!==(e=this.args.ignoreContextMenu)&&void 0!==e&&e}get enableHoverOutsideTarget(){var e;return null!==(e=this.args.enableHoverOutsideTarget)&&void 0!==e&&e}get enableKeyboardEvents(){var e;return null!==(e=this.args.enableKeyboardEvents)&&void 0!==e&&e}get enableMouseEvents(){var e;return null!==(e=this.args.enableMouseEvents)&&void 0!==e&&e}get enableTouchEvents(){var e;return null===(e=this.args.enableTouchEvents)||void 0===e||e}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t,n,r;return null!==(r=null!==(n=null===(e=this.args)||void 0===e?void 0:e.delayTouchStart)&&void 0!==n?n:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==r?r:0}get delayMouseStart(){var e,t,n,r;return null!==(r=null!==(n=null===(e=this.args)||void 0===e?void 0:e.delayMouseStart)&&void 0!==n?n:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==r?r:0}get window(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.context)||void 0===e?void 0:e.document)?this.context.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.args)||void 0===e?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}}function s(e){return void 0===e.button||0===e.button}function l(e){return!!e.targetTouches}function c(e,t){return l(e)?function(e,t){return 1===e.targetTouches.length?c(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?c(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}const u=(()=>{let e=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get:()=>(e=!0,!0)}))}catch(e){}return e})(),d={[r.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[r.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[r.keyboard]:{keydown:"keydown"}};class h{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&((0,o.V)(!h.isSetUp,"Cannot have two Touch backends at the same time."),h.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(h.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n,r=!1){const i=u?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){const o=d[r][t];o&&e.addEventListener(o,n,i)})}removeEventListener(e,t,n,r=!1){const i=u?{capture:r,passive:!1}:r;this.listenerTypes.forEach(function(r){const o=d[r][t];o&&e.removeEventListener(o,n,i)})}connectDragSource(e,t){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,"start",n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let i;switch(r.type){case d.mouse.move:i={x:r.clientX,y:r.clientY};break;case d.touch.move:var o,a;i={x:(null===(o=r.touches[0])||void 0===o?void 0:o.clientX)||0,y:(null===(a=r.touches[0])||void 0===a?void 0:a.clientY)||0}}const s=null!=i?this.document.elementFromPoint(i.x,i.y):void 0,l=s&&t.contains(s);return s===t||l?this.handleMove(r,e):void 0};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",r))}}getTopMoveStartHandler(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,n){this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&function(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}(t)},this.handleTopMoveStartCapture=e=>{s(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!s(e))return;const t=c(e);t&&(l(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!s(e))return;const t=e.type===d.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:t,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,i=c(e,this.lastTargetTouchFallback);if(!i)return;if(this._isScrolling||!this.monitor.isDragging()&&function(e,t,n,r,i){if(!i)return!1;const o=180*Math.atan2(r-t,n-e)/Math.PI+180;for(let e=0;e=t.start)&&(null==t.end||o<=t.end))return!0}return!1}(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,i.x,i.y,this.options.scrollAngleRanges))return void(this._isScrolling=!0);var o,a,s,l;if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&t&&(o=this._mouseClientOffset.x||0,a=this._mouseClientOffset.y||0,s=i.x,l=i.y,Math.sqrt(Math.pow(Math.abs(s-o),2)+Math.pow(Math.abs(l-a),2))>(this.options.touchSlop?this.options.touchSlop:0))&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(t,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();const d=(n||[]).map(e=>this.targetNodes.get(e)).filter(e=>!!e),h=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(i.x,i.y,d):this.document.elementsFromPoint(i.x,i.y),f=[];for(const e in h){if(!h.hasOwnProperty(e))continue;let t=h[e];for(null!=t&&f.push(t);t;)t=t.parentElement,t&&-1===f.indexOf(t)&&f.push(t)}const p=f.filter(e=>d.indexOf(e)>-1).map(e=>this._getDropTargetId(e)).filter(e=>!!e).filter((e,t,n)=>n.indexOf(e)===t);if(r)for(const e in this.targetNodes){const t=this.targetNodes.get(e);if(u&&t&&t.contains(u)&&-1===p.indexOf(e)){p.unshift(e);break}}p.reverse(),this.actions.hover(p,{clientOffset:i})},this._getDropTargetId=e=>{const t=this.targetNodes.keys();let n=t.next();for(;!1===n.done;){const r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{this._isScrolling=!1,this.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||!(1&e.buttons)}(e)&&(this.monitor.isDragging()&&!this.monitor.didDrop()?(e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()):this.moveStartSourceIds=void 0)},this.handleCancelOnEscape=e=>{"Escape"===e.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new a(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}}var f=n(52149),p={backends:[{id:"html5",backend:i.t2,transition:f.nf},{id:"touch",backend:function(e,t={},n={}){return new h(e,t,n)},options:{enableMouseEvents:!0},preview:!0,transition:f.lr}]}},7390(e,t,n){"use strict";n.d(t,{t2:()=>E});var r={};function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.r(r),n.d(r,{FILE:()=>s,HTML:()=>u,TEXT:()=>c,URL:()=>l});class o{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach(e=>i.push(e)),i}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class a{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const s="__NATIVE_FILE__",l="__NATIVE_URL__",c="__NATIVE_TEXT__",u="__NATIVE_HTML__";function d(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}const h={[s]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[u]:{exposeProperties:{html:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[l]:{exposeProperties:{urls:(e,t)=>d(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[c]:{exposeProperties:{text:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function f(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(h).filter(e=>{const n=h[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}const p=i(()=>/firefox/i.test(navigator.userAgent)),m=i(()=>Boolean(window.safari));class g{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:o}=this;let a=t.length-1;if(e===t[a])return n[a];let s,l=0,c=o.length-1;for(;l<=c;){s=Math.floor(.5*(l+c));const r=t[s];if(re))return n[s];c=s-1}}a=Math.max(0,c);const u=e-t[a],d=u*u;return n[a]+r[a]*u+i[a]*d+o[a]*u*d}constructor(e,t){const{length:n}=e,r=[];for(let e=0;ee[t]{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return x({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return x({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(r).some(t=>r[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=h[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new a(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&v(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=A(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=f(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,i){const o="IMG"===(a=t).nodeName&&(p()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(a)));var a,s;const l=v(o?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:h,anchorY:f}=r,{dragPreviewWidth:A,dragPreviewHeight:y}=function(e,t,n,r){let i=e?t.width:n,o=e?t.height:r;return m()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,u,d),{offsetX:b,offsetY:x}=i,S=0===x||x;return{x:0===b||b?b:new g([0,.5,1],[c.x,c.x/u*A,c.x+A-u]).interpolate(h),y:S?x:(()=>{let e=new g([0,.5,1],[c.y,c.y/d*y,c.y+y-d]).interpolate(f);return m()&&o&&(e+=(window.devicePixelRatio-1)*y),e})()}}(t,i,n,{anchorX:e,anchorY:o},{offsetX:a,offsetY:s});r.setDragImage(i,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=f(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:A(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=A(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):f(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:A(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new y(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}}const E=function(e,t,n){return new S(e,t,n)}},25003(e,t,n){"use strict";n.r(t),n.d(t,{DndProvider:()=>x,HTML5DragTransition:()=>r.Ik,MouseTransition:()=>r.v8,MultiBackend:()=>r.U2,PointerTransition:()=>r.nf,Preview:()=>E,PreviewContext:()=>l,TouchTransition:()=>r.lr,createTransition:()=>r.eV,useMultiDrag:()=>_,useMultiDrop:()=>I,usePreview:()=>T});var r=n(52149),i=n(40366),o=n(52087),a=n(42295),s=n(36369),l=(0,i.createContext)(void 0),c=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),u=(e,t)=>{switch(e){case"left":case"top-start":case"bottom-start":return 0;case"right":case"top-end":case"bottom-end":return t.width;default:return t.width/2}},d=(e,t)=>{switch(e){case"top":case"top-start":case"top-end":return 0;case"bottom":case"bottom-start":case"bottom-end":return t.height;default:return t.height/2}},h=(e,t,n="center",r={x:0,y:0})=>{let i=e.getClientOffset();if(null===i)return null;if(!t.current||!t.current.getBoundingClientRect)return c(i,(e=>{let t=e.getInitialClientOffset(),n=e.getInitialSourceClientOffset();return null===t||null===n?{x:0,y:0}:c(t,n)})(e));let o=t.current.getBoundingClientRect(),a={x:u(n,o),y:d(n,o)};return((e,t)=>({x:e.x+t.x,y:e.y+t.y}))(c(i,a),r)},f=e=>{let t=`translate(${e.x.toFixed(1)}px, ${e.y.toFixed(1)}px)`;return{pointerEvents:"none",position:"fixed",top:0,left:0,transform:t,WebkitTransform:t}},p=e=>{let t=(0,i.useRef)(null),n=(0,s.V)(n=>({currentOffset:h(n,t,e?.placement,e?.padding),isDragging:n.isDragging(),itemType:n.getItemType(),item:n.getItem(),monitor:n}));return n.isDragging&&null!==n.currentOffset?{display:!0,itemType:n.itemType,item:n.item,style:f(n.currentOffset),monitor:n.monitor,ref:t}:{display:!1}},m=e=>{let t=p({placement:e.placement,padding:e.padding});if(!t.display)return null;let n,{display:r,...i}=t;return n="children"in e?"function"==typeof e.children?e.children(i):e.children:e.generator(i),(0,a.jsx)(l.Provider,{value:i,children:n})},g=n(76212),v=n(13273),A=n(64813),y=n(44540),b=(0,i.createContext)(null),x=({portal:e,...t})=>{let[n,s]=(0,i.useState)(null);return(0,a.jsxs)(b.Provider,{value:e??n,children:[(0,a.jsx)(o.Q,{backend:r.U2,...t}),e?null:(0,a.jsx)("div",{ref:s})]})},S=()=>{let[e,t]=(0,i.useState)(!1),n=(0,i.useContext)(v.M);return(0,i.useEffect)(()=>{let e=n?.dragDropManager?.getBackend(),r={backendChanged:e=>{t(e.previewEnabled())}};return t(e.previewEnabled()),e.previewsList().register(r),()=>{e.previewsList().unregister(r)}},[n,n.dragDropManager]),e},E=e=>{let t=S(),n=(0,i.useContext)(b);if(!t)return null;let r=(0,a.jsx)(m,{...e});return null!==n?(0,g.createPortal)(r,n):r};E.Context=l;var C=(e,t,n,r)=>{let i=n.getBackend();n.receiveBackend(r);let o=t(e);return n.receiveBackend(i),o},w=(e,t)=>{let n=(0,i.useContext)(v.M),r=n?.dragDropManager?.getBackend();if(void 0===r)throw new Error("could not find backend, make sure you are using a ");let o=t(e),a={},s=r.backendsList();for(let r of s)a[r.id]=C(e,t,n.dragDropManager,r.instance);return[o,a]},_=e=>w(e,A.i),I=e=>w(e,y.H),T=e=>{let t=S(),n=p(e);return t?n:{display:!1}}},13273(e,t,n){"use strict";n.d(t,{M:()=>r});const r=(0,n(40366).createContext)({dragDropManager:void 0})},52087(e,t,n){"use strict";n.d(t,{Q:()=>pe});var r=n(42295);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(i(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(i(1));return n(l)(e,t)}if("function"!=typeof e)throw new Error(i(2));var a=e,c=t,u=[],d=u,h=!1;function f(){d===u&&(d=u.slice())}function p(){if(h)throw new Error(i(3));return c}function m(e){if("function"!=typeof e)throw new Error(i(4));if(h)throw new Error(i(5));var t=!0;return f(),d.push(e),function(){if(t){if(h)throw new Error(i(6));t=!1,f();var n=d.indexOf(e);d.splice(n,1),u=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(h)throw new Error(i(9));try{h=!0,c=a(c,e)}finally{h=!1}for(var t=u=d,n=0;n=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==l)return void e.dispatch(A);let d=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){(0,c.V)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),d=o(l)}e.dispatch(v(i,d));const f=s.getSource(l).beginDrag(a,l);if(null==f)return;!function(e){(0,c.V)(u(e),"Item must be an object.")}(f),s.pinSource(l);const p=s.getSourceType(l);return{type:h,payload:{itemType:p,item:f,sourceId:l,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!r}}}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t=1;t{const a=function(e,t,n,r){const i=n.getTarget(e);let o=i?i.drop(r,e):void 0;return function(e){(0,c.V)(void 0===e||u(e),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===t?{}:r.getDropResult()),o}(i,o,r,n),s={type:m,payload:{dropResult:x({},t,a)}};e.dispatch(s)})}}function E(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,c.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:g}}}function C(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function w(e){return function(t,{clientOffset:n}={}){!function(e){(0,c.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];C(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){(0,c.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,c.V)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t{const o=n[i];var a;return r[i]=(a=o,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function T(e,t){return{x:e.x-t.x,y:e.y-t.y}}const M=[],R=[];M.__IS_NONE__=!0,R.__IS_ALL__=!0;class O{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,c.V)("function"==typeof e,"listener must be a function."),(0,c.V)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===r||i===r+1&&!function(e,t){return e!==M&&(e===R||void 0===t||(n=e,t.filter(e=>n.indexOf(e)>-1)).length>0);var n}(t.dirtyHandlerIds,n);o||e()}finally{r=i}})}subscribeToOffsetChange(e){(0,c.V)("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,c.V)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return(0,c.V)(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(C(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return(0,c.V)(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!C(r,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const a=o.indexOf(e);return n?a===o.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?T((o=r,{x:(i=t).x+o.x,y:i.y+o.y}),n):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?T(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const P=void 0!==n.g?n.g:self,N=P.MutationObserver||P.WebKitMutationObserver;function k(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const D="function"==typeof N?function(e){let t=1;const n=new N(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:k;class L{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const B=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=D(this.flush),this.requestErrorThrow=k(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},F=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new L(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(B.registerPendingError),U="dnd-core/ADD_SOURCE",z="dnd-core/ADD_TARGET",j="dnd-core/REMOVE_SOURCE",$="dnd-core/REMOVE_TARGET";function H(e,t){t&&Array.isArray(e)?e.forEach(e=>H(e,!1)):(0,c.V)("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var G;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(G||(G={}));let Q=0;function V(e){switch(e[0]){case"S":return G.SOURCE;case"T":return G.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function W(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class X{addSource(e,t){H(e),function(e){(0,c.V)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,c.V)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,c.V)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(G.SOURCE,e,t);return this.store.dispatch(function(e){return{type:U,payload:{sourceId:e}}}(n)),n}addTarget(e,t){H(e,!0),function(e){(0,c.V)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,c.V)("function"==typeof e.hover,"Expected hover to be a function."),(0,c.V)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(G.TARGET,e,t);return this.store.dispatch(function(e){return{type:z,payload:{targetId:e}}}(n)),n}containsHandler(e){return W(this.dragSources,e)||W(this.dropTargets,e)}getSource(e,t=!1){return(0,c.V)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,c.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,c.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,c.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return V(e)===G.SOURCE}isTargetId(e){return V(e)===G.TARGET}removeSource(e){var t;(0,c.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:j,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},B.enqueueTask(F.create(t))}removeTarget(e){(0,c.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:$,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,c.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,c.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(Q++).toString();switch(e){case G.SOURCE:return`S${t}`;case G.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===G.SOURCE?this.dragSources.set(r,n):e===G.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const q=(e,t)=>e===t;function Y(e=M,t){switch(t.type){case p:break;case U:case z:case $:case j:return M;default:return R}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((e,t)=>{1===e&&i.push(t)}),i}(n,r);if(!(i.length>0)&&function(e,t,n=q){if(e.length!==t.length)return!1;for(let r=0;re!==i))});case m:return te({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case g:return te({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function ie(e=0,t){switch(t.type){case U:case z:return e+1;case j:case $:return e-1;default:return e}}function oe(e=0){return e+1}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){for(var t=1;te&&e[t]?e[t]:r||null,n))})}),dragOffset:Z(e.dragOffset,t),refCount:ie(e.refCount,t),dragOperation:re(e.dragOperation,t),stateId:oe(e.stateId)};var n,r}function ce(e,t=void 0,n={},r=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return l(le,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),o=new O(i,new X(i)),a=new I(i,o),s=e(a,t,n);return a.receiveBackend(s),a}var ue=n(40366),de=n(13273);let he=0;const fe=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var pe=(0,ue.memo)(function(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]);const[i,o]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];return[function(e,t=me(),n,r){const i=t;return i[fe]||(i[fe]={dragDropManager:ce(e,t,n,r)}),i[fe]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(n);return(0,ue.useEffect)(()=>{if(o){const e=me();return++he,()=>{0===--he&&(e[fe]=null)}}},[]),(0,r.jsx)(de.M.Provider,{value:i,children:t})});function me(){return void 0!==n.g?n.g:window}},41047(e,t,n){"use strict";n.d(t,{j:()=>o});var r=n(52517),i=n(99898);function o(e,t,n){return function(e,t){const[o,a]=(0,r.F)(e,t,()=>n.reconnect());return(0,i.E)(function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})},[e,a]),o}(t,e||(()=>({})))}},52517(e,t,n){"use strict";n.d(t,{F:()=>a});var r=n(23558),i=n(40366),o=n(99898);function a(e,t,n){const[a,s]=(0,i.useState)(()=>t(e)),l=(0,i.useCallback)(()=>{const i=t(e);r(a,i)||(s(i),n&&n())},[a,e,n]);return(0,o.E)(l),[a,l]}},64813(e,t,n){"use strict";n.d(t,{i:()=>b});var r=n(76807),i=n(41047),o=n(84768),a=n(40366);function s(e){return(0,a.useMemo)(()=>e.hooks.dragSource(),[e])}function l(e){return(0,a.useMemo)(()=>e.hooks.dragPreview(),[e])}var c=n(9835),u=n(94756),d=n(45764);class h{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,c.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,c.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,d.i)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,u.i)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,u.i)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var f=n(93496),p=n(99898);let m=!1,g=!1;class v{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,r.V)(!m,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return m=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{m=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.V)(!g,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return g=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{g=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var A=n(23672);class y{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"==typeof e.item?e.item:"function"==typeof e.item?e.item(t):{},null!=n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function b(e,t){const n=(0,o.I)(e,t);(0,r.V)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const c=function(){const e=(0,f.u)();return(0,a.useMemo)(()=>new v(e),[e])}(),u=function(e,t){const n=(0,f.u)(),r=(0,a.useMemo)(()=>new h(n.getBackend()),[n]);return(0,p.E)(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),(0,p.E)(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}(n.options,n.previewOptions);return function(e,t,n){const i=(0,f.u)(),o=function(e,t,n){const r=(0,a.useMemo)(()=>new y(e,t,n),[t,n]);return(0,a.useEffect)(()=>{r.spec=e},[e]),r}(e,t,n),s=function(e){return(0,a.useMemo)(()=>{const t=e.type;return(0,r.V)(null!=t,"spec.type must be defined"),t},[e])}(e);(0,p.E)(function(){if(null!=s){const[e,r]=(0,A.V)(s,o,i);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}},[i,t,n,o,s])}(n,c,u),[(0,i.j)(n.collect,c,u),s(u),l(u)]}},93496(e,t,n){"use strict";n.d(t,{u:()=>a});var r=n(76807),i=n(40366),o=n(13273);function a(){const{dragDropManager:e}=(0,i.useContext)(o.M);return(0,r.V)(null!=e,"Expected drag drop context"),e}},36369(e,t,n){"use strict";n.d(t,{V:()=>a});var r=n(40366),i=n(52517),o=n(93496);function a(e){const t=(0,o.u)().getMonitor(),[n,a]=(0,i.F)(t,e);return(0,r.useEffect)(()=>t.subscribeToOffsetChange(a)),(0,r.useEffect)(()=>t.subscribeToStateChange(a)),n}},44540(e,t,n){"use strict";n.d(t,{H:()=>A});var r=n(41047),i=n(84768),o=n(40366);function a(e){return(0,o.useMemo)(()=>e.hooks.dropTarget(),[e])}var s=n(9835),l=n(94756),c=n(45764);class u{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,s.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,c.i)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,l.i)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var d=n(93496),h=n(99898),f=n(76807);let p=!1;class m{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,f.V)(!p,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return p=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{p=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var g=n(23672);class v{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function A(e,t){const n=(0,i.I)(e,t),s=function(){const e=(0,d.u)();return(0,o.useMemo)(()=>new m(e),[e])}(),l=function(e){const t=(0,d.u)(),n=(0,o.useMemo)(()=>new u(t.getBackend()),[t]);return(0,h.E)(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}(n.options);return function(e,t,n){const r=(0,d.u)(),i=function(e,t){const n=(0,o.useMemo)(()=>new v(e,t),[t]);return(0,o.useEffect)(()=>{n.spec=e},[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,o.useMemo)(()=>((0,f.V)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}(e);(0,h.E)(function(){const[e,o]=(0,g.l)(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join("|")])}(n,s,l),[(0,r.j)(n.collect,s,l),a(l)]}},99898(e,t,n){"use strict";n.d(t,{E:()=>i});var r=n(40366);const i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},84768(e,t,n){"use strict";n.d(t,{I:()=>i});var r=n(40366);function i(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,r.useMemo)(()=>"function"==typeof e?e():e,n)}},21726(e,t,n){"use strict";n.r(t),n.d(t,{DndContext:()=>r.M,DndProvider:()=>i.Q,DragPreviewImage:()=>a,useDrag:()=>s.i,useDragDropManager:()=>l.u,useDragLayer:()=>c.V,useDrop:()=>u.H});var r=n(13273),i=n(52087),o=n(40366);const a=(0,o.memo)(function({connect:e,src:t}){return(0,o.useEffect)(()=>{if("undefined"==typeof Image)return;let n=!1;const r=new Image;return r.src=t,r.onload=()=>{e(r),n=!0},()=>{n&&e(null)}}),null});var s=n(64813),l=n(93496),c=n(36369),u=n(44540)},94756(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{i:()=>r})},23672(e,t,n){"use strict";function r(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function i(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}n.d(t,{V:()=>i,l:()=>r})},45764(e,t,n){"use strict";n.d(t,{i:()=>o});var r=n(76807),i=n(40366);function o(e){const t={};return Object.keys(e).forEach(n=>{const o=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!(0,i.isValidElement)(t)){const r=t;return e(r,n),r}const o=t;return function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a
, or turn it into a drag source or a drop target itself.`)}(o),function(e,t){const n=e.ref;return(0,r.V)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,i.cloneElement)(e,{ref:e=>{a(n,e),a(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(o,n?t=>e(t,n):e)}}(o);t[n]=()=>e}}),t}function a(e,t){"function"==typeof e?e(t):e.current=t}},26887(e,t,n){"use strict";n.d(t,{s0G:()=>rt,AHc:()=>dt});var r=n(75508),i=Uint8Array,o=Uint16Array,a=Uint32Array,s=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=(new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&m)<<1;g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4,p[m]=((65280&g)>>>8|(255&g)<<8)>>>1}var v=new i(288);for(m=0;m<144;++m)v[m]=8;for(m=144;m<256;++m)v[m]=9;for(m=256;m<280;++m)v[m]=7;for(m=280;m<288;++m)v[m]=8;var A=new i(32);for(m=0;m<32;++m)A[m]=5;var y=new i(0),b="undefined"!=typeof TextDecoder&&new TextDecoder;try{b.decode(y,{stream:!0})}catch(e){}n(64260);const x=9,S=15,E=16,C=22,w=37,_=43,I=76,T=83,M=97,R=100,O=103,P=109;class N{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=0,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:0,descriptorBlockSize:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],this.keyValue={},this.globalData=null}}class k{constructor(e,t,n,r){this._dataView=void 0,this._littleEndian=void 0,this._offset=void 0,this._dataView=new DataView(e.buffer,e.byteOffset+t,n),this._littleEndian=r,this._offset=0}_nextUint8(){const e=this._dataView.getUint8(this._offset);return this._offset+=1,e}_nextUint16(){const e=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,e}_nextUint32(){const e=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,e}_nextUint64(){const e=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,e}_nextInt32(){const e=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,e}_skip(e){return this._offset+=e,this}_scan(e,t=0){const n=this._offset;let r=0;for(;this._dataView.getUint8(this._offset)!==t&&re.arrayBuffer()).then(e=>WebAssembly.instantiate(e,z)).then(this._init):WebAssembly.instantiate(Buffer.from($,"base64"),z).then(this._init),B)}_init(e){F=e.instance,z.env.emscripten_notify_memory_growth(0)}decode(e,t=0){if(!F)throw new Error("ZSTDDecoder: Await .init() before decoding.");const n=e.byteLength,r=F.exports.malloc(n);U.set(e,r),t=t||Number(F.exports.ZSTD_findDecompressedSize(r,n));const i=F.exports.malloc(t),o=F.exports.ZSTD_decompress(i,t,r,n),a=U.slice(i,i+o);return F.exports.free(r),F.exports.free(i),a}}const $="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIAAgAS0AACIDNgIAIAJBfmoiBEEBTQRAIARBAWtFBEAgACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQhBSAGQQR2IQRBICAAdCIAQQFyIQkgASgCACEPQQAhAiADIQYCQANAIAlBAkggAiAPS3JFBEAgAiEHAkAgCARAA0AgBEH//wNxQf//A0YEQCAHQRhqIQcgBiAQSQR/IAZBAmoiBigAACAFdgUgBUEQaiEFIARBEHYLIQQMAQsLA0AgBEEDcSIIQQNGBEAgBUECaiEFIARBAnYhBCAHQQNqIQcMAQsLIAcgCGoiByAPSw0EIAVBAmohBQNAIAIgB0kEQCANIAJBAXRqQQA7AQAgAkEBaiECDAELCyAGIA5LQQAgBiAFQQN1aiIHIAxLG0UEQCAHKAAAIAVBB3EiBXYhBAwCCyAEQQJ2IQQLIAYhBwsCfyALQX9qIAQgAEF/anEiBiAAQQF0QX9qIgggCWsiEUkNABogBCAIcSIEQQAgESAEIABIG2shBiALCyEIIA0gAkEBdGogBkF/aiIEOwEAIAlBASAGayAEIAZBAUgbayEJA0AgCSAASARAIABBAXUhACALQX9qIQsMAQsLAn8gByAOS0EAIAcgBSAIaiIFQQN1aiIGIAxLG0UEQCAFQQdxDAELIAUgDCIGIAdrQQN0awshBSACQQFqIQIgBEUhCCAGKAAAIAVBH3F2IQQMAQsLQWwgCUEBRyAFQSBKcg0BGiABIAJBf2o2AgAgBiAFQQdqQQN1aiADawwBC0FQCyEAIApBEGokACAACwkAQQFBBSAAGwsMACAAIAEoAAA2AAALqgMBCn8jAEHwAGsiCiQAIAJBAWohDiAAQQhqIQtBgIAEIAVBf2p0QRB1IQxBACECQQEhBkEBIAV0IglBf2oiDyEIA0AgAiAORkUEQAJAIAEgAkEBdCINai8BACIHQf//A0YEQCALIAhBA3RqIAI2AgQgCEF/aiEIQQEhBwwBCyAGQQAgDCAHQRB0QRB1ShshBgsgCiANaiAHOwEAIAJBAWohAgwBCwsgACAFNgIEIAAgBjYCACAJQQN2IAlBAXZqQQNqIQxBACEAQQAhBkEAIQIDQCAGIA5GBEADQAJAIAAgCUYNACAKIAsgAEEDdGoiASgCBCIGQQF0aiICIAIvAQAiAkEBajsBACABIAUgAhAUayIIOgADIAEgAiAIQf8BcXQgCWs7AQAgASAEIAZBAnQiAmooAgA6AAIgASACIANqKAIANgIEIABBAWohAAwBCwsFIAEgBkEBdGouAQAhDUEAIQcDQCAHIA1ORQRAIAsgAkEDdGogBjYCBANAIAIgDGogD3EiAiAISw0ACyAHQQFqIQcMAQsLIAZBAWohBgwBCwsgCkHwAGokAAsjAEIAIAEQCSAAhUKHla+vmLbem55/fkLj3MqV/M7y9YV/fAsQACAAQn43AwggACABNgIACyQBAX8gAARAIAEoAgQiAgRAIAEoAgggACACEQEADwsgABAmCwsfACAAIAEgAi8BABAINgIAIAEQBBogACACQQRqNgIEC0oBAX9BoCAoAgAiASAAaiIAQX9MBEBBiCBBMDYCAEF/DwsCQCAAPwBBEHRNDQAgABBmDQBBiCBBMDYCAEF/DwtBoCAgADYCACABC9cBAQh/Qbp/IQoCQCACKAIEIgggAigCACIJaiIOIAEgAGtLDQBBbCEKIAkgBCADKAIAIgtrSw0AIAAgCWoiBCACKAIIIgxrIQ0gACABQWBqIg8gCyAJQQAQKSADIAkgC2o2AgACQAJAIAwgBCAFa00EQCANIQUMAQsgDCAEIAZrSw0CIAcgDSAFayIAaiIBIAhqIAdNBEAgBCABIAgQDxoMAgsgBCABQQAgAGsQDyEBIAIgACAIaiIINgIEIAEgAGshBAsgBCAPIAUgCEEBECkLIA4hCgsgCgubAgEBfyMAQYABayINJAAgDSADNgJ8AkAgAkEDSwRAQX8hCQwBCwJAAkACQAJAIAJBAWsOAwADAgELIAZFBEBBuH8hCQwEC0FsIQkgBS0AACICIANLDQMgACAHIAJBAnQiAmooAgAgAiAIaigCABA7IAEgADYCAEEBIQkMAwsgASAJNgIAQQAhCQwCCyAKRQRAQWwhCQwCC0EAIQkgC0UgDEEZSHINAUEIIAR0QQhqIQBBACECA0AgAiAATw0CIAJBQGshAgwAAAsAC0FsIQkgDSANQfwAaiANQfgAaiAFIAYQFSICEAMNACANKAJ4IgMgBEsNACAAIA0gDSgCfCAHIAggAxAYIAEgADYCACACIQkLIA1BgAFqJAAgCQsLACAAIAEgAhALGgsQACAALwAAIAAtAAJBEHRyCy8AAn9BuH8gAUEISQ0AGkFyIAAoAAQiAEF3Sw0AGkG4fyAAQQhqIgAgACABSxsLCwkAIAAgATsAAAsDAAELigYBBX8gACAAKAIAIgVBfnE2AgBBACAAIAVBAXZqQYQgKAIAIgQgAEYbIQECQAJAIAAoAgQiAkUNACACKAIAIgNBAXENACACQQhqIgUgA0EBdkF4aiIDQQggA0EISxtnQR9zQQJ0QYAfaiIDKAIARgRAIAMgAigCDDYCAAsgAigCCCIDBEAgAyACKAIMNgIECyACKAIMIgMEQCADIAIoAgg2AgALIAIgAigCACAAKAIAQX5xajYCAEGEICEAAkACQCABRQ0AIAEgAjYCBCABKAIAIgNBAXENASADQQF2QXhqIgNBCCADQQhLG2dBH3NBAnRBgB9qIgMoAgAgAUEIakYEQCADIAEoAgw2AgALIAEoAggiAwRAIAMgASgCDDYCBAsgASgCDCIDBEAgAyABKAIINgIAQYQgKAIAIQQLIAIgAigCACABKAIAQX5xajYCACABIARGDQAgASABKAIAQQF2akEEaiEACyAAIAI2AgALIAIoAgBBAXZBeGoiAEEIIABBCEsbZ0Efc0ECdEGAH2oiASgCACEAIAEgBTYCACACIAA2AgwgAkEANgIIIABFDQEgACAFNgIADwsCQCABRQ0AIAEoAgAiAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAigCACABQQhqRgRAIAIgASgCDDYCAAsgASgCCCICBEAgAiABKAIMNgIECyABKAIMIgIEQCACIAEoAgg2AgBBhCAoAgAhBAsgACAAKAIAIAEoAgBBfnFqIgI2AgACQCABIARHBEAgASABKAIAQQF2aiAANgIEIAAoAgAhAgwBC0GEICAANgIACyACQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgIoAgAhASACIABBCGoiAjYCACAAIAE2AgwgAEEANgIIIAFFDQEgASACNgIADwsgBUEBdkF4aiIBQQggAUEISxtnQR9zQQJ0QYAfaiICKAIAIQEgAiAAQQhqIgI2AgAgACABNgIMIABBADYCCCABRQ0AIAEgAjYCAAsLDgAgAARAIABBeGoQJQsLgAIBA38CQCAAQQ9qQXhxQYQgKAIAKAIAQQF2ayICEB1Bf0YNAAJAQYQgKAIAIgAoAgAiAUEBcQ0AIAFBAXZBeGoiAUEIIAFBCEsbZ0Efc0ECdEGAH2oiASgCACAAQQhqRgRAIAEgACgCDDYCAAsgACgCCCIBBEAgASAAKAIMNgIECyAAKAIMIgFFDQAgASAAKAIINgIAC0EBIQEgACAAKAIAIAJBAXRqIgI2AgAgAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAygCACECIAMgAEEIaiIDNgIAIAAgAjYCDCAAQQA2AgggAkUNACACIAM2AgALIAELtwIBA38CQAJAIABBASAAGyICEDgiAA0AAkACQEGEICgCACIARQ0AIAAoAgAiA0EBcQ0AIAAgA0EBcjYCACADQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgAgAEEIakYEQCABIAAoAgw2AgALIAAoAggiAQRAIAEgACgCDDYCBAsgACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAAQQZ2IgFBAnRBsB5qKAIAaiAAQSBxIgBFaiABRSAAQQV2cWoFQbh/CwsdACAAKAKQ4gEQWiAAQQA2AqDiASAAQgA3A5DiAQu1AwEFfyMAQZACayIKJABBuH8hBgJAIAVFDQAgBCwAACIIQf8BcSEHAkAgCEF/TARAIAdBgn9qQQF2IgggBU8NAkFsIQYgB0GBf2oiBUGAAk8NAiAEQQFqIQdBACEGA0AgBiAFTwRAIAUhBiAIIQcMAwUgACAGaiAHIAZBAXZqIgQtAABBBHY6AAAgACAGQQFyaiAELQAAQQ9xOgAAIAZBAmohBgwBCwAACwALIAcgBU8NASAAIARBAWogByAKEFMiBhADDQELIAYhBEEAIQYgAUEAQTQQECEJQQAhBQNAIAQgBkcEQCAAIAZqIggtAAAiAUELSwRAQWwhBgwDBSAJIAFBAnRqIgEgASgCAEEBajYCACAGQQFqIQZBASAILQAAdEEBdSAFaiEFDAILAAsLQWwhBiAFRQ0AIAUQFEEBaiIBQQxLDQAgAyABNgIAQQFBASABdCAFayIDEBQiAXQgA0cNACAAIARqIAFBAWoiADoAACAJIABBAnRqIgAgACgCAEEBajYCACAJKAIEIgBBAkkgAEEBcXINACACIARBAWo2AgAgB0EBaiEGCyAKQZACaiQAIAYLxhEBDH8jAEHwAGsiBSQAQWwhCwJAIANBCkkNACACLwAAIQogAi8AAiEJIAIvAAQhByAFQQhqIAQQDgJAIAMgByAJIApqakEGaiIMSQ0AIAUtAAohCCAFQdgAaiACQQZqIgIgChAGIgsQAw0BIAVBQGsgAiAKaiICIAkQBiILEAMNASAFQShqIAIgCWoiAiAHEAYiCxADDQEgBUEQaiACIAdqIAMgDGsQBiILEAMNASAAIAFqIg9BfWohECAEQQRqIQZBASELIAAgAUEDakECdiIDaiIMIANqIgIgA2oiDiEDIAIhBCAMIQcDQCALIAMgEElxBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgCS0AAyELIAcgBiAFQUBrIAgQAkECdGoiCS8BADsAACAFQUBrIAktAAIQASAJLQADIQogBCAGIAVBKGogCBACQQJ0aiIJLwEAOwAAIAVBKGogCS0AAhABIAktAAMhCSADIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgDS0AAyENIAAgC2oiCyAGIAVB2ABqIAgQAkECdGoiAC8BADsAACAFQdgAaiAALQACEAEgAC0AAyEAIAcgCmoiCiAGIAVBQGsgCBACQQJ0aiIHLwEAOwAAIAVBQGsgBy0AAhABIActAAMhByAEIAlqIgkgBiAFQShqIAgQAkECdGoiBC8BADsAACAFQShqIAQtAAIQASAELQADIQQgAyANaiIDIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgACALaiEAIAcgCmohByAEIAlqIQQgAyANLQADaiEDIAVB2ABqEA0gBUFAaxANciAFQShqEA1yIAVBEGoQDXJFIQsMAQsLIAQgDksgByACS3INAEFsIQsgACAMSw0BIAxBfWohCQNAQQAgACAJSSAFQdgAahAEGwRAIAAgBiAFQdgAaiAIEAJBAnRqIgovAQA7AAAgBUHYAGogCi0AAhABIAAgCi0AA2oiACAGIAVB2ABqIAgQAkECdGoiCi8BADsAACAFQdgAaiAKLQACEAEgACAKLQADaiEADAEFIAxBfmohCgNAIAVB2ABqEAQgACAKS3JFBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgACAJLQADaiEADAELCwNAIAAgCk0EQCAAIAYgBUHYAGogCBACQQJ0aiIJLwEAOwAAIAVB2ABqIAktAAIQASAAIAktAANqIQAMAQsLAkAgACAMTw0AIAAgBiAFQdgAaiAIEAIiAEECdGoiDC0AADoAACAMLQADQQFGBEAgBUHYAGogDC0AAhABDAELIAUoAlxBH0sNACAFQdgAaiAGIABBAnRqLQACEAEgBSgCXEEhSQ0AIAVBIDYCXAsgAkF9aiEMA0BBACAHIAxJIAVBQGsQBBsEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiIAIAYgBUFAayAIEAJBAnRqIgcvAQA7AAAgBUFAayAHLQACEAEgACAHLQADaiEHDAEFIAJBfmohDANAIAVBQGsQBCAHIAxLckUEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwNAIAcgDE0EQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwJAIAcgAk8NACAHIAYgBUFAayAIEAIiAEECdGoiAi0AADoAACACLQADQQFGBEAgBUFAayACLQACEAEMAQsgBSgCREEfSw0AIAVBQGsgBiAAQQJ0ai0AAhABIAUoAkRBIUkNACAFQSA2AkQLIA5BfWohAgNAQQAgBCACSSAFQShqEAQbBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2oiACAGIAVBKGogCBACQQJ0aiIELwEAOwAAIAVBKGogBC0AAhABIAAgBC0AA2ohBAwBBSAOQX5qIQIDQCAFQShqEAQgBCACS3JFBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsDQCAEIAJNBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsCQCAEIA5PDQAgBCAGIAVBKGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBKGogAi0AAhABDAELIAUoAixBH0sNACAFQShqIAYgAEECdGotAAIQASAFKAIsQSFJDQAgBUEgNgIsCwNAQQAgAyAQSSAFQRBqEAQbBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2oiACAGIAVBEGogCBACQQJ0aiICLwEAOwAAIAVBEGogAi0AAhABIAAgAi0AA2ohAwwBBSAPQX5qIQIDQCAFQRBqEAQgAyACS3JFBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsDQCADIAJNBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsCQCADIA9PDQAgAyAGIAVBEGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBEGogAi0AAhABDAELIAUoAhRBH0sNACAFQRBqIAYgAEECdGotAAIQASAFKAIUQSFJDQAgBUEgNgIUCyABQWwgBUHYAGoQCiAFQUBrEApxIAVBKGoQCnEgBUEQahAKcRshCwwJCwAACwALAAALAAsAAAsACwAACwALQWwhCwsgBUHwAGokACALC7UEAQ5/IwBBEGsiBiQAIAZBBGogABAOQVQhBQJAIARB3AtJDQAgBi0ABCEHIANB8ARqQQBB7AAQECEIIAdBDEsNACADQdwJaiIJIAggBkEIaiAGQQxqIAEgAhAxIhAQA0UEQCAGKAIMIgQgB0sNASADQdwFaiEPIANBpAVqIREgAEEEaiESIANBqAVqIQEgBCEFA0AgBSICQX9qIQUgCCACQQJ0aigCAEUNAAsgAkEBaiEOQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgASALaiAKNgIAIAVBAWohBSAKIAxqIQoMAQsLIAEgCjYCAEEAIQUgBigCCCELA0AgBSALRkUEQCABIAUgCWotAAAiDEECdGoiDSANKAIAIg1BAWo2AgAgDyANQQF0aiINIAw6AAEgDSAFOgAAIAVBAWohBQwBCwtBACEBIANBADYCqAUgBEF/cyAHaiEJQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgAyALaiABNgIAIAwgBSAJanQgAWohASAFQQFqIQUMAQsLIAcgBEEBaiIBIAJrIgRrQQFqIQgDQEEBIQUgBCAIT0UEQANAIAUgDk9FBEAgBUECdCIJIAMgBEE0bGpqIAMgCWooAgAgBHY2AgAgBUEBaiEFDAELCyAEQQFqIQQMAQsLIBIgByAPIAogESADIAIgARBkIAZBAToABSAGIAc6AAYgACAGKAIENgIACyAQIQULIAZBEGokACAFC8ENAQt/IwBB8ABrIgUkAEFsIQkCQCADQQpJDQAgAi8AACEKIAIvAAIhDCACLwAEIQYgBUEIaiAEEA4CQCADIAYgCiAMampBBmoiDUkNACAFLQAKIQcgBUHYAGogAkEGaiICIAoQBiIJEAMNASAFQUBrIAIgCmoiAiAMEAYiCRADDQEgBUEoaiACIAxqIgIgBhAGIgkQAw0BIAVBEGogAiAGaiADIA1rEAYiCRADDQEgACABaiIOQX1qIQ8gBEEEaiEGQQEhCSAAIAFBA2pBAnYiAmoiCiACaiIMIAJqIg0hAyAMIQQgCiECA0AgCSADIA9JcQRAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAACAGIAVBQGsgBxACQQF0aiIILQAAIQsgBUFAayAILQABEAEgAiALOgAAIAYgBUEoaiAHEAJBAXRqIggtAAAhCyAFQShqIAgtAAEQASAEIAs6AAAgBiAFQRBqIAcQAkEBdGoiCC0AACELIAVBEGogCC0AARABIAMgCzoAACAGIAVB2ABqIAcQAkEBdGoiCC0AACELIAVB2ABqIAgtAAEQASAAIAs6AAEgBiAFQUBrIAcQAkEBdGoiCC0AACELIAVBQGsgCC0AARABIAIgCzoAASAGIAVBKGogBxACQQF0aiIILQAAIQsgBUEoaiAILQABEAEgBCALOgABIAYgBUEQaiAHEAJBAXRqIggtAAAhCyAFQRBqIAgtAAEQASADIAs6AAEgA0ECaiEDIARBAmohBCACQQJqIQIgAEECaiEAIAkgBUHYAGoQDUVxIAVBQGsQDUVxIAVBKGoQDUVxIAVBEGoQDUVxIQkMAQsLIAQgDUsgAiAMS3INAEFsIQkgACAKSw0BIApBfWohCQNAIAVB2ABqEAQgACAJT3JFBEAgBiAFQdgAaiAHEAJBAXRqIggtAAAhCyAFQdgAaiAILQABEAEgACALOgAAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAASAAQQJqIQAMAQsLA0AgBUHYAGoQBCAAIApPckUEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCwNAIAAgCkkEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCyAMQX1qIQADQCAFQUBrEAQgAiAAT3JFBEAgBiAFQUBrIAcQAkEBdGoiCi0AACEJIAVBQGsgCi0AARABIAIgCToAACAGIAVBQGsgBxACQQF0aiIKLQAAIQkgBUFAayAKLQABEAEgAiAJOgABIAJBAmohAgwBCwsDQCAFQUBrEAQgAiAMT3JFBEAgBiAFQUBrIAcQAkEBdGoiAC0AACEKIAVBQGsgAC0AARABIAIgCjoAACACQQFqIQIMAQsLA0AgAiAMSQRAIAYgBUFAayAHEAJBAXRqIgAtAAAhCiAFQUBrIAAtAAEQASACIAo6AAAgAkEBaiECDAELCyANQX1qIQADQCAFQShqEAQgBCAAT3JFBEAgBiAFQShqIAcQAkEBdGoiAi0AACEKIAVBKGogAi0AARABIAQgCjoAACAGIAVBKGogBxACQQF0aiICLQAAIQogBUEoaiACLQABEAEgBCAKOgABIARBAmohBAwBCwsDQCAFQShqEAQgBCANT3JFBEAgBiAFQShqIAcQAkEBdGoiAC0AACECIAVBKGogAC0AARABIAQgAjoAACAEQQFqIQQMAQsLA0AgBCANSQRAIAYgBUEoaiAHEAJBAXRqIgAtAAAhAiAFQShqIAAtAAEQASAEIAI6AAAgBEEBaiEEDAELCwNAIAVBEGoQBCADIA9PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIAYgBUEQaiAHEAJBAXRqIgAtAAAhAiAFQRBqIAAtAAEQASADIAI6AAEgA0ECaiEDDAELCwNAIAVBEGoQBCADIA5PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIANBAWohAwwBCwsDQCADIA5JBEAgBiAFQRBqIAcQAkEBdGoiAC0AACECIAVBEGogAC0AARABIAMgAjoAACADQQFqIQMMAQsLIAFBbCAFQdgAahAKIAVBQGsQCnEgBUEoahAKcSAFQRBqEApxGyEJDAELQWwhCQsgBUHwAGokACAJC8oCAQR/IwBBIGsiBSQAIAUgBBAOIAUtAAIhByAFQQhqIAIgAxAGIgIQA0UEQCAEQQRqIQIgACABaiIDQX1qIQQDQCAFQQhqEAQgACAET3JFBEAgAiAFQQhqIAcQAkEBdGoiBi0AACEIIAVBCGogBi0AARABIAAgCDoAACACIAVBCGogBxACQQF0aiIGLQAAIQggBUEIaiAGLQABEAEgACAIOgABIABBAmohAAwBCwsDQCAFQQhqEAQgACADT3JFBEAgAiAFQQhqIAcQAkEBdGoiBC0AACEGIAVBCGogBC0AARABIAAgBjoAACAAQQFqIQAMAQsLA0AgACADT0UEQCACIAVBCGogBxACQQF0aiIELQAAIQYgBUEIaiAELQABEAEgACAGOgAAIABBAWohAAwBCwsgAUFsIAVBCGoQChshAgsgBUEgaiQAIAILtgMBCX8jAEEQayIGJAAgBkEANgIMIAZBADYCCEFUIQQCQAJAIANBQGsiDCADIAZBCGogBkEMaiABIAIQMSICEAMNACAGQQRqIAAQDiAGKAIMIgcgBi0ABEEBaksNASAAQQRqIQogBkEAOgAFIAYgBzoABiAAIAYoAgQ2AgAgB0EBaiEJQQEhBANAIAQgCUkEQCADIARBAnRqIgEoAgAhACABIAU2AgAgACAEQX9qdCAFaiEFIARBAWohBAwBCwsgB0EBaiEHQQAhBSAGKAIIIQkDQCAFIAlGDQEgAyAFIAxqLQAAIgRBAnRqIgBBASAEdEEBdSILIAAoAgAiAWoiADYCACAHIARrIQhBACEEAkAgC0EDTQRAA0AgBCALRg0CIAogASAEakEBdGoiACAIOgABIAAgBToAACAEQQFqIQQMAAALAAsDQCABIABPDQEgCiABQQF0aiIEIAg6AAEgBCAFOgAAIAQgCDoAAyAEIAU6AAIgBCAIOgAFIAQgBToABCAEIAg6AAcgBCAFOgAGIAFBBGohAQwAAAsACyAFQQFqIQUMAAALAAsgAiEECyAGQRBqJAAgBAutAQECfwJAQYQgKAIAIABHIAAoAgBBAXYiAyABa0F4aiICQXhxQQhHcgR/IAIFIAMQJ0UNASACQQhqC0EQSQ0AIAAgACgCACICQQFxIAAgAWpBD2pBeHEiASAAa0EBdHI2AgAgASAANgIEIAEgASgCAEEBcSAAIAJBAXZqIAFrIgJBAXRyNgIAQYQgIAEgAkH/////B3FqQQRqQYQgKAIAIABGGyABNgIAIAEQJQsLygIBBX8CQAJAAkAgAEEIIABBCEsbZ0EfcyAAaUEBR2oiAUEESSAAIAF2cg0AIAFBAnRB/B5qKAIAIgJFDQADQCACQXhqIgMoAgBBAXZBeGoiBSAATwRAIAIgBUEIIAVBCEsbZ0Efc0ECdEGAH2oiASgCAEYEQCABIAIoAgQ2AgALDAMLIARBHksNASAEQQFqIQQgAigCBCICDQALC0EAIQMgAUEgTw0BA0AgAUECdEGAH2ooAgAiAkUEQCABQR5LIQIgAUEBaiEBIAJFDQEMAwsLIAIgAkF4aiIDKAIAQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgBGBEAgASACKAIENgIACwsgAigCACIBBEAgASACKAIENgIECyACKAIEIgEEQCABIAIoAgA2AgALIAMgAygCAEEBcjYCACADIAAQNwsgAwvhCwINfwV+IwBB8ABrIgckACAHIAAoAvDhASIINgJcIAEgAmohDSAIIAAoAoDiAWohDwJAAkAgBUUEQCABIQQMAQsgACgCxOABIRAgACgCwOABIREgACgCvOABIQ4gAEEBNgKM4QFBACEIA0AgCEEDRwRAIAcgCEECdCICaiAAIAJqQazQAWooAgA2AkQgCEEBaiEIDAELC0FsIQwgB0EYaiADIAQQBhADDQEgB0EsaiAHQRhqIAAoAgAQEyAHQTRqIAdBGGogACgCCBATIAdBPGogB0EYaiAAKAIEEBMgDUFgaiESIAEhBEEAIQwDQCAHKAIwIAcoAixBA3RqKQIAIhRCEIinQf8BcSEIIAcoAkAgBygCPEEDdGopAgAiFUIQiKdB/wFxIQsgBygCOCAHKAI0QQN0aikCACIWQiCIpyEJIBVCIIghFyAUQiCIpyECAkAgFkIQiKdB/wFxIgNBAk8EQAJAIAZFIANBGUlyRQRAIAkgB0EYaiADQSAgBygCHGsiCiAKIANLGyIKEAUgAyAKayIDdGohCSAHQRhqEAQaIANFDQEgB0EYaiADEAUgCWohCQwBCyAHQRhqIAMQBSAJaiEJIAdBGGoQBBoLIAcpAkQhGCAHIAk2AkQgByAYNwNIDAELAkAgA0UEQCACBEAgBygCRCEJDAMLIAcoAkghCQwBCwJAAkAgB0EYakEBEAUgCSACRWpqIgNBA0YEQCAHKAJEQX9qIgMgA0VqIQkMAQsgA0ECdCAHaigCRCIJIAlFaiEJIANBAUYNAQsgByAHKAJINgJMCwsgByAHKAJENgJIIAcgCTYCRAsgF6chAyALBEAgB0EYaiALEAUgA2ohAwsgCCALakEUTwRAIAdBGGoQBBoLIAgEQCAHQRhqIAgQBSACaiECCyAHQRhqEAQaIAcgB0EYaiAUQhiIp0H/AXEQCCAUp0H//wNxajYCLCAHIAdBGGogFUIYiKdB/wFxEAggFadB//8DcWo2AjwgB0EYahAEGiAHIAdBGGogFkIYiKdB/wFxEAggFqdB//8DcWo2AjQgByACNgJgIAcoAlwhCiAHIAk2AmggByADNgJkAkACQAJAIAQgAiADaiILaiASSw0AIAIgCmoiEyAPSw0AIA0gBGsgC0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdBKGogACgCBBATQQAhBCAHQeAAaiEMIAdB5ABqIQoDQCAHQShqEARBAksgBCAXTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEJIAcoAkggBygCREEDdGopAgAiH0IgiKchCCAeQiCIISAgHUIgiKchAgJAIB9CEIinQf8BcSIDQQJPBEACQCAGRSADQRlJckUEQCAIIAdBKGogA0EgIAcoAixrIg0gDSADSxsiDRAFIAMgDWsiA3RqIQggB0EoahAEGiADRQ0BIAdBKGogAxAFIAhqIQgMAQsgB0EoaiADEAUgCGohCCAHQShqEAQaCyAHKQJUISEgByAINgJUIAcgITcDWAwBCwJAIANFBEAgAgRAIAcoAlQhCAwDCyAHKAJYIQgMAQsCQAJAIAdBKGpBARAFIAggAkVqaiIDQQNGBEAgBygCVEF/aiIDIANFaiEIDAELIANBAnQgB2ooAlQiCCAIRWohCCADQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAg2AlQLICCnIQMgCQRAIAdBKGogCRAFIANqIQMLIAkgC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgAmohAgsgB0EoahAEGiAHIAcoAmggAmoiCSADajYCaCAKIAwgCCAJSxsoAgAhDSAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogB0EoaiAfQhiIp0H/AXEQCCEOIAdB8ABqIARBBHRqIgsgCSANaiAIazYCDCALIAg2AgggCyADNgIEIAsgAjYCACAHIA4gH6dB//8DcWo2AkQgBEEBaiEEDAELCyAEIBdIDQEgEkFgaiEYIAdB4ABqIRogB0HkAGohGyABIQMDQCAHQShqEARBAksgBCAFTnJFBEAgBygCQCAHKAI8QQN0aikCACIdQhCIp0H/AXEhCyAHKAJQIAcoAkxBA3RqKQIAIh5CEIinQf8BcSEIIAcoAkggBygCREEDdGopAgAiH0IgiKchCSAeQiCIISAgHUIgiKchDAJAIB9CEIinQf8BcSICQQJPBEACQCAGRSACQRlJckUEQCAJIAdBKGogAkEgIAcoAixrIgogCiACSxsiChAFIAIgCmsiAnRqIQkgB0EoahAEGiACRQ0BIAdBKGogAhAFIAlqIQkMAQsgB0EoaiACEAUgCWohCSAHQShqEAQaCyAHKQJUISEgByAJNgJUIAcgITcDWAwBCwJAIAJFBEAgDARAIAcoAlQhCQwDCyAHKAJYIQkMAQsCQAJAIAdBKGpBARAFIAkgDEVqaiICQQNGBEAgBygCVEF/aiICIAJFaiEJDAELIAJBAnQgB2ooAlQiCSAJRWohCSACQQFGDQELIAcgBygCWDYCXAsLIAcgBygCVDYCWCAHIAk2AlQLICCnIRQgCARAIAdBKGogCBAFIBRqIRQLIAggC2pBFE8EQCAHQShqEAQaCyALBEAgB0EoaiALEAUgDGohDAsgB0EoahAEGiAHIAcoAmggDGoiGSAUajYCaCAbIBogCSAZSxsoAgAhHCAHIAdBKGogHUIYiKdB/wFxEAggHadB//8DcWo2AjwgByAHQShqIB5CGIinQf8BcRAIIB6nQf//A3FqNgJMIAdBKGoQBBogByAHQShqIB9CGIinQf8BcRAIIB+nQf//A3FqNgJEIAcgB0HwAGogBEEDcUEEdGoiDSkDCCIdNwPIASAHIA0pAwAiHjcDwAECQAJAAkAgBygCvAEiDiAepyICaiIWIBNLDQAgAyAHKALEASIKIAJqIgtqIBhLDQAgEiADayALQSBqTw0BCyAHIAcpA8gBNwMQIAcgBykDwAE3AwggAyASIAdBCGogB0G8AWogEyAPIBUgERAeIQsMAQsgAiADaiEIIAMgDhAHIAJBEU8EQCADQRBqIQIDQCACIA5BEGoiDhAHIAJBEGoiAiAISQ0ACwsgCCAdpyIOayECIAcgFjYCvAEgDiAIIA9rSwRAIA4gCCAVa0sEQEFsIQsMAgsgESACIA9rIgJqIhYgCmogEU0EQCAIIBYgChAPGgwCCyAIIBZBACACaxAPIQggByACIApqIgo2AsQBIAggAmshCCAPIQILIA5BEE8EQCAIIApqIQoDQCAIIAIQByACQRBqIQIgCEEQaiIIIApJDQALDAELAkAgDkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgDkECdCIKQcAeaigCAGoiAhAXIAIgCkHgHmooAgBrIQIgBygCxAEhCgwBCyAIIAIQDAsgCkEJSQ0AIAggCmohCiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAKSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAKSQ0ACwsgCxADBEAgCyEQDAQFIA0gDDYCACANIBkgHGogCWs2AgwgDSAJNgIIIA0gFDYCBCAEQQFqIQQgAyALaiEDDAILAAsLIAQgBUgNASAEIBdrIQtBACEEA0AgCyAFSARAIAcgB0HwAGogC0EDcUEEdGoiAikDCCIdNwPIASAHIAIpAwAiHjcDwAECQAJAAkAgBygCvAEiDCAepyICaiIKIBNLDQAgAyAHKALEASIJIAJqIhBqIBhLDQAgEiADayAQQSBqTw0BCyAHIAcpA8gBNwMgIAcgBykDwAE3AxggAyASIAdBGGogB0G8AWogEyAPIBUgERAeIRAMAQsgAiADaiEIIAMgDBAHIAJBEU8EQCADQRBqIQIDQCACIAxBEGoiDBAHIAJBEGoiAiAISQ0ACwsgCCAdpyIGayECIAcgCjYCvAEgBiAIIA9rSwRAIAYgCCAVa0sEQEFsIRAMAgsgESACIA9rIgJqIgwgCWogEU0EQCAIIAwgCRAPGgwCCyAIIAxBACACaxAPIQggByACIAlqIgk2AsQBIAggAmshCCAPIQILIAZBEE8EQCAIIAlqIQYDQCAIIAIQByACQRBqIQIgCEEQaiIIIAZJDQALDAELAkAgBkEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgBkECdCIGQcAeaigCAGoiAhAXIAIgBkHgHmooAgBrIQIgBygCxAEhCQwBCyAIIAIQDAsgCUEJSQ0AIAggCWohBiAIQQhqIgggAkEIaiICa0EPTARAA0AgCCACEAwgAkEIaiECIAhBCGoiCCAGSQ0ADAIACwALA0AgCCACEAcgAkEQaiECIAhBEGoiCCAGSQ0ACwsgEBADDQMgC0EBaiELIAMgEGohAwwBCwsDQCAEQQNHBEAgACAEQQJ0IgJqQazQAWogAiAHaigCVDYCACAEQQFqIQQMAQsLIAcoArwBIQgLQbp/IRAgEyAIayIAIBIgA2tLDQAgAwR/IAMgCCAAEAsgAGoFQQALIAFrIRALIAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCfCIGQSNLDQAgAygCeCIHQQpPDQAgACADIAZBwBBB0BEgBxAYIAQgBWoiBEEMaiIFIAJLDQAgAiAFayEFQQAhAgNAIAJBA0cEQCAEKAAAIgZBf2ogBU8NAiAAIAJBAnRqQZzQAWogBjYCACACQQFqIQIgBEEEaiEEDAELCyAEIAFrIQgLIANBgAFqJAAgCAtGAQN/IABBCGohAyAAKAIEIQJBACEAA0AgACACdkUEQCABIAMgAEEDdGotAAJBFktqIQEgAEEBaiEADAELCyABQQggAmt0C4YDAQV/Qbh/IQcCQCADRQ0AIAItAAAiBEUEQCABQQA2AgBBAUG4fyADQQFGGw8LAn8gAkEBaiIFIARBGHRBGHUiBkF/Sg0AGiAGQX9GBEAgA0EDSA0CIAUvAABBgP4BaiEEIAJBA2oMAQsgA0ECSA0BIAItAAEgBEEIdHJBgIB+aiEEIAJBAmoLIQUgASAENgIAIAVBAWoiASACIANqIgNLDQBBbCEHIABBEGogACAFLQAAIgVBBnZBI0EJIAEgAyABa0HAEEHQEUHwEiAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBmCBqIABBCGogBUEEdkEDcUEfQQggASABIAZqIAgbIgEgAyABa0GAC0GADEGAFyAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBoDBqIABBBGogBUECdkEDcUE0QQkgASABIAZqIAgbIgEgAyABa0GADUHgDkGQGSAAKAKM4QEgACgCnOIBIAQQHyIAEAMNACAAIAFqIAJrIQcLIAcLrQMBCn8jAEGABGsiCCQAAn9BUiACQf8BSw0AGkFUIANBDEsNABogAkEBaiELIABBBGohCUGAgAQgA0F/anRBEHUhCkEAIQJBASEEQQEgA3QiB0F/aiIMIQUDQCACIAtGRQRAAkAgASACQQF0Ig1qLwEAIgZB//8DRgRAIAkgBUECdGogAjoAAiAFQX9qIQVBASEGDAELIARBACAKIAZBEHRBEHVKGyEECyAIIA1qIAY7AQAgAkEBaiECDAELCyAAIAQ7AQIgACADOwEAIAdBA3YgB0EBdmpBA2ohBkEAIQRBACECA0AgBCALRkUEQCABIARBAXRqLgEAIQpBACEAA0AgACAKTkUEQCAJIAJBAnRqIAQ6AAIDQCACIAZqIAxxIgIgBUsNAAsgAEEBaiEADAELCyAEQQFqIQQMAQsLQX8gAg0AGkEAIQIDfyACIAdGBH9BAAUgCCAJIAJBAnRqIgAtAAJBAXRqIgEgAS8BACIBQQFqOwEAIAAgAyABEBRrIgU6AAMgACABIAVB/wFxdCAHazsBACACQQFqIQIMAQsLCyEFIAhBgARqJAAgBQvjBgEIf0FsIQcCQCACQQNJDQACQAJAAkACQCABLQAAIgNBA3EiCUEBaw4DAwEAAgsgACgCiOEBDQBBYg8LIAJBBUkNAkEDIQYgASgAACEFAn8CQAJAIANBAnZBA3EiCEF+aiIEQQFNBEAgBEEBaw0BDAILIAVBDnZB/wdxIQQgBUEEdkH/B3EhAyAIRQwCCyAFQRJ2IQRBBCEGIAVBBHZB//8AcSEDQQAMAQsgBUEEdkH//w9xIgNBgIAISw0DIAEtAARBCnQgBUEWdnIhBEEFIQZBAAshBSAEIAZqIgogAksNAgJAIANBgQZJDQAgACgCnOIBRQ0AQQAhAgNAIAJBg4ABSw0BIAJBQGshAgwAAAsACwJ/IAlBA0YEQCABIAZqIQEgAEHw4gFqIQIgACgCDCEGIAUEQCACIAMgASAEIAYQXwwCCyACIAMgASAEIAYQXQwBCyAAQbjQAWohAiABIAZqIQEgAEHw4gFqIQYgAEGo0ABqIQggBQRAIAggBiADIAEgBCACEF4MAQsgCCAGIAMgASAEIAIQXAsQAw0CIAAgAzYCgOIBIABBATYCiOEBIAAgAEHw4gFqNgLw4QEgCUECRgRAIAAgAEGo0ABqNgIMCyAAIANqIgBBiOMBakIANwAAIABBgOMBakIANwAAIABB+OIBakIANwAAIABB8OIBakIANwAAIAoPCwJ/AkACQAJAIANBAnZBA3FBf2oiBEECSw0AIARBAWsOAgACAQtBASEEIANBA3YMAgtBAiEEIAEvAABBBHYMAQtBAyEEIAEQIUEEdgsiAyAEaiIFQSBqIAJLBEAgBSACSw0CIABB8OIBaiABIARqIAMQCyEBIAAgAzYCgOIBIAAgATYC8OEBIAEgA2oiAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAIAUPCyAAIAM2AoDiASAAIAEgBGo2AvDhASAFDwsCfwJAAkACQCADQQJ2QQNxQX9qIgRBAksNACAEQQFrDgIAAgELQQEhByADQQN2DAILQQIhByABLwAAQQR2DAELIAJBBEkgARAhIgJBj4CAAUtyDQFBAyEHIAJBBHYLIQIgAEHw4gFqIAEgB2otAAAgAkEgahAQIQEgACACNgKA4gEgACABNgLw4QEgB0EBaiEHCyAHC0sAIABC+erQ0OfJoeThADcDICAAQgA3AxggAELP1tO+0ser2UI3AxAgAELW64Lu6v2J9eAANwMIIABCADcDACAAQShqQQBBKBAQGgviAgICfwV+IABBKGoiASAAKAJIaiECAn4gACkDACIDQiBaBEAgACkDECIEQgeJIAApAwgiBUIBiXwgACkDGCIGQgyJfCAAKQMgIgdCEol8IAUQGSAEEBkgBhAZIAcQGQwBCyAAKQMYQsXP2bLx5brqJ3wLIAN8IQMDQCABQQhqIgAgAk0EQEIAIAEpAAAQCSADhUIbiUKHla+vmLbem55/fkLj3MqV/M7y9YV/fCEDIAAhAQwBCwsCQCABQQRqIgAgAksEQCABIQAMAQsgASgAAK1Ch5Wvr5i23puef34gA4VCF4lCz9bTvtLHq9lCfkL5893xmfaZqxZ8IQMLA0AgACACSQRAIAAxAABCxc/ZsvHluuonfiADhUILiUKHla+vmLbem55/fiEDIABBAWohAAwBCwsgA0IhiCADhULP1tO+0ser2UJ+IgNCHYggA4VC+fPd8Zn2masWfiIDQiCIIAOFC+8CAgJ/BH4gACAAKQMAIAKtfDcDAAJAAkAgACgCSCIDIAJqIgRBH00EQCABRQ0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACIAMgBBBLEE8hACAEEFYgAAs/AQF/AkACQAJAIAAoAqDiAUEBaiIBQQJLDQAgAUEBaw4CAAECCyAAEDBBAA8LIABBADYCoOIBCyAAKAKU4gELvAMCB38BfiMAQRBrIgkkAEG4fyEGAkAgBCgCACIIQQVBCSAAKALs4QEiBRtJDQAgAygCACIHQQFBBSAFGyAFEC8iBRADBEAgBSEGDAELIAggBUEDakkNACAAIAcgBRBJIgYQAw0AIAEgAmohCiAAQZDhAWohCyAIIAVrIQIgBSAHaiEHIAEhBQNAIAcgAiAJECwiBhADDQEgAkF9aiICIAZJBEBBuH8hBgwCCyAJKAIAIghBAksEQEFsIQYMAgsgB0EDaiEHAn8CQAJAAkAgCEEBaw4CAgABCyAAIAUgCiAFayAHIAYQSAwCCyAFIAogBWsgByAGEEcMAQsgBSAKIAVrIActAAAgCSgCCBBGCyIIEAMEQCAIIQYMAgsgACgC8OABBEAgCyAFIAgQRQsgAiAGayECIAYgB2ohByAFIAhqIQUgCSgCBEUNAAsgACkD0OABIgxCf1IEQEFsIQYgDCAFIAFrrFINAQsgACgC8OABBEBBaiEGIAJBBEkNASALEEQhDCAHKAAAIAynRw0BIAdBBGohByACQXxqIQILIAMgBzYCACAEIAI2AgAgBSABayEGCyAJQRBqJAAgBgsuACAAECsCf0EAQQAQAw0AGiABRSACRXJFBEBBYiAAIAEgAhA9EAMNARoLQQALCzcAIAEEQCAAIAAoAsTgASABKAIEIAEoAghqRzYCnOIBCyAAECtBABADIAFFckUEQCAAIAEQWwsL0QIBB38jAEEQayIGJAAgBiAENgIIIAYgAzYCDCAFBEAgBSgCBCEKIAUoAgghCQsgASEIAkACQANAIAAoAuzhARAWIQsCQANAIAQgC0kNASADKAAAQXBxQdDUtMIBRgRAIAMgBBAiIgcQAw0EIAQgB2shBCADIAdqIQMMAQsLIAYgAzYCDCAGIAQ2AggCQCAFBEAgACAFEE5BACEHQQAQA0UNAQwFCyAAIAogCRBNIgcQAw0ECyAAIAgQUCAMQQFHQQAgACAIIAIgBkEMaiAGQQhqEEwiByIDa0EAIAMQAxtBCkdyRQRAQbh/IQcMBAsgBxADDQMgAiAHayECIAcgCGohCEEBIQwgBigCDCEDIAYoAgghBAwBCwsgBiADNgIMIAYgBDYCCEG4fyEHIAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEEdCAAbiECCyAAQQh2IgEgAkEYbCIAQYwIaigCAGwgAEGICGooAgBqIgJBA3YgAmogAEGACGooAgAgAEGECGooAgAgAWxqSQs3ACAAIAMgBCAFQYAQEDMiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQMgVBuH8LC78DAQN/IwBBIGsiBSQAIAVBCGogAiADEAYiAhADRQRAIAAgAWoiB0F9aiEGIAUgBBAOIARBBGohAiAFLQACIQMDQEEAIAAgBkkgBUEIahAEGwRAIAAgAiAFQQhqIAMQAkECdGoiBC8BADsAACAFQQhqIAQtAAIQASAAIAQtAANqIgQgAiAFQQhqIAMQAkECdGoiAC8BADsAACAFQQhqIAAtAAIQASAEIAAtAANqIQAMAQUgB0F+aiEEA0AgBUEIahAEIAAgBEtyRQRAIAAgAiAFQQhqIAMQAkECdGoiBi8BADsAACAFQQhqIAYtAAIQASAAIAYtAANqIQAMAQsLA0AgACAES0UEQCAAIAIgBUEIaiADEAJBAnRqIgYvAQA7AAAgBUEIaiAGLQACEAEgACAGLQADaiEADAELCwJAIAAgB08NACAAIAIgBUEIaiADEAIiA0ECdGoiAC0AADoAACAALQADQQFGBEAgBUEIaiAALQACEAEMAQsgBSgCDEEfSw0AIAVBCGogAiADQQJ0ai0AAhABIAUoAgxBIUkNACAFQSA2AgwLIAFBbCAFQQhqEAobIQILCwsgBUEgaiQAIAILkgIBBH8jAEFAaiIJJAAgCSADQTQQCyEDAkAgBEECSA0AIAMgBEECdGooAgAhCSADQTxqIAgQIyADQQE6AD8gAyACOgA+QQAhBCADKAI8IQoDQCAEIAlGDQEgACAEQQJ0aiAKNgEAIARBAWohBAwAAAsAC0EAIQkDQCAGIAlGRQRAIAMgBSAJQQF0aiIKLQABIgtBAnRqIgwoAgAhBCADQTxqIAotAABBCHQgCGpB//8DcRAjIANBAjoAPyADIAcgC2siCiACajoAPiAEQQEgASAKa3RqIQogAygCPCELA0AgACAEQQJ0aiALNgEAIARBAWoiBCAKSQ0ACyAMIAo2AgAgCUEBaiEJDAELCyADQUBrJAALowIBCX8jAEHQAGsiCSQAIAlBEGogBUE0EAsaIAcgBmshDyAHIAFrIRADQAJAIAMgCkcEQEEBIAEgByACIApBAXRqIgYtAAEiDGsiCGsiC3QhDSAGLQAAIQ4gCUEQaiAMQQJ0aiIMKAIAIQYgCyAPTwRAIAAgBkECdGogCyAIIAUgCEE0bGogCCAQaiIIQQEgCEEBShsiCCACIAQgCEECdGooAgAiCEEBdGogAyAIayAHIA4QYyAGIA1qIQgMAgsgCUEMaiAOECMgCUEBOgAPIAkgCDoADiAGIA1qIQggCSgCDCELA0AgBiAITw0CIAAgBkECdGogCzYBACAGQQFqIQYMAAALAAsgCUHQAGokAA8LIAwgCDYCACAKQQFqIQoMAAALAAs0ACAAIAMgBCAFEDYiBRADBEAgBQ8LIAUgBEkEfyABIAIgAyAFaiAEIAVrIAAQNAVBuH8LCyMAIAA/AEEQdGtB//8DakEQdkAAQX9GBEBBAA8LQQAQAEEBCzsBAX8gAgRAA0AgACABIAJBgCAgAkGAIEkbIgMQCyEAIAFBgCBqIQEgAEGAIGohACACIANrIgINAAsLCwYAIAAQAwsLqBUJAEGICAsNAQAAAAEAAAACAAAAAgBBoAgLswYBAAAAAQAAAAIAAAACAAAAJgAAAIIAAAAhBQAASgAAAGcIAAAmAAAAwAEAAIAAAABJBQAASgAAAL4IAAApAAAALAIAAIAAAABJBQAASgAAAL4IAAAvAAAAygIAAIAAAACKBQAASgAAAIQJAAA1AAAAcwMAAIAAAACdBQAASgAAAKAJAAA9AAAAgQMAAIAAAADrBQAASwAAAD4KAABEAAAAngMAAIAAAABNBgAASwAAAKoKAABLAAAAswMAAIAAAADBBgAATQAAAB8NAABNAAAAUwQAAIAAAAAjCAAAUQAAAKYPAABUAAAAmQQAAIAAAABLCQAAVwAAALESAABYAAAA2gQAAIAAAABvCQAAXQAAACMUAABUAAAARQUAAIAAAABUCgAAagAAAIwUAABqAAAArwUAAIAAAAB2CQAAfAAAAE4QAAB8AAAA0gIAAIAAAABjBwAAkQAAAJAHAACSAAAAAAAAAAEAAAABAAAABQAAAA0AAAAdAAAAPQAAAH0AAAD9AAAA/QEAAP0DAAD9BwAA/Q8AAP0fAAD9PwAA/X8AAP3/AAD9/wEA/f8DAP3/BwD9/w8A/f8fAP3/PwD9/38A/f//AP3//wH9//8D/f//B/3//w/9//8f/f//P/3//38AAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcAAAAYAAAAGQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAAMAAAAEAAAABQAAAAYAAAAHAAAACAAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAFAAAABUAAAAWAAAAFwAAABgAAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACUAAAAnAAAAKQAAACsAAAAvAAAAMwAAADsAAABDAAAAUwAAAGMAAACDAAAAAwEAAAMCAAADBAAAAwgAAAMQAAADIAAAA0AAAAOAAAADAAEAQeAPC1EBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAEAAAABQAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAABAAQcQQC4sBAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAABIAAAAUAAAAFgAAABgAAAAcAAAAIAAAACgAAAAwAAAAQAAAAIAAAAAAAQAAAAIAAAAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAAAAQBBkBIL5gQBAAAAAQAAAAEAAAABAAAAAgAAAAIAAAADAAAAAwAAAAQAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAEAAAAAEAAAAEAAAACAAAAAAAAAABAAEBBgAAAAAAAAQAAAAAEAAABAAAAAAgAAAFAQAAAAAAAAUDAAAAAAAABQQAAAAAAAAFBgAAAAAAAAUHAAAAAAAABQkAAAAAAAAFCgAAAAAAAAUMAAAAAAAABg4AAAAAAAEFEAAAAAAAAQUUAAAAAAABBRYAAAAAAAIFHAAAAAAAAwUgAAAAAAAEBTAAAAAgAAYFQAAAAAAABwWAAAAAAAAIBgABAAAAAAoGAAQAAAAADAYAEAAAIAAABAAAAAAAAAAEAQAAAAAAAAUCAAAAIAAABQQAAAAAAAAFBQAAACAAAAUHAAAAAAAABQgAAAAgAAAFCgAAAAAAAAULAAAAAAAABg0AAAAgAAEFEAAAAAAAAQUSAAAAIAABBRYAAAAAAAIFGAAAACAAAwUgAAAAAAADBSgAAAAAAAYEQAAAABAABgRAAAAAIAAHBYAAAAAAAAkGAAIAAAAACwYACAAAMAAABAAAAAAQAAAEAQAAACAAAAUCAAAAIAAABQMAAAAgAAAFBQAAACAAAAUGAAAAIAAABQgAAAAgAAAFCQAAACAAAAULAAAAIAAABQwAAAAAAAAGDwAAACAAAQUSAAAAIAABBRQAAAAgAAIFGAAAACAAAgUcAAAAIAADBSgAAAAgAAQFMAAAAAAAEAYAAAEAAAAPBgCAAAAAAA4GAEAAAAAADQYAIABBgBcLhwIBAAEBBQAAAAAAAAUAAAAAAAAGBD0AAAAAAAkF/QEAAAAADwX9fwAAAAAVBf3/HwAAAAMFBQAAAAAABwR9AAAAAAAMBf0PAAAAABIF/f8DAAAAFwX9/38AAAAFBR0AAAAAAAgE/QAAAAAADgX9PwAAAAAUBf3/DwAAAAIFAQAAABAABwR9AAAAAAALBf0HAAAAABEF/f8BAAAAFgX9/z8AAAAEBQ0AAAAQAAgE/QAAAAAADQX9HwAAAAATBf3/BwAAAAEFAQAAABAABgQ9AAAAAAAKBf0DAAAAABAF/f8AAAAAHAX9//8PAAAbBf3//wcAABoF/f//AwAAGQX9//8BAAAYBf3//wBBkBkLhgQBAAEBBgAAAAAAAAYDAAAAAAAABAQAAAAgAAAFBQAAAAAAAAUGAAAAAAAABQgAAAAAAAAFCQAAAAAAAAULAAAAAAAABg0AAAAAAAAGEAAAAAAAAAYTAAAAAAAABhYAAAAAAAAGGQAAAAAAAAYcAAAAAAAABh8AAAAAAAAGIgAAAAAAAQYlAAAAAAABBikAAAAAAAIGLwAAAAAAAwY7AAAAAAAEBlMAAAAAAAcGgwAAAAAACQYDAgAAEAAABAQAAAAAAAAEBQAAACAAAAUGAAAAAAAABQcAAAAgAAAFCQAAAAAAAAUKAAAAAAAABgwAAAAAAAAGDwAAAAAAAAYSAAAAAAAABhUAAAAAAAAGGAAAAAAAAAYbAAAAAAAABh4AAAAAAAAGIQAAAAAAAQYjAAAAAAABBicAAAAAAAIGKwAAAAAAAwYzAAAAAAAEBkMAAAAAAAUGYwAAAAAACAYDAQAAIAAABAQAAAAwAAAEBAAAABAAAAQFAAAAIAAABQcAAAAgAAAFCAAAACAAAAUKAAAAIAAABQsAAAAAAAAGDgAAAAAAAAYRAAAAAAAABhQAAAAAAAAGFwAAAAAAAAYaAAAAAAAABh0AAAAAAAAGIAAAAAAAEAYDAAEAAAAPBgOAAAAAAA4GA0AAAAAADQYDIAAAAAAMBgMQAAAAAAsGAwgAAAAACgYDBABBpB0L2QEBAAAAAwAAAAcAAAAPAAAAHwAAAD8AAAB/AAAA/wAAAP8BAAD/AwAA/wcAAP8PAAD/HwAA/z8AAP9/AAD//wAA//8BAP//AwD//wcA//8PAP//HwD//z8A//9/AP///wD///8B////A////wf///8P////H////z////9/AAAAAAEAAAACAAAABAAAAAAAAAACAAAABAAAAAgAAAAAAAAAAQAAAAIAAAABAAAABAAAAAQAAAAEAAAABAAAAAgAAAAIAAAACAAAAAcAAAAIAAAACQAAAAoAAAALAEGgIAsDwBBQ";n(11464);var H=Object.defineProperty,G=(e,t,n)=>(((e,t,n)=>{t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);r.Loader,r.Mesh,r.BufferGeometry,r.Object3D,r.Mesh,r.BufferGeometry,r.BufferGeometry,r.BufferGeometry,r.BufferGeometry,r.BufferGeometry,r.Object3D,r.Object3D,r.Object3D;let Q,V,W,X;function q(e,t=1/0,n=null){V||(V=new r.PlaneGeometry(2,2,1,1)),W||(W=new r.ShaderMaterial({uniforms:{blitTexture:new r.Uniform(e)},vertexShader:"\n varying vec2 vUv;\n void main(){\n vUv = uv;\n gl_Position = vec4(position.xy * 1.0,0.,.999999);\n }\n ",fragmentShader:"\n uniform sampler2D blitTexture; \n varying vec2 vUv;\n\n void main(){ \n gl_FragColor = vec4(vUv.xy, 0, 1);\n \n #ifdef IS_SRGB\n gl_FragColor = LinearTosRGB( texture2D( blitTexture, vUv) );\n #else\n gl_FragColor = texture2D( blitTexture, vUv);\n #endif\n }\n "})),W.uniforms.blitTexture.value=e,W.defines.IS_SRGB="colorSpace"in e?"srgb"===e.colorSpace:3001===e.encoding,W.needsUpdate=!0,X||(X=new r.Mesh(V,W),X.frustrumCulled=!1);const i=new r.PerspectiveCamera,o=new r.Scene;o.add(X),n||(n=Q=new r.WebGLRenderer({antialias:!1})),n.setSize(Math.min(e.image.width,t),Math.min(e.image.height,t)),n.clear(),n.render(o,i);const a=new r.Texture(n.domElement);return a.minFilter=e.minFilter,a.magFilter=e.magFilter,a.wrapS=e.wrapS,a.wrapT=e.wrapT,a.name=e.name,Q&&(Q.dispose(),Q=null),a}Symbol.toStringTag;const Y={POSITION:["byte","byte normalized","unsigned byte","unsigned byte normalized","short","short normalized","unsigned short","unsigned short normalized"],NORMAL:["byte normalized","short normalized"],TANGENT:["byte normalized","short normalized"],TEXCOORD:["byte","byte normalized","unsigned byte","short","short normalized","unsigned short"]};class K{constructor(){this.pluginCallbacks=[],this.register(function(e){return new he(e)}),this.register(function(e){return new fe(e)}),this.register(function(e){return new ge(e)}),this.register(function(e){return new ve(e)}),this.register(function(e){return new Ae(e)}),this.register(function(e){return new ye(e)}),this.register(function(e){return new pe(e)}),this.register(function(e){return new me(e)}),this.register(function(e){return new be(e)}),this.register(function(e){return new xe(e)}),this.register(function(e){return new Se(e)})}register(e){return-1===this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.push(e),this}unregister(e){return-1!==this.pluginCallbacks.indexOf(e)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,n,r){const i=new de,o=[];for(let e=0,t=this.pluginCallbacks.length;ee.toBlob(n,t));let n;return"image/jpeg"===t?n=.92:"image/webp"===t&&(n=.8),e.convertToBlob({type:t,quality:n})}class de{constructor(){this.plugins=[],this.options={},this.pending=[],this.buffers=[],this.byteOffset=0,this.buffers=[],this.nodeMap=new Map,this.skins=[],this.extensionsUsed={},this.extensionsRequired={},this.uids=new Map,this.uid=0,this.json={asset:{version:"2.0",generator:"THREE.GLTFExporter"}},this.cache={meshes:new Map,attributes:new Map,attributesNormalized:new Map,materials:new Map,textures:new Map,images:new Map}}setPlugins(e){this.plugins=e}async write(e,t,n={}){this.options=Object.assign({binary:!1,trs:!1,onlyVisible:!0,maxTextureSize:1/0,animations:[],includeCustomExtensions:!1},n),this.options.animations.length>0&&(this.options.trs=!0),this.processInput(e),await Promise.all(this.pending);const r=this,i=r.buffers,o=r.json;n=r.options;const a=r.extensionsUsed,s=r.extensionsRequired,l=new Blob(i,{type:"application/octet-stream"}),c=Object.keys(a),u=Object.keys(s);if(c.length>0&&(o.extensionsUsed=c),u.length>0&&(o.extensionsRequired=u),o.buffers&&o.buffers.length>0&&(o.buffers[0].byteLength=l.size),!0===n.binary){const e=new FileReader;e.readAsArrayBuffer(l),e.onloadend=function(){const n=le(e.result),r=new DataView(new ArrayBuffer(8));r.setUint32(0,n.byteLength,!0),r.setUint32(4,5130562,!0);const i=le((a=JSON.stringify(o),(new TextEncoder).encode(a).buffer),32);var a;const s=new DataView(new ArrayBuffer(8));s.setUint32(0,i.byteLength,!0),s.setUint32(4,1313821514,!0);const l=new ArrayBuffer(12),c=new DataView(l);c.setUint32(0,1179937895,!0),c.setUint32(4,2,!0);const u=12+s.byteLength+i.byteLength+r.byteLength+n.byteLength;c.setUint32(8,u,!0);const d=new Blob([l,s,i,r,n],{type:"application/octet-stream"}),h=new FileReader;h.readAsArrayBuffer(d),h.onloadend=function(){t(h.result)}}}else if(o.buffers&&o.buffers.length>0){const e=new FileReader;e.readAsDataURL(l),e.onloadend=function(){const n=e.result;o.buffers[0].uri=n,t(o)}}else t(o)}serializeUserData(e,t){if(0===Object.keys(e.userData).length)return;const n=this.options,r=this.extensionsUsed;try{const i=JSON.parse(JSON.stringify(e.userData));if(n.includeCustomExtensions&&i.gltfExtensions){void 0===t.extensions&&(t.extensions={});for(const e in i.gltfExtensions)t.extensions[e]=i.gltfExtensions[e],r[e]=!0;delete i.gltfExtensions}Object.keys(i).length>0&&(t.extras=i)}catch(t){console.warn("THREE.GLTFExporter: userData of '"+e.name+"' won't be serialized because of JSON.stringify error - "+t.message)}}getUID(e,t=!1){if(!1===this.uids.has(e)){const t=new Map;t.set(!0,this.uid++),t.set(!1,this.uid++),this.uids.set(e,t)}return this.uids.get(e).get(t)}isNormalizedNormalAttribute(e){if(this.cache.attributesNormalized.has(e))return!1;const t=new r.Vector3;for(let n=0,r=e.count;n5e-4)return!1;return!0}createNormalizedNormalAttribute(e){const t=this.cache;if(t.attributesNormalized.has(e))return t.attributesNormalized.get(e);const n=e.clone(),i=new r.Vector3;for(let e=0,t=n.count;e4?i=e.array[o*e.itemSize+n]:(0===n?i=e.getX(o):1===n?i=e.getY(o):2===n?i=e.getZ(o):3===n&&(i=e.getW(o)),!0===e.normalized&&(i=r.MathUtils.normalize(i,e.array))),5126===t?c.setFloat32(u,i,!0):5124===t?c.setInt32(u,i,!0):5125===t?c.setUint32(u,i,!0):t===ee?c.setInt16(u,i,!0):t===te?c.setUint16(u,i,!0):t===J?c.setInt8(u,i):t===Z&&c.setUint8(u,i),u+=s}const d={buffer:this.processBuffer(c.buffer),byteOffset:this.byteOffset,byteLength:l};return void 0!==o&&(d.target=o),34962===o&&(d.byteStride=e.itemSize*s),this.byteOffset+=l,a.bufferViews.push(d),{id:a.bufferViews.length-1,byteLength:0}}processBufferViewImage(e){const t=this,n=t.json;return n.bufferViews||(n.bufferViews=[]),new Promise(function(r){const i=new FileReader;i.readAsArrayBuffer(e),i.onloadend=function(){const e=le(i.result),o={buffer:t.processBuffer(e),byteOffset:t.byteOffset,byteLength:e.byteLength};t.byteOffset+=e.byteLength,r(n.bufferViews.push(o)-1)}})}processAccessor(e,t,n,i){const o=this.json;let a;if(e.array.constructor===Float32Array)a=5126;else if(e.array.constructor===Int32Array)a=5124;else if(e.array.constructor===Uint32Array)a=5125;else if(e.array.constructor===Int16Array)a=ee;else if(e.array.constructor===Uint16Array)a=te;else if(e.array.constructor===Int8Array)a=J;else{if(e.array.constructor!==Uint8Array)throw new Error("THREE.GLTFExporter: Unsupported bufferAttribute component type: "+e.array.constructor.name);a=Z}if(void 0===n&&(n=0),void 0===i&&(i=e.count),0===i)return null;const s=function(e,t,n){const i={min:new Array(e.itemSize).fill(Number.POSITIVE_INFINITY),max:new Array(e.itemSize).fill(Number.NEGATIVE_INFINITY)};for(let o=t;o4?n=e.array[o*e.itemSize+t]:(0===t?n=e.getX(o):1===t?n=e.getY(o):2===t?n=e.getZ(o):3===t&&(n=e.getW(o)),!0===e.normalized&&(n=r.MathUtils.normalize(n,e.array))),i.min[t]=Math.min(i.min[t],n),i.max[t]=Math.max(i.max[t],n)}return i}(e,n,i);let l;void 0!==t&&(l=e===t.index?34963:34962);const c=this.processBufferView(e,a,n,i,l),u={bufferView:c.id,byteOffset:c.byteOffset,componentType:a,count:i,max:s.max,min:s.min,type:{1:"SCALAR",2:"VEC2",3:"VEC3",4:"VEC4",9:"MAT3",16:"MAT4"}[e.itemSize]};return!0===e.normalized&&(u.normalized=!0),o.accessors||(o.accessors=[]),o.accessors.push(u)-1}processImage(e,t,n,i="image/png"){if(null!==e){const o=this,a=o.cache,s=o.json,l=o.options,c=o.pending;a.images.has(e)||a.images.set(e,{});const u=a.images.get(e),d=i+":flipY/"+n.toString();if(void 0!==u[d])return u[d];s.images||(s.images=[]);const h={mimeType:i},f=ce();f.width=Math.min(e.width,l.maxTextureSize),f.height=Math.min(e.height,l.maxTextureSize);const p=f.getContext("2d");if(!0===n&&(p.translate(0,f.height),p.scale(1,-1)),void 0!==e.data){t!==r.RGBAFormat&&console.error("GLTFExporter: Only RGBAFormat is supported.",t),(e.width>l.maxTextureSize||e.height>l.maxTextureSize)&&console.warn("GLTFExporter: Image size is bigger than maxTextureSize",e);const n=new Uint8ClampedArray(e.height*e.width*4);for(let t=0;to.processBufferViewImage(e)).then(e=>{h.bufferView=e})):void 0!==f.toDataURL?h.uri=f.toDataURL(i):c.push(ue(f,i).then(e=>(new FileReader).readAsDataURL(e)).then(e=>{h.uri=e}));const m=s.images.push(h)-1;return u[d]=m,m}throw new Error("THREE.GLTFExporter: No valid image data found. Unable to process texture.")}processSampler(e){const t=this.json;t.samplers||(t.samplers=[]);const n={magFilter:re[e.magFilter],minFilter:re[e.minFilter],wrapS:re[e.wrapS],wrapT:re[e.wrapT]};return t.samplers.push(n)-1}processTexture(e){const t=this.options,n=this.cache,i=this.json;if(n.textures.has(e))return n.textures.get(e);i.textures||(i.textures=[]),e instanceof r.CompressedTexture&&(e=q(e,t.maxTextureSize));let o=e.userData.mimeType;"image/webp"===o&&(o="image/png");const a={sampler:this.processSampler(e),source:this.processImage(e.image,e.format,e.flipY,o)};e.name&&(a.name=e.name),this._invokeAll(function(t){t.writeTexture&&t.writeTexture(e,a)});const s=i.textures.push(a)-1;return n.textures.set(e,s),s}processMaterial(e){const t=this.cache,n=this.json;if(t.materials.has(e))return t.materials.get(e);if(e.isShaderMaterial)return console.warn("GLTFExporter: THREE.ShaderMaterial not supported."),null;n.materials||(n.materials=[]);const i={pbrMetallicRoughness:{}};!0!==e.isMeshStandardMaterial&&!0!==e.isMeshBasicMaterial&&console.warn("GLTFExporter: Use MeshStandardMaterial or MeshBasicMaterial for best results.");const o=e.color.toArray().concat([e.opacity]);if(ae(o,[1,1,1,1])||(i.pbrMetallicRoughness.baseColorFactor=o),e.isMeshStandardMaterial?(i.pbrMetallicRoughness.metallicFactor=e.metalness,i.pbrMetallicRoughness.roughnessFactor=e.roughness):(i.pbrMetallicRoughness.metallicFactor=.5,i.pbrMetallicRoughness.roughnessFactor=.5),e.metalnessMap||e.roughnessMap){const t=this.buildMetalRoughTexture(e.metalnessMap,e.roughnessMap),n={index:this.processTexture(t),channel:t.channel};this.applyTextureTransform(n,t),i.pbrMetallicRoughness.metallicRoughnessTexture=n}if(e.map){const t={index:this.processTexture(e.map),texCoord:e.map.channel};this.applyTextureTransform(t,e.map),i.pbrMetallicRoughness.baseColorTexture=t}if(e.emissive){const t=e.emissive;if(Math.max(t.r,t.g,t.b)>0&&(i.emissiveFactor=e.emissive.toArray()),e.emissiveMap){const t={index:this.processTexture(e.emissiveMap),texCoord:e.emissiveMap.channel};this.applyTextureTransform(t,e.emissiveMap),i.emissiveTexture=t}}if(e.normalMap){const t={index:this.processTexture(e.normalMap),texCoord:e.normalMap.channel};e.normalScale&&1!==e.normalScale.x&&(t.scale=e.normalScale.x),this.applyTextureTransform(t,e.normalMap),i.normalTexture=t}if(e.aoMap){const t={index:this.processTexture(e.aoMap),texCoord:e.aoMap.channel};1!==e.aoMapIntensity&&(t.strength=e.aoMapIntensity),this.applyTextureTransform(t,e.aoMap),i.occlusionTexture=t}e.transparent?i.alphaMode="BLEND":e.alphaTest>0&&(i.alphaMode="MASK",i.alphaCutoff=e.alphaTest),e.side===r.DoubleSide&&(i.doubleSided=!0),""!==e.name&&(i.name=e.name),this.serializeUserData(e,i),this._invokeAll(function(t){t.writeMaterial&&t.writeMaterial(e,i)});const a=n.materials.push(i)-1;return t.materials.set(e,a),a}processMesh(e){const t=this.cache,n=this.json,i=[e.geometry.uuid];if(Array.isArray(e.material))for(let t=0,n=e.material.length;t=152?"uv1":"uv2"]:"TEXCOORD_1",color:"COLOR_0",skinWeight:"WEIGHTS_0",skinIndex:"JOINTS_0"},f=a.getAttribute("normal");void 0===f||this.isNormalizedNormalAttribute(f)||(console.warn("THREE.GLTFExporter: Creating normalized normal attribute from the non-normalized one."),a.setAttribute("normal",this.createNormalizedNormalAttribute(f)));let p=null;for(let e in a.attributes){if("morph"===e.slice(0,5))continue;const n=a.attributes[e];if(e=h[e]||e.toUpperCase(),/^(POSITION|NORMAL|TANGENT|TEXCOORD_\d+|COLOR_\d+|JOINTS_\d+|WEIGHTS_\d+)$/.test(e)||(e="_"+e),t.attributes.has(this.getUID(n))){c[e]=t.attributes.get(this.getUID(n));continue}p=null;const i=n.array;"JOINTS_0"!==e||i instanceof Uint16Array||i instanceof Uint8Array||(console.warn('GLTFExporter: Attribute "skinIndex" converted to type UNSIGNED_SHORT.'),p=new r.BufferAttribute(new Uint16Array(i),n.itemSize,n.normalized));const o=this.processAccessor(p||n,a);null!==o&&(e.startsWith("_")||this.detectMeshQuantization(e,n),c[e]=o,t.attributes.set(this.getUID(n),o))}if(void 0!==f&&a.setAttribute("normal",f),0===Object.keys(c).length)return null;if(void 0!==e.morphTargetInfluences&&e.morphTargetInfluences.length>0){const n=[],r=[],i={};if(void 0!==e.morphTargetDictionary)for(const t in e.morphTargetDictionary)i[e.morphTargetDictionary[t]]=t;for(let o=0;o0&&(l.extras={},l.extras.targetNames=r)}const m=Array.isArray(e.material);if(m&&0===a.groups.length)return null;const g=m?e.material:[e.material],v=m?a.groups:[{materialIndex:0,start:void 0,count:void 0}];for(let e=0,n=v.length;e0&&(n.targets=d),null!==a.index){let r=this.getUID(a.index);void 0===v[e].start&&void 0===v[e].count||(r+=":"+v[e].start+":"+v[e].count),t.attributes.has(r)?n.indices=t.attributes.get(r):(n.indices=this.processAccessor(a.index,a,v[e].start,v[e].count),t.attributes.set(r,n.indices)),null===n.indices&&delete n.indices}const r=this.processMaterial(g[v[e].materialIndex]);null!==r&&(n.material=r),u.push(n)}l.primitives=u,n.meshes||(n.meshes=[]),this._invokeAll(function(t){t.writeMesh&&t.writeMesh(e,l)});const A=n.meshes.push(l)-1;return t.meshes.set(o,A),A}detectMeshQuantization(e,t){if(this.extensionsUsed[ne])return;let n;switch(t.array.constructor){case Int8Array:n="byte";break;case Uint8Array:n="unsigned byte";break;case Int16Array:n="short";break;case Uint16Array:n="unsigned short";break;default:return}t.normalized&&(n+=" normalized");const r=e.split("_",1)[0];Y[r]&&Y[r].includes(n)&&(this.extensionsUsed[ne]=!0,this.extensionsRequired[ne]=!0)}processCamera(e){const t=this.json;t.cameras||(t.cameras=[]);const n=e.isOrthographicCamera,i={type:n?"orthographic":"perspective"};return n?i.orthographic={xmag:2*e.right,ymag:2*e.top,zfar:e.far<=0?.001:e.far,znear:e.near<0?0:e.near}:i.perspective={aspectRatio:e.aspect,yfov:r.MathUtils.degToRad(e.fov),zfar:e.far<=0?.001:e.far,znear:e.near<0?0:e.near},""!==e.name&&(i.name=e.type),t.cameras.push(i)-1}processAnimation(e,t){const n=this.json,i=this.nodeMap;n.animations||(n.animations=[]);const o=(e=K.Utils.mergeMorphTargetTracks(e.clone(),t)).tracks,a=[],s=[];for(let e=0;e0){const t=[];for(let r=0,i=e.children.length;r0&&(i.children=t)}this._invokeAll(function(t){t.writeNode&&t.writeNode(e,i)});const o=t.nodes.push(i)-1;return r.set(e,o),o}processScene(e){const t=this.json,n=this.options;t.scenes||(t.scenes=[],t.scene=0);const r={};""!==e.name&&(r.name=e.name),t.scenes.push(r);const i=[];for(let t=0,r=e.children.length;t0&&(r.nodes=i),this.serializeUserData(e,r)}processObjects(e){const t=new r.Scene;t.name="AuxScene";for(let n=0;n0&&this.processObjects(n);for(let e=0;e0&&(o.range=e.distance)):e.isSpotLight&&(o.type="spot",e.distance>0&&(o.range=e.distance),o.spot={},o.spot.innerConeAngle=(e.penumbra-1)*e.angle*-1,o.spot.outerConeAngle=e.angle),void 0!==e.decay&&2!==e.decay&&console.warn("THREE.GLTFExporter: Light decay may be lost. glTF is physically-based, and expects light.decay=2."),!e.target||e.target.parent===e&&0===e.target.position.x&&0===e.target.position.y&&-1===e.target.position.z||console.warn("THREE.GLTFExporter: Light direction may be lost. For best results, make light.target a child of the light with position 0,0,-1."),i[this.name]||(r.extensions=r.extensions||{},r.extensions[this.name]={lights:[]},i[this.name]=!0);const a=r.extensions[this.name].lights;a.push(o),t.extensions=t.extensions||{},t.extensions[this.name]={light:a.length-1}}}let fe=class{constructor(e){this.writer=e,this.name="KHR_materials_unlit"}writeMaterial(e,t){if(!e.isMeshBasicMaterial)return;const n=this.writer.extensionsUsed;t.extensions=t.extensions||{},t.extensions[this.name]={},n[this.name]=!0,t.pbrMetallicRoughness.metallicFactor=0,t.pbrMetallicRoughness.roughnessFactor=.9}},pe=class{constructor(e){this.writer=e,this.name="KHR_materials_clearcoat"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.clearcoat)return;const n=this.writer,r=n.extensionsUsed,i={};if(i.clearcoatFactor=e.clearcoat,e.clearcoatMap){const t={index:n.processTexture(e.clearcoatMap),texCoord:e.clearcoatMap.channel};n.applyTextureTransform(t,e.clearcoatMap),i.clearcoatTexture=t}if(i.clearcoatRoughnessFactor=e.clearcoatRoughness,e.clearcoatRoughnessMap){const t={index:n.processTexture(e.clearcoatRoughnessMap),texCoord:e.clearcoatRoughnessMap.channel};n.applyTextureTransform(t,e.clearcoatRoughnessMap),i.clearcoatRoughnessTexture=t}if(e.clearcoatNormalMap){const t={index:n.processTexture(e.clearcoatNormalMap),texCoord:e.clearcoatNormalMap.channel};n.applyTextureTransform(t,e.clearcoatNormalMap),i.clearcoatNormalTexture=t}t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},me=class{constructor(e){this.writer=e,this.name="KHR_materials_iridescence"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.iridescence)return;const n=this.writer,r=n.extensionsUsed,i={};if(i.iridescenceFactor=e.iridescence,e.iridescenceMap){const t={index:n.processTexture(e.iridescenceMap),texCoord:e.iridescenceMap.channel};n.applyTextureTransform(t,e.iridescenceMap),i.iridescenceTexture=t}if(i.iridescenceIor=e.iridescenceIOR,i.iridescenceThicknessMinimum=e.iridescenceThicknessRange[0],i.iridescenceThicknessMaximum=e.iridescenceThicknessRange[1],e.iridescenceThicknessMap){const t={index:n.processTexture(e.iridescenceThicknessMap),texCoord:e.iridescenceThicknessMap.channel};n.applyTextureTransform(t,e.iridescenceThicknessMap),i.iridescenceThicknessTexture=t}t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},ge=class{constructor(e){this.writer=e,this.name="KHR_materials_transmission"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.transmission)return;const n=this.writer,r=n.extensionsUsed,i={};if(i.transmissionFactor=e.transmission,e.transmissionMap){const t={index:n.processTexture(e.transmissionMap),texCoord:e.transmissionMap.channel};n.applyTextureTransform(t,e.transmissionMap),i.transmissionTexture=t}t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},ve=class{constructor(e){this.writer=e,this.name="KHR_materials_volume"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0===e.transmission)return;const n=this.writer,r=n.extensionsUsed,i={};if(i.thicknessFactor=e.thickness,e.thicknessMap){const t={index:n.processTexture(e.thicknessMap),texCoord:e.thicknessMap.channel};n.applyTextureTransform(t,e.thicknessMap),i.thicknessTexture=t}i.attenuationDistance=e.attenuationDistance,i.attenuationColor=e.attenuationColor.toArray(),t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},Ae=class{constructor(e){this.writer=e,this.name="KHR_materials_ior"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||1.5===e.ior)return;const n=this.writer.extensionsUsed,r={};r.ior=e.ior,t.extensions=t.extensions||{},t.extensions[this.name]=r,n[this.name]=!0}},ye=class{constructor(e){this.writer=e,this.name="KHR_materials_specular"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||1===e.specularIntensity&&e.specularColor.equals(oe)&&!e.specularIntensityMap&&!e.specularColorTexture)return;const n=this.writer,r=n.extensionsUsed,i={};if(e.specularIntensityMap){const t={index:n.processTexture(e.specularIntensityMap),texCoord:e.specularIntensityMap.channel};n.applyTextureTransform(t,e.specularIntensityMap),i.specularTexture=t}if(e.specularColorMap){const t={index:n.processTexture(e.specularColorMap),texCoord:e.specularColorMap.channel};n.applyTextureTransform(t,e.specularColorMap),i.specularColorTexture=t}i.specularFactor=e.specularIntensity,i.specularColorFactor=e.specularColor.toArray(),t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},be=class{constructor(e){this.writer=e,this.name="KHR_materials_sheen"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0==e.sheen)return;const n=this.writer,r=n.extensionsUsed,i={};if(e.sheenRoughnessMap){const t={index:n.processTexture(e.sheenRoughnessMap),texCoord:e.sheenRoughnessMap.channel};n.applyTextureTransform(t,e.sheenRoughnessMap),i.sheenRoughnessTexture=t}if(e.sheenColorMap){const t={index:n.processTexture(e.sheenColorMap),texCoord:e.sheenColorMap.channel};n.applyTextureTransform(t,e.sheenColorMap),i.sheenColorTexture=t}i.sheenRoughnessFactor=e.sheenRoughness,i.sheenColorFactor=e.sheenColor.toArray(),t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},xe=class{constructor(e){this.writer=e,this.name="KHR_materials_anisotropy"}writeMaterial(e,t){if(!e.isMeshPhysicalMaterial||0==e.anisotropy)return;const n=this.writer,r=n.extensionsUsed,i={};if(e.anisotropyMap){const t={index:n.processTexture(e.anisotropyMap)};n.applyTextureTransform(t,e.anisotropyMap),i.anisotropyTexture=t}i.anisotropyStrength=e.anisotropy,i.anisotropyRotation=e.anisotropyRotation,t.extensions=t.extensions||{},t.extensions[this.name]=i,r[this.name]=!0}},Se=class{constructor(e){this.writer=e,this.name="KHR_materials_emissive_strength"}writeMaterial(e,t){if(!e.isMeshStandardMaterial||1===e.emissiveIntensity)return;const n=this.writer.extensionsUsed,r={};r.emissiveStrength=e.emissiveIntensity,t.extensions=t.extensions||{},t.extensions[this.name]=r,n[this.name]=!0}};K.Utils={insertKeyframe:function(e,t){const n=.001,r=e.getValueSize(),i=new e.TimeBufferType(e.times.length+1),o=new e.ValueBufferType(e.values.length+r),a=e.createInterpolant(new e.ValueBufferType(r));let s;if(0===e.times.length){i[0]=t;for(let e=0;ee.times[e.times.length-1]){if(Math.abs(e.times[e.times.length-1]-t)t){i.set(e.times.slice(0,l+1),0),i[l+1]=t,i.set(e.times.slice(l+1),l+2),o.set(e.values.slice(0,(l+1)*r),0),o.set(a.evaluate(t),(l+1)*r),o.set(e.values.slice((l+1)*r),(l+2)*r),s=l+1;break}}return e.times=i,e.values=o,s},mergeMorphTargetTracks:function(e,t){const n=[],i={},o=e.tracks;for(let e=0;e65535?Uint32Array:Uint16Array)(e.count);for(let e=0;e0)return;v.reflect(d).negate(),v.add(h),p.extractRotation(i.matrixWorld),m.set(0,0,-1),m.applyMatrix4(p),m.add(f),A.subVectors(h,m),A.reflect(d).negate(),A.add(h),x.position.copy(v),x.up.set(0,1,0),x.up.applyMatrix4(p),x.up.reflect(d),x.lookAt(A),x.far=i.far,x.updateMatrixWorld(),x.projectionMatrix.copy(i.projectionMatrix),b.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),b.multiply(x.projectionMatrix),b.multiply(x.matrixWorldInverse),b.multiply(n.matrixWorld),u.setFromNormalAndCoplanarPoint(d,h),u.applyMatrix4(x.matrixWorldInverse),g.set(u.normal.x,u.normal.y,u.normal.z,u.constant);const o=x.projectionMatrix;y.x=(Math.sign(g.x)+o.elements[8])/o.elements[0],y.y=(Math.sign(g.y)+o.elements[9])/o.elements[5],y.z=-1,y.w=(1+o.elements[10])/o.elements[14],g.multiplyScalar(2/g.dot(y)),o.elements[2]=g.x,o.elements[6]=g.y,o.elements[10]=g.z+1-s,o.elements[14]=g.w,n.visible=!1;const a=e.getRenderTarget(),l=e.xr.enabled,c=e.shadowMap.autoUpdate,E=e.toneMapping;let C=!1;C="outputColorSpace"in e?"srgb"===e.outputColorSpace:3001===e.outputEncoding,e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,"outputColorSpace"in e?e.outputColorSpace="linear-srgb":e.outputEncoding=3e3,e.toneMapping=r.NoToneMapping,e.setRenderTarget(S),e.state.buffers.depth.setMask(!0),!1===e.autoClear&&e.clear(),e.render(t,x),e.xr.enabled=l,e.shadowMap.autoUpdate=c,e.toneMapping=E,"outputColorSpace"in e?e.outputColorSpace=C?"srgb":"srgb-linear":e.outputEncoding=C?3001:3e3,e.setRenderTarget(a);const w=i.viewport;void 0!==w&&e.state.viewport(w),n.visible=!0},this.getRenderTarget=function(){return S},this.dispose=function(){S.dispose(),n.material.dispose()}}};let _e=we;G(_e,"ReflectorShader",{uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n\t\tuniform mat4 textureMatrix;\n\t\tvarying vec4 vUv;\n\n\t\t#include \n\t\t#include \n\n\t\tvoid main() {\n\n\t\t\tvUv = textureMatrix * vec4( position, 1.0 );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t\t#include \n\n\t\t}",fragmentShader:`\n\t\tuniform vec3 color;\n\t\tuniform sampler2D tDiffuse;\n\t\tvarying vec4 vUv;\n\n\t\t#include \n\n\t\tfloat blendOverlay( float base, float blend ) {\n\n\t\t\treturn( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n\t\t}\n\n\t\tvec3 blendOverlay( vec3 base, vec3 blend ) {\n\n\t\t\treturn vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\t#include \n\n\t\t\tvec4 base = texture2DProj( tDiffuse, vUv );\n\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n\t\t\t#include \n\t\t\t#include <${parseInt(r.REVISION.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>\n\n\t\t}`});const Ie=class extends r.Mesh{constructor(e,t={}){super(e),this.isRefractor=!0,this.type="Refractor",this.camera=new r.PerspectiveCamera;const n=this,i=void 0!==t.color?new r.Color(t.color):new r.Color(8355711),o=t.textureWidth||512,a=t.textureHeight||512,s=t.clipBias||0,l=t.shader||Ie.RefractorShader,c=void 0!==t.multisample?t.multisample:4,u=this.camera;u.matrixAutoUpdate=!1,u.userData.refractor=!0;const d=new r.Plane,h=new r.Matrix4,f=new r.WebGLRenderTarget(o,a,{samples:c,type:r.HalfFloatType});this.material=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(l.uniforms),vertexShader:l.vertexShader,fragmentShader:l.fragmentShader,transparent:!0}),this.material.uniforms.color.value=i,this.material.uniforms.tDiffuse.value=f.texture,this.material.uniforms.textureMatrix.value=h;const p=function(){const e=new r.Vector3,t=new r.Vector3,i=new r.Matrix4,o=new r.Vector3,a=new r.Vector3;return function(r){return e.setFromMatrixPosition(n.matrixWorld),t.setFromMatrixPosition(r.matrixWorld),o.subVectors(e,t),i.extractRotation(n.matrixWorld),a.set(0,0,1),a.applyMatrix4(i),o.dot(a)<0}}(),m=function(){const e=new r.Vector3,t=new r.Vector3,i=new r.Quaternion,o=new r.Vector3;return function(){n.matrixWorld.decompose(t,i,o),e.set(0,0,1).applyQuaternion(i).normalize(),e.negate(),d.setFromNormalAndCoplanarPoint(e,t)}}(),g=function(){const e=new r.Plane,t=new r.Vector4,n=new r.Vector4;return function(r){u.matrixWorld.copy(r.matrixWorld),u.matrixWorldInverse.copy(u.matrixWorld).invert(),u.projectionMatrix.copy(r.projectionMatrix),u.far=r.far,e.copy(d),e.applyMatrix4(u.matrixWorldInverse),t.set(e.normal.x,e.normal.y,e.normal.z,e.constant);const i=u.projectionMatrix;n.x=(Math.sign(t.x)+i.elements[8])/i.elements[0],n.y=(Math.sign(t.y)+i.elements[9])/i.elements[5],n.z=-1,n.w=(1+i.elements[10])/i.elements[14],t.multiplyScalar(2/t.dot(n)),i.elements[2]=t.x,i.elements[6]=t.y,i.elements[10]=t.z+1-s,i.elements[14]=t.w}}();this.onBeforeRender=function(e,t,i){!0!==i.userData.refractor&&1!=!p(i)&&(m(),function(e){h.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),h.multiply(e.projectionMatrix),h.multiply(e.matrixWorldInverse),h.multiply(n.matrixWorld)}(i),g(i),function(e,t,i){n.visible=!1;const o=e.getRenderTarget(),a=e.xr.enabled,s=e.shadowMap.autoUpdate,l=e.toneMapping;let c=!1;c="outputColorSpace"in e?"srgb"===e.outputColorSpace:3001===e.outputEncoding,e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,"outputColorSpace"in e?e.outputColorSpace="linear-srgb":e.outputEncoding=3e3,e.toneMapping=r.NoToneMapping,e.setRenderTarget(f),!1===e.autoClear&&e.clear(),e.render(t,u),e.xr.enabled=a,e.shadowMap.autoUpdate=s,e.toneMapping=l,e.setRenderTarget(o),"outputColorSpace"in e?e.outputColorSpace=c?"srgb":"srgb-linear":e.outputEncoding=c?3001:3e3;const d=i.viewport;void 0!==d&&e.state.viewport(d),n.visible=!0}(e,t,i))},this.getRenderTarget=function(){return f},this.dispose=function(){f.dispose(),n.material.dispose()}}};let Te=Ie;G(Te,"RefractorShader",{uniforms:{color:{value:null},tDiffuse:{value:null},textureMatrix:{value:null}},vertexShader:"\n\n\t\tuniform mat4 textureMatrix;\n\n\t\tvarying vec4 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = textureMatrix * vec4( position, 1.0 );\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:`\n\n\t\tuniform vec3 color;\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec4 vUv;\n\n\t\tfloat blendOverlay( float base, float blend ) {\n\n\t\t\treturn( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\n\t\t}\n\n\t\tvec3 blendOverlay( vec3 base, vec3 blend ) {\n\n\t\t\treturn vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvec4 base = texture2DProj( tDiffuse, vUv );\n\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\n\t\t\t#include \n\t\t\t#include <${parseInt(r.REVISION.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>\n\n\t\t}`}),r.Mesh;const Me=new r.BufferGeometry,Re=class extends r.Mesh{constructor(){super(Re.Geometry,new r.MeshBasicMaterial({opacity:0,transparent:!0})),this.isLensflare=!0,this.type="Lensflare",this.frustumCulled=!1,this.renderOrder=1/0;const e=new r.Vector3,t=new r.Vector3,n=new r.DataTexture(new Uint8Array(768),16,16,r.RGBAFormat);n.minFilter=r.NearestFilter,n.magFilter=r.NearestFilter,n.wrapS=r.ClampToEdgeWrapping,n.wrapT=r.ClampToEdgeWrapping;const i=new r.DataTexture(new Uint8Array(768),16,16,r.RGBAFormat);i.minFilter=r.NearestFilter,i.magFilter=r.NearestFilter,i.wrapS=r.ClampToEdgeWrapping,i.wrapT=r.ClampToEdgeWrapping;const o=Re.Geometry,a=new r.RawShaderMaterial({uniforms:{scale:{value:null},screenPosition:{value:null}},vertexShader:"\n\n\t\t\t\tprecision highp float;\n\n\t\t\t\tuniform vec3 screenPosition;\n\t\t\t\tuniform vec2 scale;\n\n\t\t\t\tattribute vec3 position;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tgl_Position = vec4( position.xy * scale + screenPosition.xy, screenPosition.z, 1.0 );\n\n\t\t\t\t}",fragmentShader:"\n\n\t\t\t\tprecision highp float;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tgl_FragColor = vec4( 1.0, 0.0, 1.0, 1.0 );\n\n\t\t\t\t}",depthTest:!0,depthWrite:!1,transparent:!1}),s=new r.RawShaderMaterial({uniforms:{map:{value:n},scale:{value:null},screenPosition:{value:null}},vertexShader:"\n\n\t\t\t\tprecision highp float;\n\n\t\t\t\tuniform vec3 screenPosition;\n\t\t\t\tuniform vec2 scale;\n\n\t\t\t\tattribute vec3 position;\n\t\t\t\tattribute vec2 uv;\n\n\t\t\t\tvarying vec2 vUV;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvUV = uv;\n\n\t\t\t\t\tgl_Position = vec4( position.xy * scale + screenPosition.xy, screenPosition.z, 1.0 );\n\n\t\t\t\t}",fragmentShader:"\n\n\t\t\t\tprecision highp float;\n\n\t\t\t\tuniform sampler2D map;\n\n\t\t\t\tvarying vec2 vUV;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tgl_FragColor = texture2D( map, vUV );\n\n\t\t\t\t}",depthTest:!1,depthWrite:!1,transparent:!1}),l=new r.Mesh(o,a),c=[],u=Oe.Shader,d=new r.RawShaderMaterial({uniforms:{map:{value:null},occlusionMap:{value:i},color:{value:new r.Color(16777215)},scale:{value:new r.Vector2},screenPosition:{value:new r.Vector3}},vertexShader:u.vertexShader,fragmentShader:u.fragmentShader,blending:r.AdditiveBlending,transparent:!0,depthWrite:!1}),h=new r.Mesh(o,d);this.addElement=function(e){c.push(e)};const f=new r.Vector2,p=new r.Vector2,m=new r.Box2,g=new r.Vector4;this.onBeforeRender=function(r,u,v){r.getCurrentViewport(g);const A=g.w/g.z,y=g.z/2,b=g.w/2;let x=16/g.w;if(f.set(x*A,x),m.min.set(g.x,g.y),m.max.set(g.x+(g.z-16),g.y+(g.w-16)),t.setFromMatrixPosition(this.matrixWorld),t.applyMatrix4(v.matrixWorldInverse),!(t.z>0)&&(e.copy(t).applyMatrix4(v.projectionMatrix),p.x=g.x+e.x*y+y-8,p.y=g.y+e.y*b+b-8,m.containsPoint(p))){r.copyFramebufferToTexture(p,n);let t=a.uniforms;t.scale.value=f,t.screenPosition.value=e,r.renderBufferDirect(v,null,o,a,l,null),r.copyFramebufferToTexture(p,i),t=s.uniforms,t.scale.value=f,t.screenPosition.value=e,r.renderBufferDirect(v,null,o,s,l,null);const u=2*-e.x,m=2*-e.y;for(let t=0,n=c.length;te[0]*t+e[1]*n),G(this,"dot3",(e,t,n,r)=>e[0]*t+e[1]*n+e[2]*r),G(this,"dot4",(e,t,n,r,i)=>e[0]*t+e[1]*n+e[2]*r+e[3]*i),G(this,"noise",(e,t)=>{let n,r,i;const o=(e+t)*(.5*(Math.sqrt(3)-1)),a=Math.floor(e+o),s=Math.floor(t+o),l=(3-Math.sqrt(3))/6,c=(a+s)*l,u=e-(a-c),d=t-(s-c);let h=0,f=1;u>d&&(h=1,f=0);const p=u-h+l,m=d-f+l,g=u-1+2*l,v=d-1+2*l,A=255&a,y=255&s,b=this.perm[A+this.perm[y]]%12,x=this.perm[A+h+this.perm[y+f]]%12,S=this.perm[A+1+this.perm[y+1]]%12;let E=.5-u*u-d*d;E<0?n=0:(E*=E,n=E*E*this.dot(this.grad3[b],u,d));let C=.5-p*p-m*m;C<0?r=0:(C*=C,r=C*C*this.dot(this.grad3[x],p,m));let w=.5-g*g-v*v;return w<0?i=0:(w*=w,i=w*w*this.dot(this.grad3[S],g,v)),70*(n+r+i)}),G(this,"noise3d",(e,t,n)=>{let r,i,o,a;const s=(e+t+n)*(1/3),l=Math.floor(e+s),c=Math.floor(t+s),u=Math.floor(n+s),d=1/6,h=(l+c+u)*d,f=e-(l-h),p=t-(c-h),m=n-(u-h);let g,v,A,y,b,x;f>=p?p>=m?(g=1,v=0,A=0,y=1,b=1,x=0):f>=m?(g=1,v=0,A=0,y=1,b=0,x=1):(g=0,v=0,A=1,y=1,b=0,x=1):p{const i=this.grad4,o=this.simplex,a=this.perm,s=(Math.sqrt(5)-1)/4,l=(5-Math.sqrt(5))/20;let c,u,d,h,f;const p=(e+t+n+r)*s,m=Math.floor(e+p),g=Math.floor(t+p),v=Math.floor(n+p),A=Math.floor(r+p),y=(m+g+v+A)*l,b=e-(m-y),x=t-(g-y),S=n-(v-y),E=r-(A-y),C=(b>x?32:0)+(b>S?16:0)+(x>S?8:0)+(b>E?4:0)+(x>E?2:0)+(S>E?1:0);let w,_,I,T,M,R,O,P,N,k,D,L;w=o[C][0]>=3?1:0,_=o[C][1]>=3?1:0,I=o[C][2]>=3?1:0,T=o[C][3]>=3?1:0,M=o[C][0]>=2?1:0,R=o[C][1]>=2?1:0,O=o[C][2]>=2?1:0,P=o[C][3]>=2?1:0,N=o[C][0]>=1?1:0,k=o[C][1]>=1?1:0,D=o[C][2]>=1?1:0,L=o[C][3]>=1?1:0;const B=b-w+l,F=x-_+l,U=S-I+l,z=E-T+l,j=b-M+2*l,$=x-R+2*l,H=S-O+2*l,G=E-P+2*l,Q=b-N+3*l,V=x-k+3*l,W=S-D+3*l,X=E-L+3*l,q=b-1+4*l,Y=x-1+4*l,K=S-1+4*l,J=E-1+4*l,Z=255&m,ee=255&g,te=255&v,ne=255&A,re=a[Z+a[ee+a[te+a[ne]]]]%32,ie=a[Z+w+a[ee+_+a[te+I+a[ne+T]]]]%32,oe=a[Z+M+a[ee+R+a[te+O+a[ne+P]]]]%32,ae=a[Z+N+a[ee+k+a[te+D+a[ne+L]]]]%32,se=a[Z+1+a[ee+1+a[te+1+a[ne+1]]]]%32;let le=.6-b*b-x*x-S*S-E*E;le<0?c=0:(le*=le,c=le*le*this.dot4(i[re],b,x,S,E));let ce=.6-B*B-F*F-U*U-z*z;ce<0?u=0:(ce*=ce,u=ce*ce*this.dot4(i[ie],B,F,U,z));let ue=.6-j*j-$*$-H*H-G*G;ue<0?d=0:(ue*=ue,d=ue*ue*this.dot4(i[oe],j,$,H,G));let de=.6-Q*Q-V*V-W*W-X*X;de<0?h=0:(de*=de,h=de*de*this.dot4(i[ae],Q,V,W,X));let he=.6-q*q-Y*Y-K*K-J*J;return he<0?f=0:(he*=he,f=he*he*this.dot4(i[se],q,Y,K,J)),27*(c+u+d+h+f)});for(let t=0;t<256;t++)this.p[t]=Math.floor(256*e.random());for(let e=0;e<512;e++)this.perm[e]=this.p[255&e]}}const Ne=class extends r.BufferGeometry{constructor(e={}){super(),this.isLightningStrike=!0,this.type="LightningStrike",this.init(Ne.copyParameters(e,e)),this.createMesh()}static createRandomGenerator(){const e=2053,t=[];for(let n=0;nthis.subrays[0].beginVanishingTime?this.state=Ne.RAY_VANISHING:this.state=Ne.RAY_STEADY,this.visible=!0):(this.visible=!1,e=n.fraction0*r.propagationTimeFactor&&(t.createPrism(n),t.onDecideSubrayCreation(n,t)):e=this.currentSubray.maxIterations)return void this.currentSegmentCallback(e);this.forwards.subVectors(e.pos1,e.pos0);let t=this.forwards.length();t<1e-6&&(this.forwards.set(0,0,.01),t=this.forwards.length());const n=.5*(e.radius0+e.radius1),r=.5*(e.fraction0+e.fraction1),i=this.time*this.currentSubray.timeScale*Math.pow(2,e.iteration);this.middlePos.lerpVectors(e.pos0,e.pos1,.5),this.middleLinPos.lerpVectors(e.linPos0,e.linPos1,.5);const o=this.middleLinPos;this.newPos.set(this.simplexX.noise4d(o.x,o.y,o.z,i),this.simplexY.noise4d(o.x,o.y,o.z,i),this.simplexZ.noise4d(o.x,o.y,o.z,i)),this.newPos.multiplyScalar(e.positionVariationFactor*t),this.newPos.add(this.middlePos);const a=this.getNewSegment();a.pos0.copy(e.pos0),a.pos1.copy(this.newPos),a.linPos0.copy(e.linPos0),a.linPos1.copy(this.middleLinPos),a.up0.copy(e.up0),a.up1.copy(e.up1),a.radius0=e.radius0,a.radius1=n,a.fraction0=e.fraction0,a.fraction1=r,a.positionVariationFactor=e.positionVariationFactor*this.currentSubray.roughness,a.iteration=e.iteration+1;const s=this.getNewSegment();s.pos0.copy(this.newPos),s.pos1.copy(e.pos1),s.linPos0.copy(this.middleLinPos),s.linPos1.copy(e.linPos1),this.cross1.crossVectors(e.up0,this.forwards.normalize()),s.up0.crossVectors(this.forwards,this.cross1).normalize(),s.up1.copy(e.up1),s.radius0=n,s.radius1=e.radius1,s.fraction0=r,s.fraction1=e.fraction1,s.positionVariationFactor=e.positionVariationFactor*this.currentSubray.roughness,s.iteration=e.iteration+1,this.fractalRayRecursive(a),this.fractalRayRecursive(s)}createPrism(e){this.forwardsFill.subVectors(e.pos1,e.pos0).normalize(),this.isInitialSegment&&(this.currentCreateTriangleVertices(e.pos0,e.up0,this.forwardsFill,e.radius0,0),this.isInitialSegment=!1),this.currentCreateTriangleVertices(e.pos1,e.up0,this.forwardsFill,e.radius1,e.fraction1),this.createPrismFaces()}createTriangleVerticesWithoutUVs(e,t,n,r){this.side.crossVectors(t,n).multiplyScalar(r*Ne.COS30DEG),this.down.copy(t).multiplyScalar(-r*Ne.SIN30DEG);const i=this.vPos,o=this.vertices;i.copy(e).sub(this.side).add(this.down),o[this.currentCoordinate++]=i.x,o[this.currentCoordinate++]=i.y,o[this.currentCoordinate++]=i.z,i.copy(e).add(this.side).add(this.down),o[this.currentCoordinate++]=i.x,o[this.currentCoordinate++]=i.y,o[this.currentCoordinate++]=i.z,i.copy(t).multiplyScalar(r).add(e),o[this.currentCoordinate++]=i.x,o[this.currentCoordinate++]=i.y,o[this.currentCoordinate++]=i.z,this.currentVertex+=3}createTriangleVerticesWithUVs(e,t,n,r,i){this.side.crossVectors(t,n).multiplyScalar(r*Ne.COS30DEG),this.down.copy(t).multiplyScalar(-r*Ne.SIN30DEG);const o=this.vPos,a=this.vertices,s=this.uvs;o.copy(e).sub(this.side).add(this.down),a[this.currentCoordinate++]=o.x,a[this.currentCoordinate++]=o.y,a[this.currentCoordinate++]=o.z,s[this.currentUVCoordinate++]=i,s[this.currentUVCoordinate++]=0,o.copy(e).add(this.side).add(this.down),a[this.currentCoordinate++]=o.x,a[this.currentCoordinate++]=o.y,a[this.currentCoordinate++]=o.z,s[this.currentUVCoordinate++]=i,s[this.currentUVCoordinate++]=.5,o.copy(t).multiplyScalar(r).add(e),a[this.currentCoordinate++]=o.x,a[this.currentCoordinate++]=o.y,a[this.currentCoordinate++]=o.z,s[this.currentUVCoordinate++]=i,s[this.currentUVCoordinate++]=1,this.currentVertex+=3}createPrismFaces(e){const t=this.indices;e=this.currentVertex-6,t[this.currentIndex++]=e+1,t[this.currentIndex++]=e+2,t[this.currentIndex++]=e+5,t[this.currentIndex++]=e+1,t[this.currentIndex++]=e+5,t[this.currentIndex++]=e+4,t[this.currentIndex++]=e+0,t[this.currentIndex++]=e+1,t[this.currentIndex++]=e+4,t[this.currentIndex++]=e+0,t[this.currentIndex++]=e+4,t[this.currentIndex++]=e+3,t[this.currentIndex++]=e+2,t[this.currentIndex++]=e+0,t[this.currentIndex++]=e+3,t[this.currentIndex++]=e+2,t[this.currentIndex++]=e+3,t[this.currentIndex++]=e+5}createDefaultSubrayCreationCallbacks(){const e=this.randomGenerator.random;this.onDecideSubrayCreation=function(t,n){const i=n.currentSubray,o=n.rayParameters.subrayPeriod,a=n.rayParameters.subrayDutyCycle,s=n.rayParameters.isEternal&&0==i.recursion?-e()*o:r.MathUtils.lerp(i.birthTime,i.endPropagationTime,t.fraction0)-e()*o,l=n.time-s,c=Math.floor(l/o),u=e()*(c+1);let d=0;if(l%o<=a*o&&(d=n.subrayProbability),i.recursionn._distanceAttenuation,set(e){n._distanceAttenuation!==e&&(n._distanceAttenuation=e,n.material.defines.DISTANCE_ATTENUATION=e,n.material.needsUpdate=!0)}}),n._fresnel=De.ReflectorShader.defines.FRESNEL,Object.defineProperty(n,"fresnel",{get:()=>n._fresnel,set(e){n._fresnel!==e&&(n._fresnel=e,n.material.defines.FRESNEL=e,n.material.needsUpdate=!0)}});const f=new r.Vector3,p=new r.Vector3,m=new r.Vector3,g=new r.Matrix4,v=new r.Vector3(0,0,-1),A=new r.Vector3,y=new r.Vector3,b=new r.Matrix4,x=new r.PerspectiveCamera;let S;c&&(S=new r.DepthTexture,S.type=r.UnsignedShortType,S.minFilter=r.NearestFilter,S.magFilter=r.NearestFilter);const E={depthTexture:c?S:null,type:r.HalfFloatType},C=new r.WebGLRenderTarget(o,a,E),w=new r.ShaderMaterial({transparent:c,defines:Object.assign({},De.ReflectorShader.defines,{useDepthTexture:c}),uniforms:r.UniformsUtils.clone(l.uniforms),fragmentShader:l.fragmentShader,vertexShader:l.vertexShader});w.uniforms.tDiffuse.value=C.texture,w.uniforms.color.value=n.color,w.uniforms.textureMatrix.value=b,c&&(w.uniforms.tDepth.value=C.depthTexture),this.material=w;const _=[new r.Plane(new r.Vector3(0,1,0),s)];this.doRender=function(e,t,r){if(w.uniforms.maxDistance.value=n.maxDistance,w.uniforms.color.value=n.color,w.uniforms.opacity.value=n.opacity,d.copy(r.position).normalize(),h.copy(d).reflect(u),w.uniforms.fresnelCoe.value=(d.dot(h)+1)/2,p.setFromMatrixPosition(n.matrixWorld),m.setFromMatrixPosition(r.matrixWorld),g.extractRotation(n.matrixWorld),f.set(0,0,1),f.applyMatrix4(g),A.subVectors(p,m),A.dot(f)>0)return;A.reflect(f).negate(),A.add(p),g.extractRotation(r.matrixWorld),v.set(0,0,-1),v.applyMatrix4(g),v.add(m),y.subVectors(p,v),y.reflect(f).negate(),y.add(p),x.position.copy(A),x.up.set(0,1,0),x.up.applyMatrix4(g),x.up.reflect(f),x.lookAt(y),x.far=r.far,x.updateMatrixWorld(),x.projectionMatrix.copy(r.projectionMatrix),w.uniforms.virtualCameraNear.value=r.near,w.uniforms.virtualCameraFar.value=r.far,w.uniforms.virtualCameraMatrixWorld.value=x.matrixWorld,w.uniforms.virtualCameraProjectionMatrix.value=r.projectionMatrix,w.uniforms.virtualCameraProjectionMatrixInverse.value=r.projectionMatrixInverse,w.uniforms.resolution.value=n.resolution,b.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),b.multiply(x.projectionMatrix),b.multiply(x.matrixWorldInverse),b.multiply(n.matrixWorld);const i=e.getRenderTarget(),o=e.xr.enabled,a=e.shadowMap.autoUpdate,s=e.clippingPlanes;e.xr.enabled=!1,e.shadowMap.autoUpdate=!1,e.clippingPlanes=_,e.setRenderTarget(C),e.state.buffers.depth.setMask(!0),!1===e.autoClear&&e.clear(),e.render(t,x),e.xr.enabled=o,e.shadowMap.autoUpdate=a,e.clippingPlanes=s,e.setRenderTarget(i);const l=r.viewport;void 0!==l&&e.state.viewport(l)},this.getRenderTarget=function(){return C}}};G(De,"ReflectorShader",{defines:{DISTANCE_ATTENUATION:!0,FRESNEL:!0},uniforms:{color:{value:null},tDiffuse:{value:null},tDepth:{value:null},textureMatrix:{value:new r.Matrix4},maxDistance:{value:180},opacity:{value:.5},fresnelCoe:{value:null},virtualCameraNear:{value:null},virtualCameraFar:{value:null},virtualCameraProjectionMatrix:{value:new r.Matrix4},virtualCameraMatrixWorld:{value:new r.Matrix4},virtualCameraProjectionMatrixInverse:{value:new r.Matrix4},resolution:{value:new r.Vector2}},vertexShader:"\n\t\tuniform mat4 textureMatrix;\n\t\tvarying vec4 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = textureMatrix * vec4( position, 1.0 );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\t\tuniform vec3 color;\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tDepth;\n\t\tuniform float maxDistance;\n\t\tuniform float opacity;\n\t\tuniform float fresnelCoe;\n\t\tuniform float virtualCameraNear;\n\t\tuniform float virtualCameraFar;\n\t\tuniform mat4 virtualCameraProjectionMatrix;\n\t\tuniform mat4 virtualCameraProjectionMatrixInverse;\n\t\tuniform mat4 virtualCameraMatrixWorld;\n\t\tuniform vec2 resolution;\n\t\tvarying vec4 vUv;\n\t\t#include \n\t\tfloat blendOverlay( float base, float blend ) {\n\t\t\treturn( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\t\t}\n\t\tvec3 blendOverlay( vec3 base, vec3 blend ) {\n\t\t\treturn vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\t\t}\n\t\tfloat getDepth( const in vec2 uv ) {\n\t\t\treturn texture2D( tDepth, uv ).x;\n\t\t}\n\t\tfloat getViewZ( const in float depth ) {\n\t\t\treturn perspectiveDepthToViewZ( depth, virtualCameraNear, virtualCameraFar );\n\t\t}\n\t\tvec3 getViewPosition( const in vec2 uv, const in float depth/*clip space*/, const in float clipW ) {\n\t\t\tvec4 clipPosition = vec4( ( vec3( uv, depth ) - 0.5 ) * 2.0, 1.0 );//ndc\n\t\t\tclipPosition *= clipW; //clip\n\t\t\treturn ( virtualCameraProjectionMatrixInverse * clipPosition ).xyz;//view\n\t\t}\n\t\tvoid main() {\n\t\t\tvec4 base = texture2DProj( tDiffuse, vUv );\n\t\t\t#ifdef useDepthTexture\n\t\t\t\tvec2 uv=(gl_FragCoord.xy-.5)/resolution.xy;\n\t\t\t\tuv.x=1.-uv.x;\n\t\t\t\tfloat depth = texture2DProj( tDepth, vUv ).r;\n\t\t\t\tfloat viewZ = getViewZ( depth );\n\t\t\t\tfloat clipW = virtualCameraProjectionMatrix[2][3] * viewZ+virtualCameraProjectionMatrix[3][3];\n\t\t\t\tvec3 viewPosition=getViewPosition( uv, depth, clipW );\n\t\t\t\tvec3 worldPosition=(virtualCameraMatrixWorld*vec4(viewPosition,1)).xyz;\n\t\t\t\tif(worldPosition.y>maxDistance) discard;\n\t\t\t\tfloat op=opacity;\n\t\t\t\t#ifdef DISTANCE_ATTENUATION\n\t\t\t\t\tfloat ratio=1.-(worldPosition.y/maxDistance);\n\t\t\t\t\tfloat attenuation=ratio*ratio;\n\t\t\t\t\top=opacity*attenuation;\n\t\t\t\t#endif\n\t\t\t\t#ifdef FRESNEL\n\t\t\t\t\top*=fresnelCoe;\n\t\t\t\t#endif\n\t\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), op );\n\t\t\t#else\n\t\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\t\t\t#endif\n\t\t}\n\t"});const Le={uniforms:{turbidity:{value:2},rayleigh:{value:1},mieCoefficient:{value:.005},mieDirectionalG:{value:.8},sunPosition:{value:new r.Vector3},up:{value:new r.Vector3(0,1,0)}},vertexShader:"\n uniform vec3 sunPosition;\n uniform float rayleigh;\n uniform float turbidity;\n uniform float mieCoefficient;\n uniform vec3 up;\n\n varying vec3 vWorldPosition;\n varying vec3 vSunDirection;\n varying float vSunfade;\n varying vec3 vBetaR;\n varying vec3 vBetaM;\n varying float vSunE;\n\n // constants for atmospheric scattering\n const float e = 2.71828182845904523536028747135266249775724709369995957;\n const float pi = 3.141592653589793238462643383279502884197169;\n\n // wavelength of used primaries, according to preetham\n const vec3 lambda = vec3( 680E-9, 550E-9, 450E-9 );\n // this pre-calcuation replaces older TotalRayleigh(vec3 lambda) function:\n // (8.0 * pow(pi, 3.0) * pow(pow(n, 2.0) - 1.0, 2.0) * (6.0 + 3.0 * pn)) / (3.0 * N * pow(lambda, vec3(4.0)) * (6.0 - 7.0 * pn))\n const vec3 totalRayleigh = vec3( 5.804542996261093E-6, 1.3562911419845635E-5, 3.0265902468824876E-5 );\n\n // mie stuff\n // K coefficient for the primaries\n const float v = 4.0;\n const vec3 K = vec3( 0.686, 0.678, 0.666 );\n // MieConst = pi * pow( ( 2.0 * pi ) / lambda, vec3( v - 2.0 ) ) * K\n const vec3 MieConst = vec3( 1.8399918514433978E14, 2.7798023919660528E14, 4.0790479543861094E14 );\n\n // earth shadow hack\n // cutoffAngle = pi / 1.95;\n const float cutoffAngle = 1.6110731556870734;\n const float steepness = 1.5;\n const float EE = 1000.0;\n\n float sunIntensity( float zenithAngleCos ) {\n zenithAngleCos = clamp( zenithAngleCos, -1.0, 1.0 );\n return EE * max( 0.0, 1.0 - pow( e, -( ( cutoffAngle - acos( zenithAngleCos ) ) / steepness ) ) );\n }\n\n vec3 totalMie( float T ) {\n float c = ( 0.2 * T ) * 10E-18;\n return 0.434 * c * MieConst;\n }\n\n void main() {\n\n vec4 worldPosition = modelMatrix * vec4( position, 1.0 );\n vWorldPosition = worldPosition.xyz;\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n gl_Position.z = gl_Position.w; // set z to camera.far\n\n vSunDirection = normalize( sunPosition );\n\n vSunE = sunIntensity( dot( vSunDirection, up ) );\n\n vSunfade = 1.0 - clamp( 1.0 - exp( ( sunPosition.y / 450000.0 ) ), 0.0, 1.0 );\n\n float rayleighCoefficient = rayleigh - ( 1.0 * ( 1.0 - vSunfade ) );\n\n // extinction (absorbtion + out scattering)\n // rayleigh coefficients\n vBetaR = totalRayleigh * rayleighCoefficient;\n\n // mie coefficients\n vBetaM = totalMie( turbidity ) * mieCoefficient;\n\n }\n ",fragmentShader:`\n varying vec3 vWorldPosition;\n varying vec3 vSunDirection;\n varying float vSunfade;\n varying vec3 vBetaR;\n varying vec3 vBetaM;\n varying float vSunE;\n\n uniform float mieDirectionalG;\n uniform vec3 up;\n\n const vec3 cameraPos = vec3( 0.0, 0.0, 0.0 );\n\n // constants for atmospheric scattering\n const float pi = 3.141592653589793238462643383279502884197169;\n\n const float n = 1.0003; // refractive index of air\n const float N = 2.545E25; // number of molecules per unit volume for air at 288.15K and 1013mb (sea level -45 celsius)\n\n // optical length at zenith for molecules\n const float rayleighZenithLength = 8.4E3;\n const float mieZenithLength = 1.25E3;\n // 66 arc seconds -> degrees, and the cosine of that\n const float sunAngularDiameterCos = 0.999956676946448443553574619906976478926848692873900859324;\n\n // 3.0 / ( 16.0 * pi )\n const float THREE_OVER_SIXTEENPI = 0.05968310365946075;\n // 1.0 / ( 4.0 * pi )\n const float ONE_OVER_FOURPI = 0.07957747154594767;\n\n float rayleighPhase( float cosTheta ) {\n return THREE_OVER_SIXTEENPI * ( 1.0 + pow( cosTheta, 2.0 ) );\n }\n\n float hgPhase( float cosTheta, float g ) {\n float g2 = pow( g, 2.0 );\n float inverse = 1.0 / pow( 1.0 - 2.0 * g * cosTheta + g2, 1.5 );\n return ONE_OVER_FOURPI * ( ( 1.0 - g2 ) * inverse );\n }\n\n void main() {\n\n vec3 direction = normalize( vWorldPosition - cameraPos );\n\n // optical length\n // cutoff angle at 90 to avoid singularity in next formula.\n float zenithAngle = acos( max( 0.0, dot( up, direction ) ) );\n float inverse = 1.0 / ( cos( zenithAngle ) + 0.15 * pow( 93.885 - ( ( zenithAngle * 180.0 ) / pi ), -1.253 ) );\n float sR = rayleighZenithLength * inverse;\n float sM = mieZenithLength * inverse;\n\n // combined extinction factor\n vec3 Fex = exp( -( vBetaR * sR + vBetaM * sM ) );\n\n // in scattering\n float cosTheta = dot( direction, vSunDirection );\n\n float rPhase = rayleighPhase( cosTheta * 0.5 + 0.5 );\n vec3 betaRTheta = vBetaR * rPhase;\n\n float mPhase = hgPhase( cosTheta, mieDirectionalG );\n vec3 betaMTheta = vBetaM * mPhase;\n\n vec3 Lin = pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * ( 1.0 - Fex ), vec3( 1.5 ) );\n Lin *= mix( vec3( 1.0 ), pow( vSunE * ( ( betaRTheta + betaMTheta ) / ( vBetaR + vBetaM ) ) * Fex, vec3( 1.0 / 2.0 ) ), clamp( pow( 1.0 - dot( up, vSunDirection ), 5.0 ), 0.0, 1.0 ) );\n\n // nightsky\n float theta = acos( direction.y ); // elevation --\x3e y-axis, [-pi/2, pi/2]\n float phi = atan( direction.z, direction.x ); // azimuth --\x3e x-axis [-pi/2, pi/2]\n vec2 uv = vec2( phi, theta ) / vec2( 2.0 * pi, pi ) + vec2( 0.5, 0.0 );\n vec3 L0 = vec3( 0.1 ) * Fex;\n\n // composition + solar disc\n float sundisk = smoothstep( sunAngularDiameterCos, sunAngularDiameterCos + 0.00002, cosTheta );\n L0 += ( vSunE * 19000.0 * Fex ) * sundisk;\n\n vec3 texColor = ( Lin + L0 ) * 0.04 + vec3( 0.0, 0.0003, 0.00075 );\n\n vec3 retColor = pow( texColor, vec3( 1.0 / ( 1.2 + ( 1.2 * vSunfade ) ) ) );\n\n gl_FragColor = vec4( retColor, 1.0 );\n\n #include \n #include <${parseInt(r.REVISION.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>\n\n }\n `},Be=new r.ShaderMaterial({name:"SkyShader",fragmentShader:Le.fragmentShader,vertexShader:Le.vertexShader,uniforms:r.UniformsUtils.clone(Le.uniforms),side:r.BackSide,depthWrite:!1});class Fe extends r.Mesh{constructor(){super(new r.BoxGeometry(1,1,1),Be)}}G(Fe,"SkyShader",Le),G(Fe,"material",Be);const Ue=class extends r.Mesh{constructor(e,t={}){super(e),this.isWater=!0,this.type="Water";const n=this,i=void 0!==t.color?new r.Color(t.color):new r.Color(16777215),o=t.textureWidth||512,a=t.textureHeight||512,s=t.clipBias||0,l=t.flowDirection||new r.Vector2(1,0),c=t.flowSpeed||.03,u=t.reflectivity||.02,d=t.scale||1,h=t.shader||Ue.WaterShader,f=void 0!==t.encoding?t.encoding:3e3,p=t.flowMap||void 0,m=t.normalMap0,g=t.normalMap1,v=.15,A=.075,y=new r.Matrix4,b=new r.Clock;if(void 0===_e)return void console.error("THREE.Water: Required component Reflector not found.");if(void 0===Te)return void console.error("THREE.Water: Required component Refractor not found.");const x=new _e(e,{textureWidth:o,textureHeight:a,clipBias:s,encoding:f}),S=new Te(e,{textureWidth:o,textureHeight:a,clipBias:s,encoding:f});x.matrixAutoUpdate=!1,S.matrixAutoUpdate=!1,this.material=new r.ShaderMaterial({uniforms:r.UniformsUtils.merge([r.UniformsLib.fog,h.uniforms]),vertexShader:h.vertexShader,fragmentShader:h.fragmentShader,transparent:!0,fog:!0}),void 0!==p?(this.material.defines.USE_FLOWMAP="",this.material.uniforms.tFlowMap={type:"t",value:p}):this.material.uniforms.flowDirection={type:"v2",value:l},m.wrapS=m.wrapT=r.RepeatWrapping,g.wrapS=g.wrapT=r.RepeatWrapping,this.material.uniforms.tReflectionMap.value=x.getRenderTarget().texture,this.material.uniforms.tRefractionMap.value=S.getRenderTarget().texture,this.material.uniforms.tNormalMap0.value=m,this.material.uniforms.tNormalMap1.value=g,this.material.uniforms.color.value=i,this.material.uniforms.reflectivity.value=u,this.material.uniforms.textureMatrix.value=y,this.material.uniforms.config.value.x=0,this.material.uniforms.config.value.y=A,this.material.uniforms.config.value.z=A,this.material.uniforms.config.value.w=d,this.onBeforeRender=function(e,t,r){!function(e){y.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),y.multiply(e.projectionMatrix),y.multiply(e.matrixWorldInverse),y.multiply(n.matrixWorld)}(r),function(){const e=b.getDelta(),t=n.material.uniforms.config;t.value.x+=c*e,t.value.y=t.value.x+A,t.value.x>=v?(t.value.x=0,t.value.y=A):t.value.y>=v&&(t.value.y=t.value.y-v)}(),n.visible=!1,x.matrixWorld.copy(n.matrixWorld),S.matrixWorld.copy(n.matrixWorld),x.onBeforeRender(e,t,r),S.onBeforeRender(e,t,r),n.visible=!0}}};G(Ue,"WaterShader",{uniforms:{color:{value:null},reflectivity:{value:0},tReflectionMap:{value:null},tRefractionMap:{value:null},tNormalMap0:{value:null},tNormalMap1:{value:null},textureMatrix:{value:null},config:{value:new r.Vector4}},vertexShader:"\n\n\t\t#include \n\t\t#include \n\t\t#include \n\n\t\tuniform mat4 textureMatrix;\n\n\t\tvarying vec4 vCoord;\n\t\tvarying vec2 vUv;\n\t\tvarying vec3 vToEye;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tvCoord = textureMatrix * vec4( position, 1.0 );\n\n\t\t\tvec4 worldPosition = modelMatrix * vec4( position, 1.0 );\n\t\t\tvToEye = cameraPosition - worldPosition.xyz;\n\n\t\t\tvec4 mvPosition = viewMatrix * worldPosition; // used in fog_vertex\n\t\t\tgl_Position = projectionMatrix * mvPosition;\n\n\t\t\t#include \n\t\t\t#include \n\n\t\t}",fragmentShader:`\n\n\t\t#include \n\t\t#include \n\t\t#include \n\n\t\tuniform sampler2D tReflectionMap;\n\t\tuniform sampler2D tRefractionMap;\n\t\tuniform sampler2D tNormalMap0;\n\t\tuniform sampler2D tNormalMap1;\n\n\t\t#ifdef USE_FLOWMAP\n\t\t\tuniform sampler2D tFlowMap;\n\t\t#else\n\t\t\tuniform vec2 flowDirection;\n\t\t#endif\n\n\t\tuniform vec3 color;\n\t\tuniform float reflectivity;\n\t\tuniform vec4 config;\n\n\t\tvarying vec4 vCoord;\n\t\tvarying vec2 vUv;\n\t\tvarying vec3 vToEye;\n\n\t\tvoid main() {\n\n\t\t\t#include \n\n\t\t\tfloat flowMapOffset0 = config.x;\n\t\t\tfloat flowMapOffset1 = config.y;\n\t\t\tfloat halfCycle = config.z;\n\t\t\tfloat scale = config.w;\n\n\t\t\tvec3 toEye = normalize( vToEye );\n\n\t\t\t// determine flow direction\n\t\t\tvec2 flow;\n\t\t\t#ifdef USE_FLOWMAP\n\t\t\t\tflow = texture2D( tFlowMap, vUv ).rg * 2.0 - 1.0;\n\t\t\t#else\n\t\t\t\tflow = flowDirection;\n\t\t\t#endif\n\t\t\tflow.x *= - 1.0;\n\n\t\t\t// sample normal maps (distort uvs with flowdata)\n\t\t\tvec4 normalColor0 = texture2D( tNormalMap0, ( vUv * scale ) + flow * flowMapOffset0 );\n\t\t\tvec4 normalColor1 = texture2D( tNormalMap1, ( vUv * scale ) + flow * flowMapOffset1 );\n\n\t\t\t// linear interpolate to get the final normal color\n\t\t\tfloat flowLerp = abs( halfCycle - flowMapOffset0 ) / halfCycle;\n\t\t\tvec4 normalColor = mix( normalColor0, normalColor1, flowLerp );\n\n\t\t\t// calculate normal vector\n\t\t\tvec3 normal = normalize( vec3( normalColor.r * 2.0 - 1.0, normalColor.b, normalColor.g * 2.0 - 1.0 ) );\n\n\t\t\t// calculate the fresnel term to blend reflection and refraction maps\n\t\t\tfloat theta = max( dot( toEye, normal ), 0.0 );\n\t\t\tfloat reflectance = reflectivity + ( 1.0 - reflectivity ) * pow( ( 1.0 - theta ), 5.0 );\n\n\t\t\t// calculate final uv coords\n\t\t\tvec3 coord = vCoord.xyz / vCoord.w;\n\t\t\tvec2 uv = coord.xy + coord.z * normal.xz * 0.05;\n\n\t\t\tvec4 reflectColor = texture2D( tReflectionMap, vec2( 1.0 - uv.x, uv.y ) );\n\t\t\tvec4 refractColor = texture2D( tRefractionMap, uv );\n\n\t\t\t// multiply water color with the mix of both textures\n\t\t\tgl_FragColor = vec4( color, 1.0 ) * mix( refractColor, reflectColor, reflectance );\n\n\t\t\t#include \n\t\t\t#include <${parseInt(r.REVISION.replace(/\D+/g,""))>=154?"colorspace_fragment":"encodings_fragment"}>\n\t\t\t#include \n\n\t\t}`}),r.Mesh;const ze={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float opacity;","uniform sampler2D tDiffuse;","varying vec2 vUv;","#include ","void main() {","\tfloat depth = 1.0 - unpackRGBAToDepth( texture2D( tDiffuse, vUv ) );","\tgl_FragColor = vec4( vec3( depth ), opacity );","}"].join("\n")};r.MeshPhongMaterial,["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#include ","varying vec2 vUv;","uniform sampler2D tColor;","uniform sampler2D tDepth;","uniform float textureWidth;","uniform float textureHeight;","uniform float focalDepth; //focal distance value in meters, but you may use autofocus option below","uniform float focalLength; //focal length in mm","uniform float fstop; //f-stop value","uniform bool showFocus; //show debug focus point and focal range (red = focal point, green = focal range)","/*","make sure that these two values are the same for your camera, otherwise distances will be wrong.","*/","uniform float znear; // camera clipping start","uniform float zfar; // camera clipping end","//------------------------------------------","//user variables","const int samples = SAMPLES; //samples on the first ring","const int rings = RINGS; //ring count","const int maxringsamples = rings * samples;","uniform bool manualdof; // manual dof calculation","float ndofstart = 1.0; // near dof blur start","float ndofdist = 2.0; // near dof blur falloff distance","float fdofstart = 1.0; // far dof blur start","float fdofdist = 3.0; // far dof blur falloff distance","float CoC = 0.03; //circle of confusion size in mm (35mm film = 0.03mm)","uniform bool vignetting; // use optical lens vignetting","float vignout = 1.3; // vignetting outer border","float vignin = 0.0; // vignetting inner border","float vignfade = 22.0; // f-stops till vignete fades","uniform bool shaderFocus;","// disable if you use external focalDepth value","uniform vec2 focusCoords;","// autofocus point on screen (0.0,0.0 - left lower corner, 1.0,1.0 - upper right)","// if center of screen use vec2(0.5, 0.5);","uniform float maxblur;","//clamp value of max blur (0.0 = no blur, 1.0 default)","uniform float threshold; // highlight threshold;","uniform float gain; // highlight gain;","uniform float bias; // bokeh edge bias","uniform float fringe; // bokeh chromatic aberration / fringing","uniform bool noise; //use noise instead of pattern for sample dithering","uniform float dithering;","uniform bool depthblur; // blur the depth buffer","float dbsize = 1.25; // depth blur size","/*","next part is experimental","not looking good with small sample and ring count","looks okay starting from samples = 4, rings = 4","*/","uniform bool pentagon; //use pentagon as bokeh shape?","float feather = 0.4; //pentagon shape feather","//------------------------------------------","float penta(vec2 coords) {","\t//pentagonal shape","\tfloat scale = float(rings) - 1.3;","\tvec4 HS0 = vec4( 1.0, 0.0, 0.0, 1.0);","\tvec4 HS1 = vec4( 0.309016994, 0.951056516, 0.0, 1.0);","\tvec4 HS2 = vec4(-0.809016994, 0.587785252, 0.0, 1.0);","\tvec4 HS3 = vec4(-0.809016994,-0.587785252, 0.0, 1.0);","\tvec4 HS4 = vec4( 0.309016994,-0.951056516, 0.0, 1.0);","\tvec4 HS5 = vec4( 0.0 ,0.0 , 1.0, 1.0);","\tvec4 one = vec4( 1.0 );","\tvec4 P = vec4((coords),vec2(scale, scale));","\tvec4 dist = vec4(0.0);","\tfloat inorout = -4.0;","\tdist.x = dot( P, HS0 );","\tdist.y = dot( P, HS1 );","\tdist.z = dot( P, HS2 );","\tdist.w = dot( P, HS3 );","\tdist = smoothstep( -feather, feather, dist );","\tinorout += dot( dist, one );","\tdist.x = dot( P, HS4 );","\tdist.y = HS5.w - abs( P.z );","\tdist = smoothstep( -feather, feather, dist );","\tinorout += dist.x;","\treturn clamp( inorout, 0.0, 1.0 );","}","float bdepth(vec2 coords) {","\t// Depth buffer blur","\tfloat d = 0.0;","\tfloat kernel[9];","\tvec2 offset[9];","\tvec2 wh = vec2(1.0/textureWidth,1.0/textureHeight) * dbsize;","\toffset[0] = vec2(-wh.x,-wh.y);","\toffset[1] = vec2( 0.0, -wh.y);","\toffset[2] = vec2( wh.x -wh.y);","\toffset[3] = vec2(-wh.x, 0.0);","\toffset[4] = vec2( 0.0, 0.0);","\toffset[5] = vec2( wh.x, 0.0);","\toffset[6] = vec2(-wh.x, wh.y);","\toffset[7] = vec2( 0.0, wh.y);","\toffset[8] = vec2( wh.x, wh.y);","\tkernel[0] = 1.0/16.0; kernel[1] = 2.0/16.0; kernel[2] = 1.0/16.0;","\tkernel[3] = 2.0/16.0; kernel[4] = 4.0/16.0; kernel[5] = 2.0/16.0;","\tkernel[6] = 1.0/16.0; kernel[7] = 2.0/16.0; kernel[8] = 1.0/16.0;","\tfor( int i=0; i<9; i++ ) {","\t\tfloat tmp = texture2D(tDepth, coords + offset[i]).r;","\t\td += tmp * kernel[i];","\t}","\treturn d;","}","vec3 color(vec2 coords,float blur) {","\t//processing the sample","\tvec3 col = vec3(0.0);","\tvec2 texel = vec2(1.0/textureWidth,1.0/textureHeight);","\tcol.r = texture2D(tColor,coords + vec2(0.0,1.0)*texel*fringe*blur).r;","\tcol.g = texture2D(tColor,coords + vec2(-0.866,-0.5)*texel*fringe*blur).g;","\tcol.b = texture2D(tColor,coords + vec2(0.866,-0.5)*texel*fringe*blur).b;","\tvec3 lumcoeff = vec3(0.299,0.587,0.114);","\tfloat lum = dot(col.rgb, lumcoeff);","\tfloat thresh = max((lum-threshold)*gain, 0.0);","\treturn col+mix(vec3(0.0),col,thresh*blur);","}","vec3 debugFocus(vec3 col, float blur, float depth) {","\tfloat edge = 0.002*depth; //distance based edge smoothing","\tfloat m = clamp(smoothstep(0.0,edge,blur),0.0,1.0);","\tfloat e = clamp(smoothstep(1.0-edge,1.0,blur),0.0,1.0);","\tcol = mix(col,vec3(1.0,0.5,0.0),(1.0-m)*0.6);","\tcol = mix(col,vec3(0.0,0.5,1.0),((1.0-e)-(1.0-m))*0.2);","\treturn col;","}","float linearize(float depth) {","\treturn -zfar * znear / (depth * (zfar - znear) - zfar);","}","float vignette() {","\tfloat dist = distance(vUv.xy, vec2(0.5,0.5));","\tdist = smoothstep(vignout+(fstop/vignfade), vignin+(fstop/vignfade), dist);","\treturn clamp(dist,0.0,1.0);","}","float gather(float i, float j, int ringsamples, inout vec3 col, float w, float h, float blur) {","\tfloat rings2 = float(rings);","\tfloat step = PI*2.0 / float(ringsamples);","\tfloat pw = cos(j*step)*i;","\tfloat ph = sin(j*step)*i;","\tfloat p = 1.0;","\tif (pentagon) {","\t\tp = penta(vec2(pw,ph));","\t}","\tcol += color(vUv.xy + vec2(pw*w,ph*h), blur) * mix(1.0, i/rings2, bias) * p;","\treturn 1.0 * mix(1.0, i /rings2, bias) * p;","}","void main() {","\t//scene depth calculation","\tfloat depth = linearize(texture2D(tDepth,vUv.xy).x);","\t// Blur depth?","\tif ( depthblur ) {","\t\tdepth = linearize(bdepth(vUv.xy));","\t}","\t//focal plane calculation","\tfloat fDepth = focalDepth;","\tif (shaderFocus) {","\t\tfDepth = linearize(texture2D(tDepth,focusCoords).x);","\t}","\t// dof blur factor calculation","\tfloat blur = 0.0;","\tif (manualdof) {","\t\tfloat a = depth-fDepth; // Focal plane","\t\tfloat b = (a-fdofstart)/fdofdist; // Far DoF","\t\tfloat c = (-a-ndofstart)/ndofdist; // Near Dof","\t\tblur = (a>0.0) ? b : c;","\t} else {","\t\tfloat f = focalLength; // focal length in mm","\t\tfloat d = fDepth*1000.0; // focal plane in mm","\t\tfloat o = depth*1000.0; // depth in mm","\t\tfloat a = (o*f)/(o-f);","\t\tfloat b = (d*f)/(d-f);","\t\tfloat c = (d-f)/(d*fstop*CoC);","\t\tblur = abs(a-b)*c;","\t}","\tblur = clamp(blur,0.0,1.0);","\t// calculation of pattern for dithering","\tvec2 noise = vec2(rand(vUv.xy), rand( vUv.xy + vec2( 0.4, 0.6 ) ) )*dithering*blur;","\t// getting blur x and y step factor","\tfloat w = (1.0/textureWidth)*blur*maxblur+noise.x;","\tfloat h = (1.0/textureHeight)*blur*maxblur+noise.y;","\t// calculation of final color","\tvec3 col = vec3(0.0);","\tif(blur < 0.05) {","\t\t//some optimization thingy","\t\tcol = texture2D(tColor, vUv.xy).rgb;","\t} else {","\t\tcol = texture2D(tColor, vUv.xy).rgb;","\t\tfloat s = 1.0;","\t\tint ringsamples;","\t\tfor (int i = 1; i <= rings; i++) {","\t\t\t/*unboxstart*/","\t\t\tringsamples = i * samples;","\t\t\tfor (int j = 0 ; j < maxringsamples ; j++) {","\t\t\t\tif (j >= ringsamples) break;","\t\t\t\ts += gather(float(i), float(j), ringsamples, col, w, h, blur);","\t\t\t}","\t\t\t/*unboxend*/","\t\t}","\t\tcol /= s; //divide by sample count","\t}","\tif (showFocus) {","\t\tcol = debugFocus(col, blur, depth);","\t}","\tif (vignetting) {","\t\tcol *= vignette();","\t}","\tgl_FragColor.rgb = col;","\tgl_FragColor.a = 1.0;","} "].join("\n"),["varying float vViewZDepth;","void main() {","\t#include ","\t#include ","\tvViewZDepth = - mvPosition.z;","}"].join("\n"),["uniform float mNear;","uniform float mFar;","varying float vViewZDepth;","void main() {","\tfloat color = 1.0 - smoothstep( mNear, mFar, vViewZDepth );","\tgl_FragColor = vec4( vec3( color ), 1.0 );","} "].join("\n"),r.PerspectiveCamera,r.EventDispatcher,r.EventDispatcher,r.Object3D,r.Object3D,r.Mesh,r.EventDispatcher,Math.PI,r.EventDispatcher,r.EventDispatcher,r.EventDispatcher,r.EventDispatcher,Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),Symbol(),r.EventDispatcher,r.EventDispatcher;class je{constructor(){G(this,"enabled",!0),G(this,"needsSwap",!0),G(this,"clear",!1),G(this,"renderToScreen",!1)}setSize(e,t){}render(e,t,n,r,i){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}class $e{constructor(e){G(this,"camera",new r.OrthographicCamera(-1,1,1,-1,0,1)),G(this,"geometry",new r.PlaneGeometry(2,2)),G(this,"mesh"),this.mesh=new r.Mesh(this.geometry,e)}get material(){return this.mesh.material}set material(e){this.mesh.material=e}dispose(){this.mesh.geometry.dispose()}render(e){e.render(this.mesh,this.camera)}}class He extends je{constructor(e,t="tDiffuse"){super(),G(this,"textureID"),G(this,"uniforms"),G(this,"material"),G(this,"fsQuad"),this.textureID=t,e instanceof r.ShaderMaterial?(this.uniforms=e.uniforms,this.material=e):(this.uniforms=r.UniformsUtils.clone(e.uniforms),this.material=new r.ShaderMaterial({defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.fsQuad=new $e(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this.fsQuad.render(e))}}Math.PI,Math.PI,Math.PI,["varying vec2 vUV;","void main() {","\tvUV = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);","}"].join("\n"),["#define SQRT2_MINUS_ONE 0.41421356","#define SQRT2_HALF_MINUS_ONE 0.20710678","#define PI2 6.28318531","#define SHAPE_DOT 1","#define SHAPE_ELLIPSE 2","#define SHAPE_LINE 3","#define SHAPE_SQUARE 4","#define BLENDING_LINEAR 1","#define BLENDING_MULTIPLY 2","#define BLENDING_ADD 3","#define BLENDING_LIGHTER 4","#define BLENDING_DARKER 5","uniform sampler2D tDiffuse;","uniform float radius;","uniform float rotateR;","uniform float rotateG;","uniform float rotateB;","uniform float scatter;","uniform float width;","uniform float height;","uniform int shape;","uniform bool disable;","uniform float blending;","uniform int blendingMode;","varying vec2 vUV;","uniform bool greyscale;","const int samples = 8;","float blend( float a, float b, float t ) {","\treturn a * ( 1.0 - t ) + b * t;","}","float hypot( float x, float y ) {","\treturn sqrt( x * x + y * y );","}","float rand( vec2 seed ){","return fract( sin( dot( seed.xy, vec2( 12.9898, 78.233 ) ) ) * 43758.5453 );","}","float distanceToDotRadius( float channel, vec2 coord, vec2 normal, vec2 p, float angle, float rad_max ) {","\tfloat dist = hypot( coord.x - p.x, coord.y - p.y );","\tfloat rad = channel;","\tif ( shape == SHAPE_DOT ) {","\t\trad = pow( abs( rad ), 1.125 ) * rad_max;","\t} else if ( shape == SHAPE_ELLIPSE ) {","\t\trad = pow( abs( rad ), 1.125 ) * rad_max;","\t\tif ( dist != 0.0 ) {","\t\t\tfloat dot_p = abs( ( p.x - coord.x ) / dist * normal.x + ( p.y - coord.y ) / dist * normal.y );","\t\t\tdist = ( dist * ( 1.0 - SQRT2_HALF_MINUS_ONE ) ) + dot_p * dist * SQRT2_MINUS_ONE;","\t\t}","\t} else if ( shape == SHAPE_LINE ) {","\t\trad = pow( abs( rad ), 1.5) * rad_max;","\t\tfloat dot_p = ( p.x - coord.x ) * normal.x + ( p.y - coord.y ) * normal.y;","\t\tdist = hypot( normal.x * dot_p, normal.y * dot_p );","\t} else if ( shape == SHAPE_SQUARE ) {","\t\tfloat theta = atan( p.y - coord.y, p.x - coord.x ) - angle;","\t\tfloat sin_t = abs( sin( theta ) );","\t\tfloat cos_t = abs( cos( theta ) );","\t\trad = pow( abs( rad ), 1.4 );","\t\trad = rad_max * ( rad + ( ( sin_t > cos_t ) ? rad - sin_t * rad : rad - cos_t * rad ) );","\t}","\treturn rad - dist;","}","struct Cell {","\tvec2 normal;","\tvec2 p1;","\tvec2 p2;","\tvec2 p3;","\tvec2 p4;","\tfloat samp2;","\tfloat samp1;","\tfloat samp3;","\tfloat samp4;","};","vec4 getSample( vec2 point ) {","\tvec4 tex = texture2D( tDiffuse, vec2( point.x / width, point.y / height ) );","\tfloat base = rand( vec2( floor( point.x ), floor( point.y ) ) ) * PI2;","\tfloat step = PI2 / float( samples );","\tfloat dist = radius * 0.66;","\tfor ( int i = 0; i < samples; ++i ) {","\t\tfloat r = base + step * float( i );","\t\tvec2 coord = point + vec2( cos( r ) * dist, sin( r ) * dist );","\t\ttex += texture2D( tDiffuse, vec2( coord.x / width, coord.y / height ) );","\t}","\ttex /= float( samples ) + 1.0;","\treturn tex;","}","float getDotColour( Cell c, vec2 p, int channel, float angle, float aa ) {","\tfloat dist_c_1, dist_c_2, dist_c_3, dist_c_4, res;","\tif ( channel == 0 ) {","\t\tc.samp1 = getSample( c.p1 ).r;","\t\tc.samp2 = getSample( c.p2 ).r;","\t\tc.samp3 = getSample( c.p3 ).r;","\t\tc.samp4 = getSample( c.p4 ).r;","\t} else if (channel == 1) {","\t\tc.samp1 = getSample( c.p1 ).g;","\t\tc.samp2 = getSample( c.p2 ).g;","\t\tc.samp3 = getSample( c.p3 ).g;","\t\tc.samp4 = getSample( c.p4 ).g;","\t} else {","\t\tc.samp1 = getSample( c.p1 ).b;","\t\tc.samp3 = getSample( c.p3 ).b;","\t\tc.samp2 = getSample( c.p2 ).b;","\t\tc.samp4 = getSample( c.p4 ).b;","\t}","\tdist_c_1 = distanceToDotRadius( c.samp1, c.p1, c.normal, p, angle, radius );","\tdist_c_2 = distanceToDotRadius( c.samp2, c.p2, c.normal, p, angle, radius );","\tdist_c_3 = distanceToDotRadius( c.samp3, c.p3, c.normal, p, angle, radius );","\tdist_c_4 = distanceToDotRadius( c.samp4, c.p4, c.normal, p, angle, radius );","\tres = ( dist_c_1 > 0.0 ) ? clamp( dist_c_1 / aa, 0.0, 1.0 ) : 0.0;","\tres += ( dist_c_2 > 0.0 ) ? clamp( dist_c_2 / aa, 0.0, 1.0 ) : 0.0;","\tres += ( dist_c_3 > 0.0 ) ? clamp( dist_c_3 / aa, 0.0, 1.0 ) : 0.0;","\tres += ( dist_c_4 > 0.0 ) ? clamp( dist_c_4 / aa, 0.0, 1.0 ) : 0.0;","\tres = clamp( res, 0.0, 1.0 );","\treturn res;","}","Cell getReferenceCell( vec2 p, vec2 origin, float grid_angle, float step ) {","\tCell c;","\tvec2 n = vec2( cos( grid_angle ), sin( grid_angle ) );","\tfloat threshold = step * 0.5;","\tfloat dot_normal = n.x * ( p.x - origin.x ) + n.y * ( p.y - origin.y );","\tfloat dot_line = -n.y * ( p.x - origin.x ) + n.x * ( p.y - origin.y );","\tvec2 offset = vec2( n.x * dot_normal, n.y * dot_normal );","\tfloat offset_normal = mod( hypot( offset.x, offset.y ), step );","\tfloat normal_dir = ( dot_normal < 0.0 ) ? 1.0 : -1.0;","\tfloat normal_scale = ( ( offset_normal < threshold ) ? -offset_normal : step - offset_normal ) * normal_dir;","\tfloat offset_line = mod( hypot( ( p.x - offset.x ) - origin.x, ( p.y - offset.y ) - origin.y ), step );","\tfloat line_dir = ( dot_line < 0.0 ) ? 1.0 : -1.0;","\tfloat line_scale = ( ( offset_line < threshold ) ? -offset_line : step - offset_line ) * line_dir;","\tc.normal = n;","\tc.p1.x = p.x - n.x * normal_scale + n.y * line_scale;","\tc.p1.y = p.y - n.y * normal_scale - n.x * line_scale;","\tif ( scatter != 0.0 ) {","\t\tfloat off_mag = scatter * threshold * 0.5;","\t\tfloat off_angle = rand( vec2( floor( c.p1.x ), floor( c.p1.y ) ) ) * PI2;","\t\tc.p1.x += cos( off_angle ) * off_mag;","\t\tc.p1.y += sin( off_angle ) * off_mag;","\t}","\tfloat normal_step = normal_dir * ( ( offset_normal < threshold ) ? step : -step );","\tfloat line_step = line_dir * ( ( offset_line < threshold ) ? step : -step );","\tc.p2.x = c.p1.x - n.x * normal_step;","\tc.p2.y = c.p1.y - n.y * normal_step;","\tc.p3.x = c.p1.x + n.y * line_step;","\tc.p3.y = c.p1.y - n.x * line_step;","\tc.p4.x = c.p1.x - n.x * normal_step + n.y * line_step;","\tc.p4.y = c.p1.y - n.y * normal_step - n.x * line_step;","\treturn c;","}","float blendColour( float a, float b, float t ) {","\tif ( blendingMode == BLENDING_LINEAR ) {","\t\treturn blend( a, b, 1.0 - t );","\t} else if ( blendingMode == BLENDING_ADD ) {","\t\treturn blend( a, min( 1.0, a + b ), t );","\t} else if ( blendingMode == BLENDING_MULTIPLY ) {","\t\treturn blend( a, max( 0.0, a * b ), t );","\t} else if ( blendingMode == BLENDING_LIGHTER ) {","\t\treturn blend( a, max( a, b ), t );","\t} else if ( blendingMode == BLENDING_DARKER ) {","\t\treturn blend( a, min( a, b ), t );","\t} else {","\t\treturn blend( a, b, 1.0 - t );","\t}","}","void main() {","\tif ( ! disable ) {","\t\tvec2 p = vec2( vUV.x * width, vUV.y * height );","\t\tvec2 origin = vec2( 0, 0 );","\t\tfloat aa = ( radius < 2.5 ) ? radius * 0.5 : 1.25;","\t\tCell cell_r = getReferenceCell( p, origin, rotateR, radius );","\t\tCell cell_g = getReferenceCell( p, origin, rotateG, radius );","\t\tCell cell_b = getReferenceCell( p, origin, rotateB, radius );","\t\tfloat r = getDotColour( cell_r, p, 0, rotateR, aa );","\t\tfloat g = getDotColour( cell_g, p, 1, rotateG, aa );","\t\tfloat b = getDotColour( cell_b, p, 2, rotateB, aa );","\t\tvec4 colour = texture2D( tDiffuse, vUV );","\t\tr = blendColour( r, colour.r, blending );","\t\tg = blendColour( g, colour.g, blending );","\t\tb = blendColour( b, colour.b, blending );","\t\tif ( greyscale ) {","\t\t\tr = g = b = (r + b + g) / 3.0;","\t\t}","\t\tgl_FragColor = vec4( r, g, b, 1.0 );","\t} else {","\t\tgl_FragColor = texture2D( tDiffuse, vUV );","\t}","}"].join("\n"),["uniform vec2 resolution;","varying vec2 vUv;","varying vec4 vOffset[ 3 ];","void SMAAEdgeDetectionVS( vec2 texcoord ) {","\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 );","\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 );","\tvOffset[ 2 ] = texcoord.xyxy + resolution.xyxy * vec4( -2.0, 0.0, 0.0, 2.0 );","}","void main() {","\tvUv = uv;","\tSMAAEdgeDetectionVS( vUv );","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","varying vec2 vUv;","varying vec4 vOffset[ 3 ];","vec4 SMAAColorEdgeDetectionPS( vec2 texcoord, vec4 offset[3], sampler2D colorTex ) {","\tvec2 threshold = vec2( SMAA_THRESHOLD, SMAA_THRESHOLD );","\tvec4 delta;","\tvec3 C = texture2D( colorTex, texcoord ).rgb;","\tvec3 Cleft = texture2D( colorTex, offset[0].xy ).rgb;","\tvec3 t = abs( C - Cleft );","\tdelta.x = max( max( t.r, t.g ), t.b );","\tvec3 Ctop = texture2D( colorTex, offset[0].zw ).rgb;","\tt = abs( C - Ctop );","\tdelta.y = max( max( t.r, t.g ), t.b );","\tvec2 edges = step( threshold, delta.xy );","\tif ( dot( edges, vec2( 1.0, 1.0 ) ) == 0.0 )","\t\tdiscard;","\tvec3 Cright = texture2D( colorTex, offset[1].xy ).rgb;","\tt = abs( C - Cright );","\tdelta.z = max( max( t.r, t.g ), t.b );","\tvec3 Cbottom = texture2D( colorTex, offset[1].zw ).rgb;","\tt = abs( C - Cbottom );","\tdelta.w = max( max( t.r, t.g ), t.b );","\tfloat maxDelta = max( max( max( delta.x, delta.y ), delta.z ), delta.w );","\tvec3 Cleftleft = texture2D( colorTex, offset[2].xy ).rgb;","\tt = abs( C - Cleftleft );","\tdelta.z = max( max( t.r, t.g ), t.b );","\tvec3 Ctoptop = texture2D( colorTex, offset[2].zw ).rgb;","\tt = abs( C - Ctoptop );","\tdelta.w = max( max( t.r, t.g ), t.b );","\tmaxDelta = max( max( maxDelta, delta.z ), delta.w );","\tedges.xy *= step( 0.5 * maxDelta, delta.xy );","\treturn vec4( edges, 0.0, 0.0 );","}","void main() {","\tgl_FragColor = SMAAColorEdgeDetectionPS( vUv, vOffset, tDiffuse );","}"].join("\n"),["uniform vec2 resolution;","varying vec2 vUv;","varying vec4 vOffset[ 3 ];","varying vec2 vPixcoord;","void SMAABlendingWeightCalculationVS( vec2 texcoord ) {","\tvPixcoord = texcoord / resolution;","\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.25, 0.125, 1.25, 0.125 );","\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.125, 0.25, -0.125, -1.25 );","\tvOffset[ 2 ] = vec4( vOffset[ 0 ].xz, vOffset[ 1 ].yw ) + vec4( -2.0, 2.0, -2.0, 2.0 ) * resolution.xxyy * float( SMAA_MAX_SEARCH_STEPS );","}","void main() {","\tvUv = uv;","\tSMAABlendingWeightCalculationVS( vUv );","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#define SMAASampleLevelZeroOffset( tex, coord, offset ) texture2D( tex, coord + float( offset ) * resolution, 0.0 )","uniform sampler2D tDiffuse;","uniform sampler2D tArea;","uniform sampler2D tSearch;","uniform vec2 resolution;","varying vec2 vUv;","varying vec4 vOffset[3];","varying vec2 vPixcoord;","#if __VERSION__ == 100","vec2 round( vec2 x ) {","\treturn sign( x ) * floor( abs( x ) + 0.5 );","}","#endif","float SMAASearchLength( sampler2D searchTex, vec2 e, float bias, float scale ) {","\te.r = bias + e.r * scale;","\treturn 255.0 * texture2D( searchTex, e, 0.0 ).r;","}","float SMAASearchXLeft( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {","\tvec2 e = vec2( 0.0, 1.0 );","\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) {","\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;","\t\ttexcoord -= vec2( 2.0, 0.0 ) * resolution;","\t\tif ( ! ( texcoord.x > end && e.g > 0.8281 && e.r == 0.0 ) ) break;","\t}","\ttexcoord.x += 0.25 * resolution.x;","\ttexcoord.x += resolution.x;","\ttexcoord.x += 2.0 * resolution.x;","\ttexcoord.x -= resolution.x * SMAASearchLength(searchTex, e, 0.0, 0.5);","\treturn texcoord.x;","}","float SMAASearchXRight( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {","\tvec2 e = vec2( 0.0, 1.0 );","\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) {","\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;","\t\ttexcoord += vec2( 2.0, 0.0 ) * resolution;","\t\tif ( ! ( texcoord.x < end && e.g > 0.8281 && e.r == 0.0 ) ) break;","\t}","\ttexcoord.x -= 0.25 * resolution.x;","\ttexcoord.x -= resolution.x;","\ttexcoord.x -= 2.0 * resolution.x;","\ttexcoord.x += resolution.x * SMAASearchLength( searchTex, e, 0.5, 0.5 );","\treturn texcoord.x;","}","float SMAASearchYUp( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {","\tvec2 e = vec2( 1.0, 0.0 );","\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) {","\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;","\t\ttexcoord += vec2( 0.0, 2.0 ) * resolution;","\t\tif ( ! ( texcoord.y > end && e.r > 0.8281 && e.g == 0.0 ) ) break;","\t}","\ttexcoord.y -= 0.25 * resolution.y;","\ttexcoord.y -= resolution.y;","\ttexcoord.y -= 2.0 * resolution.y;","\ttexcoord.y += resolution.y * SMAASearchLength( searchTex, e.gr, 0.0, 0.5 );","\treturn texcoord.y;","}","float SMAASearchYDown( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {","\tvec2 e = vec2( 1.0, 0.0 );","\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) {","\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;","\t\ttexcoord -= vec2( 0.0, 2.0 ) * resolution;","\t\tif ( ! ( texcoord.y < end && e.r > 0.8281 && e.g == 0.0 ) ) break;","\t}","\ttexcoord.y += 0.25 * resolution.y;","\ttexcoord.y += resolution.y;","\ttexcoord.y += 2.0 * resolution.y;","\ttexcoord.y -= resolution.y * SMAASearchLength( searchTex, e.gr, 0.5, 0.5 );","\treturn texcoord.y;","}","vec2 SMAAArea( sampler2D areaTex, vec2 dist, float e1, float e2, float offset ) {","\tvec2 texcoord = float( SMAA_AREATEX_MAX_DISTANCE ) * round( 4.0 * vec2( e1, e2 ) ) + dist;","\ttexcoord = SMAA_AREATEX_PIXEL_SIZE * texcoord + ( 0.5 * SMAA_AREATEX_PIXEL_SIZE );","\ttexcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;","\treturn texture2D( areaTex, texcoord, 0.0 ).rg;","}","vec4 SMAABlendingWeightCalculationPS( vec2 texcoord, vec2 pixcoord, vec4 offset[ 3 ], sampler2D edgesTex, sampler2D areaTex, sampler2D searchTex, ivec4 subsampleIndices ) {","\tvec4 weights = vec4( 0.0, 0.0, 0.0, 0.0 );","\tvec2 e = texture2D( edgesTex, texcoord ).rg;","\tif ( e.g > 0.0 ) {","\t\tvec2 d;","\t\tvec2 coords;","\t\tcoords.x = SMAASearchXLeft( edgesTex, searchTex, offset[ 0 ].xy, offset[ 2 ].x );","\t\tcoords.y = offset[ 1 ].y;","\t\td.x = coords.x;","\t\tfloat e1 = texture2D( edgesTex, coords, 0.0 ).r;","\t\tcoords.x = SMAASearchXRight( edgesTex, searchTex, offset[ 0 ].zw, offset[ 2 ].y );","\t\td.y = coords.x;","\t\td = d / resolution.x - pixcoord.x;","\t\tvec2 sqrt_d = sqrt( abs( d ) );","\t\tcoords.y -= 1.0 * resolution.y;","\t\tfloat e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 1, 0 ) ).r;","\t\tweights.rg = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.y ) );","\t}","\tif ( e.r > 0.0 ) {","\t\tvec2 d;","\t\tvec2 coords;","\t\tcoords.y = SMAASearchYUp( edgesTex, searchTex, offset[ 1 ].xy, offset[ 2 ].z );","\t\tcoords.x = offset[ 0 ].x;","\t\td.x = coords.y;","\t\tfloat e1 = texture2D( edgesTex, coords, 0.0 ).g;","\t\tcoords.y = SMAASearchYDown( edgesTex, searchTex, offset[ 1 ].zw, offset[ 2 ].w );","\t\td.y = coords.y;","\t\td = d / resolution.y - pixcoord.y;","\t\tvec2 sqrt_d = sqrt( abs( d ) );","\t\tcoords.y -= 1.0 * resolution.y;","\t\tfloat e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 0, 1 ) ).g;","\t\tweights.ba = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.x ) );","\t}","\treturn weights;","}","void main() {","\tgl_FragColor = SMAABlendingWeightCalculationPS( vUv, vPixcoord, vOffset, tDiffuse, tArea, tSearch, ivec4( 0.0 ) );","}"].join("\n"),["uniform vec2 resolution;","varying vec2 vUv;","varying vec4 vOffset[ 2 ];","void SMAANeighborhoodBlendingVS( vec2 texcoord ) {","\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 );","\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 );","}","void main() {","\tvUv = uv;","\tSMAANeighborhoodBlendingVS( vUv );","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform sampler2D tColor;","uniform vec2 resolution;","varying vec2 vUv;","varying vec4 vOffset[ 2 ];","vec4 SMAANeighborhoodBlendingPS( vec2 texcoord, vec4 offset[ 2 ], sampler2D colorTex, sampler2D blendTex ) {","\tvec4 a;","\ta.xz = texture2D( blendTex, texcoord ).xz;","\ta.y = texture2D( blendTex, offset[ 1 ].zw ).g;","\ta.w = texture2D( blendTex, offset[ 1 ].xy ).a;","\tif ( dot(a, vec4( 1.0, 1.0, 1.0, 1.0 )) < 1e-5 ) {","\t\treturn texture2D( colorTex, texcoord, 0.0 );","\t} else {","\t\tvec2 offset;","\t\toffset.x = a.a > a.b ? a.a : -a.b;","\t\toffset.y = a.g > a.r ? -a.g : a.r;","\t\tif ( abs( offset.x ) > abs( offset.y )) {","\t\t\toffset.y = 0.0;","\t\t} else {","\t\t\toffset.x = 0.0;","\t\t}","\t\tvec4 C = texture2D( colorTex, texcoord, 0.0 );","\t\ttexcoord += sign( offset ) * resolution;","\t\tvec4 Cop = texture2D( colorTex, texcoord, 0.0 );","\t\tfloat s = abs( offset.x ) > abs( offset.y ) ? abs( offset.x ) : abs( offset.y );","\t\tC.xyz = pow(C.xyz, vec3(2.2));","\t\tCop.xyz = pow(Cop.xyz, vec3(2.2));","\t\tvec4 mixed = mix(C, Cop, s);","\t\tmixed.xyz = pow(mixed.xyz, vec3(1.0 / 2.2));","\t\treturn mixed;","\t}","}","void main() {","\tgl_FragColor = SMAANeighborhoodBlendingPS( vUv, vOffset, tColor, tDiffuse );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#include ","uniform float time;","uniform bool grayscale;","uniform float nIntensity;","uniform float sIntensity;","uniform float sCount;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 cTextureScreen = texture2D( tDiffuse, vUv );","\tfloat dx = rand( vUv + time );","\tvec3 cResult = cTextureScreen.rgb + cTextureScreen.rgb * clamp( 0.1 + dx, 0.0, 1.0 );","\tvec2 sc = vec2( sin( vUv.y * sCount ), cos( vUv.y * sCount ) );","\tcResult += cTextureScreen.rgb * vec3( sc.x, sc.y, sc.x ) * sIntensity;","\tcResult = cTextureScreen.rgb + clamp( nIntensity, 0.0,1.0 ) * ( cResult - cTextureScreen.rgb );","\tif( grayscale ) {","\t\tcResult = vec3( cResult.r * 0.3 + cResult.g * 0.59 + cResult.b * 0.11 );","\t}","\tgl_FragColor = vec4( cResult, cTextureScreen.a );","}"].join("\n");const Ge={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float opacity;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 texel = texture2D( tDiffuse, vUv );","\tgl_FragColor = opacity * texel;","}"].join("\n")},Qe={defines:{PERSPECTIVE_CAMERA:1,KERNEL_SIZE:32},uniforms:{tDiffuse:{value:null},tNormal:{value:null},tDepth:{value:null},tNoise:{value:null},kernel:{value:null},cameraNear:{value:null},cameraFar:{value:null},resolution:{value:new r.Vector2},cameraProjectionMatrix:{value:new r.Matrix4},cameraInverseProjectionMatrix:{value:new r.Matrix4},kernelRadius:{value:8},minDistance:{value:.005},maxDistance:{value:.05}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","uniform sampler2D tNormal;","uniform sampler2D tDepth;","uniform sampler2D tNoise;","uniform vec3 kernel[ KERNEL_SIZE ];","uniform vec2 resolution;","uniform float cameraNear;","uniform float cameraFar;","uniform mat4 cameraProjectionMatrix;","uniform mat4 cameraInverseProjectionMatrix;","uniform float kernelRadius;","uniform float minDistance;","uniform float maxDistance;","varying vec2 vUv;","#include ","float getDepth( const in vec2 screenPosition ) {","\treturn texture2D( tDepth, screenPosition ).x;","}","float getLinearDepth( const in vec2 screenPosition ) {","\t#if PERSPECTIVE_CAMERA == 1","\t\tfloat fragCoordZ = texture2D( tDepth, screenPosition ).x;","\t\tfloat viewZ = perspectiveDepthToViewZ( fragCoordZ, cameraNear, cameraFar );","\t\treturn viewZToOrthographicDepth( viewZ, cameraNear, cameraFar );","\t#else","\t\treturn texture2D( tDepth, screenPosition ).x;","\t#endif","}","float getViewZ( const in float depth ) {","\t#if PERSPECTIVE_CAMERA == 1","\t\treturn perspectiveDepthToViewZ( depth, cameraNear, cameraFar );","\t#else","\t\treturn orthographicDepthToViewZ( depth, cameraNear, cameraFar );","\t#endif","}","vec3 getViewPosition( const in vec2 screenPosition, const in float depth, const in float viewZ ) {","\tfloat clipW = cameraProjectionMatrix[2][3] * viewZ + cameraProjectionMatrix[3][3];","\tvec4 clipPosition = vec4( ( vec3( screenPosition, depth ) - 0.5 ) * 2.0, 1.0 );","\tclipPosition *= clipW; // unprojection.","\treturn ( cameraInverseProjectionMatrix * clipPosition ).xyz;","}","vec3 getViewNormal( const in vec2 screenPosition ) {","\treturn unpackRGBToNormal( texture2D( tNormal, screenPosition ).xyz );","}","void main() {","\tfloat depth = getDepth( vUv );","\tfloat viewZ = getViewZ( depth );","\tvec3 viewPosition = getViewPosition( vUv, depth, viewZ );","\tvec3 viewNormal = getViewNormal( vUv );"," vec2 noiseScale = vec2( resolution.x / 4.0, resolution.y / 4.0 );","\tvec3 random = texture2D( tNoise, vUv * noiseScale ).xyz;","\tvec3 tangent = normalize( random - viewNormal * dot( random, viewNormal ) );","\tvec3 bitangent = cross( viewNormal, tangent );","\tmat3 kernelMatrix = mat3( tangent, bitangent, viewNormal );"," float occlusion = 0.0;"," for ( int i = 0; i < KERNEL_SIZE; i ++ ) {","\t\tvec3 sampleVector = kernelMatrix * kernel[ i ];","\t\tvec3 samplePoint = viewPosition + ( sampleVector * kernelRadius );","\t\tvec4 samplePointNDC = cameraProjectionMatrix * vec4( samplePoint, 1.0 );","\t\tsamplePointNDC /= samplePointNDC.w;","\t\tvec2 samplePointUv = samplePointNDC.xy * 0.5 + 0.5;","\t\tfloat realDepth = getLinearDepth( samplePointUv );","\t\tfloat sampleDepth = viewZToOrthographicDepth( samplePoint.z, cameraNear, cameraFar );","\t\tfloat delta = sampleDepth - realDepth;","\t\tif ( delta > minDistance && delta < maxDistance ) {","\t\t\tocclusion += 1.0;","\t\t}","\t}","\tocclusion = clamp( occlusion / float( KERNEL_SIZE ), 0.0, 1.0 );","\tgl_FragColor = vec4( vec3( 1.0 - occlusion ), 1.0 );","}"].join("\n")},Ve={defines:{PERSPECTIVE_CAMERA:1},uniforms:{tDepth:{value:null},cameraNear:{value:null},cameraFar:{value:null}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDepth;","uniform float cameraNear;","uniform float cameraFar;","varying vec2 vUv;","#include ","float getLinearDepth( const in vec2 screenPosition ) {","\t#if PERSPECTIVE_CAMERA == 1","\t\tfloat fragCoordZ = texture2D( tDepth, screenPosition ).x;","\t\tfloat viewZ = perspectiveDepthToViewZ( fragCoordZ, cameraNear, cameraFar );","\t\treturn viewZToOrthographicDepth( viewZ, cameraNear, cameraFar );","\t#else","\t\treturn texture2D( tDepth, screenPosition ).x;","\t#endif","}","void main() {","\tfloat depth = getLinearDepth( vUv );","\tgl_FragColor = vec4( vec3( 1.0 - depth ), 1.0 );","}"].join("\n")},We={uniforms:{tDiffuse:{value:null},resolution:{value:new r.Vector2}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","uniform vec2 resolution;","varying vec2 vUv;","void main() {","\tvec2 texelSize = ( 1.0 / resolution );","\tfloat result = 0.0;","\tfor ( int i = - 2; i <= 2; i ++ ) {","\t\tfor ( int j = - 2; j <= 2; j ++ ) {","\t\t\tvec2 offset = ( vec2( float( i ), float( j ) ) ) * texelSize;","\t\t\tresult += texture2D( tDiffuse, vUv + offset ).r;","\t\t}","\t}","\tgl_FragColor = vec4( vec3( result / ( 5.0 * 5.0 ) ), 1.0 );","}"].join("\n")},Xe=class extends je{constructor(e,t,n,i){super(),this.width=void 0!==n?n:512,this.height=void 0!==i?i:512,this.clear=!0,this.camera=t,this.scene=e,this.kernelRadius=8,this.kernelSize=32,this.kernel=[],this.noiseTexture=null,this.output=0,this.minDistance=.005,this.maxDistance=.1,this._visibilityCache=new Map,this.generateSampleKernel(),this.generateRandomKernelRotations();const o=new r.DepthTexture;o.format=r.DepthStencilFormat,o.type=r.UnsignedInt248Type,this.beautyRenderTarget=new r.WebGLRenderTarget(this.width,this.height),this.normalRenderTarget=new r.WebGLRenderTarget(this.width,this.height,{minFilter:r.NearestFilter,magFilter:r.NearestFilter,depthTexture:o}),this.ssaoRenderTarget=new r.WebGLRenderTarget(this.width,this.height),this.blurRenderTarget=this.ssaoRenderTarget.clone(),void 0===Qe&&console.error("THREE.SSAOPass: The pass relies on SSAOShader."),this.ssaoMaterial=new r.ShaderMaterial({defines:Object.assign({},Qe.defines),uniforms:r.UniformsUtils.clone(Qe.uniforms),vertexShader:Qe.vertexShader,fragmentShader:Qe.fragmentShader,blending:r.NoBlending}),this.ssaoMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.ssaoMaterial.uniforms.tNormal.value=this.normalRenderTarget.texture,this.ssaoMaterial.uniforms.tDepth.value=this.normalRenderTarget.depthTexture,this.ssaoMaterial.uniforms.tNoise.value=this.noiseTexture,this.ssaoMaterial.uniforms.kernel.value=this.kernel,this.ssaoMaterial.uniforms.cameraNear.value=this.camera.near,this.ssaoMaterial.uniforms.cameraFar.value=this.camera.far,this.ssaoMaterial.uniforms.resolution.value.set(this.width,this.height),this.ssaoMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix),this.ssaoMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.normalMaterial=new r.MeshNormalMaterial,this.normalMaterial.blending=r.NoBlending,this.blurMaterial=new r.ShaderMaterial({defines:Object.assign({},We.defines),uniforms:r.UniformsUtils.clone(We.uniforms),vertexShader:We.vertexShader,fragmentShader:We.fragmentShader}),this.blurMaterial.uniforms.tDiffuse.value=this.ssaoRenderTarget.texture,this.blurMaterial.uniforms.resolution.value.set(this.width,this.height),this.depthRenderMaterial=new r.ShaderMaterial({defines:Object.assign({},Ve.defines),uniforms:r.UniformsUtils.clone(Ve.uniforms),vertexShader:Ve.vertexShader,fragmentShader:Ve.fragmentShader,blending:r.NoBlending}),this.depthRenderMaterial.uniforms.tDepth.value=this.normalRenderTarget.depthTexture,this.depthRenderMaterial.uniforms.cameraNear.value=this.camera.near,this.depthRenderMaterial.uniforms.cameraFar.value=this.camera.far,this.copyMaterial=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(Ge.uniforms),vertexShader:Ge.vertexShader,fragmentShader:Ge.fragmentShader,transparent:!0,depthTest:!1,depthWrite:!1,blendSrc:r.DstColorFactor,blendDst:r.ZeroFactor,blendEquation:r.AddEquation,blendSrcAlpha:r.DstAlphaFactor,blendDstAlpha:r.ZeroFactor,blendEquationAlpha:r.AddEquation}),this.fsQuad=new $e(null),this.originalClearColor=new r.Color}dispose(){this.beautyRenderTarget.dispose(),this.normalRenderTarget.dispose(),this.ssaoRenderTarget.dispose(),this.blurRenderTarget.dispose(),this.normalMaterial.dispose(),this.blurMaterial.dispose(),this.copyMaterial.dispose(),this.depthRenderMaterial.dispose(),this.fsQuad.dispose()}render(e,t){switch(!1===e.capabilities.isWebGL2&&(this.noiseTexture.format=r.LuminanceFormat),e.setRenderTarget(this.beautyRenderTarget),e.clear(),e.render(this.scene,this.camera),this.overrideVisibility(),this.renderOverride(e,this.normalMaterial,this.normalRenderTarget,7829503,1),this.restoreVisibility(),this.ssaoMaterial.uniforms.kernelRadius.value=this.kernelRadius,this.ssaoMaterial.uniforms.minDistance.value=this.minDistance,this.ssaoMaterial.uniforms.maxDistance.value=this.maxDistance,this.renderPass(e,this.ssaoMaterial,this.ssaoRenderTarget),this.renderPass(e,this.blurMaterial,this.blurRenderTarget),this.output){case Xe.OUTPUT.SSAO:this.copyMaterial.uniforms.tDiffuse.value=this.ssaoRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;case Xe.OUTPUT.Blur:this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;case Xe.OUTPUT.Beauty:this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;case Xe.OUTPUT.Depth:this.renderPass(e,this.depthRenderMaterial,this.renderToScreen?null:t);break;case Xe.OUTPUT.Normal:this.copyMaterial.uniforms.tDiffuse.value=this.normalRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;case Xe.OUTPUT.Default:this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t),this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget.texture,this.copyMaterial.blending=r.CustomBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;default:console.warn("THREE.SSAOPass: Unknown output type.")}}renderPass(e,t,n,r,i){e.getClearColor(this.originalClearColor);const o=e.getClearAlpha(),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.fsQuad.material=t,this.fsQuad.render(e),e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}renderOverride(e,t,n,r,i){e.getClearColor(this.originalClearColor);const o=e.getClearAlpha(),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,r=t.clearColor||r,i=t.clearAlpha||i,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.scene.overrideMaterial=t,e.render(this.scene,this.camera),this.scene.overrideMaterial=null,e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}setSize(e,t){this.width=e,this.height=t,this.beautyRenderTarget.setSize(e,t),this.ssaoRenderTarget.setSize(e,t),this.normalRenderTarget.setSize(e,t),this.blurRenderTarget.setSize(e,t),this.ssaoMaterial.uniforms.resolution.value.set(e,t),this.ssaoMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix),this.ssaoMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.blurMaterial.uniforms.resolution.value.set(e,t)}generateSampleKernel(){const e=this.kernelSize,t=this.kernel;for(let n=0;n","varying vec2 vUv;","uniform sampler2D tColor;","uniform sampler2D tDepth;","uniform float maxblur;","uniform float aperture;","uniform float nearClip;","uniform float farClip;","uniform float focus;","uniform float aspect;","#include ","float getDepth( const in vec2 screenPosition ) {","\t#if DEPTH_PACKING == 1","\treturn unpackRGBAToDepth( texture2D( tDepth, screenPosition ) );","\t#else","\treturn texture2D( tDepth, screenPosition ).x;","\t#endif","}","float getViewZ( const in float depth ) {","\t#if PERSPECTIVE_CAMERA == 1","\treturn perspectiveDepthToViewZ( depth, nearClip, farClip );","\t#else","\treturn orthographicDepthToViewZ( depth, nearClip, farClip );","\t#endif","}","void main() {","\tvec2 aspectcorrect = vec2( 1.0, aspect );","\tfloat viewZ = getViewZ( getDepth( vUv ) );","\tfloat factor = ( focus + viewZ );","\tvec2 dofblur = vec2 ( clamp( factor * aperture, -maxblur, maxblur ) );","\tvec2 dofblur9 = dofblur * 0.9;","\tvec2 dofblur7 = dofblur * 0.7;","\tvec2 dofblur4 = dofblur * 0.4;","\tvec4 col = vec4( 0.0 );","\tcol += texture2D( tColor, vUv.xy );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.0, 0.4 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.15, 0.37 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.29, 0.29 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.37, 0.15 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.40, 0.0 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.37, -0.15 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.29, -0.29 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.15, -0.37 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.0, -0.4 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.15, 0.37 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.29, 0.29 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.37, 0.15 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.4, 0.0 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.37, -0.15 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.29, -0.29 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.15, -0.37 ) * aspectcorrect ) * dofblur );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.15, 0.37 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.37, 0.15 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.37, -0.15 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.15, -0.37 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.15, 0.37 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.37, 0.15 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.37, -0.15 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.15, -0.37 ) * aspectcorrect ) * dofblur9 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.29, 0.29 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.40, 0.0 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.29, -0.29 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.0, -0.4 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.29, 0.29 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.4, 0.0 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.29, -0.29 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.0, 0.4 ) * aspectcorrect ) * dofblur7 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.29, 0.29 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.4, 0.0 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.29, -0.29 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.0, -0.4 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.29, 0.29 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.4, 0.0 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( -0.29, -0.29 ) * aspectcorrect ) * dofblur4 );","\tcol += texture2D( tColor, vUv.xy + ( vec2( 0.0, 0.4 ) * aspectcorrect ) * dofblur4 );","\tgl_FragColor = col / 41.0;","\tgl_FragColor.a = 1.0;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#include ","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 texel = texture2D( tDiffuse, vUv );","\tfloat l = linearToRelativeLuminance( texel.rgb );","\tgl_FragColor = vec4( l, l, l, texel.w );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#include ","uniform sampler2D tDiffuse;","varying vec2 vUv;","uniform float middleGrey;","uniform float minLuminance;","uniform float maxLuminance;","#ifdef ADAPTED_LUMINANCE","\tuniform sampler2D luminanceMap;","#else","\tuniform float averageLuminance;","#endif","vec3 ToneMap( vec3 vColor ) {","\t#ifdef ADAPTED_LUMINANCE","\t\tfloat fLumAvg = texture2D(luminanceMap, vec2(0.5, 0.5)).r;","\t#else","\t\tfloat fLumAvg = averageLuminance;","\t#endif","\tfloat fLumPixel = linearToRelativeLuminance( vColor );","\tfloat fLumScaled = (fLumPixel * middleGrey) / max( minLuminance, fLumAvg );","\tfloat fLumCompressed = (fLumScaled * (1.0 + (fLumScaled / (maxLuminance * maxLuminance)))) / (1.0 + fLumScaled);","\treturn fLumCompressed * vColor;","}","void main() {","\tvec4 texel = texture2D( tDiffuse, vUv );","\tgl_FragColor = vec4( ToneMap( texel.xyz ), texel.w );","}"].join("\n");const qe={shaderID:"luminosityHighPass",uniforms:{tDiffuse:{value:null},luminosityThreshold:{value:1},smoothWidth:{value:1},defaultColor:{value:new r.Color(0)},defaultOpacity:{value:0}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","uniform vec3 defaultColor;","uniform float defaultOpacity;","uniform float luminosityThreshold;","uniform float smoothWidth;","varying vec2 vUv;","void main() {","\tvec4 texel = texture2D( tDiffuse, vUv );","\tvec3 luma = vec3( 0.299, 0.587, 0.114 );","\tfloat v = dot( texel.xyz, luma );","\tvec4 outputColor = vec4( defaultColor.rgb, defaultOpacity );","\tfloat alpha = smoothstep( luminosityThreshold, luminosityThreshold + smoothWidth, v );","\tgl_FragColor = mix( outputColor, texel, alpha );","}"].join("\n")},Ye=class extends je{constructor(e,t,n,i){super(),this.strength=void 0!==t?t:1,this.radius=n,this.threshold=i,this.resolution=void 0!==e?new r.Vector2(e.x,e.y):new r.Vector2(256,256),this.clearColor=new r.Color(0,0,0),this.renderTargetsHorizontal=[],this.renderTargetsVertical=[],this.nMips=5;let o=Math.round(this.resolution.x/2),a=Math.round(this.resolution.y/2);this.renderTargetBright=new r.WebGLRenderTarget(o,a,{type:r.HalfFloatType}),this.renderTargetBright.texture.name="UnrealBloomPass.bright",this.renderTargetBright.texture.generateMipmaps=!1;for(let e=0;e\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec2 direction;\n\n\t\t\t\tfloat gaussianPdf(in float x, in float sigma) {\n\t\t\t\t\treturn 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\n\t\t\t\t}\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec2 invSize = 1.0 / texSize;\n\t\t\t\t\tfloat fSigma = float(SIGMA);\n\t\t\t\t\tfloat weightSum = gaussianPdf(0.0, fSigma);\n\t\t\t\t\tvec3 diffuseSum = texture2D( colorTexture, vUv).rgb * weightSum;\n\t\t\t\t\tfor( int i = 1; i < KERNEL_RADIUS; i ++ ) {\n\t\t\t\t\t\tfloat x = float(i);\n\t\t\t\t\t\tfloat w = gaussianPdf(x, fSigma);\n\t\t\t\t\t\tvec2 uvOffset = direction * invSize * x;\n\t\t\t\t\t\tvec3 sample1 = texture2D( colorTexture, vUv + uvOffset).rgb;\n\t\t\t\t\t\tvec3 sample2 = texture2D( colorTexture, vUv - uvOffset).rgb;\n\t\t\t\t\t\tdiffuseSum += (sample1 + sample2) * w;\n\t\t\t\t\t\tweightSum += 2.0 * w;\n\t\t\t\t\t}\n\t\t\t\t\tgl_FragColor = vec4(diffuseSum/weightSum, 1.0);\n\t\t\t\t}"})}getCompositeMaterial(e){return new r.ShaderMaterial({defines:{NUM_MIPS:e},uniforms:{blurTexture1:{value:null},blurTexture2:{value:null},blurTexture3:{value:null},blurTexture4:{value:null},blurTexture5:{value:null},bloomStrength:{value:1},bloomFactors:{value:null},bloomTintColors:{value:null},bloomRadius:{value:0}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\t\t\t\tuniform sampler2D blurTexture1;\n\t\t\t\tuniform sampler2D blurTexture2;\n\t\t\t\tuniform sampler2D blurTexture3;\n\t\t\t\tuniform sampler2D blurTexture4;\n\t\t\t\tuniform sampler2D blurTexture5;\n\t\t\t\tuniform float bloomStrength;\n\t\t\t\tuniform float bloomRadius;\n\t\t\t\tuniform float bloomFactors[NUM_MIPS];\n\t\t\t\tuniform vec3 bloomTintColors[NUM_MIPS];\n\n\t\t\t\tfloat lerpBloomFactor(const in float factor) {\n\t\t\t\t\tfloat mirrorFactor = 1.2 - factor;\n\t\t\t\t\treturn mix(factor, mirrorFactor, bloomRadius);\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tgl_FragColor = bloomStrength * ( lerpBloomFactor(bloomFactors[0]) * vec4(bloomTintColors[0], 1.0) * texture2D(blurTexture1, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[1]) * vec4(bloomTintColors[1], 1.0) * texture2D(blurTexture2, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[2]) * vec4(bloomTintColors[2], 1.0) * texture2D(blurTexture3, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[3]) * vec4(bloomTintColors[3], 1.0) * texture2D(blurTexture4, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[4]) * vec4(bloomTintColors[4], 1.0) * texture2D(blurTexture5, vUv) );\n\t\t\t\t}"})}};let Ke=Ye;G(Ke,"BlurDirectionX",new r.Vector2(1,0)),G(Ke,"BlurDirectionY",new r.Vector2(0,1));const Je={defines:{NUM_SAMPLES:7,NUM_RINGS:4,NORMAL_TEXTURE:0,DIFFUSE_TEXTURE:0,DEPTH_PACKING:1,PERSPECTIVE_CAMERA:1},uniforms:{tDepth:{value:null},tDiffuse:{value:null},tNormal:{value:null},size:{value:new r.Vector2(512,512)},cameraNear:{value:1},cameraFar:{value:100},cameraProjectionMatrix:{value:new r.Matrix4},cameraInverseProjectionMatrix:{value:new r.Matrix4},scale:{value:1},intensity:{value:.1},bias:{value:.5},minResolution:{value:0},kernelRadius:{value:100},randomSeed:{value:0}},vertexShader:["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["#include ","varying vec2 vUv;","#if DIFFUSE_TEXTURE == 1","uniform sampler2D tDiffuse;","#endif","uniform sampler2D tDepth;","#if NORMAL_TEXTURE == 1","uniform sampler2D tNormal;","#endif","uniform float cameraNear;","uniform float cameraFar;","uniform mat4 cameraProjectionMatrix;","uniform mat4 cameraInverseProjectionMatrix;","uniform float scale;","uniform float intensity;","uniform float bias;","uniform float kernelRadius;","uniform float minResolution;","uniform vec2 size;","uniform float randomSeed;","// RGBA depth","#include ","vec4 getDefaultColor( const in vec2 screenPosition ) {","\t#if DIFFUSE_TEXTURE == 1","\treturn texture2D( tDiffuse, vUv );","\t#else","\treturn vec4( 1.0 );","\t#endif","}","float getDepth( const in vec2 screenPosition ) {","\t#if DEPTH_PACKING == 1","\treturn unpackRGBAToDepth( texture2D( tDepth, screenPosition ) );","\t#else","\treturn texture2D( tDepth, screenPosition ).x;","\t#endif","}","float getViewZ( const in float depth ) {","\t#if PERSPECTIVE_CAMERA == 1","\treturn perspectiveDepthToViewZ( depth, cameraNear, cameraFar );","\t#else","\treturn orthographicDepthToViewZ( depth, cameraNear, cameraFar );","\t#endif","}","vec3 getViewPosition( const in vec2 screenPosition, const in float depth, const in float viewZ ) {","\tfloat clipW = cameraProjectionMatrix[2][3] * viewZ + cameraProjectionMatrix[3][3];","\tvec4 clipPosition = vec4( ( vec3( screenPosition, depth ) - 0.5 ) * 2.0, 1.0 );","\tclipPosition *= clipW; // unprojection.","\treturn ( cameraInverseProjectionMatrix * clipPosition ).xyz;","}","vec3 getViewNormal( const in vec3 viewPosition, const in vec2 screenPosition ) {","\t#if NORMAL_TEXTURE == 1","\treturn unpackRGBToNormal( texture2D( tNormal, screenPosition ).xyz );","\t#else","\treturn normalize( cross( dFdx( viewPosition ), dFdy( viewPosition ) ) );","\t#endif","}","float scaleDividedByCameraFar;","float minResolutionMultipliedByCameraFar;","float getOcclusion( const in vec3 centerViewPosition, const in vec3 centerViewNormal, const in vec3 sampleViewPosition ) {","\tvec3 viewDelta = sampleViewPosition - centerViewPosition;","\tfloat viewDistance = length( viewDelta );","\tfloat scaledScreenDistance = scaleDividedByCameraFar * viewDistance;","\treturn max(0.0, (dot(centerViewNormal, viewDelta) - minResolutionMultipliedByCameraFar) / scaledScreenDistance - bias) / (1.0 + pow2( scaledScreenDistance ) );","}","// moving costly divides into consts","const float ANGLE_STEP = PI2 * float( NUM_RINGS ) / float( NUM_SAMPLES );","const float INV_NUM_SAMPLES = 1.0 / float( NUM_SAMPLES );","float getAmbientOcclusion( const in vec3 centerViewPosition ) {","\t// precompute some variables require in getOcclusion.","\tscaleDividedByCameraFar = scale / cameraFar;","\tminResolutionMultipliedByCameraFar = minResolution * cameraFar;","\tvec3 centerViewNormal = getViewNormal( centerViewPosition, vUv );","\t// jsfiddle that shows sample pattern: https://jsfiddle.net/a16ff1p7/","\tfloat angle = rand( vUv + randomSeed ) * PI2;","\tvec2 radius = vec2( kernelRadius * INV_NUM_SAMPLES ) / size;","\tvec2 radiusStep = radius;","\tfloat occlusionSum = 0.0;","\tfloat weightSum = 0.0;","\tfor( int i = 0; i < NUM_SAMPLES; i ++ ) {","\t\tvec2 sampleUv = vUv + vec2( cos( angle ), sin( angle ) ) * radius;","\t\tradius += radiusStep;","\t\tangle += ANGLE_STEP;","\t\tfloat sampleDepth = getDepth( sampleUv );","\t\tif( sampleDepth >= ( 1.0 - EPSILON ) ) {","\t\t\tcontinue;","\t\t}","\t\tfloat sampleViewZ = getViewZ( sampleDepth );","\t\tvec3 sampleViewPosition = getViewPosition( sampleUv, sampleDepth, sampleViewZ );","\t\tocclusionSum += getOcclusion( centerViewPosition, centerViewNormal, sampleViewPosition );","\t\tweightSum += 1.0;","\t}","\tif( weightSum == 0.0 ) discard;","\treturn occlusionSum * ( intensity / weightSum );","}","void main() {","\tfloat centerDepth = getDepth( vUv );","\tif( centerDepth >= ( 1.0 - EPSILON ) ) {","\t\tdiscard;","\t}","\tfloat centerViewZ = getViewZ( centerDepth );","\tvec3 viewPosition = getViewPosition( vUv, centerDepth, centerViewZ );","\tfloat ambientOcclusion = getAmbientOcclusion( viewPosition );","\tgl_FragColor = getDefaultColor( vUv );","\tgl_FragColor.xyz *= 1.0 - ambientOcclusion;","}"].join("\n")},Ze={defines:{KERNEL_RADIUS:4,DEPTH_PACKING:1,PERSPECTIVE_CAMERA:1},uniforms:{tDiffuse:{value:null},size:{value:new r.Vector2(512,512)},sampleUvOffsets:{value:[new r.Vector2(0,0)]},sampleWeights:{value:[1]},tDepth:{value:null},cameraNear:{value:10},cameraFar:{value:1e3},depthCutoff:{value:10}},vertexShader:["#include ","uniform vec2 size;","varying vec2 vUv;","varying vec2 vInvSize;","void main() {","\tvUv = uv;","\tvInvSize = 1.0 / size;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["#include ","#include ","uniform sampler2D tDiffuse;","uniform sampler2D tDepth;","uniform float cameraNear;","uniform float cameraFar;","uniform float depthCutoff;","uniform vec2 sampleUvOffsets[ KERNEL_RADIUS + 1 ];","uniform float sampleWeights[ KERNEL_RADIUS + 1 ];","varying vec2 vUv;","varying vec2 vInvSize;","float getDepth( const in vec2 screenPosition ) {","\t#if DEPTH_PACKING == 1","\treturn unpackRGBAToDepth( texture2D( tDepth, screenPosition ) );","\t#else","\treturn texture2D( tDepth, screenPosition ).x;","\t#endif","}","float getViewZ( const in float depth ) {","\t#if PERSPECTIVE_CAMERA == 1","\treturn perspectiveDepthToViewZ( depth, cameraNear, cameraFar );","\t#else","\treturn orthographicDepthToViewZ( depth, cameraNear, cameraFar );","\t#endif","}","void main() {","\tfloat depth = getDepth( vUv );","\tif( depth >= ( 1.0 - EPSILON ) ) {","\t\tdiscard;","\t}","\tfloat centerViewZ = -getViewZ( depth );","\tbool rBreak = false, lBreak = false;","\tfloat weightSum = sampleWeights[0];","\tvec4 diffuseSum = texture2D( tDiffuse, vUv ) * weightSum;","\tfor( int i = 1; i <= KERNEL_RADIUS; i ++ ) {","\t\tfloat sampleWeight = sampleWeights[i];","\t\tvec2 sampleUvOffset = sampleUvOffsets[i] * vInvSize;","\t\tvec2 sampleUv = vUv + sampleUvOffset;","\t\tfloat viewZ = -getViewZ( getDepth( sampleUv ) );","\t\tif( abs( viewZ - centerViewZ ) > depthCutoff ) rBreak = true;","\t\tif( ! rBreak ) {","\t\t\tdiffuseSum += texture2D( tDiffuse, sampleUv ) * sampleWeight;","\t\t\tweightSum += sampleWeight;","\t\t}","\t\tsampleUv = vUv - sampleUvOffset;","\t\tviewZ = -getViewZ( getDepth( sampleUv ) );","\t\tif( abs( viewZ - centerViewZ ) > depthCutoff ) lBreak = true;","\t\tif( ! lBreak ) {","\t\t\tdiffuseSum += texture2D( tDiffuse, sampleUv ) * sampleWeight;","\t\t\tweightSum += sampleWeight;","\t\t}","\t}","\tgl_FragColor = diffuseSum / weightSum;","}"].join("\n")},et={createSampleWeights:(e,t)=>{const n=(e,t)=>Math.exp(-e*e/(t*t*2))/(Math.sqrt(2*Math.PI)*t),r=[];for(let i=0;i<=e;i++)r.push(n(i,t));return r},createSampleOffsets:(e,t)=>{const n=[];for(let r=0;r<=e;r++)n.push(t.clone().multiplyScalar(r));return n},configure:(e,t,n,r)=>{e.defines.KERNEL_RADIUS=t,e.uniforms.sampleUvOffsets.value=et.createSampleOffsets(t,r),e.uniforms.sampleWeights.value=et.createSampleWeights(t,n),e.needsUpdate=!0}};G(class extends je{constructor(e,t,n=!1,i=!1,o=new r.Vector2(256,256)){let a;super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.supportsDepthTextureExtension=n,this.supportsNormalTexture=i,this.originalClearColor=new r.Color,this._oldClearColor=new r.Color,this.oldClearAlpha=1,this.params={output:0,saoBias:.5,saoIntensity:.18,saoScale:1,saoKernelRadius:100,saoMinResolution:0,saoBlur:!0,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:.01},this.resolution=new r.Vector2(o.x,o.y),this.saoRenderTarget=new r.WebGLRenderTarget(this.resolution.x,this.resolution.y,{type:r.HalfFloatType}),this.blurIntermediateRenderTarget=this.saoRenderTarget.clone(),this.beautyRenderTarget=this.saoRenderTarget.clone(),this.normalRenderTarget=new r.WebGLRenderTarget(this.resolution.x,this.resolution.y,{minFilter:r.NearestFilter,magFilter:r.NearestFilter,type:r.HalfFloatType}),this.depthRenderTarget=this.normalRenderTarget.clone(),this.supportsDepthTextureExtension&&(a=new r.DepthTexture,a.type=r.UnsignedShortType,this.beautyRenderTarget.depthTexture=a,this.beautyRenderTarget.depthBuffer=!0),this.depthMaterial=new r.MeshDepthMaterial,this.depthMaterial.depthPacking=r.RGBADepthPacking,this.depthMaterial.blending=r.NoBlending,this.normalMaterial=new r.MeshNormalMaterial,this.normalMaterial.blending=r.NoBlending,this.saoMaterial=new r.ShaderMaterial({defines:Object.assign({},Je.defines),fragmentShader:Je.fragmentShader,vertexShader:Je.vertexShader,uniforms:r.UniformsUtils.clone(Je.uniforms)}),this.saoMaterial.extensions.derivatives=!0,this.saoMaterial.defines.DEPTH_PACKING=this.supportsDepthTextureExtension?0:1,this.saoMaterial.defines.NORMAL_TEXTURE=this.supportsNormalTexture?1:0,this.saoMaterial.defines.PERSPECTIVE_CAMERA=this.camera.isPerspectiveCamera?1:0,this.saoMaterial.uniforms.tDepth.value=this.supportsDepthTextureExtension?a:this.depthRenderTarget.texture,this.saoMaterial.uniforms.tNormal.value=this.normalRenderTarget.texture,this.saoMaterial.uniforms.size.value.set(this.resolution.x,this.resolution.y),this.saoMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.saoMaterial.uniforms.cameraProjectionMatrix.value=this.camera.projectionMatrix,this.saoMaterial.blending=r.NoBlending,this.vBlurMaterial=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(Ze.uniforms),defines:Object.assign({},Ze.defines),vertexShader:Ze.vertexShader,fragmentShader:Ze.fragmentShader}),this.vBlurMaterial.defines.DEPTH_PACKING=this.supportsDepthTextureExtension?0:1,this.vBlurMaterial.defines.PERSPECTIVE_CAMERA=this.camera.isPerspectiveCamera?1:0,this.vBlurMaterial.uniforms.tDiffuse.value=this.saoRenderTarget.texture,this.vBlurMaterial.uniforms.tDepth.value=this.supportsDepthTextureExtension?a:this.depthRenderTarget.texture,this.vBlurMaterial.uniforms.size.value.set(this.resolution.x,this.resolution.y),this.vBlurMaterial.blending=r.NoBlending,this.hBlurMaterial=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(Ze.uniforms),defines:Object.assign({},Ze.defines),vertexShader:Ze.vertexShader,fragmentShader:Ze.fragmentShader}),this.hBlurMaterial.defines.DEPTH_PACKING=this.supportsDepthTextureExtension?0:1,this.hBlurMaterial.defines.PERSPECTIVE_CAMERA=this.camera.isPerspectiveCamera?1:0,this.hBlurMaterial.uniforms.tDiffuse.value=this.blurIntermediateRenderTarget.texture,this.hBlurMaterial.uniforms.tDepth.value=this.supportsDepthTextureExtension?a:this.depthRenderTarget.texture,this.hBlurMaterial.uniforms.size.value.set(this.resolution.x,this.resolution.y),this.hBlurMaterial.blending=r.NoBlending,this.materialCopy=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(Ge.uniforms),vertexShader:Ge.vertexShader,fragmentShader:Ge.fragmentShader,blending:r.NoBlending}),this.materialCopy.transparent=!0,this.materialCopy.depthTest=!1,this.materialCopy.depthWrite=!1,this.materialCopy.blending=r.CustomBlending,this.materialCopy.blendSrc=r.DstColorFactor,this.materialCopy.blendDst=r.ZeroFactor,this.materialCopy.blendEquation=r.AddEquation,this.materialCopy.blendSrcAlpha=r.DstAlphaFactor,this.materialCopy.blendDstAlpha=r.ZeroFactor,this.materialCopy.blendEquationAlpha=r.AddEquation,this.depthCopy=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(ze.uniforms),vertexShader:ze.vertexShader,fragmentShader:ze.fragmentShader,blending:r.NoBlending}),this.fsQuad=new $e(null)}render(e,t,n){if(this.renderToScreen&&(this.materialCopy.blending=r.NoBlending,this.materialCopy.uniforms.tDiffuse.value=n.texture,this.materialCopy.needsUpdate=!0,this.renderPass(e,this.materialCopy,null)),1===this.params.output)return;e.getClearColor(this._oldClearColor),this.oldClearAlpha=e.getClearAlpha();const i=e.autoClear;e.autoClear=!1,e.setRenderTarget(this.depthRenderTarget),e.clear(),this.saoMaterial.uniforms.bias.value=this.params.saoBias,this.saoMaterial.uniforms.intensity.value=this.params.saoIntensity,this.saoMaterial.uniforms.scale.value=this.params.saoScale,this.saoMaterial.uniforms.kernelRadius.value=this.params.saoKernelRadius,this.saoMaterial.uniforms.minResolution.value=this.params.saoMinResolution,this.saoMaterial.uniforms.cameraNear.value=this.camera.near,this.saoMaterial.uniforms.cameraFar.value=this.camera.far;const o=this.params.saoBlurDepthCutoff*(this.camera.far-this.camera.near);this.vBlurMaterial.uniforms.depthCutoff.value=o,this.hBlurMaterial.uniforms.depthCutoff.value=o,this.vBlurMaterial.uniforms.cameraNear.value=this.camera.near,this.vBlurMaterial.uniforms.cameraFar.value=this.camera.far,this.hBlurMaterial.uniforms.cameraNear.value=this.camera.near,this.hBlurMaterial.uniforms.cameraFar.value=this.camera.far,this.params.saoBlurRadius=Math.floor(this.params.saoBlurRadius),this.prevStdDev===this.params.saoBlurStdDev&&this.prevNumSamples===this.params.saoBlurRadius||(et.configure(this.vBlurMaterial,this.params.saoBlurRadius,this.params.saoBlurStdDev,new r.Vector2(0,1)),et.configure(this.hBlurMaterial,this.params.saoBlurRadius,this.params.saoBlurStdDev,new r.Vector2(1,0)),this.prevStdDev=this.params.saoBlurStdDev,this.prevNumSamples=this.params.saoBlurRadius),e.setClearColor(0),e.setRenderTarget(this.beautyRenderTarget),e.clear(),e.render(this.scene,this.camera),this.supportsDepthTextureExtension||this.renderOverride(e,this.depthMaterial,this.depthRenderTarget,0,1),this.supportsNormalTexture&&this.renderOverride(e,this.normalMaterial,this.normalRenderTarget,7829503,1),this.renderPass(e,this.saoMaterial,this.saoRenderTarget,16777215,1),this.params.saoBlur&&(this.renderPass(e,this.vBlurMaterial,this.blurIntermediateRenderTarget,16777215,1),this.renderPass(e,this.hBlurMaterial,this.saoRenderTarget,16777215,1));let a=this.materialCopy;3===this.params.output?this.supportsDepthTextureExtension?(this.materialCopy.uniforms.tDiffuse.value=this.beautyRenderTarget.depthTexture,this.materialCopy.needsUpdate=!0):(this.depthCopy.uniforms.tDiffuse.value=this.depthRenderTarget.texture,this.depthCopy.needsUpdate=!0,a=this.depthCopy):4===this.params.output?(this.materialCopy.uniforms.tDiffuse.value=this.normalRenderTarget.texture,this.materialCopy.needsUpdate=!0):(this.materialCopy.uniforms.tDiffuse.value=this.saoRenderTarget.texture,this.materialCopy.needsUpdate=!0),0===this.params.output?a.blending=r.CustomBlending:a.blending=r.NoBlending,this.renderPass(e,a,this.renderToScreen?null:n),e.setClearColor(this._oldClearColor,this.oldClearAlpha),e.autoClear=i}renderPass(e,t,n,r,i){e.getClearColor(this.originalClearColor);const o=e.getClearAlpha(),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.fsQuad.material=t,this.fsQuad.render(e),e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}renderOverride(e,t,n,r,i){e.getClearColor(this.originalClearColor);const o=e.getClearAlpha(),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,r=t.clearColor||r,i=t.clearAlpha||i,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.scene.overrideMaterial=t,e.render(this.scene,this.camera),this.scene.overrideMaterial=null,e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}setSize(e,t){this.beautyRenderTarget.setSize(e,t),this.saoRenderTarget.setSize(e,t),this.blurIntermediateRenderTarget.setSize(e,t),this.normalRenderTarget.setSize(e,t),this.depthRenderTarget.setSize(e,t),this.saoMaterial.uniforms.size.value.set(e,t),this.saoMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.saoMaterial.uniforms.cameraProjectionMatrix.value=this.camera.projectionMatrix,this.saoMaterial.needsUpdate=!0,this.vBlurMaterial.uniforms.size.value.set(e,t),this.vBlurMaterial.needsUpdate=!0,this.hBlurMaterial.uniforms.size.value.set(e,t),this.hBlurMaterial.needsUpdate=!0}dispose(){this.saoRenderTarget.dispose(),this.blurIntermediateRenderTarget.dispose(),this.beautyRenderTarget.dispose(),this.normalRenderTarget.dispose(),this.depthRenderTarget.dispose(),this.depthMaterial.dispose(),this.normalMaterial.dispose(),this.saoMaterial.dispose(),this.vBlurMaterial.dispose(),this.hBlurMaterial.dispose(),this.materialCopy.dispose(),this.depthCopy.dispose(),this.fsQuad.dispose()}},"OUTPUT",{Beauty:1,Default:0,SAO:2,Depth:3,Normal:4}),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float damp;","uniform sampler2D tOld;","uniform sampler2D tNew;","varying vec2 vUv;","vec4 when_gt( vec4 x, float y ) {","\treturn max( sign( x - y ), 0.0 );","}","void main() {","\tvec4 texelOld = texture2D( tOld, vUv );","\tvec4 texelNew = texture2D( tNew, vUv );","\ttexelOld *= damp * when_gt( texelOld, 0.1 );","\tgl_FragColor = max(texelNew, texelOld);","}"].join("\n");class tt extends je{constructor(e,t){super(),G(this,"scene"),G(this,"camera"),G(this,"inverse"),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){const r=e.getContext(),i=e.state;let o,a;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0),this.inverse?(o=0,a=1):(o=1,a=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,o,4294967295),i.buffers.stencil.setClear(a),i.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}}class nt extends je{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}}class rt{constructor(e,t){if(G(this,"renderer"),G(this,"_pixelRatio"),G(this,"_width"),G(this,"_height"),G(this,"renderTarget1"),G(this,"renderTarget2"),G(this,"writeBuffer"),G(this,"readBuffer"),G(this,"renderToScreen"),G(this,"passes",[]),G(this,"copyPass"),G(this,"clock"),this.renderer=e,void 0===t){const n={minFilter:r.LinearFilter,magFilter:r.LinearFilter,format:r.RGBAFormat},i=e.getSize(new r.Vector2);this._pixelRatio=e.getPixelRatio(),this._width=i.width,this._height=i.height,(t=new r.WebGLRenderTarget(this._width*this._pixelRatio,this._height*this._pixelRatio,n)).texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,void 0===Ge&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===He&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new He(Ge),this.copyPass.material.blending=r.NoBlending,this.clock=new r.Clock}swapBuffers(){const e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){const t=this.passes.indexOf(e);-1!==t&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t\n\t\tfloat pointToLineDistance(vec3 x0, vec3 x1, vec3 x2) {\n\t\t\t//x0: point, x1: linePointA, x2: linePointB\n\t\t\t//https://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html\n\t\t\treturn length(cross(x0-x1,x0-x2))/length(x2-x1);\n\t\t}\n\t\tfloat pointPlaneDistance(vec3 point,vec3 planePoint,vec3 planeNormal){\n\t\t\t// https://mathworld.wolfram.com/Point-PlaneDistance.html\n\t\t\t//// https://en.wikipedia.org/wiki/Plane_(geometry)\n\t\t\t//// http://paulbourke.net/geometry/pointlineplane/\n\t\t\tfloat a=planeNormal.x,b=planeNormal.y,c=planeNormal.z;\n\t\t\tfloat x0=point.x,y0=point.y,z0=point.z;\n\t\t\tfloat x=planePoint.x,y=planePoint.y,z=planePoint.z;\n\t\t\tfloat d=-(a*x+b*y+c*z);\n\t\t\tfloat distance=(a*x0+b*y0+c*z0+d)/sqrt(a*a+b*b+c*c);\n\t\t\treturn distance;\n\t\t}\n\t\tfloat getDepth( const in vec2 uv ) {\n\t\t\treturn texture2D( tDepth, uv ).x;\n\t\t}\n\t\tfloat getViewZ( const in float depth ) {\n\t\t\t#ifdef isPerspectiveCamera\n\t\t\t\treturn perspectiveDepthToViewZ( depth, cameraNear, cameraFar );\n\t\t\t#else\n\t\t\t\treturn orthographicDepthToViewZ( depth, cameraNear, cameraFar );\n\t\t\t#endif\n\t\t}\n\t\tvec3 getViewPosition( const in vec2 uv, const in float depth/*clip space*/, const in float clipW ) {\n\t\t\tvec4 clipPosition = vec4( ( vec3( uv, depth ) - 0.5 ) * 2.0, 1.0 );//ndc\n\t\t\tclipPosition *= clipW; //clip\n\t\t\treturn ( cameraInverseProjectionMatrix * clipPosition ).xyz;//view\n\t\t}\n\t\tvec3 getViewNormal( const in vec2 uv ) {\n\t\t\treturn unpackRGBToNormal( texture2D( tNormal, uv ).xyz );\n\t\t}\n\t\tvec2 viewPositionToXY(vec3 viewPosition){\n\t\t\tvec2 xy;\n\t\t\tvec4 clip=cameraProjectionMatrix*vec4(viewPosition,1);\n\t\t\txy=clip.xy;//clip\n\t\t\tfloat clipW=clip.w;\n\t\t\txy/=clipW;//NDC\n\t\t\txy=(xy+1.)/2.;//uv\n\t\t\txy*=resolution;//screen\n\t\t\treturn xy;\n\t\t}\n\t\tvoid main(){\n\t\t\t#ifdef isSelective\n\t\t\t\tfloat metalness=texture2D(tMetalness,vUv).r;\n\t\t\t\tif(metalness==0.) return;\n\t\t\t#endif\n\n\t\t\tfloat depth = getDepth( vUv );\n\t\t\tfloat viewZ = getViewZ( depth );\n\t\t\tif(-viewZ>=cameraFar) return;\n\n\t\t\tfloat clipW = cameraProjectionMatrix[2][3] * viewZ+cameraProjectionMatrix[3][3];\n\t\t\tvec3 viewPosition=getViewPosition( vUv, depth, clipW );\n\n\t\t\tvec2 d0=gl_FragCoord.xy;\n\t\t\tvec2 d1;\n\n\t\t\tvec3 viewNormal=getViewNormal( vUv );\n\n\t\t\t#ifdef isPerspectiveCamera\n\t\t\t\tvec3 viewIncidenceDir=normalize(viewPosition);\n\t\t\t\tvec3 viewReflectDir=reflect(viewIncidenceDir,viewNormal);\n\t\t\t#else\n\t\t\t\tvec3 viewIncidenceDir=vec3(0,0,-1);\n\t\t\t\tvec3 viewReflectDir=reflect(viewIncidenceDir,viewNormal);\n\t\t\t#endif\n\n\t\t\tfloat maxReflectRayLen=maxDistance/dot(-viewIncidenceDir,viewNormal);\n\t\t\t// dot(a,b)==length(a)*length(b)*cos(theta) // https://www.mathsisfun.com/algebra/vectors-dot-product.html\n\t\t\t// if(a.isNormalized&&b.isNormalized) dot(a,b)==cos(theta)\n\t\t\t// maxDistance/maxReflectRayLen=cos(theta)\n\t\t\t// maxDistance/maxReflectRayLen==dot(a,b)\n\t\t\t// maxReflectRayLen==maxDistance/dot(a,b)\n\n\t\t\tvec3 d1viewPosition=viewPosition+viewReflectDir*maxReflectRayLen;\n\t\t\t#ifdef isPerspectiveCamera\n\t\t\t\tif(d1viewPosition.z>-cameraNear){\n\t\t\t\t\t//https://tutorial.math.lamar.edu/Classes/CalcIII/EqnsOfLines.aspx\n\t\t\t\t\tfloat t=(-cameraNear-viewPosition.z)/viewReflectDir.z;\n\t\t\t\t\td1viewPosition=viewPosition+viewReflectDir*t;\n\t\t\t\t}\n\t\t\t#endif\n\t\t\td1=viewPositionToXY(d1viewPosition);\n\n\t\t\tfloat totalLen=length(d1-d0);\n\t\t\tfloat xLen=d1.x-d0.x;\n\t\t\tfloat yLen=d1.y-d0.y;\n\t\t\tfloat totalStep=max(abs(xLen),abs(yLen));\n\t\t\tfloat xSpan=xLen/totalStep;\n\t\t\tfloat ySpan=yLen/totalStep;\n\t\t\tfor(float i=0.;i=totalStep) break;\n\t\t\t\tvec2 xy=vec2(d0.x+i*xSpan,d0.y+i*ySpan);\n\t\t\t\tif(xy.x<0.||xy.x>resolution.x||xy.y<0.||xy.y>resolution.y) break;\n\t\t\t\tfloat s=length(xy-d0)/totalLen;\n\t\t\t\tvec2 uv=xy/resolution;\n\n\t\t\t\tfloat d = getDepth(uv);\n\t\t\t\tfloat vZ = getViewZ( d );\n\t\t\t\tif(-vZ>=cameraFar) continue;\n\t\t\t\tfloat cW = cameraProjectionMatrix[2][3] * vZ+cameraProjectionMatrix[3][3];\n\t\t\t\tvec3 vP=getViewPosition( uv, d, cW );\n\n\t\t\t\t#ifdef isPerspectiveCamera\n\t\t\t\t\t// https://www.comp.nus.edu.sg/~lowkl/publications/lowk_persp_interp_techrep.pdf\n\t\t\t\t\tfloat recipVPZ=1./viewPosition.z;\n\t\t\t\t\tfloat viewReflectRayZ=1./(recipVPZ+s*(1./d1viewPosition.z-recipVPZ));\n\t\t\t\t\tfloat sD=surfDist*cW;\n\t\t\t\t#else\n\t\t\t\t\tfloat viewReflectRayZ=viewPosition.z+s*(d1viewPosition.z-viewPosition.z);\n\t\t\t\t\tfloat sD=surfDist;\n\t\t\t\t#endif\n\t\t\t\tif(viewReflectRayZ-sD>vZ) continue;\n\n\t\t\t\t#ifdef isInfiniteThick\n\t\t\t\t\tif(viewReflectRayZ+thickTolerance*clipW=0.) continue;\n\t\t\t\t\tfloat distance=pointPlaneDistance(vP,viewPosition,viewNormal);\n\t\t\t\t\tif(distance>maxDistance) break;\n\t\t\t\t\t#ifdef isDistanceAttenuation\n\t\t\t\t\t\tfloat ratio=1.-(distance/maxDistance);\n\t\t\t\t\t\tfloat attenuation=ratio*ratio;\n\t\t\t\t\t\top=opacity*attenuation;\n\t\t\t\t\t#endif\n\t\t\t\t\t#ifdef isFresnel\n\t\t\t\t\t\tfloat fresnel=(dot(viewIncidenceDir,viewReflectDir)+1.)/2.;\n\t\t\t\t\t\top*=fresnel;\n\t\t\t\t\t#endif\n\t\t\t\t\tvec4 reflectColor=texture2D(tDiffuse,uv);\n\t\t\t\t\tgl_FragColor.xyz=reflectColor.xyz;\n\t\t\t\t\tgl_FragColor.a=op;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"},ot={PERSPECTIVE_CAMERA:1},at={tDepth:{value:null},cameraNear:{value:null},cameraFar:{value:null}},st="\n\n varying vec2 vUv;\n\n void main() {\n\n \tvUv = uv;\n \tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }\n\n ",lt="\n\n uniform sampler2D tDepth;\n\n uniform float cameraNear;\n uniform float cameraFar;\n\n varying vec2 vUv;\n\n #include \n\n\t\tfloat getLinearDepth( const in vec2 uv ) {\n\n\t\t\t#if PERSPECTIVE_CAMERA == 1\n\n\t\t\t\tfloat fragCoordZ = texture2D( tDepth, uv ).x;\n\t\t\t\tfloat viewZ = perspectiveDepthToViewZ( fragCoordZ, cameraNear, cameraFar );\n\t\t\t\treturn viewZToOrthographicDepth( viewZ, cameraNear, cameraFar );\n\n\t\t\t#else\n\n\t\t\t\treturn texture2D( tDepth, uv ).x;\n\n\t\t\t#endif\n\n\t\t}\n\n void main() {\n\n \tfloat depth = getLinearDepth( vUv );\n\t\t\tfloat d = 1.0 - depth;\n\t\t\t// d=(d-.999)*1000.;\n \tgl_FragColor = vec4( vec3( d ), 1.0 );\n\n }\n\n ",ct={uniforms:{tDiffuse:{value:null},resolution:{value:new r.Vector2},opacity:{value:.5}},vertexShader:"\n\n varying vec2 vUv;\n\n void main() {\n\n \tvUv = uv;\n \tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n }\n\n ",fragmentShader:"\n\n uniform sampler2D tDiffuse;\n uniform vec2 resolution;\n varying vec2 vUv;\n void main() {\n\t\t\t//reverse engineering from PhotoShop blur filter, then change coefficient\n\n \tvec2 texelSize = ( 1.0 / resolution );\n\n\t\t\tvec4 c=texture2D(tDiffuse,vUv);\n\n\t\t\tvec2 offset;\n\n\t\t\toffset=(vec2(-1,0))*texelSize;\n\t\t\tvec4 cl=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(1,0))*texelSize;\n\t\t\tvec4 cr=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(0,-1))*texelSize;\n\t\t\tvec4 cb=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(0,1))*texelSize;\n\t\t\tvec4 ct=texture2D(tDiffuse,vUv+offset);\n\n\t\t\t// float coeCenter=.5;\n\t\t\t// float coeSide=.125;\n\t\t\tfloat coeCenter=.2;\n\t\t\tfloat coeSide=.2;\n\t\t\tfloat a=c.a*coeCenter+cl.a*coeSide+cr.a*coeSide+cb.a*coeSide+ct.a*coeSide;\n\t\t\tvec3 rgb=(c.rgb*c.a*coeCenter+cl.rgb*cl.a*coeSide+cr.rgb*cr.a*coeSide+cb.rgb*cb.a*coeSide+ct.rgb*ct.a*coeSide)/a;\n\t\t\tgl_FragColor=vec4(rgb,a);\n\n\t\t}\n\t"},ut=class extends je{constructor({renderer:e,scene:t,camera:n,width:i,height:o,selects:a,bouncing:s=!1,groundReflector:l}){super(),this.width=void 0!==i?i:512,this.height=void 0!==o?o:512,this.clear=!0,this.renderer=e,this.scene=t,this.camera=n,this.groundReflector=l,this.opacity=it.uniforms.opacity.value,this.output=0,this.maxDistance=it.uniforms.maxDistance.value,this.thickness=it.uniforms.thickness.value,this.tempColor=new r.Color,this._selects=a,this.selective=Array.isArray(this._selects),Object.defineProperty(this,"selects",{get(){return this._selects},set(e){this._selects!==e&&(this._selects=e,Array.isArray(e)?(this.selective=!0,this.ssrMaterial.defines.SELECTIVE=!0,this.ssrMaterial.needsUpdate=!0):(this.selective=!1,this.ssrMaterial.defines.SELECTIVE=!1,this.ssrMaterial.needsUpdate=!0))}}),this._bouncing=s,Object.defineProperty(this,"bouncing",{get(){return this._bouncing},set(e){this._bouncing!==e&&(this._bouncing=e,this.ssrMaterial.uniforms.tDiffuse.value=e?this.prevRenderTarget.texture:this.beautyRenderTarget.texture)}}),this.blur=!0,this._distanceAttenuation=it.defines.DISTANCE_ATTENUATION,Object.defineProperty(this,"distanceAttenuation",{get(){return this._distanceAttenuation},set(e){this._distanceAttenuation!==e&&(this._distanceAttenuation=e,this.ssrMaterial.defines.DISTANCE_ATTENUATION=e,this.ssrMaterial.needsUpdate=!0)}}),this._fresnel=it.defines.FRESNEL,Object.defineProperty(this,"fresnel",{get(){return this._fresnel},set(e){this._fresnel!==e&&(this._fresnel=e,this.ssrMaterial.defines.FRESNEL=e,this.ssrMaterial.needsUpdate=!0)}}),this._infiniteThick=it.defines.INFINITE_THICK,Object.defineProperty(this,"infiniteThick",{get(){return this._infiniteThick},set(e){this._infiniteThick!==e&&(this._infiniteThick=e,this.ssrMaterial.defines.INFINITE_THICK=e,this.ssrMaterial.needsUpdate=!0)}});const c=new r.DepthTexture;c.type=r.UnsignedShortType,c.minFilter=r.NearestFilter,c.magFilter=r.NearestFilter,this.beautyRenderTarget=new r.WebGLRenderTarget(this.width,this.height,{minFilter:r.NearestFilter,magFilter:r.NearestFilter,type:r.HalfFloatType,depthTexture:c,depthBuffer:!0}),this.prevRenderTarget=new r.WebGLRenderTarget(this.width,this.height,{minFilter:r.NearestFilter,magFilter:r.NearestFilter}),this.normalRenderTarget=new r.WebGLRenderTarget(this.width,this.height,{minFilter:r.NearestFilter,magFilter:r.NearestFilter,type:r.HalfFloatType}),this.metalnessRenderTarget=new r.WebGLRenderTarget(this.width,this.height,{minFilter:r.NearestFilter,magFilter:r.NearestFilter,type:r.HalfFloatType}),this.ssrRenderTarget=new r.WebGLRenderTarget(this.width,this.height,{minFilter:r.NearestFilter,magFilter:r.NearestFilter}),this.blurRenderTarget=this.ssrRenderTarget.clone(),this.blurRenderTarget2=this.ssrRenderTarget.clone(),this.ssrMaterial=new r.ShaderMaterial({defines:Object.assign({},it.defines,{MAX_STEP:Math.sqrt(this.width*this.width+this.height*this.height)}),uniforms:r.UniformsUtils.clone(it.uniforms),vertexShader:it.vertexShader,fragmentShader:it.fragmentShader,blending:r.NoBlending}),this.ssrMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.ssrMaterial.uniforms.tNormal.value=this.normalRenderTarget.texture,this.ssrMaterial.defines.SELECTIVE=this.selective,this.ssrMaterial.needsUpdate=!0,this.ssrMaterial.uniforms.tMetalness.value=this.metalnessRenderTarget.texture,this.ssrMaterial.uniforms.tDepth.value=this.beautyRenderTarget.depthTexture,this.ssrMaterial.uniforms.cameraNear.value=this.camera.near,this.ssrMaterial.uniforms.cameraFar.value=this.camera.far,this.ssrMaterial.uniforms.thickness.value=this.thickness,this.ssrMaterial.uniforms.resolution.value.set(this.width,this.height),this.ssrMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix),this.ssrMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.normalMaterial=new r.MeshNormalMaterial,this.normalMaterial.blending=r.NoBlending,this.metalnessOnMaterial=new r.MeshBasicMaterial({color:"white"}),this.metalnessOffMaterial=new r.MeshBasicMaterial({color:"black"}),this.blurMaterial=new r.ShaderMaterial({defines:Object.assign({},ct.defines),uniforms:r.UniformsUtils.clone(ct.uniforms),vertexShader:ct.vertexShader,fragmentShader:ct.fragmentShader}),this.blurMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.blurMaterial.uniforms.resolution.value.set(this.width,this.height),this.blurMaterial2=new r.ShaderMaterial({defines:Object.assign({},ct.defines),uniforms:r.UniformsUtils.clone(ct.uniforms),vertexShader:ct.vertexShader,fragmentShader:ct.fragmentShader}),this.blurMaterial2.uniforms.tDiffuse.value=this.blurRenderTarget.texture,this.blurMaterial2.uniforms.resolution.value.set(this.width,this.height),this.depthRenderMaterial=new r.ShaderMaterial({defines:Object.assign({},ot),uniforms:r.UniformsUtils.clone(at),vertexShader:st,fragmentShader:lt,blending:r.NoBlending}),this.depthRenderMaterial.uniforms.tDepth.value=this.beautyRenderTarget.depthTexture,this.depthRenderMaterial.uniforms.cameraNear.value=this.camera.near,this.depthRenderMaterial.uniforms.cameraFar.value=this.camera.far,this.copyMaterial=new r.ShaderMaterial({uniforms:r.UniformsUtils.clone(Ge.uniforms),vertexShader:Ge.vertexShader,fragmentShader:Ge.fragmentShader,transparent:!0,depthTest:!1,depthWrite:!1,blendSrc:r.SrcAlphaFactor,blendDst:r.OneMinusSrcAlphaFactor,blendEquation:r.AddEquation,blendSrcAlpha:r.SrcAlphaFactor,blendDstAlpha:r.OneMinusSrcAlphaFactor,blendEquationAlpha:r.AddEquation}),this.fsQuad=new $e(null),this.originalClearColor=new r.Color}dispose(){this.beautyRenderTarget.dispose(),this.prevRenderTarget.dispose(),this.normalRenderTarget.dispose(),this.metalnessRenderTarget.dispose(),this.ssrRenderTarget.dispose(),this.blurRenderTarget.dispose(),this.blurRenderTarget2.dispose(),this.normalMaterial.dispose(),this.metalnessOnMaterial.dispose(),this.metalnessOffMaterial.dispose(),this.blurMaterial.dispose(),this.blurMaterial2.dispose(),this.copyMaterial.dispose(),this.depthRenderMaterial.dispose(),this.fsQuad.dispose()}render(e,t){switch(e.setRenderTarget(this.beautyRenderTarget),e.clear(),this.groundReflector&&(this.groundReflector.visible=!1,this.groundReflector.doRender(this.renderer,this.scene,this.camera),this.groundReflector.visible=!0),e.render(this.scene,this.camera),this.groundReflector&&(this.groundReflector.visible=!1),this.renderOverride(e,this.normalMaterial,this.normalRenderTarget,0,0),this.selective&&this.renderMetalness(e,this.metalnessOnMaterial,this.metalnessRenderTarget,0,0),this.ssrMaterial.uniforms.opacity.value=this.opacity,this.ssrMaterial.uniforms.maxDistance.value=this.maxDistance,this.ssrMaterial.uniforms.thickness.value=this.thickness,this.renderPass(e,this.ssrMaterial,this.ssrRenderTarget),this.blur&&(this.renderPass(e,this.blurMaterial,this.blurRenderTarget),this.renderPass(e,this.blurMaterial2,this.blurRenderTarget2)),this.output){case ut.OUTPUT.Default:this.bouncing?(this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.prevRenderTarget),this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=r.NormalBlending,this.renderPass(e,this.copyMaterial,this.prevRenderTarget),this.copyMaterial.uniforms.tDiffuse.value=this.prevRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t)):(this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t),this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=r.NormalBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t));break;case ut.OUTPUT.SSR:this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t),this.bouncing&&(this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.prevRenderTarget),this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=r.NormalBlending,this.renderPass(e,this.copyMaterial,this.prevRenderTarget));break;case ut.OUTPUT.Beauty:this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;case ut.OUTPUT.Depth:this.renderPass(e,this.depthRenderMaterial,this.renderToScreen?null:t);break;case ut.OUTPUT.Normal:this.copyMaterial.uniforms.tDiffuse.value=this.normalRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;case ut.OUTPUT.Metalness:this.copyMaterial.uniforms.tDiffuse.value=this.metalnessRenderTarget.texture,this.copyMaterial.blending=r.NoBlending,this.renderPass(e,this.copyMaterial,this.renderToScreen?null:t);break;default:console.warn("THREE.SSRPass: Unknown output type.")}}renderPass(e,t,n,r,i){this.originalClearColor.copy(e.getClearColor(this.tempColor));const o=e.getClearAlpha(this.tempColor),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.fsQuad.material=t,this.fsQuad.render(e),e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}renderOverride(e,t,n,r,i){this.originalClearColor.copy(e.getClearColor(this.tempColor));const o=e.getClearAlpha(this.tempColor),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,r=t.clearColor||r,i=t.clearAlpha||i,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.scene.overrideMaterial=t,e.render(this.scene,this.camera),this.scene.overrideMaterial=null,e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}renderMetalness(e,t,n,r,i){this.originalClearColor.copy(e.getClearColor(this.tempColor));const o=e.getClearAlpha(this.tempColor),a=e.autoClear;e.setRenderTarget(n),e.autoClear=!1,r=t.clearColor||r,i=t.clearAlpha||i,null!=r&&(e.setClearColor(r),e.setClearAlpha(i||0),e.clear()),this.scene.traverseVisible(e=>{e._SSRPassBackupMaterial=e.material,this._selects.includes(e)?e.material=this.metalnessOnMaterial:e.material=this.metalnessOffMaterial}),e.render(this.scene,this.camera),this.scene.traverseVisible(e=>{e.material=e._SSRPassBackupMaterial}),e.autoClear=a,e.setClearColor(this.originalClearColor),e.setClearAlpha(o)}setSize(e,t){this.width=e,this.height=t,this.ssrMaterial.defines.MAX_STEP=Math.sqrt(e*e+t*t),this.ssrMaterial.needsUpdate=!0,this.beautyRenderTarget.setSize(e,t),this.prevRenderTarget.setSize(e,t),this.ssrRenderTarget.setSize(e,t),this.normalRenderTarget.setSize(e,t),this.metalnessRenderTarget.setSize(e,t),this.blurRenderTarget.setSize(e,t),this.blurRenderTarget2.setSize(e,t),this.ssrMaterial.uniforms.resolution.value.set(e,t),this.ssrMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix),this.ssrMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.blurMaterial.uniforms.resolution.value.set(e,t),this.blurMaterial2.uniforms.resolution.value.set(e,t)}};G(ut,"OUTPUT",{Default:0,SSR:1,Beauty:3,Depth:4,Normal:5,Metalness:7});class dt extends je{constructor(e,t,n,i,o=0){super(),G(this,"scene"),G(this,"camera"),G(this,"overrideMaterial"),G(this,"clearColor"),G(this,"clearAlpha"),G(this,"clearDepth",!1),G(this,"_oldClearColor",new r.Color),this.scene=e,this.camera=t,this.overrideMaterial=n,this.clearColor=i,this.clearAlpha=o,this.clear=!0,this.needsSwap=!1}render(e,t,n){let r,i=e.autoClear;e.autoClear=!1;let o=null;void 0!==this.overrideMaterial&&(o=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(e.getClearColor(this._oldClearColor),r=e.getClearAlpha(),e.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&e.clearDepth(),e.setRenderTarget(this.renderToScreen?null:n),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),e.render(this.scene,this.camera),this.clearColor&&e.setClearColor(this._oldClearColor,r),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=o),e.autoClear=i}}["uniform vec2 uImageIncrement;","varying vec2 vUv;","void main() {","\tvUv = uv - ( ( KERNEL_SIZE_FLOAT - 1.0 ) / 2.0 ) * uImageIncrement;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float cKernel[ KERNEL_SIZE_INT ];","uniform sampler2D tDiffuse;","uniform vec2 uImageIncrement;","varying vec2 vUv;","void main() {","\tvec2 imageCoord = vUv;","\tvec4 sum = vec4( 0.0, 0.0, 0.0, 0.0 );","\tfor( int i = 0; i < KERNEL_SIZE_INT; i ++ ) {","\t\tsum += texture2D( tDiffuse, imageCoord ) * cKernel[ i ];","\t\timageCoord += uImageIncrement;","\t}","\tgl_FragColor = sum;","}"].join("\n"),r.Loader,r.Interpolant,Int8Array,Uint8Array,Int16Array,Uint16Array,Uint32Array,Float32Array,r.NearestFilter,r.LinearFilter,r.NearestMipmapNearestFilter,r.LinearMipmapNearestFilter,r.NearestMipmapLinearFilter,r.LinearMipmapLinearFilter,r.ClampToEdgeWrapping,r.MirroredRepeatWrapping,r.RepeatWrapping,r.REVISION.replace(/\D+/g,""),r.InterpolateLinear,r.InterpolateDiscrete,r.Object3D,r.Object3D;const ht=class{static createButton(e,t={}){const n=document.createElement("button");function r(e){e.style.position="absolute",e.style.bottom="20px",e.style.padding="12px 6px",e.style.border="1px solid #fff",e.style.borderRadius="4px",e.style.background="rgba(0,0,0,0.1)",e.style.color="#fff",e.style.font="normal 13px sans-serif",e.style.textAlign="center",e.style.opacity="0.5",e.style.outline="none",e.style.zIndex="999"}if("xr"in navigator)return r(n),n.id="VRButton",n.style.display="none",navigator.xr.isSessionSupported("immersive-vr").then(r=>{r?function(){let r=null;async function i(t){t.addEventListener("end",o),await e.xr.setSession(t),n.textContent="EXIT VR",r=t}function o(){r.removeEventListener("end",o),n.textContent="ENTER VR",r=null}n.style.display="",n.style.cursor="pointer",n.style.left="calc(50% - 50px)",n.style.width="100px",n.textContent="ENTER VR",n.onmouseenter=()=>{n.style.opacity="1.0"},n.onmouseleave=()=>{n.style.opacity="0.5"},n.onclick=()=>{var e;if(null===r){const n=[t.optionalFeatures,"local-floor","bounded-floor","hand-tracking"].flat().filter(Boolean);null==(e=navigator.xr)||e.requestSession("immersive-vr",{...t,optionalFeatures:n}).then(i)}else r.end()}}():(n.style.display="",n.style.cursor="auto",n.style.left="calc(50% - 75px)",n.style.width="150px",n.onmouseenter=null,n.onmouseleave=null,n.onclick=null,n.textContent="VR NOT SUPPORTED"),r&&ht.xrSessionIsGranted&&n.click()}),n;{const e=document.createElement("a");return!1===window.isSecureContext?(e.href=document.location.href.replace(/^http:/,"https:"),e.innerHTML="WEBXR NEEDS HTTPS"):(e.href="https://immersiveweb.dev/",e.innerHTML="WEBXR NOT AVAILABLE"),e.style.left="calc(50% - 90px)",e.style.width="180px",e.style.textDecoration="none",r(e),e}}static registerSessionGrantedListener(){"xr"in navigator&&navigator.xr.addEventListener("sessiongranted",()=>{ht.xrSessionIsGranted=!0})}};G(ht,"xrSessionIsGranted",!1);r.Object3D,r.Group,r.Object3D,r.BufferGeometry,r.BoxGeometry,r.BufferGeometry,r.BufferGeometry,r.BufferGeometry,r.ExtrudeGeometry,r.Group,["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#define saturate(a) clamp( a, 0.0, 1.0 )","uniform sampler2D tDiffuse;","uniform float exposure;","varying vec2 vUv;","vec3 RRTAndODTFit( vec3 v ) {","\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;","\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;","\treturn a / b;","}","vec3 ACESFilmicToneMapping( vec3 color ) {","\tconst mat3 ACESInputMat = mat3(","\t\tvec3( 0.59719, 0.07600, 0.02840 ),","\t\tvec3( 0.35458, 0.90834, 0.13383 ),","\t\tvec3( 0.04823, 0.01566, 0.83777 )","\t);","\tconst mat3 ACESOutputMat = mat3(","\t\tvec3( 1.60475, -0.10208, -0.00327 ),","\t\tvec3( -0.53108, 1.10813, -0.07276 ),","\t\tvec3( -0.07367, -0.00605, 1.07602 )","\t);","\tcolor = ACESInputMat * color;","\tcolor = RRTAndODTFit( color );","\tcolor = ACESOutputMat * color;","\treturn saturate( color );","}","void main() {","\tvec4 tex = texture2D( tDiffuse, vUv );","\ttex.rgb *= exposure / 0.6;","\tgl_FragColor = vec4( ACESFilmicToneMapping( tex.rgb ), tex.a );","}"].join("\n"),["void main() {","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["void main() {","\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 0.5 );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float opacity;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 base = texture2D( tDiffuse, vUv );","\tvec3 lumCoeff = vec3( 0.25, 0.65, 0.1 );","\tfloat lum = dot( lumCoeff, base.rgb );","\tvec3 blend = vec3( lum );","\tfloat L = min( 1.0, max( 0.0, 10.0 * ( lum - 0.45 ) ) );","\tvec3 result1 = 2.0 * base.rgb * blend;","\tvec3 result2 = 1.0 - 2.0 * ( 1.0 - blend ) * ( 1.0 - base.rgb );","\tvec3 newColor = mix( result1, result2, L );","\tfloat A2 = opacity * base.a;","\tvec3 mixRGB = A2 * newColor.rgb;","\tmixRGB += ( ( 1.0 - A2 ) * base.rgb );","\tgl_FragColor = vec4( mixRGB, base.a );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float opacity;","uniform float mixRatio;","uniform sampler2D tDiffuse1;","uniform sampler2D tDiffuse2;","varying vec2 vUv;","void main() {","\tvec4 texel1 = texture2D( tDiffuse1, vUv );","\tvec4 texel2 = texture2D( tDiffuse2, vUv );","\tgl_FragColor = opacity * mix( texel1, texel2, mixRatio );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float brightness;","uniform float contrast;","varying vec2 vUv;","void main() {","\tgl_FragColor = texture2D( tDiffuse, vUv );","\tgl_FragColor.rgb += brightness;","\tif (contrast > 0.0) {","\t\tgl_FragColor.rgb = (gl_FragColor.rgb - 0.5) / (1.0 - contrast) + 0.5;","\t} else {","\t\tgl_FragColor.rgb = (gl_FragColor.rgb - 0.5) * (1.0 + contrast) + 0.5;","\t}","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform vec3 powRGB;","uniform vec3 mulRGB;","uniform vec3 addRGB;","varying vec2 vUv;","void main() {","\tgl_FragColor = texture2D( tDiffuse, vUv );","\tgl_FragColor.rgb = mulRGB * pow( ( gl_FragColor.rgb + addRGB ), powRGB );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform vec3 color;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 texel = texture2D( tDiffuse, vUv );","\tvec3 luma = vec3( 0.299, 0.587, 0.114 );","\tfloat v = dot( texel.xyz, luma );","\tgl_FragColor = vec4( v * color, texel.w );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float focus;","uniform float maxblur;","uniform sampler2D tColor;","uniform sampler2D tDepth;","varying vec2 vUv;","void main() {","\tvec4 depth = texture2D( tDepth, vUv );","\tfloat factor = depth.x - focus;","\tvec4 col = texture2D( tColor, vUv, 2.0 * maxblur * abs( focus - depth.x ) );","\tgl_FragColor = col;","\tgl_FragColor.a = 1.0;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["precision highp float;","","uniform sampler2D tDiffuse;","","uniform vec2 resolution;","","varying vec2 vUv;","","// FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)","","//----------------------------------------------------------------------------------","// File: es3-keplerFXAAassetsshaders/FXAA_DefaultES.frag","// SDK Version: v3.00","// Email: gameworks@nvidia.com","// Site: http://developer.nvidia.com/","//","// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.","//","// Redistribution and use in source and binary forms, with or without","// modification, are permitted provided that the following conditions","// are met:","// * Redistributions of source code must retain the above copyright","// notice, this list of conditions and the following disclaimer.","// * Redistributions in binary form must reproduce the above copyright","// notice, this list of conditions and the following disclaimer in the","// documentation and/or other materials provided with the distribution.","// * Neither the name of NVIDIA CORPORATION nor the names of its","// contributors may be used to endorse or promote products derived","// from this software without specific prior written permission.","//","// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY","// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE","// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR","// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR","// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,","// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,","// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR","// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY","// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT","// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE","// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.","//","//----------------------------------------------------------------------------------","","#define FXAA_PC 1","#define FXAA_GLSL_100 1","#define FXAA_QUALITY_PRESET 12","","#define FXAA_GREEN_AS_LUMA 1","","/*--------------------------------------------------------------------------*/","#ifndef FXAA_PC_CONSOLE"," //"," // The console algorithm for PC is included"," // for developers targeting really low spec machines."," // Likely better to just run FXAA_PC, and use a really low preset."," //"," #define FXAA_PC_CONSOLE 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_GLSL_120"," #define FXAA_GLSL_120 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_GLSL_130"," #define FXAA_GLSL_130 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_HLSL_3"," #define FXAA_HLSL_3 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_HLSL_4"," #define FXAA_HLSL_4 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_HLSL_5"," #define FXAA_HLSL_5 0","#endif","/*==========================================================================*/","#ifndef FXAA_GREEN_AS_LUMA"," //"," // For those using non-linear color,"," // and either not able to get luma in alpha, or not wanting to,"," // this enables FXAA to run using green as a proxy for luma."," // So with this enabled, no need to pack luma in alpha."," //"," // This will turn off AA on anything which lacks some amount of green."," // Pure red and blue or combination of only R and B, will get no AA."," //"," // Might want to lower the settings for both,"," // fxaaConsoleEdgeThresholdMin"," // fxaaQualityEdgeThresholdMin"," // In order to insure AA does not get turned off on colors"," // which contain a minor amount of green."," //"," // 1 = On."," // 0 = Off."," //"," #define FXAA_GREEN_AS_LUMA 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_EARLY_EXIT"," //"," // Controls algorithm's early exit path."," // On PS3 turning this ON adds 2 cycles to the shader."," // On 360 turning this OFF adds 10ths of a millisecond to the shader."," // Turning this off on console will result in a more blurry image."," // So this defaults to on."," //"," // 1 = On."," // 0 = Off."," //"," #define FXAA_EARLY_EXIT 1","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_DISCARD"," //"," // Only valid for PC OpenGL currently."," // Probably will not work when FXAA_GREEN_AS_LUMA = 1."," //"," // 1 = Use discard on pixels which don't need AA."," // For APIs which enable concurrent TEX+ROP from same surface."," // 0 = Return unchanged color on pixels which don't need AA."," //"," #define FXAA_DISCARD 0","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_FAST_PIXEL_OFFSET"," //"," // Used for GLSL 120 only."," //"," // 1 = GL API supports fast pixel offsets"," // 0 = do not use fast pixel offsets"," //"," #ifdef GL_EXT_gpu_shader4"," #define FXAA_FAST_PIXEL_OFFSET 1"," #endif"," #ifdef GL_NV_gpu_shader5"," #define FXAA_FAST_PIXEL_OFFSET 1"," #endif"," #ifdef GL_ARB_gpu_shader5"," #define FXAA_FAST_PIXEL_OFFSET 1"," #endif"," #ifndef FXAA_FAST_PIXEL_OFFSET"," #define FXAA_FAST_PIXEL_OFFSET 0"," #endif","#endif","/*--------------------------------------------------------------------------*/","#ifndef FXAA_GATHER4_ALPHA"," //"," // 1 = API supports gather4 on alpha channel."," // 0 = API does not support gather4 on alpha channel."," //"," #if (FXAA_HLSL_5 == 1)"," #define FXAA_GATHER4_ALPHA 1"," #endif"," #ifdef GL_ARB_gpu_shader5"," #define FXAA_GATHER4_ALPHA 1"," #endif"," #ifdef GL_NV_gpu_shader5"," #define FXAA_GATHER4_ALPHA 1"," #endif"," #ifndef FXAA_GATHER4_ALPHA"," #define FXAA_GATHER4_ALPHA 0"," #endif","#endif","","","/*============================================================================"," FXAA QUALITY - TUNING KNOBS","------------------------------------------------------------------------------","NOTE the other tuning knobs are now in the shader function inputs!","============================================================================*/","#ifndef FXAA_QUALITY_PRESET"," //"," // Choose the quality preset."," // This needs to be compiled into the shader as it effects code."," // Best option to include multiple presets is to"," // in each shader define the preset, then include this file."," //"," // OPTIONS"," // -----------------------------------------------------------------------"," // 10 to 15 - default medium dither (10=fastest, 15=highest quality)"," // 20 to 29 - less dither, more expensive (20=fastest, 29=highest quality)"," // 39 - no dither, very expensive"," //"," // NOTES"," // -----------------------------------------------------------------------"," // 12 = slightly faster then FXAA 3.9 and higher edge quality (default)"," // 13 = about same speed as FXAA 3.9 and better than 12"," // 23 = closest to FXAA 3.9 visually and performance wise"," // _ = the lowest digit is directly related to performance"," // _ = the highest digit is directly related to style"," //"," #define FXAA_QUALITY_PRESET 12","#endif","","","/*============================================================================",""," FXAA QUALITY - PRESETS","","============================================================================*/","","/*============================================================================"," FXAA QUALITY - MEDIUM DITHER PRESETS","============================================================================*/","#if (FXAA_QUALITY_PRESET == 10)"," #define FXAA_QUALITY_PS 3"," #define FXAA_QUALITY_P0 1.5"," #define FXAA_QUALITY_P1 3.0"," #define FXAA_QUALITY_P2 12.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 11)"," #define FXAA_QUALITY_PS 4"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 3.0"," #define FXAA_QUALITY_P3 12.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 12)"," #define FXAA_QUALITY_PS 5"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 4.0"," #define FXAA_QUALITY_P4 12.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 13)"," #define FXAA_QUALITY_PS 6"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 4.0"," #define FXAA_QUALITY_P5 12.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 14)"," #define FXAA_QUALITY_PS 7"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 4.0"," #define FXAA_QUALITY_P6 12.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 15)"," #define FXAA_QUALITY_PS 8"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 2.0"," #define FXAA_QUALITY_P6 4.0"," #define FXAA_QUALITY_P7 12.0","#endif","","/*============================================================================"," FXAA QUALITY - LOW DITHER PRESETS","============================================================================*/","#if (FXAA_QUALITY_PRESET == 20)"," #define FXAA_QUALITY_PS 3"," #define FXAA_QUALITY_P0 1.5"," #define FXAA_QUALITY_P1 2.0"," #define FXAA_QUALITY_P2 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 21)"," #define FXAA_QUALITY_PS 4"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 22)"," #define FXAA_QUALITY_PS 5"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 23)"," #define FXAA_QUALITY_PS 6"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 24)"," #define FXAA_QUALITY_PS 7"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 3.0"," #define FXAA_QUALITY_P6 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 25)"," #define FXAA_QUALITY_PS 8"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 2.0"," #define FXAA_QUALITY_P6 4.0"," #define FXAA_QUALITY_P7 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 26)"," #define FXAA_QUALITY_PS 9"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 2.0"," #define FXAA_QUALITY_P6 2.0"," #define FXAA_QUALITY_P7 4.0"," #define FXAA_QUALITY_P8 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 27)"," #define FXAA_QUALITY_PS 10"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 2.0"," #define FXAA_QUALITY_P6 2.0"," #define FXAA_QUALITY_P7 2.0"," #define FXAA_QUALITY_P8 4.0"," #define FXAA_QUALITY_P9 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 28)"," #define FXAA_QUALITY_PS 11"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 2.0"," #define FXAA_QUALITY_P6 2.0"," #define FXAA_QUALITY_P7 2.0"," #define FXAA_QUALITY_P8 2.0"," #define FXAA_QUALITY_P9 4.0"," #define FXAA_QUALITY_P10 8.0","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_QUALITY_PRESET == 29)"," #define FXAA_QUALITY_PS 12"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.5"," #define FXAA_QUALITY_P2 2.0"," #define FXAA_QUALITY_P3 2.0"," #define FXAA_QUALITY_P4 2.0"," #define FXAA_QUALITY_P5 2.0"," #define FXAA_QUALITY_P6 2.0"," #define FXAA_QUALITY_P7 2.0"," #define FXAA_QUALITY_P8 2.0"," #define FXAA_QUALITY_P9 2.0"," #define FXAA_QUALITY_P10 4.0"," #define FXAA_QUALITY_P11 8.0","#endif","","/*============================================================================"," FXAA QUALITY - EXTREME QUALITY","============================================================================*/","#if (FXAA_QUALITY_PRESET == 39)"," #define FXAA_QUALITY_PS 12"," #define FXAA_QUALITY_P0 1.0"," #define FXAA_QUALITY_P1 1.0"," #define FXAA_QUALITY_P2 1.0"," #define FXAA_QUALITY_P3 1.0"," #define FXAA_QUALITY_P4 1.0"," #define FXAA_QUALITY_P5 1.5"," #define FXAA_QUALITY_P6 2.0"," #define FXAA_QUALITY_P7 2.0"," #define FXAA_QUALITY_P8 2.0"," #define FXAA_QUALITY_P9 2.0"," #define FXAA_QUALITY_P10 4.0"," #define FXAA_QUALITY_P11 8.0","#endif","","","","/*============================================================================",""," API PORTING","","============================================================================*/","#if (FXAA_GLSL_100 == 1) || (FXAA_GLSL_120 == 1) || (FXAA_GLSL_130 == 1)"," #define FxaaBool bool"," #define FxaaDiscard discard"," #define FxaaFloat float"," #define FxaaFloat2 vec2"," #define FxaaFloat3 vec3"," #define FxaaFloat4 vec4"," #define FxaaHalf float"," #define FxaaHalf2 vec2"," #define FxaaHalf3 vec3"," #define FxaaHalf4 vec4"," #define FxaaInt2 ivec2"," #define FxaaSat(x) clamp(x, 0.0, 1.0)"," #define FxaaTex sampler2D","#else"," #define FxaaBool bool"," #define FxaaDiscard clip(-1)"," #define FxaaFloat float"," #define FxaaFloat2 float2"," #define FxaaFloat3 float3"," #define FxaaFloat4 float4"," #define FxaaHalf half"," #define FxaaHalf2 half2"," #define FxaaHalf3 half3"," #define FxaaHalf4 half4"," #define FxaaSat(x) saturate(x)","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_GLSL_100 == 1)"," #define FxaaTexTop(t, p) texture2D(t, p, 0.0)"," #define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), 0.0)","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_GLSL_120 == 1)"," // Requires,"," // #version 120"," // And at least,"," // #extension GL_EXT_gpu_shader4 : enable"," // (or set FXAA_FAST_PIXEL_OFFSET 1 to work like DX9)"," #define FxaaTexTop(t, p) texture2DLod(t, p, 0.0)"," #if (FXAA_FAST_PIXEL_OFFSET == 1)"," #define FxaaTexOff(t, p, o, r) texture2DLodOffset(t, p, 0.0, o)"," #else"," #define FxaaTexOff(t, p, o, r) texture2DLod(t, p + (o * r), 0.0)"," #endif"," #if (FXAA_GATHER4_ALPHA == 1)"," // use #extension GL_ARB_gpu_shader5 : enable"," #define FxaaTexAlpha4(t, p) textureGather(t, p, 3)"," #define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)"," #define FxaaTexGreen4(t, p) textureGather(t, p, 1)"," #define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)"," #endif","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_GLSL_130 == 1)",' // Requires "#version 130" or better'," #define FxaaTexTop(t, p) textureLod(t, p, 0.0)"," #define FxaaTexOff(t, p, o, r) textureLodOffset(t, p, 0.0, o)"," #if (FXAA_GATHER4_ALPHA == 1)"," // use #extension GL_ARB_gpu_shader5 : enable"," #define FxaaTexAlpha4(t, p) textureGather(t, p, 3)"," #define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)"," #define FxaaTexGreen4(t, p) textureGather(t, p, 1)"," #define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)"," #endif","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_HLSL_3 == 1)"," #define FxaaInt2 float2"," #define FxaaTex sampler2D"," #define FxaaTexTop(t, p) tex2Dlod(t, float4(p, 0.0, 0.0))"," #define FxaaTexOff(t, p, o, r) tex2Dlod(t, float4(p + (o * r), 0, 0))","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_HLSL_4 == 1)"," #define FxaaInt2 int2"," struct FxaaTex { SamplerState smpl; Texture2D tex; };"," #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)"," #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)","#endif","/*--------------------------------------------------------------------------*/","#if (FXAA_HLSL_5 == 1)"," #define FxaaInt2 int2"," struct FxaaTex { SamplerState smpl; Texture2D tex; };"," #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)"," #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)"," #define FxaaTexAlpha4(t, p) t.tex.GatherAlpha(t.smpl, p)"," #define FxaaTexOffAlpha4(t, p, o) t.tex.GatherAlpha(t.smpl, p, o)"," #define FxaaTexGreen4(t, p) t.tex.GatherGreen(t.smpl, p)"," #define FxaaTexOffGreen4(t, p, o) t.tex.GatherGreen(t.smpl, p, o)","#endif","","","/*============================================================================"," GREEN AS LUMA OPTION SUPPORT FUNCTION","============================================================================*/","#if (FXAA_GREEN_AS_LUMA == 0)"," FxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.w; }","#else"," FxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.y; }","#endif","","","","","/*============================================================================",""," FXAA3 QUALITY - PC","","============================================================================*/","#if (FXAA_PC == 1)","/*--------------------------------------------------------------------------*/","FxaaFloat4 FxaaPixelShader("," //"," // Use noperspective interpolation here (turn off perspective interpolation)."," // {xy} = center of pixel"," FxaaFloat2 pos,"," //"," // Used only for FXAA Console, and not used on the 360 version."," // Use noperspective interpolation here (turn off perspective interpolation)."," // {xy_} = upper left of pixel"," // {_zw} = lower right of pixel"," FxaaFloat4 fxaaConsolePosPos,"," //"," // Input color texture."," // {rgb_} = color in linear or perceptual color space"," // if (FXAA_GREEN_AS_LUMA == 0)"," // {__a} = luma in perceptual color space (not linear)"," FxaaTex tex,"," //"," // Only used on the optimized 360 version of FXAA Console.",' // For everything but 360, just use the same input here as for "tex".'," // For 360, same texture, just alias with a 2nd sampler."," // This sampler needs to have an exponent bias of -1."," FxaaTex fxaaConsole360TexExpBiasNegOne,"," //"," // Only used on the optimized 360 version of FXAA Console.",' // For everything but 360, just use the same input here as for "tex".'," // For 360, same texture, just alias with a 3nd sampler."," // This sampler needs to have an exponent bias of -2."," FxaaTex fxaaConsole360TexExpBiasNegTwo,"," //"," // Only used on FXAA Quality."," // This must be from a constant/uniform."," // {x_} = 1.0/screenWidthInPixels"," // {_y} = 1.0/screenHeightInPixels"," FxaaFloat2 fxaaQualityRcpFrame,"," //"," // Only used on FXAA Console."," // This must be from a constant/uniform."," // This effects sub-pixel AA quality and inversely sharpness."," // Where N ranges between,"," // N = 0.50 (default)"," // N = 0.33 (sharper)"," // {x__} = -N/screenWidthInPixels"," // {_y_} = -N/screenHeightInPixels"," // {_z_} = N/screenWidthInPixels"," // {__w} = N/screenHeightInPixels"," FxaaFloat4 fxaaConsoleRcpFrameOpt,"," //"," // Only used on FXAA Console."," // Not used on 360, but used on PS3 and PC."," // This must be from a constant/uniform."," // {x__} = -2.0/screenWidthInPixels"," // {_y_} = -2.0/screenHeightInPixels"," // {_z_} = 2.0/screenWidthInPixels"," // {__w} = 2.0/screenHeightInPixels"," FxaaFloat4 fxaaConsoleRcpFrameOpt2,"," //"," // Only used on FXAA Console."," // Only used on 360 in place of fxaaConsoleRcpFrameOpt2."," // This must be from a constant/uniform."," // {x__} = 8.0/screenWidthInPixels"," // {_y_} = 8.0/screenHeightInPixels"," // {_z_} = -4.0/screenWidthInPixels"," // {__w} = -4.0/screenHeightInPixels"," FxaaFloat4 fxaaConsole360RcpFrameOpt2,"," //"," // Only used on FXAA Quality."," // This used to be the FXAA_QUALITY_SUBPIX define."," // It is here now to allow easier tuning."," // Choose the amount of sub-pixel aliasing removal."," // This can effect sharpness."," // 1.00 - upper limit (softer)"," // 0.75 - default amount of filtering"," // 0.50 - lower limit (sharper, less sub-pixel aliasing removal)"," // 0.25 - almost off"," // 0.00 - completely off"," FxaaFloat fxaaQualitySubpix,"," //"," // Only used on FXAA Quality."," // This used to be the FXAA_QUALITY_EDGE_THRESHOLD define."," // It is here now to allow easier tuning."," // The minimum amount of local contrast required to apply algorithm."," // 0.333 - too little (faster)"," // 0.250 - low quality"," // 0.166 - default"," // 0.125 - high quality"," // 0.063 - overkill (slower)"," FxaaFloat fxaaQualityEdgeThreshold,"," //"," // Only used on FXAA Quality."," // This used to be the FXAA_QUALITY_EDGE_THRESHOLD_MIN define."," // It is here now to allow easier tuning."," // Trims the algorithm from processing darks."," // 0.0833 - upper limit (default, the start of visible unfiltered edges)"," // 0.0625 - high quality (faster)"," // 0.0312 - visible limit (slower)"," // Special notes when using FXAA_GREEN_AS_LUMA,"," // Likely want to set this to zero."," // As colors that are mostly not-green"," // will appear very dark in the green channel!"," // Tune by looking at mostly non-green content,"," // then start at zero and increase until aliasing is a problem."," FxaaFloat fxaaQualityEdgeThresholdMin,"," //"," // Only used on FXAA Console."," // This used to be the FXAA_CONSOLE_EDGE_SHARPNESS define."," // It is here now to allow easier tuning."," // This does not effect PS3, as this needs to be compiled in."," // Use FXAA_CONSOLE_PS3_EDGE_SHARPNESS for PS3."," // Due to the PS3 being ALU bound,"," // there are only three safe values here: 2 and 4 and 8."," // These options use the shaders ability to a free *|/ by 2|4|8."," // For all other platforms can be a non-power of two."," // 8.0 is sharper (default!!!)"," // 4.0 is softer"," // 2.0 is really soft (good only for vector graphics inputs)"," FxaaFloat fxaaConsoleEdgeSharpness,"," //"," // Only used on FXAA Console."," // This used to be the FXAA_CONSOLE_EDGE_THRESHOLD define."," // It is here now to allow easier tuning."," // This does not effect PS3, as this needs to be compiled in."," // Use FXAA_CONSOLE_PS3_EDGE_THRESHOLD for PS3."," // Due to the PS3 being ALU bound,"," // there are only two safe values here: 1/4 and 1/8."," // These options use the shaders ability to a free *|/ by 2|4|8."," // The console setting has a different mapping than the quality setting."," // Other platforms can use other values."," // 0.125 leaves less aliasing, but is softer (default!!!)"," // 0.25 leaves more aliasing, and is sharper"," FxaaFloat fxaaConsoleEdgeThreshold,"," //"," // Only used on FXAA Console."," // This used to be the FXAA_CONSOLE_EDGE_THRESHOLD_MIN define."," // It is here now to allow easier tuning."," // Trims the algorithm from processing darks."," // The console setting has a different mapping than the quality setting."," // This only applies when FXAA_EARLY_EXIT is 1."," // This does not apply to PS3,"," // PS3 was simplified to avoid more shader instructions."," // 0.06 - faster but more aliasing in darks"," // 0.05 - default"," // 0.04 - slower and less aliasing in darks"," // Special notes when using FXAA_GREEN_AS_LUMA,"," // Likely want to set this to zero."," // As colors that are mostly not-green"," // will appear very dark in the green channel!"," // Tune by looking at mostly non-green content,"," // then start at zero and increase until aliasing is a problem."," FxaaFloat fxaaConsoleEdgeThresholdMin,"," //"," // Extra constants for 360 FXAA Console only."," // Use zeros or anything else for other platforms."," // These must be in physical constant registers and NOT immediates."," // Immediates will result in compiler un-optimizing."," // {xyzw} = float4(1.0, -1.0, 0.25, -0.25)"," FxaaFloat4 fxaaConsole360ConstDir",") {","/*--------------------------------------------------------------------------*/"," FxaaFloat2 posM;"," posM.x = pos.x;"," posM.y = pos.y;"," #if (FXAA_GATHER4_ALPHA == 1)"," #if (FXAA_DISCARD == 0)"," FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);"," #if (FXAA_GREEN_AS_LUMA == 0)"," #define lumaM rgbyM.w"," #else"," #define lumaM rgbyM.y"," #endif"," #endif"," #if (FXAA_GREEN_AS_LUMA == 0)"," FxaaFloat4 luma4A = FxaaTexAlpha4(tex, posM);"," FxaaFloat4 luma4B = FxaaTexOffAlpha4(tex, posM, FxaaInt2(-1, -1));"," #else"," FxaaFloat4 luma4A = FxaaTexGreen4(tex, posM);"," FxaaFloat4 luma4B = FxaaTexOffGreen4(tex, posM, FxaaInt2(-1, -1));"," #endif"," #if (FXAA_DISCARD == 1)"," #define lumaM luma4A.w"," #endif"," #define lumaE luma4A.z"," #define lumaS luma4A.x"," #define lumaSE luma4A.y"," #define lumaNW luma4B.w"," #define lumaN luma4B.z"," #define lumaW luma4B.x"," #else"," FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);"," #if (FXAA_GREEN_AS_LUMA == 0)"," #define lumaM rgbyM.w"," #else"," #define lumaM rgbyM.y"," #endif"," #if (FXAA_GLSL_100 == 1)"," FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0, 1.0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 0.0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0,-1.0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 0.0), fxaaQualityRcpFrame.xy));"," #else"," FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0, 1), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0,-1), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 0), fxaaQualityRcpFrame.xy));"," #endif"," #endif","/*--------------------------------------------------------------------------*/"," FxaaFloat maxSM = max(lumaS, lumaM);"," FxaaFloat minSM = min(lumaS, lumaM);"," FxaaFloat maxESM = max(lumaE, maxSM);"," FxaaFloat minESM = min(lumaE, minSM);"," FxaaFloat maxWN = max(lumaN, lumaW);"," FxaaFloat minWN = min(lumaN, lumaW);"," FxaaFloat rangeMax = max(maxWN, maxESM);"," FxaaFloat rangeMin = min(minWN, minESM);"," FxaaFloat rangeMaxScaled = rangeMax * fxaaQualityEdgeThreshold;"," FxaaFloat range = rangeMax - rangeMin;"," FxaaFloat rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);"," FxaaBool earlyExit = range < rangeMaxClamped;","/*--------------------------------------------------------------------------*/"," if(earlyExit)"," #if (FXAA_DISCARD == 1)"," FxaaDiscard;"," #else"," return rgbyM;"," #endif","/*--------------------------------------------------------------------------*/"," #if (FXAA_GATHER4_ALPHA == 0)"," #if (FXAA_GLSL_100 == 1)"," FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0,-1.0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 1.0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0,-1.0), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 1.0), fxaaQualityRcpFrame.xy));"," #else"," FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1,-1), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 1), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1,-1), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));"," #endif"," #else"," FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(1, -1), fxaaQualityRcpFrame.xy));"," FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));"," #endif","/*--------------------------------------------------------------------------*/"," FxaaFloat lumaNS = lumaN + lumaS;"," FxaaFloat lumaWE = lumaW + lumaE;"," FxaaFloat subpixRcpRange = 1.0/range;"," FxaaFloat subpixNSWE = lumaNS + lumaWE;"," FxaaFloat edgeHorz1 = (-2.0 * lumaM) + lumaNS;"," FxaaFloat edgeVert1 = (-2.0 * lumaM) + lumaWE;","/*--------------------------------------------------------------------------*/"," FxaaFloat lumaNESE = lumaNE + lumaSE;"," FxaaFloat lumaNWNE = lumaNW + lumaNE;"," FxaaFloat edgeHorz2 = (-2.0 * lumaE) + lumaNESE;"," FxaaFloat edgeVert2 = (-2.0 * lumaN) + lumaNWNE;","/*--------------------------------------------------------------------------*/"," FxaaFloat lumaNWSW = lumaNW + lumaSW;"," FxaaFloat lumaSWSE = lumaSW + lumaSE;"," FxaaFloat edgeHorz4 = (abs(edgeHorz1) * 2.0) + abs(edgeHorz2);"," FxaaFloat edgeVert4 = (abs(edgeVert1) * 2.0) + abs(edgeVert2);"," FxaaFloat edgeHorz3 = (-2.0 * lumaW) + lumaNWSW;"," FxaaFloat edgeVert3 = (-2.0 * lumaS) + lumaSWSE;"," FxaaFloat edgeHorz = abs(edgeHorz3) + edgeHorz4;"," FxaaFloat edgeVert = abs(edgeVert3) + edgeVert4;","/*--------------------------------------------------------------------------*/"," FxaaFloat subpixNWSWNESE = lumaNWSW + lumaNESE;"," FxaaFloat lengthSign = fxaaQualityRcpFrame.x;"," FxaaBool horzSpan = edgeHorz >= edgeVert;"," FxaaFloat subpixA = subpixNSWE * 2.0 + subpixNWSWNESE;","/*--------------------------------------------------------------------------*/"," if(!horzSpan) lumaN = lumaW;"," if(!horzSpan) lumaS = lumaE;"," if(horzSpan) lengthSign = fxaaQualityRcpFrame.y;"," FxaaFloat subpixB = (subpixA * (1.0/12.0)) - lumaM;","/*--------------------------------------------------------------------------*/"," FxaaFloat gradientN = lumaN - lumaM;"," FxaaFloat gradientS = lumaS - lumaM;"," FxaaFloat lumaNN = lumaN + lumaM;"," FxaaFloat lumaSS = lumaS + lumaM;"," FxaaBool pairN = abs(gradientN) >= abs(gradientS);"," FxaaFloat gradient = max(abs(gradientN), abs(gradientS));"," if(pairN) lengthSign = -lengthSign;"," FxaaFloat subpixC = FxaaSat(abs(subpixB) * subpixRcpRange);","/*--------------------------------------------------------------------------*/"," FxaaFloat2 posB;"," posB.x = posM.x;"," posB.y = posM.y;"," FxaaFloat2 offNP;"," offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;"," offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;"," if(!horzSpan) posB.x += lengthSign * 0.5;"," if( horzSpan) posB.y += lengthSign * 0.5;","/*--------------------------------------------------------------------------*/"," FxaaFloat2 posN;"," posN.x = posB.x - offNP.x * FXAA_QUALITY_P0;"," posN.y = posB.y - offNP.y * FXAA_QUALITY_P0;"," FxaaFloat2 posP;"," posP.x = posB.x + offNP.x * FXAA_QUALITY_P0;"," posP.y = posB.y + offNP.y * FXAA_QUALITY_P0;"," FxaaFloat subpixD = ((-2.0)*subpixC) + 3.0;"," FxaaFloat lumaEndN = FxaaLuma(FxaaTexTop(tex, posN));"," FxaaFloat subpixE = subpixC * subpixC;"," FxaaFloat lumaEndP = FxaaLuma(FxaaTexTop(tex, posP));","/*--------------------------------------------------------------------------*/"," if(!pairN) lumaNN = lumaSS;"," FxaaFloat gradientScaled = gradient * 1.0/4.0;"," FxaaFloat lumaMM = lumaM - lumaNN * 0.5;"," FxaaFloat subpixF = subpixD * subpixE;"," FxaaBool lumaMLTZero = lumaMM < 0.0;","/*--------------------------------------------------------------------------*/"," lumaEndN -= lumaNN * 0.5;"," lumaEndP -= lumaNN * 0.5;"," FxaaBool doneN = abs(lumaEndN) >= gradientScaled;"," FxaaBool doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P1;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P1;"," FxaaBool doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P1;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P1;","/*--------------------------------------------------------------------------*/"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P2;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P2;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P2;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P2;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 3)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P3;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P3;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P3;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P3;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 4)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P4;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P4;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P4;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P4;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 5)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P5;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P5;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P5;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P5;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 6)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P6;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P6;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P6;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P6;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 7)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P7;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P7;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P7;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P7;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 8)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P8;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P8;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P8;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P8;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 9)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P9;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P9;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P9;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P9;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 10)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P10;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P10;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P10;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P10;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 11)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P11;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P11;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P11;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P11;","/*--------------------------------------------------------------------------*/"," #if (FXAA_QUALITY_PS > 12)"," if(doneNP) {"," if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));"," if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));"," if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;"," if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;"," doneN = abs(lumaEndN) >= gradientScaled;"," doneP = abs(lumaEndP) >= gradientScaled;"," if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P12;"," if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P12;"," doneNP = (!doneN) || (!doneP);"," if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P12;"," if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P12;","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }"," #endif","/*--------------------------------------------------------------------------*/"," }","/*--------------------------------------------------------------------------*/"," FxaaFloat dstN = posM.x - posN.x;"," FxaaFloat dstP = posP.x - posM.x;"," if(!horzSpan) dstN = posM.y - posN.y;"," if(!horzSpan) dstP = posP.y - posM.y;","/*--------------------------------------------------------------------------*/"," FxaaBool goodSpanN = (lumaEndN < 0.0) != lumaMLTZero;"," FxaaFloat spanLength = (dstP + dstN);"," FxaaBool goodSpanP = (lumaEndP < 0.0) != lumaMLTZero;"," FxaaFloat spanLengthRcp = 1.0/spanLength;","/*--------------------------------------------------------------------------*/"," FxaaBool directionN = dstN < dstP;"," FxaaFloat dst = min(dstN, dstP);"," FxaaBool goodSpan = directionN ? goodSpanN : goodSpanP;"," FxaaFloat subpixG = subpixF * subpixF;"," FxaaFloat pixelOffset = (dst * (-spanLengthRcp)) + 0.5;"," FxaaFloat subpixH = subpixG * fxaaQualitySubpix;","/*--------------------------------------------------------------------------*/"," FxaaFloat pixelOffsetGood = goodSpan ? pixelOffset : 0.0;"," FxaaFloat pixelOffsetSubpix = max(pixelOffsetGood, subpixH);"," if(!horzSpan) posM.x += pixelOffsetSubpix * lengthSign;"," if( horzSpan) posM.y += pixelOffsetSubpix * lengthSign;"," #if (FXAA_DISCARD == 1)"," return FxaaTexTop(tex, posM);"," #else"," return FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM);"," #endif","}","/*==========================================================================*/","#endif","","void main() {"," gl_FragColor = FxaaPixelShader("," vUv,"," vec4(0.0),"," tDiffuse,"," tDiffuse,"," tDiffuse,"," resolution,"," vec4(0.0),"," vec4(0.0),"," vec4(0.0),"," 0.75,"," 0.166,"," 0.0833,"," 0.0,"," 0.0,"," 0.0,"," vec4(0.0)"," );",""," // TODO avoid querying texture twice for same texel"," gl_FragColor.a = texture2D(tDiffuse, vUv).a;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float screenWidth;","uniform float screenHeight;","uniform float sampleDistance;","uniform float waveFactor;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 color, org, tmp, add;","\tfloat sample_dist, f;","\tvec2 vin;","\tvec2 uv = vUv;","\tadd = color = org = texture2D( tDiffuse, uv );","\tvin = ( uv - vec2( 0.5 ) ) * vec2( 1.4 );","\tsample_dist = dot( vin, vin ) * 2.0;","\tf = ( waveFactor * 100.0 + sample_dist ) * sampleDistance * 4.0;","\tvec2 sampleSize = vec2( 1.0 / screenWidth, 1.0 / screenHeight ) * vec2( f );","\tadd += tmp = texture2D( tDiffuse, uv + vec2( 0.111964, 0.993712 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tadd += tmp = texture2D( tDiffuse, uv + vec2( 0.846724, 0.532032 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tadd += tmp = texture2D( tDiffuse, uv + vec2( 0.943883, -0.330279 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tadd += tmp = texture2D( tDiffuse, uv + vec2( 0.330279, -0.943883 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tadd += tmp = texture2D( tDiffuse, uv + vec2( -0.532032, -0.846724 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tadd += tmp = texture2D( tDiffuse, uv + vec2( -0.993712, -0.111964 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tadd += tmp = texture2D( tDiffuse, uv + vec2( -0.707107, 0.707107 ) * sampleSize );","\tif( tmp.b < color.b ) color = tmp;","\tcolor = color * vec4( 2.0 ) - ( add / vec4( 8.0 ) );","\tcolor = color + ( add / vec4( 8.0 ) - color ) * ( vec4( 1.0 ) - vec4( sample_dist * 0.5 ) );","\tgl_FragColor = vec4( color.rgb * color.rgb * vec3( 0.95 ) + color.rgb, 1.0 );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","varying vec2 vUv;","uniform vec2 aspect;","vec2 texel = vec2(1.0 / aspect.x, 1.0 / aspect.y);","mat3 G[9];","const mat3 g0 = mat3( 0.3535533845424652, 0, -0.3535533845424652, 0.5, 0, -0.5, 0.3535533845424652, 0, -0.3535533845424652 );","const mat3 g1 = mat3( 0.3535533845424652, 0.5, 0.3535533845424652, 0, 0, 0, -0.3535533845424652, -0.5, -0.3535533845424652 );","const mat3 g2 = mat3( 0, 0.3535533845424652, -0.5, -0.3535533845424652, 0, 0.3535533845424652, 0.5, -0.3535533845424652, 0 );","const mat3 g3 = mat3( 0.5, -0.3535533845424652, 0, -0.3535533845424652, 0, 0.3535533845424652, 0, 0.3535533845424652, -0.5 );","const mat3 g4 = mat3( 0, -0.5, 0, 0.5, 0, 0.5, 0, -0.5, 0 );","const mat3 g5 = mat3( -0.5, 0, 0.5, 0, 0, 0, 0.5, 0, -0.5 );","const mat3 g6 = mat3( 0.1666666716337204, -0.3333333432674408, 0.1666666716337204, -0.3333333432674408, 0.6666666865348816, -0.3333333432674408, 0.1666666716337204, -0.3333333432674408, 0.1666666716337204 );","const mat3 g7 = mat3( -0.3333333432674408, 0.1666666716337204, -0.3333333432674408, 0.1666666716337204, 0.6666666865348816, 0.1666666716337204, -0.3333333432674408, 0.1666666716337204, -0.3333333432674408 );","const mat3 g8 = mat3( 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408, 0.3333333432674408 );","void main(void)","{","\tG[0] = g0,","\tG[1] = g1,","\tG[2] = g2,","\tG[3] = g3,","\tG[4] = g4,","\tG[5] = g5,","\tG[6] = g6,","\tG[7] = g7,","\tG[8] = g8;","\tmat3 I;","\tfloat cnv[9];","\tvec3 sample;","\tfor (float i=0.0; i<3.0; i++) {","\t\tfor (float j=0.0; j<3.0; j++) {","\t\t\tsample = texture2D(tDiffuse, vUv + texel * vec2(i-1.0,j-1.0) ).rgb;","\t\t\tI[int(i)][int(j)] = length(sample);","\t\t}","\t}","\tfor (int i=0; i<9; i++) {","\t\tfloat dp3 = dot(G[i][0], I[0]) + dot(G[i][1], I[1]) + dot(G[i][2], I[2]);","\t\tcnv[i] = dp3 * dp3;","\t}","\tfloat M = (cnv[0] + cnv[1]) + (cnv[2] + cnv[3]);","\tfloat S = (cnv[4] + cnv[5]) + (cnv[6] + cnv[7]) + (cnv[8] + M);","\tgl_FragColor = vec4(vec3(sqrt(M/S)), 1.0);","}"].join("\n"),["uniform float mRefractionRatio;","uniform float mFresnelBias;","uniform float mFresnelScale;","uniform float mFresnelPower;","varying vec3 vReflect;","varying vec3 vRefract[3];","varying float vReflectionFactor;","void main() {","\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );","\tvec4 worldPosition = modelMatrix * vec4( position, 1.0 );","\tvec3 worldNormal = normalize( mat3( modelMatrix[0].xyz, modelMatrix[1].xyz, modelMatrix[2].xyz ) * normal );","\tvec3 I = worldPosition.xyz - cameraPosition;","\tvReflect = reflect( I, worldNormal );","\tvRefract[0] = refract( normalize( I ), worldNormal, mRefractionRatio );","\tvRefract[1] = refract( normalize( I ), worldNormal, mRefractionRatio * 0.99 );","\tvRefract[2] = refract( normalize( I ), worldNormal, mRefractionRatio * 0.98 );","\tvReflectionFactor = mFresnelBias + mFresnelScale * pow( 1.0 + dot( normalize( I ), worldNormal ), mFresnelPower );","\tgl_Position = projectionMatrix * mvPosition;","}"].join("\n"),["uniform samplerCube tCube;","varying vec3 vReflect;","varying vec3 vRefract[3];","varying float vReflectionFactor;","void main() {","\tvec4 reflectedColor = textureCube( tCube, vec3( -vReflect.x, vReflect.yz ) );","\tvec4 refractedColor = vec4( 1.0 );","\trefractedColor.r = textureCube( tCube, vec3( -vRefract[0].x, vRefract[0].yz ) ).r;","\trefractedColor.g = textureCube( tCube, vec3( -vRefract[1].x, vRefract[1].yz ) ).g;","\trefractedColor.b = textureCube( tCube, vec3( -vRefract[2].x, vRefract[2].yz ) ).b;","\tgl_FragColor = mix( refractedColor, reflectedColor, clamp( vReflectionFactor, 0.0, 1.0 ) );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 tex = texture2D( tDiffuse, vUv );","\tgl_FragColor = LinearTosRGB( tex );","}"].join("\n"),["varying vec2 vUv;","void main() {"," vUv = uv;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["varying vec2 vUv;","uniform sampler2D tInput;","void main() {","\tgl_FragColor = vec4( 1.0 ) - texture2D( tInput, vUv );","}"].join("\n"),["varying vec2 vUv;","void main() {"," vUv = uv;"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#define TAPS_PER_PASS 6.0","varying vec2 vUv;","uniform sampler2D tInput;","uniform vec3 vSunPositionScreenSpace;","uniform float fStepSize;","void main() {","\tvec2 delta = vSunPositionScreenSpace.xy - vUv;","\tfloat dist = length( delta );","\tvec2 stepv = fStepSize * delta / dist;","\tfloat iters = dist/fStepSize;","\tvec2 uv = vUv.xy;","\tfloat col = 0.0;","\tfloat f = min( 1.0, max( vSunPositionScreenSpace.z / 1000.0, 0.0 ) );","\tif ( 0.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;","\tuv += stepv;","\tif ( 1.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;","\tuv += stepv;","\tif ( 2.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;","\tuv += stepv;","\tif ( 3.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;","\tuv += stepv;","\tif ( 4.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;","\tuv += stepv;","\tif ( 5.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;","\tuv += stepv;","\tgl_FragColor = vec4( col/TAPS_PER_PASS );","\tgl_FragColor.a = 1.0;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["varying vec2 vUv;","uniform sampler2D tColors;","uniform sampler2D tGodRays;","uniform float fGodRayIntensity;","void main() {","\tgl_FragColor = texture2D( tColors, vUv ) + fGodRayIntensity * vec4( 1.0 - texture2D( tGodRays, vUv ).r );","\tgl_FragColor.a = 1.0;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["varying vec2 vUv;","uniform vec3 vSunPositionScreenSpace;","uniform float fAspect;","uniform vec3 sunColor;","uniform vec3 bgColor;","void main() {","\tvec2 diff = vUv - vSunPositionScreenSpace.xy;","\tdiff.x *= fAspect;","\tfloat prop = clamp( length( diff ) / 0.5, 0.0, 1.0 );","\tprop = 0.35 * pow( 1.0 - prop, 3.0 );","\tgl_FragColor.xyz = ( vSunPositionScreenSpace.z > 0.0 ) ? mix( sunColor, bgColor, 1.0 - prop ) : bgColor;","\tgl_FragColor.w = 1.0;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float h;","uniform float r;","varying vec2 vUv;","void main() {","\tvec4 sum = vec4( 0.0 );","\tfloat hh = h * abs( r - vUv.y );","\tsum += texture2D( tDiffuse, vec2( vUv.x - 4.0 * hh, vUv.y ) ) * 0.051;","\tsum += texture2D( tDiffuse, vec2( vUv.x - 3.0 * hh, vUv.y ) ) * 0.0918;","\tsum += texture2D( tDiffuse, vec2( vUv.x - 2.0 * hh, vUv.y ) ) * 0.12245;","\tsum += texture2D( tDiffuse, vec2( vUv.x - 1.0 * hh, vUv.y ) ) * 0.1531;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y ) ) * 0.1633;","\tsum += texture2D( tDiffuse, vec2( vUv.x + 1.0 * hh, vUv.y ) ) * 0.1531;","\tsum += texture2D( tDiffuse, vec2( vUv.x + 2.0 * hh, vUv.y ) ) * 0.12245;","\tsum += texture2D( tDiffuse, vec2( vUv.x + 3.0 * hh, vUv.y ) ) * 0.0918;","\tsum += texture2D( tDiffuse, vec2( vUv.x + 4.0 * hh, vUv.y ) ) * 0.051;","\tgl_FragColor = sum;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float hue;","uniform float saturation;","varying vec2 vUv;","void main() {","\tgl_FragColor = texture2D( tDiffuse, vUv );","\tfloat angle = hue * 3.14159265;","\tfloat s = sin(angle), c = cos(angle);","\tvec3 weights = (vec3(2.0 * c, -sqrt(3.0) * s - c, sqrt(3.0) * s - c) + 1.0) / 3.0;","\tfloat len = length(gl_FragColor.rgb);","\tgl_FragColor.rgb = vec3(","\t\tdot(gl_FragColor.rgb, weights.xyz),","\t\tdot(gl_FragColor.rgb, weights.zxy),","\t\tdot(gl_FragColor.rgb, weights.yzx)","\t);","\tfloat average = (gl_FragColor.r + gl_FragColor.g + gl_FragColor.b) / 3.0;","\tif (saturation > 0.0) {","\t\tgl_FragColor.rgb += (average - gl_FragColor.rgb) * (1.0 - 1.0 / (1.001 - saturation));","\t} else {","\t\tgl_FragColor.rgb += (average - gl_FragColor.rgb) * (-saturation);","\t}","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float sides;","uniform float angle;","varying vec2 vUv;","void main() {","\tvec2 p = vUv - 0.5;","\tfloat r = length(p);","\tfloat a = atan(p.y, p.x) + angle;","\tfloat tau = 2. * 3.1416 ;","\ta = mod(a, tau/sides);","\ta = abs(a - tau/sides/2.) ;","\tp = r * vec2(cos(a), sin(a));","\tvec4 color = texture2D(tDiffuse, p + 0.5);","\tgl_FragColor = color;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform int side;","varying vec2 vUv;","void main() {","\tvec2 p = vUv;","\tif (side == 0){","\t\tif (p.x > 0.5) p.x = 1.0 - p.x;","\t}else if (side == 1){","\t\tif (p.x < 0.5) p.x = 1.0 - p.x;","\t}else if (side == 2){","\t\tif (p.y < 0.5) p.y = 1.0 - p.y;","\t}else if (side == 3){","\t\tif (p.y > 0.5) p.y = 1.0 - p.y;","\t} ","\tvec4 color = texture2D(tDiffuse, p);","\tgl_FragColor = color;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float height;","uniform vec2 resolution;","uniform sampler2D heightMap;","varying vec2 vUv;","void main() {","\tfloat val = texture2D( heightMap, vUv ).x;","\tfloat valU = texture2D( heightMap, vUv + vec2( 1.0 / resolution.x, 0.0 ) ).x;","\tfloat valV = texture2D( heightMap, vUv + vec2( 0.0, 1.0 / resolution.y ) ).x;","\tgl_FragColor = vec4( ( 0.5 * normalize( vec3( val - valU, val - valV, height ) ) + 0.5 ), 1.0 );","}"].join("\n"),["varying vec2 vUv;","varying vec3 vViewPosition;","varying vec3 vNormal;","void main() {","\tvUv = uv;","\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );","\tvViewPosition = -mvPosition.xyz;","\tvNormal = normalize( normalMatrix * normal );","\tgl_Position = projectionMatrix * mvPosition;","}"].join("\n"),["uniform sampler2D bumpMap;","uniform sampler2D map;","uniform float parallaxScale;","uniform float parallaxMinLayers;","uniform float parallaxMaxLayers;","varying vec2 vUv;","varying vec3 vViewPosition;","varying vec3 vNormal;","#ifdef USE_BASIC_PARALLAX","\tvec2 parallaxMap( in vec3 V ) {","\t\tfloat initialHeight = texture2D( bumpMap, vUv ).r;","\t\tvec2 texCoordOffset = parallaxScale * V.xy * initialHeight;","\t\treturn vUv - texCoordOffset;","\t}","#else","\tvec2 parallaxMap( in vec3 V ) {","\t\tfloat numLayers = mix( parallaxMaxLayers, parallaxMinLayers, abs( dot( vec3( 0.0, 0.0, 1.0 ), V ) ) );","\t\tfloat layerHeight = 1.0 / numLayers;","\t\tfloat currentLayerHeight = 0.0;","\t\tvec2 dtex = parallaxScale * V.xy / V.z / numLayers;","\t\tvec2 currentTextureCoords = vUv;","\t\tfloat heightFromTexture = texture2D( bumpMap, currentTextureCoords ).r;","\t\tfor ( int i = 0; i < 30; i += 1 ) {","\t\t\tif ( heightFromTexture <= currentLayerHeight ) {","\t\t\t\tbreak;","\t\t\t}","\t\t\tcurrentLayerHeight += layerHeight;","\t\t\tcurrentTextureCoords -= dtex;","\t\t\theightFromTexture = texture2D( bumpMap, currentTextureCoords ).r;","\t\t}","\t\t#ifdef USE_STEEP_PARALLAX","\t\t\treturn currentTextureCoords;","\t\t#elif defined( USE_RELIEF_PARALLAX )","\t\t\tvec2 deltaTexCoord = dtex / 2.0;","\t\t\tfloat deltaHeight = layerHeight / 2.0;","\t\t\tcurrentTextureCoords += deltaTexCoord;","\t\t\tcurrentLayerHeight -= deltaHeight;","\t\t\tconst int numSearches = 5;","\t\t\tfor ( int i = 0; i < numSearches; i += 1 ) {","\t\t\t\tdeltaTexCoord /= 2.0;","\t\t\t\tdeltaHeight /= 2.0;","\t\t\t\theightFromTexture = texture2D( bumpMap, currentTextureCoords ).r;","\t\t\t\tif( heightFromTexture > currentLayerHeight ) {","\t\t\t\t\tcurrentTextureCoords -= deltaTexCoord;","\t\t\t\t\tcurrentLayerHeight += deltaHeight;","\t\t\t\t} else {","\t\t\t\t\tcurrentTextureCoords += deltaTexCoord;","\t\t\t\t\tcurrentLayerHeight -= deltaHeight;","\t\t\t\t}","\t\t\t}","\t\t\treturn currentTextureCoords;","\t\t#elif defined( USE_OCLUSION_PARALLAX )","\t\t\tvec2 prevTCoords = currentTextureCoords + dtex;","\t\t\tfloat nextH = heightFromTexture - currentLayerHeight;","\t\t\tfloat prevH = texture2D( bumpMap, prevTCoords ).r - currentLayerHeight + layerHeight;","\t\t\tfloat weight = nextH / ( nextH - prevH );","\t\t\treturn prevTCoords * weight + currentTextureCoords * ( 1.0 - weight );","\t\t#else","\t\t\treturn vUv;","\t\t#endif","\t}","#endif","vec2 perturbUv( vec3 surfPosition, vec3 surfNormal, vec3 viewPosition ) {","\tvec2 texDx = dFdx( vUv );","\tvec2 texDy = dFdy( vUv );","\tvec3 vSigmaX = dFdx( surfPosition );","\tvec3 vSigmaY = dFdy( surfPosition );","\tvec3 vR1 = cross( vSigmaY, surfNormal );","\tvec3 vR2 = cross( surfNormal, vSigmaX );","\tfloat fDet = dot( vSigmaX, vR1 );","\tvec2 vProjVscr = ( 1.0 / fDet ) * vec2( dot( vR1, viewPosition ), dot( vR2, viewPosition ) );","\tvec3 vProjVtex;","\tvProjVtex.xy = texDx * vProjVscr.x + texDy * vProjVscr.y;","\tvProjVtex.z = dot( surfNormal, viewPosition );","\treturn parallaxMap( vProjVtex );","}","void main() {","\tvec2 mapUv = perturbUv( -vViewPosition, normalize( vNormal ), normalize( vViewPosition ) );","\tgl_FragColor = texture2D( map, mapUv );","}"].join("\n"),["varying highp vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float pixelSize;","uniform vec2 resolution;","varying highp vec2 vUv;","void main(){","vec2 dxy = pixelSize / resolution;","vec2 coord = dxy * floor( vUv / dxy );","gl_FragColor = texture2D(tDiffuse, coord);","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float amount;","uniform float angle;","varying vec2 vUv;","void main() {","\tvec2 offset = amount * vec2( cos(angle), sin(angle));","\tvec4 cr = texture2D(tDiffuse, vUv + offset);","\tvec4 cga = texture2D(tDiffuse, vUv);","\tvec4 cb = texture2D(tDiffuse, vUv - offset);","\tgl_FragColor = vec4(cr.r, cga.g, cb.b, cga.a);","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float amount;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 color = texture2D( tDiffuse, vUv );","\tvec3 c = color.rgb;","\tcolor.r = dot( c, vec3( 1.0 - 0.607 * amount, 0.769 * amount, 0.189 * amount ) );","\tcolor.g = dot( c, vec3( 0.349 * amount, 1.0 - 0.314 * amount, 0.168 * amount ) );","\tcolor.b = dot( c, vec3( 0.272 * amount, 0.534 * amount, 1.0 - 0.869 * amount ) );","\tgl_FragColor = vec4( min( vec3( 1.0 ), color.rgb ), color.a );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform vec2 resolution;","varying vec2 vUv;","void main() {","\tvec2 texel = vec2( 1.0 / resolution.x, 1.0 / resolution.y );","\tconst mat3 Gx = mat3( -1, -2, -1, 0, 0, 0, 1, 2, 1 );","\tconst mat3 Gy = mat3( -1, 0, 1, -2, 0, 2, -1, 0, 1 );","\tfloat tx0y0 = texture2D( tDiffuse, vUv + texel * vec2( -1, -1 ) ).r;","\tfloat tx0y1 = texture2D( tDiffuse, vUv + texel * vec2( -1, 0 ) ).r;","\tfloat tx0y2 = texture2D( tDiffuse, vUv + texel * vec2( -1, 1 ) ).r;","\tfloat tx1y0 = texture2D( tDiffuse, vUv + texel * vec2( 0, -1 ) ).r;","\tfloat tx1y1 = texture2D( tDiffuse, vUv + texel * vec2( 0, 0 ) ).r;","\tfloat tx1y2 = texture2D( tDiffuse, vUv + texel * vec2( 0, 1 ) ).r;","\tfloat tx2y0 = texture2D( tDiffuse, vUv + texel * vec2( 1, -1 ) ).r;","\tfloat tx2y1 = texture2D( tDiffuse, vUv + texel * vec2( 1, 0 ) ).r;","\tfloat tx2y2 = texture2D( tDiffuse, vUv + texel * vec2( 1, 1 ) ).r;","\tfloat valueGx = Gx[0][0] * tx0y0 + Gx[1][0] * tx1y0 + Gx[2][0] * tx2y0 + ","\t\tGx[0][1] * tx0y1 + Gx[1][1] * tx1y1 + Gx[2][1] * tx2y1 + ","\t\tGx[0][2] * tx0y2 + Gx[1][2] * tx1y2 + Gx[2][2] * tx2y2; ","\tfloat valueGy = Gy[0][0] * tx0y0 + Gy[1][0] * tx1y0 + Gy[2][0] * tx2y0 + ","\t\tGy[0][1] * tx0y1 + Gy[1][1] * tx1y1 + Gy[2][1] * tx2y1 + ","\t\tGy[0][2] * tx0y2 + Gy[1][2] * tx1y2 + Gy[2][2] * tx2y2; ","\tfloat G = sqrt( ( valueGx * valueGx ) + ( valueGy * valueGy ) );","\tgl_FragColor = vec4( vec3( G ), 1 );","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );","\tvec4 newTex = vec4(tex.r, (tex.g + tex.b) * .5, (tex.g + tex.b) * .5, 1.0);","\tgl_FragColor = newTex;","}"].join("\n"),["varying vec3 vNormal;","varying vec3 vRefract;","void main() {","\tvec4 worldPosition = modelMatrix * vec4( position, 1.0 );","\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );","\tvec3 worldNormal = normalize ( mat3( modelMatrix[0].xyz, modelMatrix[1].xyz, modelMatrix[2].xyz ) * normal );","\tvNormal = normalize( normalMatrix * normal );","\tvec3 I = worldPosition.xyz - cameraPosition;","\tvRefract = refract( normalize( I ), worldNormal, 1.02 );","\tgl_Position = projectionMatrix * mvPosition;","}"].join("\n"),["uniform vec3 uBaseColor;","uniform vec3 uDirLightPos;","uniform vec3 uDirLightColor;","uniform vec3 uAmbientLightColor;","varying vec3 vNormal;","varying vec3 vRefract;","void main() {","\tfloat directionalLightWeighting = max( dot( normalize( vNormal ), uDirLightPos ), 0.0);","\tvec3 lightWeighting = uAmbientLightColor + uDirLightColor * directionalLightWeighting;","\tfloat intensity = smoothstep( - 0.5, 1.0, pow( length(lightWeighting), 20.0 ) );","\tintensity += length(lightWeighting) * 0.2;","\tfloat cameraWeighting = dot( normalize( vNormal ), vRefract );","\tintensity += pow( 1.0 - length( cameraWeighting ), 6.0 );","\tintensity = intensity * 0.2 + 0.3;","\tif ( intensity < 0.50 ) {","\t\tgl_FragColor = vec4( 2.0 * intensity * uBaseColor, 1.0 );","\t} else {","\t\tgl_FragColor = vec4( 1.0 - 2.0 * ( 1.0 - intensity ) * ( 1.0 - uBaseColor ), 1.0 );","}","}"].join("\n"),["varying vec3 vNormal;","void main() {","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","\tvNormal = normalize( normalMatrix * normal );","}"].join("\n"),["uniform vec3 uBaseColor;","uniform vec3 uLineColor1;","uniform vec3 uLineColor2;","uniform vec3 uLineColor3;","uniform vec3 uLineColor4;","uniform vec3 uDirLightPos;","uniform vec3 uDirLightColor;","uniform vec3 uAmbientLightColor;","varying vec3 vNormal;","void main() {","\tfloat camera = max( dot( normalize( vNormal ), vec3( 0.0, 0.0, 1.0 ) ), 0.4);","\tfloat light = max( dot( normalize( vNormal ), uDirLightPos ), 0.0);","\tgl_FragColor = vec4( uBaseColor, 1.0 );","\tif ( length(uAmbientLightColor + uDirLightColor * light) < 1.00 ) {","\t\tgl_FragColor *= vec4( uLineColor1, 1.0 );","\t}","\tif ( length(uAmbientLightColor + uDirLightColor * camera) < 0.50 ) {","\t\tgl_FragColor *= vec4( uLineColor2, 1.0 );","\t}","}"].join("\n"),["varying vec3 vNormal;","void main() {","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","\tvNormal = normalize( normalMatrix * normal );","}"].join("\n"),["uniform vec3 uBaseColor;","uniform vec3 uLineColor1;","uniform vec3 uLineColor2;","uniform vec3 uLineColor3;","uniform vec3 uLineColor4;","uniform vec3 uDirLightPos;","uniform vec3 uDirLightColor;","uniform vec3 uAmbientLightColor;","varying vec3 vNormal;","void main() {","\tfloat directionalLightWeighting = max( dot( normalize(vNormal), uDirLightPos ), 0.0);","\tvec3 lightWeighting = uAmbientLightColor + uDirLightColor * directionalLightWeighting;","\tgl_FragColor = vec4( uBaseColor, 1.0 );","\tif ( length(lightWeighting) < 1.00 ) {","\t\tif ( mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0) {","\t\t\tgl_FragColor = vec4( uLineColor1, 1.0 );","\t\t}","\t}","\tif ( length(lightWeighting) < 0.75 ) {","\t\tif (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0) {","\t\t\tgl_FragColor = vec4( uLineColor2, 1.0 );","\t\t}","\t}","\tif ( length(lightWeighting) < 0.50 ) {","\t\tif (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0) {","\t\t\tgl_FragColor = vec4( uLineColor3, 1.0 );","\t\t}","\t}","\tif ( length(lightWeighting) < 0.3465 ) {","\t\tif (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0) {","\t\t\tgl_FragColor = vec4( uLineColor4, 1.0 );","\t}","\t}","}"].join("\n"),["varying vec3 vNormal;","void main() {","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","\tvNormal = normalize( normalMatrix * normal );","}"].join("\n"),["uniform vec3 uBaseColor;","uniform vec3 uLineColor1;","uniform vec3 uLineColor2;","uniform vec3 uLineColor3;","uniform vec3 uLineColor4;","uniform vec3 uDirLightPos;","uniform vec3 uDirLightColor;","uniform vec3 uAmbientLightColor;","varying vec3 vNormal;","void main() {","float directionalLightWeighting = max( dot( normalize(vNormal), uDirLightPos ), 0.0);","vec3 lightWeighting = uAmbientLightColor + uDirLightColor * directionalLightWeighting;","gl_FragColor = vec4( uBaseColor, 1.0 );","if ( length(lightWeighting) < 1.00 ) {","\t\tif ( ( mod(gl_FragCoord.x, 4.001) + mod(gl_FragCoord.y, 4.0) ) > 6.00 ) {","\t\t\tgl_FragColor = vec4( uLineColor1, 1.0 );","\t\t}","\t}","\tif ( length(lightWeighting) < 0.50 ) {","\t\tif ( ( mod(gl_FragCoord.x + 2.0, 4.001) + mod(gl_FragCoord.y + 2.0, 4.0) ) > 6.00 ) {","\t\t\tgl_FragColor = vec4( uLineColor1, 1.0 );","\t\t}","\t}","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["#include ","#define ITERATIONS 10.0","uniform sampler2D texture;","uniform vec2 delta;","varying vec2 vUv;","void main() {","\tvec4 color = vec4( 0.0 );","\tfloat total = 0.0;","\tfloat offset = rand( vUv );","\tfor ( float t = -ITERATIONS; t <= ITERATIONS; t ++ ) {","\t\tfloat percent = ( t + offset - 0.5 ) / ITERATIONS;","\t\tfloat weight = 1.0 - abs( percent );","\t\tcolor += texture2D( texture, vUv + delta * percent ) * weight;","\t\ttotal += weight;","\t}","\tgl_FragColor = color / total;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform sampler2D tDiffuse;","uniform float v;","uniform float r;","varying vec2 vUv;","void main() {","\tvec4 sum = vec4( 0.0 );","\tfloat vv = v * abs( r - vUv.y );","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 4.0 * vv ) ) * 0.051;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 3.0 * vv ) ) * 0.0918;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 2.0 * vv ) ) * 0.12245;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 1.0 * vv ) ) * 0.1531;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y ) ) * 0.1633;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 1.0 * vv ) ) * 0.1531;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 2.0 * vv ) ) * 0.12245;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 3.0 * vv ) ) * 0.0918;","\tsum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 4.0 * vv ) ) * 0.051;","\tgl_FragColor = sum;","}"].join("\n"),["varying vec2 vUv;","void main() {","\tvUv = uv;","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform float offset;","uniform float darkness;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","\tvec4 texel = texture2D( tDiffuse, vUv );","\tvec2 uv = ( vUv - vec2( 0.5 ) ) * vec2( offset );","\tgl_FragColor = vec4( mix( texel.rgb, vec3( 1.0 - darkness ), dot( uv, uv ) ), texel.a );","}"].join("\n"),["\t\tvarying vec4 v_nearpos;","\t\tvarying vec4 v_farpos;","\t\tvarying vec3 v_position;","\t\tvoid main() {","\t\t\t\tmat4 viewtransformf = modelViewMatrix;","\t\t\t\tmat4 viewtransformi = inverse(modelViewMatrix);","\t\t\t\tvec4 position4 = vec4(position, 1.0);","\t\t\t\tvec4 pos_in_cam = viewtransformf * position4;","\t\t\t\tpos_in_cam.z = -pos_in_cam.w;","\t\t\t\tv_nearpos = viewtransformi * pos_in_cam;","\t\t\t\tpos_in_cam.z = pos_in_cam.w;","\t\t\t\tv_farpos = viewtransformi * pos_in_cam;","\t\t\t\tv_position = position;","\t\t\t\tgl_Position = projectionMatrix * viewMatrix * modelMatrix * position4;","\t\t}"].join("\n"),["\t\tprecision highp float;","\t\tprecision mediump sampler3D;","\t\tuniform vec3 u_size;","\t\tuniform int u_renderstyle;","\t\tuniform float u_renderthreshold;","\t\tuniform vec2 u_clim;","\t\tuniform sampler3D u_data;","\t\tuniform sampler2D u_cmdata;","\t\tvarying vec3 v_position;","\t\tvarying vec4 v_nearpos;","\t\tvarying vec4 v_farpos;","\t\tconst int MAX_STEPS = 887;\t// 887 for 512^3, 1774 for 1024^3","\t\tconst int REFINEMENT_STEPS = 4;","\t\tconst float relative_step_size = 1.0;","\t\tconst vec4 ambient_color = vec4(0.2, 0.4, 0.2, 1.0);","\t\tconst vec4 diffuse_color = vec4(0.8, 0.2, 0.2, 1.0);","\t\tconst vec4 specular_color = vec4(1.0, 1.0, 1.0, 1.0);","\t\tconst float shininess = 40.0;","\t\tvoid cast_mip(vec3 start_loc, vec3 step, int nsteps, vec3 view_ray);","\t\tvoid cast_iso(vec3 start_loc, vec3 step, int nsteps, vec3 view_ray);","\t\tfloat sample1(vec3 texcoords);","\t\tvec4 apply_colormap(float val);","\t\tvec4 add_lighting(float val, vec3 loc, vec3 step, vec3 view_ray);","\t\tvoid main() {","\t\t\t\tvec3 farpos = v_farpos.xyz / v_farpos.w;","\t\t\t\tvec3 nearpos = v_nearpos.xyz / v_nearpos.w;","\t\t\t\tvec3 view_ray = normalize(nearpos.xyz - farpos.xyz);","\t\t\t\tfloat distance = dot(nearpos - v_position, view_ray);","\t\t\t\tdistance = max(distance, min((-0.5 - v_position.x) / view_ray.x,","\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(u_size.x - 0.5 - v_position.x) / view_ray.x));","\t\t\t\tdistance = max(distance, min((-0.5 - v_position.y) / view_ray.y,","\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(u_size.y - 0.5 - v_position.y) / view_ray.y));","\t\t\t\tdistance = max(distance, min((-0.5 - v_position.z) / view_ray.z,","\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(u_size.z - 0.5 - v_position.z) / view_ray.z));","\t\t\t\tvec3 front = v_position + view_ray * distance;","\t\t\t\tint nsteps = int(-distance / relative_step_size + 0.5);","\t\t\t\tif ( nsteps < 1 )","\t\t\t\t\t\tdiscard;","\t\t\t\tvec3 step = ((v_position - front) / u_size) / float(nsteps);","\t\t\t\tvec3 start_loc = front / u_size;","\t\t\t\tif (u_renderstyle == 0)","\t\t\t\t\t\tcast_mip(start_loc, step, nsteps, view_ray);","\t\t\t\telse if (u_renderstyle == 1)","\t\t\t\t\t\tcast_iso(start_loc, step, nsteps, view_ray);","\t\t\t\tif (gl_FragColor.a < 0.05)","\t\t\t\t\t\tdiscard;","\t\t}","\t\tfloat sample1(vec3 texcoords) {","\t\t\t\t/* Sample float value from a 3D texture. Assumes intensity data. */","\t\t\t\treturn texture(u_data, texcoords.xyz).r;","\t\t}","\t\tvec4 apply_colormap(float val) {","\t\t\t\tval = (val - u_clim[0]) / (u_clim[1] - u_clim[0]);","\t\t\t\treturn texture2D(u_cmdata, vec2(val, 0.5));","\t\t}","\t\tvoid cast_mip(vec3 start_loc, vec3 step, int nsteps, vec3 view_ray) {","\t\t\t\tfloat max_val = -1e6;","\t\t\t\tint max_i = 100;","\t\t\t\tvec3 loc = start_loc;","\t\t\t\tfor (int iter=0; iter= nsteps)","\t\t\t\t\t\t\t\tbreak;","\t\t\t\t\t\tfloat val = sample1(loc);","\t\t\t\t\t\tif (val > max_val) {","\t\t\t\t\t\t\t\tmax_val = val;","\t\t\t\t\t\t\t\tmax_i = iter;","\t\t\t\t\t\t}","\t\t\t\t\t\tloc += step;","\t\t\t\t}","\t\t\t\tvec3 iloc = start_loc + step * (float(max_i) - 0.5);","\t\t\t\tvec3 istep = step / float(REFINEMENT_STEPS);","\t\t\t\tfor (int i=0; i= nsteps)","\t\t\t\t\t\t\t\tbreak;","\t\t\t\t\t\tfloat val = sample1(loc);","\t\t\t\t\t\tif (val > low_threshold) {","\t\t\t\t\t\t\t\tvec3 iloc = loc - 0.5 * step;","\t\t\t\t\t\t\t\tvec3 istep = step / float(REFINEMENT_STEPS);","\t\t\t\t\t\t\t\tfor (int i=0; i u_renderthreshold) {","\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor = add_lighting(val, iloc, dstep, view_ray);","\t\t\t\t\t\t\t\t\t\t\t\treturn;","\t\t\t\t\t\t\t\t\t\t}","\t\t\t\t\t\t\t\t\t\tiloc += istep;","\t\t\t\t\t\t\t\t}","\t\t\t\t\t\t}","\t\t\t\t\t\tloc += step;","\t\t\t\t}","\t\t}","\t\tvec4 add_lighting(float val, vec3 loc, vec3 step, vec3 view_ray)","\t\t{","\t\t\t\tvec3 V = normalize(view_ray);","\t\t\t\tvec3 N;","\t\t\t\tfloat val1, val2;","\t\t\t\tval1 = sample1(loc + vec3(-step[0], 0.0, 0.0));","\t\t\t\tval2 = sample1(loc + vec3(+step[0], 0.0, 0.0));","\t\t\t\tN[0] = val1 - val2;","\t\t\t\tval = max(max(val1, val2), val);","\t\t\t\tval1 = sample1(loc + vec3(0.0, -step[1], 0.0));","\t\t\t\tval2 = sample1(loc + vec3(0.0, +step[1], 0.0));","\t\t\t\tN[1] = val1 - val2;","\t\t\t\tval = max(max(val1, val2), val);","\t\t\t\tval1 = sample1(loc + vec3(0.0, 0.0, -step[2]));","\t\t\t\tval2 = sample1(loc + vec3(0.0, 0.0, +step[2]));","\t\t\t\tN[2] = val1 - val2;","\t\t\t\tval = max(max(val1, val2), val);","\t\t\t\tfloat gm = length(N); // gradient magnitude","\t\t\t\tN = normalize(N);","\t\t\t\tfloat Nselect = float(dot(N, V) > 0.0);","\t\t\t\tN = (2.0 * Nselect - 1.0) * N;\t// ==\tNselect * N - (1.0-Nselect)*N;","\t\t\t\tvec4 ambient_color = vec4(0.0, 0.0, 0.0, 0.0);","\t\t\t\tvec4 diffuse_color = vec4(0.0, 0.0, 0.0, 0.0);","\t\t\t\tvec4 specular_color = vec4(0.0, 0.0, 0.0, 0.0);","\t\t\t\tfor (int i=0; i<1; i++)","\t\t\t\t{","\t\t\t\t\t\tvec3 L = normalize(view_ray);\t//lightDirs[i];","\t\t\t\t\t\tfloat lightEnabled = float( length(L) > 0.0 );","\t\t\t\t\t\tL = normalize(L + (1.0 - lightEnabled));","\t\t\t\t\t\tfloat lambertTerm = clamp(dot(N, L), 0.0, 1.0);","\t\t\t\t\t\tvec3 H = normalize(L+V); // Halfway vector","\t\t\t\t\t\tfloat specularTerm = pow(max(dot(H, N), 0.0), shininess);","\t\t\t\t\t\tfloat mask1 = lightEnabled;","\t\t\t\t\t\tambient_color +=\tmask1 * ambient_color;\t// * gl_LightSource[i].ambient;","\t\t\t\t\t\tdiffuse_color +=\tmask1 * lambertTerm;","\t\t\t\t\t\tspecular_color += mask1 * specularTerm * specular_color;","\t\t\t\t}","\t\t\t\tvec4 final_color;","\t\t\t\tvec4 color = apply_colormap(val);","\t\t\t\tfinal_color = color * (ambient_color + diffuse_color) + specular_color;","\t\t\t\tfinal_color.a = color.a;","\t\t\t\treturn final_color;","\t\t}"].join("\n"),["uniform mat4 textureMatrix;","varying vec2 vUv;","varying vec4 vUvRefraction;","void main() {","\tvUv = uv;","\tvUvRefraction = textureMatrix * vec4( position, 1.0 );","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),["uniform vec3 color;","uniform float time;","uniform sampler2D tDiffuse;","uniform sampler2D tDudv;","varying vec2 vUv;","varying vec4 vUvRefraction;","float blendOverlay( float base, float blend ) {","\treturn( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );","}","vec3 blendOverlay( vec3 base, vec3 blend ) {","\treturn vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ),blendOverlay( base.b, blend.b ) );","}","void main() {"," float waveStrength = 0.1;"," float waveSpeed = 0.03;","\tvec2 distortedUv = texture2D( tDudv, vec2( vUv.x + time * waveSpeed, vUv.y ) ).rg * waveStrength;","\tdistortedUv = vUv.xy + vec2( distortedUv.x, distortedUv.y + time * waveSpeed );","\tvec2 distortion = ( texture2D( tDudv, distortedUv ).rg * 2.0 - 1.0 ) * waveStrength;"," vec4 uv = vec4( vUvRefraction );"," uv.xy += distortion;","\tvec4 base = texture2DProj( tDiffuse, uv );","\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );","}"].join("\n"),r.Mesh,r.CanvasTexture,r.Group,r.Curve,r.Loader,r.Loader;class ft{constructor(e){G(this,"data"),this.data=e}generateShapes(e,t=100,n){const r=[],i={letterSpacing:0,lineHeight:1,...n},o=function(e,t,n,r){const i=Array.from(e),o=t/n.resolution,a=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*o,s=[];let l=0,c=0;for(let e=0;e0){if(++fn>=800)return arguments[0]}else fn=0;return hn.apply(void 0,arguments)});const vn=gn;function An(e,t){for(var n=-1,r=null==e?0:e.length;++n-1}var En=/^(?:0|[1-9]\d*)$/;function Cn(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&En.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function Nn(e){return null!=e&&Pn(e.length)&&!Qt(e)}function kn(e,t,n){if(!Lt(n))return!1;var r=typeof t;return!!("number"==r?Nn(n)&&Cn(t,n.length):"string"==r&&t in n)&&_n(n[t],e)}var Dn=Object.prototype;function Ln(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Dn)}function Bn(e){return It(e)&&"[object Arguments]"==_t(e)}var Fn=Object.prototype,Un=Fn.hasOwnProperty,zn=Fn.propertyIsEnumerable,jn=Bn(function(){return arguments}())?Bn:function(e){return It(e)&&Un.call(e,"callee")&&!zn.call(e,"callee")};const $n=jn;var Hn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Gn=Hn&&"object"==typeof module&&module&&!module.nodeType&&module,Qn=Gn&&Gn.exports===Hn?At.Buffer:void 0;const Vn=(Qn?Qn.isBuffer:void 0)||function(){return!1};var Wn={};function Xn(e){return function(t){return e(t)}}Wn["[object Float32Array]"]=Wn["[object Float64Array]"]=Wn["[object Int8Array]"]=Wn["[object Int16Array]"]=Wn["[object Int32Array]"]=Wn["[object Uint8Array]"]=Wn["[object Uint8ClampedArray]"]=Wn["[object Uint16Array]"]=Wn["[object Uint32Array]"]=!0,Wn["[object Arguments]"]=Wn["[object Array]"]=Wn["[object ArrayBuffer]"]=Wn["[object Boolean]"]=Wn["[object DataView]"]=Wn["[object Date]"]=Wn["[object Error]"]=Wn["[object Function]"]=Wn["[object Map]"]=Wn["[object Number]"]=Wn["[object Object]"]=Wn["[object RegExp]"]=Wn["[object Set]"]=Wn["[object String]"]=Wn["[object WeakMap]"]=!1;var qn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Yn=qn&&"object"==typeof module&&module&&!module.nodeType&&module,Kn=Yn&&Yn.exports===qn&>.process;const Jn=function(){try{return Yn&&Yn.require&&Yn.require("util").types||Kn&&Kn.binding&&Kn.binding("util")}catch(e){}}();var Zn=Jn&&Jn.isTypedArray;const er=Zn?Xn(Zn):function(e){return It(e)&&Pn(e.length)&&!!Wn[_t(e)]};var tr=Object.prototype.hasOwnProperty;function nr(e,t){var n=Rt(e),r=!n&&$n(e),i=!n&&!r&&Vn(e),o=!n&&!r&&!i&&er(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=lr.length>3&&"function"==typeof i?(r--,i):void 0,o&&kn(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n-1},Sr.prototype.set=function(e,t){var n=this.__data__,r=br(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Er=rn(At,"Map");function Cr(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(s)?t>1?Fr(s,t-1,n,r,i):Dr(i,s):r||(i[i.length]=s)}return i}function Ur(e){return null!=e&&e.length?Fr(e,1):[]}const zr=rr(Object.getPrototypeOf,Object);function jr(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++rs))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=2&n?new Di:void 0;for(o.set(e,t),o.set(t,e);++d2?t[2]:void 0;for(i&&kn(t[0],t[1],i)&&(r=1);++n=200&&(o=Bi,a=!1,t=new Di(t));e:for(;++i-1?r[i?e[o]:o]:void 0});function So(e){return e&&e.length?e[0]:void 0}function Eo(e,t){var n=-1,r=Nn(e)?Array(e.length):[];return no(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function Co(e,t){return(Rt(e)?Mt:Eo)(e,Zi(t))}function wo(e,t){return Fr(Co(e,t),1)}var _o,Io=Object.prototype.hasOwnProperty,To=(_o=function(e,t,n){Io.call(e,n)?e[n].push(t):wn(e,n,[t])},function(e,t){var n={};return(Rt(e)?eo:ro)(e,_o,Zi(t),n)});const Mo=To;var Ro=Object.prototype.hasOwnProperty;function Oo(e,t){return null!=e&&Ro.call(e,t)}function Po(e,t){return null!=e&&Ji(e,t,Oo)}function No(e){return"string"==typeof e||!Rt(e)&&It(e)&&"[object String]"==_t(e)}function ko(e){return null==e?[]:function(e,t){return Mt(t,function(t){return e[t]})}(e,sr(e))}var Do=Math.max;function Lo(e,t,n,r){e=Nn(e)?e:ko(e),n=n&&!r?Ht(n):0;var i=e.length;return n<0&&(n=Do(i+n,0)),No(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&xn(e,t,n)>-1}var Bo=Math.max;function Fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ht(n);return i<0&&(i=Bo(r+i,0)),xn(e,t,i)}var Uo=Object.prototype.hasOwnProperty;function zo(e){if(null==e)return!0;if(Nn(e)&&(Rt(e)||"string"==typeof e||"function"==typeof e.splice||Vn(e)||er(e)||$n(e)))return!e.length;var t=vi(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Ln(e))return!ar(e).length;for(var n in e)if(Uo.call(e,n))return!1;return!0}var jo=Jn&&Jn.isRegExp;const $o=jo?Xn(jo):function(e){return It(e)&&"[object RegExp]"==_t(e)};function Ho(e){return void 0===e}function Go(e,t,n,r){if(!Lt(e))return e;for(var i=-1,o=(t=Pr(t,e)).length,a=o-1,s=e;null!=s&&++i=200){var c=Ko(e);if(c)return zi(c);a=!1,i=Bi,l=new Di}else l=s;e:for(;++r{t.accept(e)})}}class ia extends ra{constructor(e){super([]),this.idx=1,ur(this,Qo(e,e=>void 0!==e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class oa extends ra{constructor(e){super(e.definition),this.orgText="",ur(this,Qo(e,e=>void 0!==e))}}class aa extends ra{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,ur(this,Qo(e,e=>void 0!==e))}}class sa extends ra{constructor(e){super(e.definition),this.idx=1,ur(this,Qo(e,e=>void 0!==e))}}class la extends ra{constructor(e){super(e.definition),this.idx=1,ur(this,Qo(e,e=>void 0!==e))}}class ca extends ra{constructor(e){super(e.definition),this.idx=1,ur(this,Qo(e,e=>void 0!==e))}}class ua extends ra{constructor(e){super(e.definition),this.idx=1,ur(this,Qo(e,e=>void 0!==e))}}class da extends ra{constructor(e){super(e.definition),this.idx=1,ur(this,Qo(e,e=>void 0!==e))}}class ha extends ra{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,ur(this,Qo(e,e=>void 0!==e))}}class fa{constructor(e){this.idx=1,ur(this,Qo(e,e=>void 0!==e))}accept(e){e.visit(this)}}function pa(e){function t(e){return Co(e,pa)}if(e instanceof ia){const t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return No(e.label)&&(t.label=e.label),t}if(e instanceof aa)return{type:"Alternative",definition:t(e.definition)};if(e instanceof sa)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof la)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof ca)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:pa(new fa({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof da)return{type:"RepetitionWithSeparator",idx:e.idx,separator:pa(new fa({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof ua)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof ha)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof fa){const t={type:"Terminal",name:e.terminalType.name,label:(n=e.terminalType,No((r=n).LABEL)&&""!==r.LABEL?n.LABEL:n.name),idx:e.idx};No(e.label)&&(t.terminalLabel=e.label);const i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=$o(i)?i.source:i),t}var n,r;if(e instanceof oa)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}class ma{visit(e){const t=e;switch(t.constructor){case ia:return this.visitNonTerminal(t);case aa:return this.visitAlternative(t);case sa:return this.visitOption(t);case la:return this.visitRepetitionMandatory(t);case ca:return this.visitRepetitionMandatoryWithSeparator(t);case da:return this.visitRepetitionWithSeparator(t);case ua:return this.visitRepetition(t);case ha:return this.visitAlternation(t);case fa:return this.visitTerminal(t);case oa:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function ga(e,t=[]){return!!(e instanceof sa||e instanceof ua||e instanceof da)||(e instanceof ha?Yo(e.definition,e=>ga(e,t)):!(e instanceof ia&&Lo(t,e))&&e instanceof ra&&(e instanceof ia&&t.push(e),go(e.definition,e=>ga(e,t))))}function va(e){if(e instanceof ia)return"SUBRULE";if(e instanceof sa)return"OPTION";if(e instanceof ha)return"OR";if(e instanceof la)return"AT_LEAST_ONE";if(e instanceof ca)return"AT_LEAST_ONE_SEP";if(e instanceof da)return"MANY_SEP";if(e instanceof ua)return"MANY";if(e instanceof fa)return"CONSUME";throw Error("non exhaustive match")}class Aa{walk(e,t=[]){fo(e.definition,(n,r)=>{const i=uo(e.definition,r+1);if(n instanceof ia)this.walkProdRef(n,i,t);else if(n instanceof fa)this.walkTerminal(n,i,t);else if(n instanceof aa)this.walkFlat(n,i,t);else if(n instanceof sa)this.walkOption(n,i,t);else if(n instanceof la)this.walkAtLeastOne(n,i,t);else if(n instanceof ca)this.walkAtLeastOneSep(n,i,t);else if(n instanceof da)this.walkManySep(n,i,t);else if(n instanceof ua)this.walkMany(n,i,t);else{if(!(n instanceof ha))throw Error("non exhaustive match");this.walkOr(n,i,t)}})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){const r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){const r=[new sa({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){const r=ya(e,t,n);this.walk(e,r)}walkMany(e,t,n){const r=[new sa({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){const r=ya(e,t,n);this.walk(e,r)}walkOr(e,t,n){const r=t.concat(n);fo(e.definition,e=>{const t=new aa({definition:[e]});this.walk(t,r)})}}function ya(e,t,n){return[new sa({definition:[new fa({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function ba(e){if(e instanceof ia)return ba(e.referencedRule);if(e instanceof fa)return[e.terminalType];if(function(e){return e instanceof aa||e instanceof sa||e instanceof ua||e instanceof la||e instanceof ca||e instanceof da||e instanceof fa||e instanceof oa}(e))return function(e){let t=[];const n=e.definition;let r,i=0,o=n.length>i,a=!0;for(;o&&a;)r=n[i],a=ga(r),t=t.concat(ba(r)),i+=1,o=n.length>i;return Jo(t)}(e);if(function(e){return e instanceof ha}(e))return function(e){return Jo(Ur(Co(e.definition,e=>ba(e))))}(e);throw Error("non exhaustive match")}const xa="_~IN~_";class Sa extends Aa{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const r=(i=e.referencedRule,o=e.idx,i.name+o+xa+this.topProd.name);var i,o;const a=t.concat(n),s=ba(new aa({definition:a}));this.follows[r]=s}}function Ea(e){return e.charCodeAt(0)}function Ca(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function wa(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function _a(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function Ia(e){return"Character"===e.type}const Ta=[];for(let e=Ea("0");e<=Ea("9");e++)Ta.push(e);const Ma=[Ea("_")].concat(Ta);for(let e=Ea("a");e<=Ea("z");e++)Ma.push(e);for(let e=Ea("A");e<=Ea("Z");e++)Ma.push(e);const Ra=[Ea(" "),Ea("\f"),Ea("\n"),Ea("\r"),Ea("\t"),Ea("\v"),Ea("\t"),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea(" "),Ea("\u2028"),Ea("\u2029"),Ea(" "),Ea(" "),Ea(" "),Ea("\ufeff")],Oa=/[0-9a-fA-F]/,Pa=/[0-9]/,Na=/[1-9]/;class ka{visitChildren(e){for(const t in e){const n=e[t];e.hasOwnProperty(t)&&(void 0!==n.type?this.visit(n):Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}let Da={};const La=new class{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":wa(n,"global");break;case"i":wa(n,"ignoreCase");break;case"m":wa(n,"multiLine");break;case"u":wa(n,"unicode");break;case"y":wa(n,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead"}_a(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return function(){throw Error("Internal Error - Should never get here!")}()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;_a(t)}if(!0!==e||void 0!==t)return _a(t)?("?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t):void 0}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}if(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),_a(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Ea("\n"),Ea("\r"),Ea("\u2028"),Ea("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=Ta;break;case"D":e=Ta,t=!0;break;case"s":e=Ra;break;case"S":e=Ra,t=!0;break;case"w":e=Ma;break;case"W":e=Ma,t=!0}if(_a(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Ea("\f");break;case"n":e=Ea("\n");break;case"r":e=Ea("\r");break;case"t":e=Ea("\t");break;case"v":e=Ea("\v")}if(_a(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Ea("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:Ea(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:Ea(this.popChar())}}}characterClass(){const e=[];let t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){const t=this.classAtom();if(t.type,Ia(t)&&this.isRangeDash()){this.consumeChar("-");const n=this.classAtom();if(n.type,Ia(n)){if(n.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}};function Ba(e){const t=e.toString();if(Da.hasOwnProperty(t))return Da[t];{const e=La.pattern(t);return Da[t]=e,e}}const Fa="Complement Sets are not supported for first char optimization",Ua='Unable to use "first char" lexer optimizations:\n';function za(e,t=!1){try{const t=Ba(e);return ja(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===Fa)t&&ea(`${Ua}\tUnable to optimize: < ${e.toString()} >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),Zo(`${Ua}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function ja(e,t,n){switch(e.type){case"Disjunction":for(let r=0;r{if("number"==typeof e)$a(e,t,n);else{const r=e;if(!0===n)for(let e=r.from;e<=r.to;e++)$a(e,t,n);else{for(let e=r.from;e<=r.to&&e=ss){const e=r.from>=ss?r.from:ss,n=r.to,i=cs(e),o=cs(n);for(let e=i;e<=o;e++)t[e]=e}}}});break;case"Group":ja(o.value,t,n);break;default:throw Error("Non Exhaustive Match")}const a=void 0!==o.quantifier&&0===o.quantifier.atLeast;if("Group"===o.type&&!1===Ga(o)||"Group"!==o.type&&!1===a)break}break;default:throw Error("non exhaustive match!")}return ko(t)}function $a(e,t,n){const r=cs(e);t[r]=r,!0===n&&function(e,t){const n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){const e=cs(r.charCodeAt(0));t[e]=e}else{const e=n.toLowerCase();if(e!==n){const n=cs(e.charCodeAt(0));t[n]=n}}}(e,t)}function Ha(e,t){return xo(e.value,e=>{if("number"==typeof e)return Lo(t,e);{const n=e;return void 0!==xo(t,e=>n.from<=e&&e<=n.to)}})}function Ga(e){const t=e.quantifier;return!(!t||0!==t.atLeast)||!!e.value&&(Rt(e.value)?go(e.value,Ga):Ga(e.value))}class Qa extends ka{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":return void this.visitLookahead(e);case"NegativeLookahead":return void this.visitNegativeLookahead(e)}super.visitChildren(e)}}visitCharacter(e){Lo(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===Ha(e,this.targetCharCodes)&&(this.found=!0):void 0!==Ha(e,this.targetCharCodes)&&(this.found=!0)}}function Va(e,t){if(t instanceof RegExp){const n=Ba(t),r=new Qa(e);return r.visit(n),r.found}return void 0!==xo(t,t=>Lo(e,t.charCodeAt(0)))}const Wa="PATTERN",Xa="defaultMode",qa="modes";let Ya="boolean"==typeof new RegExp("(?:)").sticky;const Ka=/[^\\][$]/,Ja=/[^\\[][\^]|^\^/;function Za(e){const t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function es(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function ts(e){const t=e.PATTERN;if($o(t))return!1;if(Qt(t))return!0;if(Po(t,"exec"))return!0;if(No(t))return!1;throw Error("non exhaustive match")}function ns(e){return!(!No(e)||1!==e.length)&&e.charCodeAt(0)}const rs={test:function(e){const t=e.length;for(let n=this.lastIndex;nNo(e)?e.charCodeAt(0):e)}function as(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}const ss=256;let ls=[];function cs(e){return ee.CATEGORIES)));const e=lo(n,t);t=t.concat(e),zo(e)?r=!1:n=e}return t}(e);!function(e){fo(e,e=>{gs(e)||(fs[hs]=e,e.tokenTypeIdx=hs++),vs(e)&&!Rt(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),vs(e)||(e.CATEGORIES=[]),Po(e,"categoryMatches")||(e.categoryMatches=[]),Po(e,"categoryMatchesMap")||(e.categoryMatchesMap={})})}(t),function(e){fo(e,e=>{ms([],e)})}(t),function(e){fo(e,e=>{e.categoryMatches=[],fo(e.categoryMatchesMap,(t,n)=>{e.categoryMatches.push(fs[n].tokenTypeIdx)})})}(t),fo(t,e=>{e.isParent=e.categoryMatches.length>0})}function ms(e,t){fo(e,e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),fo(t.CATEGORIES,n=>{const r=e.concat(t);Lo(r,n)||ms(r,n)})}function gs(e){return Po(e,"tokenTypeIdx")}function vs(e){return Po(e,"CATEGORIES")}function As(e){return Po(e,"tokenTypeIdx")}var ys,bs;(bs=ys||(ys={}))[bs.MISSING_PATTERN=0]="MISSING_PATTERN",bs[bs.INVALID_PATTERN=1]="INVALID_PATTERN",bs[bs.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",bs[bs.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",bs[bs.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",bs[bs.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",bs[bs.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",bs[bs.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",bs[bs.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",bs[bs.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",bs[bs.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",bs[bs.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",bs[bs.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",bs[bs.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",bs[bs.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",bs[bs.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",bs[bs.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",bs[bs.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";const xs={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:{buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,n,r,i)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`},traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(xs);class Ss{constructor(e,t=xs){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0===this.traceInitPerf){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent`);const{time:r,value:i}=ta(t),o=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=ur({},xs,t);const n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,r=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===xs.lineTerminatorsPattern)this.config.lineTerminatorsPattern=rs;else if(this.config.lineTerminatorCharacters===xs.lineTerminatorCharacters)throw Error("Error: Missing property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Rt(e)?n={modes:{defaultMode:Ni(e)},defaultMode:Xa}:(r=!1,n=Ni(e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(function(e){const t=[];return Po(e,Xa)||t.push({message:"A MultiMode Lexer cannot be initialized without a <"+Xa+"> property in its definition\n",type:ys.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Po(e,qa)||t.push({message:"A MultiMode Lexer cannot be initialized without a property in its definition\n",type:ys.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Po(e,qa)&&Po(e,Xa)&&!Po(e.modes,e.defaultMode)&&t.push({message:`A MultiMode Lexer cannot be initialized with a ${Xa}: <${e.defaultMode}>which does not exist\n`,type:ys.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Po(e,qa)&&fo(e.modes,(e,n)=>{fo(e,(r,i)=>{Ho(r)?t.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${i}>\n`,type:ys.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Po(r,"LONGER_ALT")&&fo(Rt(r.LONGER_ALT)?r.LONGER_ALT:[r.LONGER_ALT],i=>{Ho(i)||Lo(e,i)||t.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${r.name}> outside of mode <${n}>\n`,type:ys.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),t}(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(function(e,t,n){const r=[];let i=!1;const o=Xo(ki(Ur(ko(e.modes))),e=>e[Wa]===Ss.NA),a=os(n);return t&&fo(o,e=>{const t=is(e,a);if(!1!==t){const n=function(e,t){if(t.issue===ys.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===ys.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}(e,t),i={message:n,type:t.issue,tokenType:e};r.push(i)}else Po(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(i=!0):Va(a,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:ys.NO_LINE_BREAKS_FLAGS}),r}(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},fo(n.modes,(e,t)=>{n.modes[t]=Xo(e,e=>Ho(e))});const i=sr(n.modes);if(fo(n.modes,(e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,()=>{if(this.modes.push(n),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(function(e,t){let n=[];const r=function(e){const t=Ao(e,e=>!Po(e,Wa));return{errors:Co(t,e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:ys.MISSING_PATTERN,tokenTypes:[e]})),valid:lo(e,t)}}(e);n=n.concat(r.errors);const i=function(e){const t=Ao(e,e=>{const t=e[Wa];return!($o(t)||Qt(t)||Po(t,"exec")||No(t))});return{errors:Co(t,e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ys.INVALID_PATTERN,tokenTypes:[e]})),valid:lo(e,t)}}(r.valid),o=i.valid;return n=n.concat(i.errors),n=n.concat(function(e){let t=[];const n=Ao(e,e=>$o(e[Wa]));return t=t.concat(function(e){class t extends ka{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return Co(Ao(e,e=>{const n=e.PATTERN;try{const e=Ba(n),r=new t;return r.visit(e),r.found}catch(e){return Ka.test(n.source)}}),e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ys.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}(n)),t=t.concat(function(e){class t extends ka{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return Co(Ao(e,e=>{const n=e.PATTERN;try{const e=Ba(n),r=new t;return r.visit(e),r.found}catch(e){return Ja.test(n.source)}}),e=>({message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ys.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}(n)),t=t.concat(function(e){return Co(Ao(e,e=>{const t=e[Wa];return t instanceof RegExp&&(t.multiline||t.global)}),e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ys.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}(n)),t=t.concat(function(e){const t=[];let n=Co(e,n=>Wo(e,(e,r)=>(n.PATTERN.source!==r.PATTERN.source||Lo(t,r)||r.PATTERN===Ss.NA||(t.push(r),e.push(r)),e),[]));return n=ki(n),Co(Ao(n,e=>e.length>1),e=>{const t=Co(e,e=>e.name);return{message:`The same RegExp pattern ->${So(e).PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:ys.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}(n)),t=t.concat(function(e){return Co(Ao(e,e=>e.PATTERN.test("")),e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:ys.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}(n)),t}(o)),n=n.concat(function(e){return Co(Ao(e,e=>{if(!Po(e,"GROUP"))return!1;const t=e.GROUP;return t!==Ss.SKIPPED&&t!==Ss.NA&&!No(t)}),e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ys.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}(o)),n=n.concat(function(e,t){return Co(Ao(e,e=>void 0!==e.PUSH_MODE&&!Lo(t,e.PUSH_MODE)),e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:ys.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}(o,t)),n=n.concat(function(e){const t=[],n=Wo(e,(e,t,n)=>{const r=t.PATTERN;return r===Ss.NA||(No(r)?e.push({str:r,idx:n,tokenType:t}):$o(r)&&(i=r,void 0===xo([".","\\","[","]","|","^","$","(",")","?","*","+","{"],e=>-1!==i.source.indexOf(e)))&&e.push({str:r.source,idx:n,tokenType:t})),e;var i},[]);return fo(e,(e,r)=>{fo(n,({str:n,idx:i,tokenType:o})=>{if(r${o.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:ys.UNREACHABLE_PATTERN,tokenTypes:[e,o]})}})}),t}(o)),n}(e,i))}),zo(this.lexerDefinitionErrors)){let r;ps(e),this.TRACE_INIT("analyzeTokenTypes",()=>{r=function(e,t){const n=(t=ao(t,{useSticky:Ya,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:(e,t)=>t()})).tracer;let r;n("initCharCodeToOptimizedIndexMap",()=>{!function(){if(zo(ls)){ls=new Array(65536);for(let e=0;e<65536;e++)ls[e]=e>255?255+~~(e/255):e}}()}),n("Reject Lexer.NA",()=>{r=Xo(e,e=>e[Wa]===Ss.NA)});let i,o,a,s,l,c,u,d,h,f,p,m=!1;n("Transform Patterns",()=>{m=!1,i=Co(r,e=>{const n=e[Wa];if($o(n)){const e=n.source;return 1!==e.length||"^"===e||"$"===e||"."===e||n.ignoreCase?2!==e.length||"\\"!==e[0]||Lo(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])?t.useSticky?es(n):Za(n):e[1]:e}if(Qt(n))return m=!0,{exec:n};if("object"==typeof n)return m=!0,n;if("string"==typeof n){if(1===n.length)return n;{const e=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),r=new RegExp(e);return t.useSticky?es(r):Za(r)}}throw Error("non exhaustive match")})}),n("misc mapping",()=>{o=Co(r,e=>e.tokenTypeIdx),a=Co(r,e=>{const t=e.GROUP;if(t!==Ss.SKIPPED){if(No(t))return t;if(Ho(t))return!1;throw Error("non exhaustive match")}}),s=Co(r,e=>{const t=e.LONGER_ALT;if(t)return Rt(t)?Co(t,e=>Fo(r,e)):[Fo(r,t)]}),l=Co(r,e=>e.PUSH_MODE),c=Co(r,e=>Po(e,"POP_MODE"))}),n("Line Terminator Handling",()=>{const e=os(t.lineTerminatorCharacters);u=Co(r,e=>!1),"onlyOffset"!==t.positionTracking&&(u=Co(r,t=>Po(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===is(t,e)&&Va(e,t.PATTERN)))}),n("Misc Mapping #2",()=>{d=Co(r,ts),h=Co(i,ns),f=Wo(r,(e,t)=>{const n=t.GROUP;return No(n)&&n!==Ss.SKIPPED&&(e[n]=[]),e},{}),p=Co(i,(e,t)=>({pattern:i[t],longerAlt:s[t],canLineTerminator:u[t],isCustom:d[t],short:h[t],group:a[t],push:l[t],pop:c[t],tokenTypeIdx:o[t],tokenType:r[t]}))});let g=!0,v=[];return t.safeMode||n("First Char Optimization",()=>{v=Wo(r,(e,n,r)=>{if("string"==typeof n.PATTERN){const t=cs(n.PATTERN.charCodeAt(0));as(e,t,p[r])}else if(Rt(n.START_CHARS_HINT)){let t;fo(n.START_CHARS_HINT,n=>{const i=cs("string"==typeof n?n.charCodeAt(0):n);t!==i&&(t=i,as(e,i,p[r]))})}else if($o(n.PATTERN))if(n.PATTERN.unicode)g=!1,t.ensureOptimizations&&Zo(`${Ua}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const i=za(n.PATTERN,t.ensureOptimizations);zo(i)&&(g=!1),fo(i,t=>{as(e,t,p[r])})}else t.ensureOptimizations&&Zo(`${Ua}\tTokenType: <${n.name}> is using a custom token pattern without providing parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),g=!1;return e},[])}),{emptyGroups:f,patternIdxToConfig:p,charCodeToPatternIdxToConfig:v,hasCustom:m,canBeOptimized:g}}(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[n]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig,this.emptyGroups=ur({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[n]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,!zo(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const e=Co(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+e)}fo(this.lexerDefinitionWarning,e=>{ea(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(Ya?(this.chopInput=Gt,this.match=this.matchWithTest):(this.updateLastIndex=ln,this.match=this.matchWithExec),r&&(this.handleModes=ln),!1===this.trackStartLines&&(this.computeNewColumn=Gt),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=ln),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else{if(!/onlyOffset/i.test(this.config.positionTracking))throw Error(`Invalid config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const e=Wo(this.canModeBeOptimized,(e,t,n)=>(!1===t&&e.push(n),e),[]);if(t.ensureOptimizations&&!zo(e))throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Da={}}),this.TRACE_INIT("toFastProperties",()=>{na(this)})})}tokenize(e,t=this.defaultMode){if(!zo(this.lexerDefinitionErrors)){const e=Co(this.lexerDefinitionErrors,e=>e.message).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,o,a,s,l,c,u,d,h,f,p,m,g;const v=e,A=v.length;let y=0,b=0;const x=this.hasCustom?0:Math.floor(e.length/10),S=new Array(x),E=[];let C=this.trackStartLines?1:void 0,w=this.trackStartLines?1:void 0;const _=function(e){const t={};return fo(sr(e),n=>{const r=e[n];if(!Rt(r))throw Error("non exhaustive match");t[n]=[]}),t}(this.emptyGroups),I=this.trackStartLines,T=this.config.lineTerminatorsPattern;let M=0,R=[],O=[];const P=[],N=[];let k;function D(){return R}function L(e){const t=cs(e),n=O[t];return void 0===n?N:n}Object.freeze(N);const B=e=>{if(1===P.length&&void 0===e.tokenType.PUSH_MODE){const t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);E.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{P.pop();const e=co(P);R=this.patternIdxToConfig[e],O=this.charCodeToPatternIdxToConfig[e],M=R.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;k=O&&t?L:D}};function F(e){P.push(e),O=this.charCodeToPatternIdxToConfig[e],R=this.patternIdxToConfig[e],M=R.length,M=R.length;const t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;k=O&&t?L:D}let U;F.call(this,t);const z=this.config.recoveryEnabled;for(;ys.length){s=o,l=c,U=t;break}}}break}}if(null!==s){if(u=s.length,d=U.group,void 0!==d&&(h=U.tokenTypeIdx,f=this.createTokenInstance(s,y,h,U.tokenType,C,w,u),this.handlePayload(f,l),!1===d?b=this.addToken(S,b,f):_[d].push(f)),e=this.chopInput(e,u),y+=u,w=this.computeNewColumn(w,u),!0===I&&!0===U.canLineTerminator){let e,t,n=0;T.lastIndex=0;do{e=T.test(s),!0===e&&(t=T.lastIndex-1,n++)}while(!0===e);0!==n&&(C+=n,w=u-t,this.updateTokenEndLineColumnLocation(f,d,t,n,C,w,u))}this.handleModes(U,B,F,f)}else{const t=y,n=C,i=w;let o=!1===z;for(;!1===o&&y`Expecting ${Cs(e)?`--\x3e ${Es(e)} <--`:`token of type --\x3e ${e.name} <--`} but found --\x3e '${t.image}' <--`,buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){const o="Expecting: ",a="\nbut found: '"+So(t).image+"'";if(r)return o+r+a;{const t=Co(Wo(e,(e,t)=>e.concat(t),[]),e=>`[${Co(e,e=>Es(e)).join(", ")}]`);return o+`one of these possible Token sequences:\n${Co(t,(e,t)=>` ${t+1}. ${e}`).join("\n")}`+a}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){const i="Expecting: ",o="\nbut found: '"+So(t).image+"'";return n?i+n+o:i+`expecting at least one iteration which starts with one of these possible Token sequences::\n <${Co(e,e=>`[${Co(e,e=>Es(e)).join(",")}]`).join(" ,")}>`+o}};Object.freeze(Ls);const Bs={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},Fs={buildDuplicateFoundError(e,t){const n=e.name,r=So(t),i=r.idx,o=va(r),a=(s=r)instanceof fa?s.terminalType.name:s instanceof ia?s.nonTerminalName:"";var s;let l=`->${o}${i>0?i:""}<- ${a?`with argument: ->${a}<-`:""}\n appears more than once (${t.length} times) in the top level rule: ->${n}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;return l=l.replace(/[ \t]+/g," "),l=l.replace(/\s\s+/g,"\n"),l},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){const t=Co(e.prefixPath,e=>Es(e)).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix\nin inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){const t=Co(e.prefixPath,e=>Es(e)).join(", "),n=0===e.alternation.idx?"":e.alternation.idx;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\n`;return r+="See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details.",r},buildEmptyRepetitionError(e){let t=va(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:\n inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){const t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${t} --\x3e ${Co(e.leftRecursionPath,e=>e.name).concat([t]).join(" --\x3e ")}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof oa?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};class Us extends ma{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){fo(ko(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{const t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:ic.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}class zs extends Aa{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Ni(this.path.ruleStack).reverse(),this.occurrenceStack=Ni(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){zo(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class js extends zs{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const e=t.concat(n),r=new aa({definition:e});this.possibleTokTypes=ba(r),this.found=!0}}}class $s extends Aa{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class Hs extends $s{walkMany(e,t,n){if(e.idx===this.occurrence){const e=So(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof fa&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}}class Gs extends $s{walkManySep(e,t,n){if(e.idx===this.occurrence){const e=So(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof fa&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}}class Qs extends $s{walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){const e=So(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof fa&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}}class Vs extends $s{walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){const e=So(t.concat(n));this.result.isEndOfRule=void 0===e,e instanceof fa&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}}function Ws(e,t,n=[]){n=Ni(n);let r=[],i=0;function o(o){const a=Ws(o.concat(uo(e,i+1)),t,n);return r.concat(a)}for(;n.length{!1===zo(e.definition)&&(r=o(e.definition))}),r;if(!(t instanceof fa))throw Error("non exhaustive match");n.push(t.terminalType)}}i++}return r.push({partialPath:n,suffixDef:uo(e,i)}),r}function Xs(e,t,n,r){const i="EXIT_NONE_TERMINAL",o=[i],a="EXIT_ALTERNATIVE";let s=!1;const l=t.length,c=l-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!zo(d);){const e=d.pop();if(e===a){s&&co(d).idx<=c&&d.pop();continue}const r=e.def,h=e.idx,f=e.ruleStack,p=e.occurrenceStack;if(zo(r))continue;const m=r[0];if(m===i){const e={idx:h,def:uo(r),ruleStack:ho(f),occurrenceStack:ho(p)};d.push(e)}else if(m instanceof fa)if(h=0;e--){const t={idx:h,def:m.definition[e].definition.concat(uo(r)),ruleStack:f,occurrenceStack:p};d.push(t),d.push(a)}else if(m instanceof aa)d.push({idx:h,def:m.definition.concat(uo(r)),ruleStack:f,occurrenceStack:p});else{if(!(m instanceof oa))throw Error("non exhaustive match");d.push(qs(m,h,f,p))}}return u}function qs(e,t,n,r){const i=Ni(n);i.push(e.name);const o=Ni(r);return o.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:o}}var Ys,Ks;function Js(e){if(e instanceof sa||"Option"===e)return Ys.OPTION;if(e instanceof ua||"Repetition"===e)return Ys.REPETITION;if(e instanceof la||"RepetitionMandatory"===e)return Ys.REPETITION_MANDATORY;if(e instanceof ca||"RepetitionMandatoryWithSeparator"===e)return Ys.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof da||"RepetitionWithSeparator"===e)return Ys.REPETITION_WITH_SEPARATOR;if(e instanceof ha||"Alternation"===e)return Ys.ALTERNATION;throw Error("non exhaustive match")}function Zs(e,t,n,r){const i=e.length,o=go(e,e=>go(e,e=>1===e.length));if(t)return function(t){const r=Co(t,e=>e.GATE);for(let t=0;tUr(e)),(e,t,n)=>(fo(t,t=>{Po(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=n),fo(t.categoryMatches,t=>{Po(e,t)||(e[t]=n)})}),e),{});return function(){const e=this.LA(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;t1===e.length),i=e.length;if(r&&!n){const t=Ur(e);if(1===t.length&&zo(t[0].categoryMatches)){const e=t[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===e}}{const e=Wo(t,(e,t,n)=>(e[t.tokenTypeIdx]=!0,fo(t.categoryMatches,t=>{e[t]=!0}),e),[]);return function(){const t=this.LA(1);return!0===e[t.tokenTypeIdx]}}}return function(){e:for(let n=0;nWs([e],1)),r=rl(n.length),i=Co(n,e=>{const t={};return fo(e,e=>{fo(il(e.partialPath),e=>{t[e]=!0})}),t});let o=n;for(let e=1;e<=t;e++){const n=o;o=rl(n.length);for(let a=0;a{fo(il(e.partialPath),e=>{i[a][e]=!0})})}}}}return r}function sl(e,t,n,r){const i=new nl(e,Ys.ALTERNATION,r);return t.accept(i),al(i.result,n)}function ll(e,t,n,r){const i=new nl(e,n);t.accept(i);const o=i.result,a=new tl(t,e,n).startWalking();return al([new aa({definition:o}),new aa({definition:a})],r)}function cl(e,t){e:for(let n=0;ngo(e,e=>go(e,e=>zo(e.categoryMatches))))}function dl(e){return`${va(e)}_#_${e.idx}_#_${hl(e)}`}function hl(e){return e instanceof fa?e.terminalType.name:e instanceof ia?e.nonTerminalName:""}class fl extends ma{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}}function pl(e,t,n,r=[]){const i=[],o=ml(t.definition);if(zo(o))return[];{const t=e.name;Lo(o,e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:ic.LEFT_RECURSION,ruleName:t});const a=wo(lo(o,r.concat([e])),t=>{const i=Ni(r);return i.push(t),pl(e,t,n,i)});return i.concat(a)}}function ml(e){let t=[];if(zo(e))return t;const n=So(e);if(n instanceof ia)t.push(n.referencedRule);else if(n instanceof aa||n instanceof sa||n instanceof la||n instanceof ca||n instanceof da||n instanceof ua)t=t.concat(ml(n.definition));else if(n instanceof ha)t=Ur(Co(n.definition,e=>ml(e.definition)));else if(!(n instanceof fa))throw Error("non exhaustive match");const r=ga(n),i=e.length>1;if(r&&i){const n=uo(e);return t.concat(ml(n))}return t}class gl extends ma{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}class vl extends ma{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}const Al="MismatchedTokenException",yl="NoViableAltException",bl="EarlyExitException",xl="NotAllInputParsedException",Sl=[Al,yl,bl,xl];function El(e){return Lo(Sl,e.name)}Object.freeze(Sl);class Cl extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class wl extends Cl{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=Al}}class _l extends Cl{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=yl}}class Il extends Cl{constructor(e,t){super(e,t),this.name=xl}}class Tl extends Cl{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=bl}}const Ml={},Rl="InRuleRecoveryException";class Ol extends Error{constructor(e){super(e),this.name=Rl}}function Pl(e,t,n,r,i,o,a){const s=this.getKeyForAutomaticLookahead(r,i);let l=this.firstAfterRepMap[s];if(void 0===l){const e=this.getCurrRuleFullName();l=new o(this.getGAstProductions()[e],i).startWalking(),this.firstAfterRepMap[s]=l}let c=l.token,u=l.occurrence;const d=l.isEndOfRule;1===this.RULE_STACK.length&&d&&void 0===c&&(c=ks,u=1),void 0!==c&&void 0!==u&&this.shouldInRepetitionRecoveryBeTried(c,u,a)&&this.tryInRepetitionRecovery(e,t,n,c)}const Nl=1024,kl=1280,Dl=1536;function Ll(e,t,n){return n|t|e}class Bl{constructor(e){var t;this.maxLookahead=null!==(t=null==e?void 0:e.maxLookahead)&&void 0!==t?t:nc.maxLookahead}validate(e){const t=this.validateNoLeftRecursion(e.rules);if(zo(t)){const n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return wo(e,e=>pl(e,e,Fs))}validateEmptyOrAlternatives(e){return wo(e,e=>function(e,t){const n=new gl;return e.accept(n),wo(n.alternations,n=>wo(ho(n.definition),(r,i)=>zo(Xs([r],[],us,1))?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:ic.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}(e,Fs))}validateAmbiguousAlternationAlternatives(e,t){return wo(e,e=>function(e,t,n){const r=new gl;e.accept(r);let i=r.alternations;i=Xo(i,e=>!0===e.ignoreAmbiguities);const o=wo(i,r=>{const i=r.idx,o=r.maxLookahead||t,a=sl(i,e,o,r),s=function(e,t,n,r){const i=[],o=Wo(e,(n,r,o)=>(!0===t.definition[o].ignoreAmbiguities||fo(r,r=>{const a=[o];fo(e,(e,n)=>{o!==n&&cl(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&a.push(n)}),a.length>1&&!cl(i,r)&&(i.push(r),n.push({alts:a,path:r}))}),n),[]);return Co(o,e=>{const i=Co(e.alts,e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:ic.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}(a,r,e,n),l=function(e,t,n,r){const i=Wo(e,(e,t,n)=>{const r=Co(t,e=>({idx:n,path:e}));return e.concat(r)},[]);return ki(wo(i,e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];const o=e.idx,a=e.path;return Co(Ao(i,e=>{return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx{const n=r[t];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]}));var n,r}),e=>{const i=[e.idx+1,o+1],a=0===t.idx?"":t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:ic.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:a,alternatives:i}})}))}(a,r,e,n);return s.concat(l)});return o}(e,t,Fs))}validateSomeNonEmptyLookaheadPath(e,t){return function(e,t,n){const r=[];return fo(e,e=>{const i=new vl;e.accept(i),fo(i.allProductions,i=>{const o=Js(i),a=i.maxLookahead||t;if(zo(Ur(ll(i.idx,e,o,a)[0]))){const t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:ic.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}(e,t,Fs)}buildLookaheadForAlternation(e){return function(e,t,n,r,i,o){const a=sl(e,t,n);return o(a,r,ul(a)?ds:us,i)}(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Zs)}buildLookaheadForOptional(e){return function(e,t,n,r,i,o){const a=ll(e,t,i,n),s=ul(a)?ds:us;return o(a[0],s,r)}(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Js(e.prodType),el)}}const Fl=new class extends ma{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};function Ul(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffsetQt(e.GATE));return o.hasPredicates=a,n.definition.push(o),fo(i,e=>{const t=new aa({definition:[]});o.definition.push(t),Po(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Po(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),Ql}function Zl(e){return 0===e?"":`${e}`}function ec(e){if(e<0||e>Wl){const t=new Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than ${Wl+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}const tc=Ds(ks,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(tc);const nc=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:Ls,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),rc=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});var ic,oc,ac;(oc=ic||(ic={}))[oc.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",oc[oc.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",oc[oc.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",oc[oc.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",oc[oc.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",oc[oc.LEFT_RECURSION=5]="LEFT_RECURSION",oc[oc.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",oc[oc.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",oc[oc.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",oc[oc.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",oc[oc.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",oc[oc.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",oc[oc.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",oc[oc.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION";class sc{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;const t=this.className;this.TRACE_INIT("toFastProps",()=>{na(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),fo(this.definedRulesNames,e=>{const t=this[e].originalGrammarAction;let n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=function(e){const t=ao(e,{errMsgProvider:Bs}),n={};return fo(e.rules,e=>{n[e.name]=e}),function(e,t){const n=new Us(e,t);return n.resolveRefs(),n.errors}(n,t.errMsgProvider)}({rules:ko(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(zo(n)&&!1===this.skipValidations){const n=(e={rules:ko(this.gastProductionsCache),tokenTypes:ko(this.tokensMap),errMsgProvider:Fs,grammarName:t},function(e,t,n,r){const i=wo(e,e=>function(e,t){const n=new fl;e.accept(n);const r=n.allProductions;return Co(ko(Qo(Mo(r,dl),e=>e.length>1)),n=>{const r=So(n),i=t.buildDuplicateFoundError(e,n),o=va(r),a={message:i,type:ic.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:o,occurrence:r.idx},s=hl(r);return s&&(a.parameter=s),a})}(e,n)),o=function(e,t,n){const r=[],i=Co(t,e=>e.name);return fo(e,e=>{const t=e.name;if(Lo(i,t)){const i=n.buildNamespaceConflictError(e);r.push({message:i,type:ic.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}(e,t,n),a=wo(e,e=>function(e,t){const n=new gl;return e.accept(n),wo(n.alternations,n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:ic.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}(e,n)),s=wo(e,t=>function(e,t,n,r){const i=[],o=Wo(t,(t,n)=>n.name===e.name?t+1:t,0);if(o>1){const t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:ic.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}(t,e,r,n));return i.concat(o,a,s)}((e=ao(e,{errMsgProvider:Fs})).rules,e.tokenTypes,e.errMsgProvider,e.grammarName)),r=function(e){return Co(e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}),e=>Object.assign({type:ic.CUSTOM_LOOKAHEAD_VALIDATION},e))}({lookaheadStrategy:this.lookaheadStrategy,rules:ko(this.gastProductionsCache),tokenTypes:ko(this.tokensMap),grammarName:t});this.definitionErrors=this.definitionErrors.concat(n,r)}var e}),zo(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const e=function(e){const t={};return fo(e,e=>{const n=new Sa(e).startWalking();ur(t,n)}),t}(ko(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null===(t=(e=this.lookaheadStrategy).initialize)||void 0===t||t.call(e,{rules:ko(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(ko(this.gastProductionsCache))})),!sc.DEFER_DEFINITION_ERRORS_HANDLING&&!zo(this.definitionErrors))throw e=Co(this.definitionErrors,e=>e.message),new Error(`Parser Definition Errors detected:\n ${e.join("\n-------------------------------\n")}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initContentAssist(),n.initGastRecorder(t),n.initPerformanceTracer(t),Po(t,"ignoredIssues"))throw new Error("The IParserConfig property has been deprecated.\n\tPlease use the flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=Po(t,"skipValidations")?t.skipValidations:nc.skipValidations}}sc.DEFER_DEFINITION_ERRORS_HANDLING=!1,ac=sc,[class{initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Po(e,"recoveryEnabled")?e.recoveryEnabled:nc.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Pl)}getTokenToInsert(e){const t=Ds(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){const i=this.findReSyncTokenType(),o=this.exportLexerState(),a=[];let s=!1;const l=this.LA(1);let c=this.LA(1);const u=()=>{const e=this.LA(0),t=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),n=new wl(t,l,this.LA(0));n.resyncedTokens=ho(a),this.SAVE_ERROR(n)};for(;!s;){if(this.tokenMatcher(c,r))return void u();if(n.call(this))return u(),void e.apply(this,t);this.tokenMatcher(c,i)?s=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,a))}this.importLexerState(o)}shouldInRepetitionRecoveryBeTried(e,t,n){return!1!==n&&!this.tokenMatcher(this.LA(1),e)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t))}getFollowsForInRuleRecovery(e,t){const n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new Ol("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(zo(t))return!1;const n=this.LA(1);return void 0!==xo(t,e=>this.tokenMatcher(n,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey();return Lo(this.getFollowSetFromFollowKey(t),e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1),n=2;for(;;){const r=xo(e,e=>us(t,e));if(void 0!==r)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(1===this.RULE_STACK.length)return Ml;const e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return Co(e,(n,r)=>0===r?Ml:{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])})}flattenFollowSet(){return Ur(Co(this.buildFullFollowKeyStack(),e=>this.getFollowSetFromFollowKey(e)))}getFollowSetFromFollowKey(e){if(e===Ml)return[ks];const t=e.ruleName+e.idxInCallingRule+xa+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,ks)||t.push(e),t}reSyncTo(e){const t=[];let n=this.LA(1);for(;!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return ho(t)}attemptInRepetitionRecovery(e,t,n,r,i,o,a){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:Ni(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return Co(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}},class{initLooksAhead(e){this.dynamicTokensEnabled=Po(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:nc.dynamicTokensEnabled,this.maxLookahead=Po(e,"maxLookahead")?e.maxLookahead:nc.maxLookahead,this.lookaheadStrategy=Po(e,"lookaheadStrategy")?e.lookaheadStrategy:new Bl({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){fo(e,e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{const{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:a}=function(e){Fl.reset(),e.accept(Fl);const t=Fl.dslMethods;return Fl.reset(),t}(e);fo(t,t=>{const n=0===t.idx?"":t.idx;this.TRACE_INIT(`${va(t)}${n}`,()=>{const n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),r=Ll(this.fullRuleNameToShort[e.name],256,t.idx);this.setLaFuncCache(r,n)})}),fo(n,t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,va(t))}),fo(r,t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,va(t))}),fo(i,t=>{this.computeLookaheadFunc(e,t.idx,Nl,"RepetitionMandatory",t.maxLookahead,va(t))}),fo(o,t=>{this.computeLookaheadFunc(e,t.idx,Dl,"RepetitionMandatoryWithSeparator",t.maxLookahead,va(t))}),fo(a,t=>{this.computeLookaheadFunc(e,t.idx,kl,"RepetitionWithSeparator",t.maxLookahead,va(t))})})})}computeLookaheadFunc(e,t,n,r,i,o){this.TRACE_INIT(`${o}${0===t?"":t}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r}),a=Ll(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(a,o)})}getKeyForAutomaticLookahead(e,t){return Ll(this.getLastExplicitRuleShortName(),e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Po(e,"nodeLocationTracking")?e.nodeLocationTracking:nc.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=zl,this.setNodeLocationFromNode=zl,this.cstPostRule=ln,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=ln,this.setNodeLocationFromNode=ln,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Ul,this.setNodeLocationFromNode=Ul,this.cstPostRule=ln,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=ln,this.setNodeLocationFromNode=ln,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=ln,this.setNodeLocationFromNode=ln,this.cstPostRule=ln,this.setInitialNodeLocation=ln}else this.cstInvocationStateUpdate=ln,this.cstFinallyStateUpdate=ln,this.cstPostTerminal=ln,this.cstPostNonTerminal=ln,this.cstPostRule=ln}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==1?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=NaN,n.startLine=NaN,n.startColumn=NaN)}cstPostRuleOnlyOffset(e){const t=this.LA(0),n=e.location;n.startOffset<=t.startOffset==1?n.endOffset=t.endOffset:n.startOffset=NaN}cstPostTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];var r,i,o;i=t,o=e,void 0===(r=n).children[o]?r.children[o]=[i]:r.children[o].push(i),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];!function(e,t,n){void 0===e.children[t]?e.children[t]=[n]:e.children[t].push(n)}(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if(Ho(this.baseCstVisitorConstructor)){const e=function(e,t){const n=function(){};jl(n,e+"BaseSemantics");const r={visit:function(e,t){if(Rt(e)&&(e=e[0]),!Ho(e))return this[e.name](e.children,t)},validateVisitor:function(){const e=function(e,t){const n=function(e,t){return ki(Co(Ao(t,t=>!1===Qt(e[t])),t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:Hl.MISSING_METHOD,methodName:t})))}(e,t);return n}(this,t);if(!zo(e)){const t=Co(e,e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join("\n\n").replace(/\n/g,"\n\t")}`)}}};return(n.prototype=r).constructor=n,n._RULE_NAMES=t,n}(this.className,sr(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(Ho(this.baseCstVisitorWithDefaultsConstructor)){const e=function(e,t,n){const r=function(){};jl(r,e+"BaseSemanticsWithDefaults");const i=Object.create(n.prototype);return fo(t,e=>{i[e]=$l}),(r.prototype=i).constructor=r,r}(this.className,sr(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):tc}LA(e){const t=this.currIdx+e;return t<0||this.tokVectorLength<=t?tc:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ds,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Po(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if(Rt(e)){if(zo(e))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if(Rt(e))this.tokensMap=Wo(e,(e,t)=>(e[t.name]=t,e),{});else if(Po(e,"modes")&&go(Ur(ko(e.modes)),As)){const t=Jo(Ur(ko(e.modes)));this.tokensMap=Wo(t,(e,t)=>(e[t.name]=t,e),{})}else{if(!Lt(e))throw new Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=Ni(e)}this.tokensMap.EOF=ks;const n=go(Po(e,"modes")?Ur(ko(e.modes)):ko(e),e=>zo(e.categoryMatches));this.tokenMatcher=n?ds:us,ps(ko(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const r=Po(n,"resyncEnabled")?n.resyncEnabled:rc.resyncEnabled,i=Po(n,"recoveryValueFunc")?n.recoveryValueFunc:rc.recoveryValueFunc,o=this.ruleShortNameIdx<<12;let a;return this.ruleShortNameIdx++,this.shortRuleNameToFull[o]=e,this.fullRuleNameToShort[e]=o,a=!0===this.outputCst?function(...n){try{this.ruleInvocationStateUpdate(o,e,this.subruleIdx),t.apply(this,n);const r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}}:function(...n){try{return this.ruleInvocationStateUpdate(o,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(a,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,n){const r=1===this.RULE_STACK.length,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(El(e)){const t=e;if(i){const r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){const e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){const n=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof e){r=e.DEF;const t=e.GATE;if(void 0!==t){const e=i;i=()=>t.call(this)&&e.call(this)}}else r=e;if(!0===i.call(this))return r.call(this)}atLeastOneInternal(e,t){const n=this.getKeyForAutomaticLookahead(Nl,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof t){r=t.DEF;const e=t.GATE;if(void 0!==e){const t=i;i=()=>e.call(this)&&t.call(this)}}else r=t;if(!0!==i.call(this))throw this.raiseEarlyExitException(e,Ys.REPETITION_MANDATORY,t.ERR_MSG);{let e=this.doSingleRepetition(r);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(r)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,Nl,e,Qs)}atLeastOneSepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(Dl,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){const r=t.DEF,i=t.SEP;if(!0!==this.getLaFuncFromCache(n).call(this))throw this.raiseEarlyExitException(e,Ys.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);{r.call(this);const t=()=>this.tokenMatcher(this.LA(1),i);for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Vs],t,Dl,e,Vs)}}manyInternal(e,t){const n=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r,i=this.getLaFuncFromCache(n);if("function"!=typeof t){r=t.DEF;const e=t.GATE;if(void 0!==e){const t=i;i=()=>e.call(this)&&t.call(this)}}else r=t;let o=!0;for(;!0===i.call(this)&&!0===o;)o=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,Hs,o)}manySepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(kl,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){const r=t.DEF,i=t.SEP;if(!0===this.getLaFuncFromCache(n).call(this)){r.call(this);const t=()=>this.tokenMatcher(this.LA(1),i);for(;!0===this.tokenMatcher(this.LA(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Gs],t,kl,e,Gs)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,Dl,e,i)}doSingleRepetition(e){const t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){const n=this.getKeyForAutomaticLookahead(256,t),r=Rt(e)?e:e.DEF,i=this.getLaFuncFromCache(n).call(this,r);if(void 0!==i)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){const e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Il(t,e))}}subruleInternal(e,t,n){let r;try{const i=void 0!==n?n.ARGS:void 0;return this.subruleIdx=t,r=e.apply(this,i),this.cstPostNonTerminal(r,void 0!==n&&void 0!==n.LABEL?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw El(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{const t=this.LA(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(void 0!==n&&void 0!==n.LABEL?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r;const i=this.LA(0);throw r=void 0!==n&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new wl(r,t,i))}consumeInternalRecovery(e,t,n){if(!this.recoveryEnabled||"MismatchedTokenException"!==n.name||this.isBackTracking())throw n;{const r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===Rl?n:e}}}saveRecogState(){const e=this.errors,t=Ni(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),ks)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=rc){if(Lo(this.definedRulesNames,e)){const t={message:Fs.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:ic.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);const r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=rc){const r=function(e,t,n){const r=[];let i;return Lo(t,e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:ic.INVALID_RULE_OVERRIDE,ruleName:e})),r}(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);const i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(El(e))return!1;throw e}finally{this.reloadRecogState(n),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Co(ko(this.gastProductionsCache),pa)}},class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Po(e,"errorMessageProvider")?e.errorMessageProvider:nc.errorMessageProvider}SAVE_ERROR(e){if(El(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Ni(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Ni(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){const r=this.getCurrRuleFullName(),i=ll(e,this.getGAstProductions()[r],t,this.maxLookahead)[0],o=[];for(let e=1;e<=this.maxLookahead;e++)o.push(this.LA(e));const a=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new Tl(a,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const n=this.getCurrRuleFullName(),r=sl(e,this.getGAstProductions()[n],this.maxLookahead),i=[];for(let e=1;e<=this.maxLookahead;e++)i.push(this.LA(e));const o=this.LA(0),a=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:r,actual:i,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new _l(a,this.LA(1),o))}},class{initContentAssist(){}computeContentAssist(e,t){const n=this.gastProductionsCache[e];if(Ho(n))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Xs([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=So(e.ruleStack),n=this.getGAstProductions()[t];return new js(n,e).startWalking()}},class{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const t=e>0?e:"";this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let t=0;t<10;t++){const n=t>0?t:"";delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return tc}topLevelRuleRecord(e,t){try{const n=new oa({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(t){throw e}throw e}}optionInternalRecord(e,t){return Kl.call(this,sa,e,t)}atLeastOneInternalRecord(e,t){Kl.call(this,la,t,e)}atLeastOneSepFirstInternalRecord(e,t){Kl.call(this,ca,t,e,Vl)}manyInternalRecord(e,t){Kl.call(this,ua,t,e)}manySepFirstInternalRecord(e,t){Kl.call(this,da,t,e,Vl)}orInternalRecord(e,t){return Jl.call(this,e,t)}subruleInternalRecord(e,t,n){if(ec(t),!e||!1===Po(e,"ruleName")){const n=new Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}const r=co(this.recordingProdStack),i=e.ruleName,o=new ia({idx:t,nonTerminalName:i,label:null==n?void 0:n.LABEL,referencedRule:void 0});return r.definition.push(o),this.outputCst?Yl:Ql}consumeInternalRecord(e,t,n){if(ec(t),!gs(e)){const n=new Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}const r=co(this.recordingProdStack),i=new fa({idx:t,terminalType:e,label:null==n?void 0:n.LABEL});return r.definition.push(i),ql}},class{initPerformanceTracer(e){if(Po(e,"traceInitPerf")){const t=e.traceInitPerf,n="number"==typeof t;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=nc.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent`);const{time:r,value:i}=ta(t),o=r>10?console.warn:console.log;return this.traceInitIndent time: ${r}ms`),this.traceInitIndent--,i}return t()}}].forEach(e=>{const t=e.prototype;Object.getOwnPropertyNames(t).forEach(n=>{if("constructor"===n)return;const r=Object.getOwnPropertyDescriptor(t,n);r&&(r.get||r.set)?Object.defineProperty(ac.prototype,n,r):ac.prototype[n]=e.prototype[n]})}),r.Loader;class lc{constructor(e=4){this.pool=e,this.queue=[],this.workers=[],this.workersResolve=[],this.workerStatus=0}_initWorker(e){if(!this.workers[e]){const t=this.workerCreator();t.addEventListener("message",this._onMessage.bind(this,e)),this.workers[e]=t}}_getIdleWorker(){for(let e=0;e{const r=this._getIdleWorker();-1!==r?(this._initWorker(r),this.workerStatus|=1<e.terminate()),this.workersResolve.length=0,this.workers.length=0,this.queue.length=0,this.workerStatus=0}}class cc extends r.CompressedTexture{constructor(e,t,n,i,o,a){super(e,t,n,o,a),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=r.ClampToEdgeWrapping}}const uc=new WeakMap;let dc,hc=0;const fc=class extends r.Loader{constructor(e){super(e),this.transcoderPath="",this.transcoderBinary=null,this.transcoderPending=null,this.workerPool=new lc,this.workerSourceURL="",this.workerConfig=null,"undefined"!=typeof MSC_TRANSCODER&&console.warn('THREE.KTX2Loader: Please update to latest "basis_transcoder". "msc_basis_transcoder" is no longer supported in three.js r125+.')}setTranscoderPath(e){return this.transcoderPath=e,this}setWorkerLimit(e){return this.workerPool.setWorkerLimit(e),this}detectSupport(e){return this.workerConfig={astcSupported:e.extensions.has("WEBGL_compressed_texture_astc"),etc1Supported:e.extensions.has("WEBGL_compressed_texture_etc1"),etc2Supported:e.extensions.has("WEBGL_compressed_texture_etc"),dxtSupported:e.extensions.has("WEBGL_compressed_texture_s3tc"),bptcSupported:e.extensions.has("EXT_texture_compression_bptc"),pvrtcSupported:e.extensions.has("WEBGL_compressed_texture_pvrtc")||e.extensions.has("WEBKIT_WEBGL_compressed_texture_pvrtc")},e.capabilities.isWebGL2&&(this.workerConfig.etc1Supported=!1),this}init(){if(!this.transcoderPending){const e=new r.FileLoader(this.manager);e.setPath(this.transcoderPath),e.setWithCredentials(this.withCredentials);const t=e.loadAsync("basis_transcoder.js"),n=new r.FileLoader(this.manager);n.setPath(this.transcoderPath),n.setResponseType("arraybuffer"),n.setWithCredentials(this.withCredentials);const i=n.loadAsync("basis_transcoder.wasm");this.transcoderPending=Promise.all([t,i]).then(([e,t])=>{const n=fc.BasisWorker.toString(),r=["/* constants */","let _EngineFormat = "+JSON.stringify(fc.EngineFormat),"let _TranscoderFormat = "+JSON.stringify(fc.TranscoderFormat),"let _BasisFormat = "+JSON.stringify(fc.BasisFormat),"/* basis_transcoder.js */",e,"/* worker */",n.substring(n.indexOf("{")+1,n.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([r])),this.transcoderBinary=t,this.workerPool.setWorkerCreator(()=>{const e=new Worker(this.workerSourceURL),t=this.transcoderBinary.slice(0);return e.postMessage({type:"init",config:this.workerConfig,transcoderBinary:t},[t]),e})}),hc>0&&console.warn("THREE.KTX2Loader: Multiple active KTX2 loaders may cause performance issues. Use a single KTX2Loader instance, or call .dispose() on old instances."),hc++}return this.transcoderPending}load(e,t,n,i){if(null===this.workerConfig)throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.");const o=new r.FileLoader(this.manager);o.setResponseType("arraybuffer"),o.setWithCredentials(this.withCredentials),o.load(e,e=>{if(uc.has(e))return uc.get(e).promise.then(t).catch(i);this._createTexture(e).then(e=>t?t(e):null).catch(i)},n,i)}_createTextureFrom(e,t){const{mipmaps:n,width:i,height:o,format:a,type:s,error:l,dfdTransferFn:c,dfdFlags:u}=e;if("error"===s)return Promise.reject(l);const d=t.layerCount>1?new cc(n,i,o,t.layerCount,a,r.UnsignedByteType):new r.CompressedTexture(n,i,o,a,r.UnsignedByteType);return d.minFilter=1===n.length?r.LinearFilter:r.LinearMipmapLinearFilter,d.magFilter=r.LinearFilter,d.generateMipmaps=!1,d.needsUpdate=!0,"colorSpace"in d?d.colorSpace=2===c?"srgb":"srgb-linear":d.encoding=2===c?3001:3e3,d.premultiplyAlpha=!!(1&u),d}async _createTexture(e,t={}){const n=function(e){const t=new Uint8Array(e.buffer,e.byteOffset,D.length);if(t[0]!==D[0]||t[1]!==D[1]||t[2]!==D[2]||t[3]!==D[3]||t[4]!==D[4]||t[5]!==D[5]||t[6]!==D[6]||t[7]!==D[7]||t[8]!==D[8]||t[9]!==D[9]||t[10]!==D[10]||t[11]!==D[11])throw new Error("Missing KTX 2.0 identifier.");const n=new N,r=17*Uint32Array.BYTES_PER_ELEMENT,i=new k(e,D.length,r,!0);n.vkFormat=i._nextUint32(),n.typeSize=i._nextUint32(),n.pixelWidth=i._nextUint32(),n.pixelHeight=i._nextUint32(),n.pixelDepth=i._nextUint32(),n.layerCount=i._nextUint32(),n.faceCount=i._nextUint32();const o=i._nextUint32();n.supercompressionScheme=i._nextUint32();const a=i._nextUint32(),s=i._nextUint32(),l=i._nextUint32(),c=i._nextUint32(),u=i._nextUint64(),d=i._nextUint64(),h=new k(e,D.length+r,3*o*8,!0);for(let t=0;t{const t=new j;await t.init(),e(t)})),s=(await dc).decode(a.levelData,a.uncompressedByteLength)}l=gc[t]===r.FloatType?new Float32Array(s.buffer,s.byteOffset,s.byteLength/Float32Array.BYTES_PER_ELEMENT):gc[t]===r.HalfFloatType?new Uint16Array(s.buffer,s.byteOffset,s.byteLength/Uint16Array.BYTES_PER_ELEMENT):s;const c=0===o?new r.DataTexture(l,n,i):new mt(l,n,i,o);return c.type=gc[t],c.format=mc[t],c.encoding=vc[t]||3e3,c.needsUpdate=!0,Promise.resolve(c)}(n);const i=t,o=this.init().then(()=>this.workerPool.postMessage({type:"transcode",buffer:e,taskConfig:i},[e])).then(e=>this._createTextureFrom(e.data,n));return uc.set(e,{promise:o}),o}dispose(){return this.workerPool.dispose(),this.workerSourceURL&&URL.revokeObjectURL(this.workerSourceURL),hc--,this}};let pc=fc;G(pc,"BasisFormat",{ETC1S:0,UASTC_4x4:1}),G(pc,"TranscoderFormat",{ETC1:0,ETC2:1,BC1:2,BC3:3,BC4:4,BC5:5,BC7_M6_OPAQUE_ONLY:6,BC7_M5:7,PVRTC1_4_RGB:8,PVRTC1_4_RGBA:9,ASTC_4x4:10,ATC_RGB:11,ATC_RGBA_INTERPOLATED_ALPHA:12,RGBA32:13,RGB565:14,BGR565:15,RGBA4444:16}),G(pc,"EngineFormat",{RGBAFormat:r.RGBAFormat,RGBA_ASTC_4x4_Format:r.RGBA_ASTC_4x4_Format,RGBA_BPTC_Format:r.RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:r.RGBA_ETC2_EAC_Format,RGBA_PVRTC_4BPPV1_Format:r.RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT5_Format:r.RGBA_S3TC_DXT5_Format,RGB_ETC1_Format:r.RGB_ETC1_Format,RGB_ETC2_Format:r.RGB_ETC2_Format,RGB_PVRTC_4BPPV1_Format:r.RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:r.RGB_S3TC_DXT1_Format}),G(pc,"BasisWorker",function(){let e,t,n;const r=_EngineFormat,i=_TranscoderFormat,o=_BasisFormat;self.addEventListener("message",function(a){const d=a.data;switch(d.type){case"init":e=d.config,h=d.transcoderBinary,t=new Promise(e=>{n={wasmBinary:h,onRuntimeInitialized:e},BASIS(n)}).then(()=>{n.initializeBasis(),void 0===n.KTX2File&&console.warn("THREE.KTX2Loader: Please update Basis Universal transcoder.")});break;case"transcode":t.then(()=>{try{const{width:t,height:a,hasAlpha:h,mipmaps:f,format:p,dfdTransferFn:m,dfdFlags:g}=function(t){const a=new n.KTX2File(new Uint8Array(t));function d(){a.close(),a.delete()}if(!a.isValid())throw d(),new Error("THREE.KTX2Loader:\tInvalid or unsupported .ktx2 file");const h=a.isUASTC()?o.UASTC_4x4:o.ETC1S,f=a.getWidth(),p=a.getHeight(),m=a.getLayers()||1,g=a.getLevels(),v=a.getHasAlpha(),A=a.getDFDTransferFunc(),y=a.getDFDFlags(),{transcoderFormat:b,engineFormat:x}=function(t,n,a,u){let d,h;const f=t===o.ETC1S?s:l;for(let r=0;r{if(Ac.has(e))return Ac.get(e).promise.then(t).catch(i);this._createTexture([e]).then(function(e){a.copy(e),a.needsUpdate=!0,t&&t(a)}).catch(i)},n,i),a}parseInternalAsync(e){const{levels:t}=e,n=new Set;for(let e=0;e(n=t,i=this.workerNextTaskID++,new Promise((t,r)=>{n._callbacks[i]={resolve:t,reject:r},n.postMessage({type:"transcode",id:i,buffers:e,taskConfig:o},e)}))).then(e=>{const{mipmaps:t,width:n,height:i,format:o}=e,a=new r.CompressedTexture(t,n,i,o,r.UnsignedByteType);return a.minFilter=1===t.length?r.LinearFilter:r.LinearMipmapLinearFilter,a.magFilter=r.LinearFilter,a.generateMipmaps=!1,a.needsUpdate=!0,a});return s.catch(()=>!0).then(()=>{n&&i&&(n._taskLoad-=a,delete n._callbacks[i])}),Ac.set(e[0],{promise:s}),s}_initTranscoder(){if(!this.transcoderPending){const e=new r.FileLoader(this.manager);e.setPath(this.transcoderPath),e.setWithCredentials(this.withCredentials);const t=new Promise((t,n)=>{e.load("basis_transcoder.js",t,void 0,n)}),n=new r.FileLoader(this.manager);n.setPath(this.transcoderPath),n.setResponseType("arraybuffer"),n.setWithCredentials(this.withCredentials);const i=new Promise((e,t)=>{n.load("basis_transcoder.wasm",e,void 0,t)});this.transcoderPending=Promise.all([t,i]).then(([e,t])=>{const n=yc.BasisWorker.toString(),r=["/* constants */","let _EngineFormat = "+JSON.stringify(yc.EngineFormat),"let _TranscoderFormat = "+JSON.stringify(yc.TranscoderFormat),"let _BasisFormat = "+JSON.stringify(yc.BasisFormat),"/* basis_transcoder.js */",e,"/* worker */",n.substring(n.indexOf("{")+1,n.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([r])),this.transcoderBinary=t})}return this.transcoderPending}_allocateWorker(e){return this._initTranscoder().then(()=>{if(this.workerPool.lengtht._taskLoad?-1:1});const t=this.workerPool[this.workerPool.length-1];return t._taskLoad+=e,t})}dispose(){for(let e=0;e{n={wasmBinary:a,onRuntimeInitialized:e},BASIS(n)}).then(()=>{n.initializeBasis()});break;case"transcode":t.then(()=>{try{const{width:e,height:t,hasAlpha:r,mipmaps:a,format:s}=i.taskConfig.lowLevel?function(e){const{basisFormat:t,width:r,height:i,hasAlpha:a}=e,{transcoderFormat:s,engineFormat:l}=c(t,r,i,a),p=n.getBytesPerBlockOrPixel(s);u(n.isFormatSupported(s),"THREE.BasisTextureLoader: Unsupported format.");const m=[];if(t===o.ETC1S){const t=new n.LowLevelETC1SImageTranscoder,{endpointCount:r,endpointsData:i,selectorCount:o,selectorsData:l,tablesData:c}=e.globalData;try{let n;n=t.decodePalettes(r,i,o,l),u(n,"THREE.BasisTextureLoader: decodePalettes() failed."),n=t.decodeTables(c),u(n,"THREE.BasisTextureLoader: decodeTables() failed.");for(let r=0;rie,AddEquation:()=>E,AddOperation:()=>Z,AdditiveAnimationBlendMode:()=>jt,AdditiveBlending:()=>y,AgXToneMapping:()=>ae,AlphaFormat:()=>je,AlwaysCompare:()=>Tn,AlwaysDepth:()=>G,AlwaysStencilFunc:()=>bn,AmbientLight:()=>mf,AnimationAction:()=>ip,AnimationClip:()=>Fh,AnimationLoader:()=>Wh,AnimationMixer:()=>ap,AnimationObjectGroup:()=>rp,AnimationUtils:()=>wh,ArcCurve:()=>Gu,ArrayCamera:()=>Hl,ArrowHelper:()=>Jp,AttachedBindMode:()=>le,Audio:()=>$f,AudioAnalyser:()=>Xf,AudioContext:()=>Mf,AudioListener:()=>jf,AudioLoader:()=>Rf,AxesHelper:()=>Zp,BackSide:()=>m,BasicDepthPacking:()=>Qt,BasicShadowMap:()=>u,BatchedMesh:()=>pu,Bone:()=>Dc,BooleanKeyframeTrack:()=>Oh,Box2:()=>yp,Box3:()=>Dr,Box3Helper:()=>Wp,BoxGeometry:()=>Wo,BoxHelper:()=>Vp,BufferAttribute:()=>co,BufferGeometry:()=>Io,BufferGeometryLoader:()=>Sf,ByteType:()=>Re,Cache:()=>zh,Camera:()=>Zo,CameraHelper:()=>Hp,CanvasTexture:()=>ju,CapsuleGeometry:()=>dd,CatmullRomCurve3:()=>Yu,CineonToneMapping:()=>re,CircleGeometry:()=>hd,ClampToEdgeWrapping:()=>ve,Clock:()=>Df,Color:()=>Ki,ColorKeyframeTrack:()=>Ph,ColorManagement:()=>pr,CompressedArrayTexture:()=>Uu,CompressedCubeTexture:()=>zu,CompressedTexture:()=>Fu,CompressedTextureLoader:()=>Xh,ConeGeometry:()=>pd,ConstantAlphaFactor:()=>j,ConstantColorFactor:()=>U,CubeCamera:()=>oa,CubeReflectionMapping:()=>de,CubeRefractionMapping:()=>he,CubeTexture:()=>aa,CubeTextureLoader:()=>Yh,CubeUVReflectionMapping:()=>me,CubicBezierCurve:()=>ed,CubicBezierCurve3:()=>td,CubicInterpolant:()=>Ih,CullFaceBack:()=>s,CullFaceFront:()=>l,CullFaceFrontBack:()=>c,CullFaceNone:()=>a,Curve:()=>$u,CurvePath:()=>ld,CustomBlending:()=>S,CustomToneMapping:()=>oe,CylinderGeometry:()=>fd,Cylindrical:()=>vp,Data3DTexture:()=>Mr,DataArrayTexture:()=>Ir,DataTexture:()=>Lc,DataTextureLoader:()=>Kh,DataUtils:()=>ao,DecrementStencilOp:()=>cn,DecrementWrapStencilOp:()=>dn,DefaultLoadingManager:()=>$h,DepthFormat:()=>Ve,DepthStencilFormat:()=>We,DepthTexture:()=>Za,DetachedBindMode:()=>ce,DirectionalLight:()=>pf,DirectionalLightHelper:()=>zp,DiscreteInterpolant:()=>Mh,DisplayP3ColorSpace:()=>Jt,DodecahedronGeometry:()=>gd,DoubleSide:()=>g,DstAlphaFactor:()=>k,DstColorFactor:()=>L,DynamicCopyUsage:()=>Ln,DynamicDrawUsage:()=>Rn,DynamicReadUsage:()=>Nn,EdgesGeometry:()=>xd,EllipseCurve:()=>Hu,EqualCompare:()=>En,EqualDepth:()=>W,EqualStencilFunc:()=>mn,EquirectangularReflectionMapping:()=>fe,EquirectangularRefractionMapping:()=>pe,Euler:()=>Ai,EventDispatcher:()=>$n,ExtrudeGeometry:()=>Yd,FileLoader:()=>Vh,Float16BufferAttribute:()=>Ao,Float32BufferAttribute:()=>yo,FloatType:()=>De,Fog:()=>tc,FogExp2:()=>ec,FramebufferTexture:()=>Bu,FrontSide:()=>p,Frustum:()=>pa,GLBufferAttribute:()=>dp,GLSL1:()=>Fn,GLSL3:()=>Un,GreaterCompare:()=>wn,GreaterDepth:()=>q,GreaterEqualCompare:()=>In,GreaterEqualDepth:()=>X,GreaterEqualStencilFunc:()=>yn,GreaterStencilFunc:()=>vn,GridHelper:()=>Dp,Group:()=>Gl,HalfFloatType:()=>Le,HemisphereLight:()=>ef,HemisphereLightHelper:()=>kp,IcosahedronGeometry:()=>Jd,ImageBitmapLoader:()=>If,ImageLoader:()=>qh,ImageUtils:()=>Ar,IncrementStencilOp:()=>ln,IncrementWrapStencilOp:()=>un,InstancedBufferAttribute:()=>zc,InstancedBufferGeometry:()=>xf,InstancedInterleavedBuffer:()=>up,InstancedMesh:()=>Xc,Int16BufferAttribute:()=>po,Int32BufferAttribute:()=>go,Int8BufferAttribute:()=>uo,IntType:()=>Ne,InterleavedBuffer:()=>rc,InterleavedBufferAttribute:()=>oc,Interpolant:()=>_h,InterpolateDiscrete:()=>kt,InterpolateLinear:()=>Dt,InterpolateSmooth:()=>Lt,InvertStencilOp:()=>hn,KeepStencilOp:()=>an,KeyframeTrack:()=>Rh,LOD:()=>Cc,LatheGeometry:()=>ud,Layers:()=>yi,LessCompare:()=>Sn,LessDepth:()=>Q,LessEqualCompare:()=>Cn,LessEqualDepth:()=>V,LessEqualStencilFunc:()=>gn,LessStencilFunc:()=>pn,Light:()=>Zh,LightProbe:()=>Af,Line:()=>Eu,Line3:()=>Sp,LineBasicMaterial:()=>mu,LineCurve:()=>nd,LineCurve3:()=>rd,LineDashedMaterial:()=>yh,LineLoop:()=>Tu,LineSegments:()=>Iu,LinearDisplayP3ColorSpace:()=>Zt,LinearFilter:()=>Ce,LinearInterpolant:()=>Th,LinearMipMapLinearFilter:()=>Te,LinearMipMapNearestFilter:()=>_e,LinearMipmapLinearFilter:()=>Ie,LinearMipmapNearestFilter:()=>we,LinearSRGBColorSpace:()=>Kt,LinearToneMapping:()=>te,LinearTransfer:()=>en,Loader:()=>Hh,LoaderUtils:()=>bf,LoadingManager:()=>jh,LoopOnce:()=>Ot,LoopPingPong:()=>Nt,LoopRepeat:()=>Pt,LuminanceAlphaFormat:()=>Qe,LuminanceFormat:()=>Ge,MOUSE:()=>i,Material:()=>eo,MaterialLoader:()=>yf,MathUtils:()=>Zn,Matrix3:()=>tr,Matrix4:()=>li,MaxEquation:()=>I,Mesh:()=>Qo,MeshBasicMaterial:()=>to,MeshDepthMaterial:()=>Bl,MeshDistanceMaterial:()=>Fl,MeshLambertMaterial:()=>vh,MeshMatcapMaterial:()=>Ah,MeshNormalMaterial:()=>gh,MeshPhongMaterial:()=>ph,MeshPhysicalMaterial:()=>fh,MeshStandardMaterial:()=>hh,MeshToonMaterial:()=>mh,MinEquation:()=>_,MirroredRepeatWrapping:()=>Ae,MixOperation:()=>J,MultiplyBlending:()=>x,MultiplyOperation:()=>K,NearestFilter:()=>ye,NearestMipMapLinearFilter:()=>Ee,NearestMipMapNearestFilter:()=>xe,NearestMipmapLinearFilter:()=>Se,NearestMipmapNearestFilter:()=>be,NeutralToneMapping:()=>se,NeverCompare:()=>xn,NeverDepth:()=>H,NeverStencilFunc:()=>fn,NoBlending:()=>v,NoColorSpace:()=>qt,NoToneMapping:()=>ee,NormalAnimationBlendMode:()=>zt,NormalBlending:()=>A,NotEqualCompare:()=>_n,NotEqualDepth:()=>Y,NotEqualStencilFunc:()=>An,NumberKeyframeTrack:()=>Nh,Object3D:()=>Di,ObjectLoader:()=>Ef,ObjectSpaceNormalMap:()=>Xt,OctahedronGeometry:()=>Zd,OneFactor:()=>M,OneMinusConstantAlphaFactor:()=>$,OneMinusConstantColorFactor:()=>z,OneMinusDstAlphaFactor:()=>D,OneMinusDstColorFactor:()=>B,OneMinusSrcAlphaFactor:()=>N,OneMinusSrcColorFactor:()=>O,OrthographicCamera:()=>Ra,P3Primaries:()=>rn,PCFShadowMap:()=>d,PCFSoftShadowMap:()=>h,PMREMGenerator:()=>ja,Path:()=>cd,PerspectiveCamera:()=>ra,Plane:()=>da,PlaneGeometry:()=>va,PlaneHelper:()=>Xp,PointLight:()=>hf,PointLightHelper:()=>Rp,Points:()=>ku,PointsMaterial:()=>Mu,PolarGridHelper:()=>Lp,PolyhedronGeometry:()=>md,PositionalAudio:()=>Wf,PropertyBinding:()=>np,PropertyMixer:()=>qf,QuadraticBezierCurve:()=>id,QuadraticBezierCurve3:()=>od,Quaternion:()=>Or,QuaternionKeyframeTrack:()=>Dh,QuaternionLinearInterpolant:()=>kh,RED_GREEN_RGTC2_Format:()=>Mt,RED_RGTC1_Format:()=>It,REVISION:()=>r,RGBADepthPacking:()=>Vt,RGBAFormat:()=>He,RGBAIntegerFormat:()=>Je,RGBA_ASTC_10x10_Format:()=>xt,RGBA_ASTC_10x5_Format:()=>At,RGBA_ASTC_10x6_Format:()=>yt,RGBA_ASTC_10x8_Format:()=>bt,RGBA_ASTC_12x10_Format:()=>St,RGBA_ASTC_12x12_Format:()=>Et,RGBA_ASTC_4x4_Format:()=>ut,RGBA_ASTC_5x4_Format:()=>dt,RGBA_ASTC_5x5_Format:()=>ht,RGBA_ASTC_6x5_Format:()=>ft,RGBA_ASTC_6x6_Format:()=>pt,RGBA_ASTC_8x5_Format:()=>mt,RGBA_ASTC_8x6_Format:()=>gt,RGBA_ASTC_8x8_Format:()=>vt,RGBA_BPTC_Format:()=>Ct,RGBA_ETC2_EAC_Format:()=>ct,RGBA_PVRTC_2BPPV1_Format:()=>at,RGBA_PVRTC_4BPPV1_Format:()=>ot,RGBA_S3TC_DXT1_Format:()=>et,RGBA_S3TC_DXT3_Format:()=>tt,RGBA_S3TC_DXT5_Format:()=>nt,RGBFormat:()=>$e,RGB_BPTC_SIGNED_Format:()=>wt,RGB_BPTC_UNSIGNED_Format:()=>_t,RGB_ETC1_Format:()=>st,RGB_ETC2_Format:()=>lt,RGB_PVRTC_2BPPV1_Format:()=>it,RGB_PVRTC_4BPPV1_Format:()=>rt,RGB_S3TC_DXT1_Format:()=>Ze,RGFormat:()=>Ye,RGIntegerFormat:()=>Ke,RawShaderMaterial:()=>dh,Ray:()=>si,Raycaster:()=>fp,Rec709Primaries:()=>nn,RectAreaLight:()=>gf,RedFormat:()=>Xe,RedIntegerFormat:()=>qe,ReinhardToneMapping:()=>ne,RenderTarget:()=>wr,RepeatWrapping:()=>ge,ReplaceStencilOp:()=>sn,ReverseSubtractEquation:()=>w,RingGeometry:()=>eh,SIGNED_RED_GREEN_RGTC2_Format:()=>Rt,SIGNED_RED_RGTC1_Format:()=>Tt,SRGBColorSpace:()=>Yt,SRGBTransfer:()=>tn,Scene:()=>nc,ShaderChunk:()=>Aa,ShaderLib:()=>ba,ShaderMaterial:()=>Jo,ShadowMaterial:()=>uh,Shape:()=>Sd,ShapeGeometry:()=>th,ShapePath:()=>em,ShapeUtils:()=>Wd,ShortType:()=>Oe,Skeleton:()=>Uc,SkeletonHelper:()=>Tp,SkinnedMesh:()=>kc,Source:()=>br,Sphere:()=>Zr,SphereGeometry:()=>nh,Spherical:()=>gp,SphericalHarmonics3:()=>vf,SplineCurve:()=>ad,SpotLight:()=>sf,SpotLightHelper:()=>Cp,Sprite:()=>bc,SpriteMaterial:()=>ac,SrcAlphaFactor:()=>P,SrcAlphaSaturateFactor:()=>F,SrcColorFactor:()=>R,StaticCopyUsage:()=>Dn,StaticDrawUsage:()=>Mn,StaticReadUsage:()=>Pn,StereoCamera:()=>kf,StreamCopyUsage:()=>Bn,StreamDrawUsage:()=>On,StreamReadUsage:()=>kn,StringKeyframeTrack:()=>Lh,SubtractEquation:()=>C,SubtractiveBlending:()=>b,TOUCH:()=>o,TangentSpaceNormalMap:()=>Wt,TetrahedronGeometry:()=>rh,Texture:()=>Er,TextureLoader:()=>Jh,TorusGeometry:()=>ih,TorusKnotGeometry:()=>oh,Triangle:()=>Vi,TriangleFanDrawMode:()=>Gt,TriangleStripDrawMode:()=>Ht,TrianglesDrawMode:()=>$t,TubeGeometry:()=>ah,UVMapping:()=>ue,Uint16BufferAttribute:()=>mo,Uint32BufferAttribute:()=>vo,Uint8BufferAttribute:()=>ho,Uint8ClampedBufferAttribute:()=>fo,Uniform:()=>sp,UniformsGroup:()=>cp,UniformsLib:()=>ya,UniformsUtils:()=>Ko,UnsignedByteType:()=>Me,UnsignedInt248Type:()=>Ue,UnsignedInt5999Type:()=>ze,UnsignedIntType:()=>ke,UnsignedShort4444Type:()=>Be,UnsignedShort5551Type:()=>Fe,UnsignedShortType:()=>Pe,VSMShadowMap:()=>f,Vector2:()=>er,Vector3:()=>Pr,Vector4:()=>Cr,VectorKeyframeTrack:()=>Bh,VideoTexture:()=>Lu,WebGL3DRenderTarget:()=>Rr,WebGLArrayRenderTarget:()=>Tr,WebGLCoordinateSystem:()=>zn,WebGLCubeRenderTarget:()=>sa,WebGLMultipleRenderTargets:()=>tm,WebGLRenderTarget:()=>_r,WebGLRenderer:()=>Zl,WebGLUtils:()=>$l,WebGPUCoordinateSystem:()=>jn,WireframeGeometry:()=>sh,WrapAroundEnding:()=>Ut,ZeroCurvatureEnding:()=>Bt,ZeroFactor:()=>T,ZeroSlopeEnding:()=>Ft,ZeroStencilOp:()=>on,createCanvasElement:()=>sr});const r="165",i={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},o={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},a=0,s=1,l=2,c=3,u=0,d=1,h=2,f=3,p=0,m=1,g=2,v=0,A=1,y=2,b=3,x=4,S=5,E=100,C=101,w=102,_=103,I=104,T=200,M=201,R=202,O=203,P=204,N=205,k=206,D=207,L=208,B=209,F=210,U=211,z=212,j=213,$=214,H=0,G=1,Q=2,V=3,W=4,X=5,q=6,Y=7,K=0,J=1,Z=2,ee=0,te=1,ne=2,re=3,ie=4,oe=5,ae=6,se=7,le="attached",ce="detached",ue=300,de=301,he=302,fe=303,pe=304,me=306,ge=1e3,ve=1001,Ae=1002,ye=1003,be=1004,xe=1004,Se=1005,Ee=1005,Ce=1006,we=1007,_e=1007,Ie=1008,Te=1008,Me=1009,Re=1010,Oe=1011,Pe=1012,Ne=1013,ke=1014,De=1015,Le=1016,Be=1017,Fe=1018,Ue=1020,ze=35902,je=1021,$e=1022,He=1023,Ge=1024,Qe=1025,Ve=1026,We=1027,Xe=1028,qe=1029,Ye=1030,Ke=1031,Je=1033,Ze=33776,et=33777,tt=33778,nt=33779,rt=35840,it=35841,ot=35842,at=35843,st=36196,lt=37492,ct=37496,ut=37808,dt=37809,ht=37810,ft=37811,pt=37812,mt=37813,gt=37814,vt=37815,At=37816,yt=37817,bt=37818,xt=37819,St=37820,Et=37821,Ct=36492,wt=36494,_t=36495,It=36283,Tt=36284,Mt=36285,Rt=36286,Ot=2200,Pt=2201,Nt=2202,kt=2300,Dt=2301,Lt=2302,Bt=2400,Ft=2401,Ut=2402,zt=2500,jt=2501,$t=0,Ht=1,Gt=2,Qt=3200,Vt=3201,Wt=0,Xt=1,qt="",Yt="srgb",Kt="srgb-linear",Jt="display-p3",Zt="display-p3-linear",en="linear",tn="srgb",nn="rec709",rn="p3",on=0,an=7680,sn=7681,ln=7682,cn=7683,un=34055,dn=34056,hn=5386,fn=512,pn=513,mn=514,gn=515,vn=516,An=517,yn=518,bn=519,xn=512,Sn=513,En=514,Cn=515,wn=516,_n=517,In=518,Tn=519,Mn=35044,Rn=35048,On=35040,Pn=35045,Nn=35049,kn=35041,Dn=35046,Ln=35050,Bn=35042,Fn="100",Un="300 es",zn=2e3,jn=2001;class $n{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,r=n.length;t>8&255]+Hn[e>>16&255]+Hn[e>>24&255]+"-"+Hn[255&t]+Hn[t>>8&255]+"-"+Hn[t>>16&15|64]+Hn[t>>24&255]+"-"+Hn[63&n|128]+Hn[n>>8&255]+"-"+Hn[n>>16&255]+Hn[n>>24&255]+Hn[255&r]+Hn[r>>8&255]+Hn[r>>16&255]+Hn[r>>24&255]).toLowerCase()}function Xn(e,t,n){return Math.max(t,Math.min(n,e))}function qn(e,t){return(e%t+t)%t}function Yn(e,t,n){return(1-n)*e+n*t}function Kn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Jn(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}const Zn={DEG2RAD:Qn,RAD2DEG:Vn,generateUUID:Wn,clamp:Xn,euclideanModulo:qn,mapLinear:function(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)},inverseLerp:function(e,t,n){return e!==t?(n-e)/(t-e):0},lerp:Yn,damp:function(e,t,n,r){return Yn(e,t,1-Math.exp(-n*r))},pingpong:function(e,t=1){return t-Math.abs(qn(e,2*t)-t)},smoothstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*(3-2*e)},smootherstep:function(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t))*e*e*(e*(6*e-15)+10)},randInt:function(e,t){return e+Math.floor(Math.random()*(t-e+1))},randFloat:function(e,t){return e+Math.random()*(t-e)},randFloatSpread:function(e){return e*(.5-Math.random())},seededRandom:function(e){void 0!==e&&(Gn=e);let t=Gn+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296},degToRad:function(e){return e*Qn},radToDeg:function(e){return e*Vn},isPowerOfTwo:function(e){return!(e&e-1)&&0!==e},ceilPowerOfTwo:function(e){return Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))},floorPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},setQuaternionFromProperEuler:function(e,t,n,r,i){const o=Math.cos,a=Math.sin,s=o(n/2),l=a(n/2),c=o((t+r)/2),u=a((t+r)/2),d=o((t-r)/2),h=a((t-r)/2),f=o((r-t)/2),p=a((r-t)/2);switch(i){case"XYX":e.set(s*u,l*d,l*h,s*c);break;case"YZY":e.set(l*h,s*u,l*d,s*c);break;case"ZXZ":e.set(l*d,l*h,s*u,s*c);break;case"XZX":e.set(s*u,l*p,l*f,s*c);break;case"YXY":e.set(l*f,s*u,l*p,s*c);break;case"ZYZ":e.set(l*p,l*f,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}},normalize:Jn,denormalize:Kn};class er{constructor(e=0,t=0){er.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Xn(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,o=this.y-e.y;return this.x=i*n-o*r+e.x,this.y=i*r+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class tr{constructor(e,t,n,r,i,o,a,s,l){tr.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,o,a,s,l)}set(e,t,n,r,i,o,a,s,l){const c=this.elements;return c[0]=e,c[1]=r,c[2]=a,c[3]=t,c[4]=i,c[5]=s,c[6]=n,c[7]=o,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[3],s=n[6],l=n[1],c=n[4],u=n[7],d=n[2],h=n[5],f=n[8],p=r[0],m=r[3],g=r[6],v=r[1],A=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=o*p+a*v+s*b,i[3]=o*m+a*A+s*x,i[6]=o*g+a*y+s*S,i[1]=l*p+c*v+u*b,i[4]=l*m+c*A+u*x,i[7]=l*g+c*y+u*S,i[2]=d*p+h*v+f*b,i[5]=d*m+h*A+f*x,i[8]=d*g+h*y+f*S,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8];return t*o*c-t*a*l-n*i*c+n*a*s+r*i*l-r*o*s}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=c*o-a*l,d=a*s-c*i,h=l*i-o*s,f=t*u+n*d+r*h;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const p=1/f;return e[0]=u*p,e[1]=(r*l-c*n)*p,e[2]=(a*n-r*o)*p,e[3]=d*p,e[4]=(c*t-r*s)*p,e[5]=(r*i-a*t)*p,e[6]=h*p,e[7]=(n*s-l*t)*p,e[8]=(o*t-n*i)*p,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,o,a){const s=Math.cos(i),l=Math.sin(i);return this.set(n*s,n*l,-n*(s*o+l*a)+o+e,-r*l,r*s,-r*(-l*o+s*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(nr.makeScale(e,t)),this}rotate(e){return this.premultiply(nr.makeRotation(-e)),this}translate(e,t){return this.premultiply(nr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const nr=new tr;function rr(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}const ir={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function or(e,t){return new ir[e](t)}function ar(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function sr(){const e=ar("canvas");return e.style.display="block",e}const lr={};function cr(e){e in lr||(lr[e]=!0,console.warn(e))}const ur=(new tr).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),dr=(new tr).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),hr={[Kt]:{transfer:en,primaries:nn,toReference:e=>e,fromReference:e=>e},[Yt]:{transfer:tn,primaries:nn,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[Zt]:{transfer:en,primaries:rn,toReference:e=>e.applyMatrix3(dr),fromReference:e=>e.applyMatrix3(ur)},[Jt]:{transfer:tn,primaries:rn,toReference:e=>e.convertSRGBToLinear().applyMatrix3(dr),fromReference:e=>e.applyMatrix3(ur).convertLinearToSRGB()}},fr=new Set([Kt,Zt]),pr={enabled:!0,_workingColorSpace:Kt,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!fr.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const r=hr[t].toReference;return(0,hr[n].fromReference)(r(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return hr[e].primaries},getTransfer:function(e){return e===qt?en:hr[e].transfer}};function mr(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function gr(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let vr;class Ar{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===vr&&(vr=ar("canvas")),vr.width=e.width,vr.height=e.height;const n=vr.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=vr}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=ar("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==ue)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ge:e.x=e.x-Math.floor(e.x);break;case ve:e.x=e.x<0?0:1;break;case Ae:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case ge:e.y=e.y-Math.floor(e.y);break;case ve:e.y=e.y<0?0:1;break;case Ae:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}Er.DEFAULT_IMAGE=null,Er.DEFAULT_MAPPING=ue,Er.DEFAULT_ANISOTROPY=1;class Cr{constructor(e=0,t=0,n=0,r=1){Cr.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*t+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*t+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*t+o[7]*n+o[11]*r+o[15]*i,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i;const o=.01,a=.1,s=e.elements,l=s[0],c=s[4],u=s[8],d=s[1],h=s[5],f=s[9],p=s[2],m=s[6],g=s[10];if(Math.abs(c-d)s&&e>v?ev?s=0?1:-1,r=1-t*t;if(r>Number.EPSILON){const i=Math.sqrt(r),o=Math.atan2(i,t*n);e=Math.sin(e*o)/i,a=Math.sin(a*o)/i}const i=a*n;if(s=s*e+d*i,l=l*e+h*i,c=c*e+f*i,u=u*e+p*i,e===1-a){const e=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=e,l*=e,c*=e,u*=e}}e[t]=s,e[t+1]=l,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,o){const a=n[r],s=n[r+1],l=n[r+2],c=n[r+3],u=i[o],d=i[o+1],h=i[o+2],f=i[o+3];return e[t]=a*f+c*u+s*h-l*d,e[t+1]=s*f+c*d+l*u-a*h,e[t+2]=l*f+c*h+a*d-s*u,e[t+3]=c*f-a*u-s*d-l*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,r=e._y,i=e._z,o=e._order,a=Math.cos,s=Math.sin,l=a(n/2),c=a(r/2),u=a(i/2),d=s(n/2),h=s(r/2),f=s(i/2);switch(o){case"XYZ":this._x=d*c*u+l*h*f,this._y=l*h*u-d*c*f,this._z=l*c*f+d*h*u,this._w=l*c*u-d*h*f;break;case"YXZ":this._x=d*c*u+l*h*f,this._y=l*h*u-d*c*f,this._z=l*c*f-d*h*u,this._w=l*c*u+d*h*f;break;case"ZXY":this._x=d*c*u-l*h*f,this._y=l*h*u+d*c*f,this._z=l*c*f+d*h*u,this._w=l*c*u-d*h*f;break;case"ZYX":this._x=d*c*u-l*h*f,this._y=l*h*u+d*c*f,this._z=l*c*f-d*h*u,this._w=l*c*u+d*h*f;break;case"YZX":this._x=d*c*u+l*h*f,this._y=l*h*u+d*c*f,this._z=l*c*f-d*h*u,this._w=l*c*u-d*h*f;break;case"XZY":this._x=d*c*u-l*h*f,this._y=l*h*u-d*c*f,this._z=l*c*f+d*h*u,this._w=l*c*u+d*h*f;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],r=t[4],i=t[8],o=t[1],a=t[5],s=t[9],l=t[2],c=t[6],u=t[10],d=n+a+u;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(c-s)*e,this._y=(i-l)*e,this._z=(o-r)*e}else if(n>a&&n>u){const e=2*Math.sqrt(1+n-a-u);this._w=(c-s)/e,this._x=.25*e,this._y=(r+o)/e,this._z=(i+l)/e}else if(a>u){const e=2*Math.sqrt(1+a-n-u);this._w=(i-l)/e,this._x=(r+o)/e,this._y=.25*e,this._z=(s+c)/e}else{const e=2*Math.sqrt(1+u-n-a);this._w=(o-r)/e,this._x=(i+l)/e,this._y=(s+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Xn(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,r=e._y,i=e._z,o=e._w,a=t._x,s=t._y,l=t._z,c=t._w;return this._x=n*c+o*a+r*l-i*s,this._y=r*c+o*s+i*a-n*l,this._z=i*c+o*l+n*s-r*a,this._w=o*c-n*a-r*s-i*l,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,r=this._y,i=this._z,o=this._w;let a=o*e._w+n*e._x+r*e._y+i*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;const s=1-a*a;if(s<=Number.EPSILON){const e=1-t;return this._w=e*o+t*this._w,this._x=e*n+t*this._x,this._y=e*r+t*this._y,this._z=e*i+t*this._z,this.normalize(),this}const l=Math.sqrt(s),c=Math.atan2(l,a),u=Math.sin((1-t)*c)/l,d=Math.sin(t*c)/l;return this._w=o*u+this._w*d,this._x=n*u+this._x*d,this._y=r*u+this._y*d,this._z=i*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Pr{constructor(e=0,t=0,n=0){Pr.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(kr.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(kr.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,r=this.z,i=e.elements,o=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,r=this.z,i=e.x,o=e.y,a=e.z,s=e.w,l=2*(o*r-a*n),c=2*(a*t-i*r),u=2*(i*n-o*t);return this.x=t+s*l+o*u-a*c,this.y=n+s*c+a*l-i*u,this.z=r+s*u+i*c-o*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,r=e.y,i=e.z,o=t.x,a=t.y,s=t.z;return this.x=r*s-i*a,this.y=i*o-n*s,this.z=n*a-r*o,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return Nr.copy(this).projectOnVector(e),this.sub(Nr)}reflect(e){return this.sub(Nr.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Xn(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Nr=new Pr,kr=new Or;class Dr{constructor(e=new Pr(1/0,1/0,1/0),t=new Pr(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,Br),Br.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Qr),Vr.subVectors(this.max,Qr),Ur.subVectors(e.a,Qr),zr.subVectors(e.b,Qr),jr.subVectors(e.c,Qr),$r.subVectors(zr,Ur),Hr.subVectors(jr,zr),Gr.subVectors(Ur,jr);let t=[0,-$r.z,$r.y,0,-Hr.z,Hr.y,0,-Gr.z,Gr.y,$r.z,0,-$r.x,Hr.z,0,-Hr.x,Gr.z,0,-Gr.x,-$r.y,$r.x,0,-Hr.y,Hr.x,0,-Gr.y,Gr.x,0];return!!qr(t,Ur,zr,jr,Vr)&&(t=[1,0,0,0,1,0,0,0,1],!!qr(t,Ur,zr,jr,Vr)&&(Wr.crossVectors($r,Hr),t=[Wr.x,Wr.y,Wr.z],qr(t,Ur,zr,jr,Vr)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Br).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(Br).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Lr[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Lr[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Lr[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Lr[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Lr[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Lr[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Lr[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Lr[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Lr)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Lr=[new Pr,new Pr,new Pr,new Pr,new Pr,new Pr,new Pr,new Pr],Br=new Pr,Fr=new Dr,Ur=new Pr,zr=new Pr,jr=new Pr,$r=new Pr,Hr=new Pr,Gr=new Pr,Qr=new Pr,Vr=new Pr,Wr=new Pr,Xr=new Pr;function qr(e,t,n,r,i){for(let o=0,a=e.length-3;o<=a;o+=3){Xr.fromArray(e,o);const a=i.x*Math.abs(Xr.x)+i.y*Math.abs(Xr.y)+i.z*Math.abs(Xr.z),s=t.dot(Xr),l=n.dot(Xr),c=r.dot(Xr);if(Math.max(-Math.max(s,l,c),Math.min(s,l,c))>a)return!1}return!0}const Yr=new Dr,Kr=new Pr,Jr=new Pr;class Zr{constructor(e=new Pr,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):Yr.setFromPoints(e).getCenter(n);let r=0;for(let t=0,i=e.length;tthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Kr.subVectors(e,this.center);const t=Kr.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Kr,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(Jr.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Kr.copy(e.center).add(Jr)),this.expandByPoint(Kr.copy(e.center).sub(Jr))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const ei=new Pr,ti=new Pr,ni=new Pr,ri=new Pr,ii=new Pr,oi=new Pr,ai=new Pr;class si{constructor(e=new Pr,t=new Pr(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ei)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=ei.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ei.copy(this.origin).addScaledVector(this.direction,t),ei.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){ti.copy(e).add(t).multiplyScalar(.5),ni.copy(t).sub(e).normalize(),ri.copy(this.origin).sub(ti);const i=.5*e.distanceTo(t),o=-this.direction.dot(ni),a=ri.dot(this.direction),s=-ri.dot(ni),l=ri.lengthSq(),c=Math.abs(1-o*o);let u,d,h,f;if(c>0)if(u=o*s-a,d=o*a-s,f=i*c,u>=0)if(d>=-f)if(d<=f){const e=1/c;u*=e,d*=e,h=u*(u+o*d+2*a)+d*(o*u+d+2*s)+l}else d=i,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;else d=-i,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;else d<=-f?(u=Math.max(0,-(-o*i+a)),d=u>0?-i:Math.min(Math.max(-i,-s),i),h=-u*u+d*(d+2*s)+l):d<=f?(u=0,d=Math.min(Math.max(-i,-s),i),h=d*(d+2*s)+l):(u=Math.max(0,-(o*i+a)),d=u>0?i:Math.min(Math.max(-i,-s),i),h=-u*u+d*(d+2*s)+l);else d=o>0?-i:i,u=Math.max(0,-(o*d+a)),h=-u*u+d*(d+2*s)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(ti).addScaledVector(ni,d),h}intersectSphere(e,t){ei.subVectors(e.center,this.origin);const n=ei.dot(this.direction),r=ei.dot(ei)-n*n,i=e.radius*e.radius;if(r>i)return null;const o=Math.sqrt(i-r),a=n-o,s=n+o;return s<0?null:a<0?this.at(s,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return 0===t||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,o,a,s;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return l>=0?(n=(e.min.x-d.x)*l,r=(e.max.x-d.x)*l):(n=(e.max.x-d.x)*l,r=(e.min.x-d.x)*l),c>=0?(i=(e.min.y-d.y)*c,o=(e.max.y-d.y)*c):(i=(e.max.y-d.y)*c,o=(e.min.y-d.y)*c),n>o||i>r?null:((i>n||isNaN(n))&&(n=i),(o=0?(a=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(a=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||a>r?null:((a>n||n!=n)&&(n=a),(s=0?n:r,t)))}intersectsBox(e){return null!==this.intersectBox(e,ei)}intersectTriangle(e,t,n,r,i){ii.subVectors(t,e),oi.subVectors(n,e),ai.crossVectors(ii,oi);let o,a=this.direction.dot(ai);if(a>0){if(r)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}ri.subVectors(this.origin,e);const s=o*this.direction.dot(oi.crossVectors(ri,oi));if(s<0)return null;const l=o*this.direction.dot(ii.cross(ri));if(l<0)return null;if(s+l>a)return null;const c=-o*ri.dot(ai);return c<0?null:this.at(c/a,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class li{constructor(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,m){li.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,m)}set(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,m){const g=this.elements;return g[0]=e,g[4]=t,g[8]=n,g[12]=r,g[1]=i,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=c,g[10]=u,g[14]=d,g[3]=h,g[7]=f,g[11]=p,g[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new li).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,r=1/ci.setFromMatrixColumn(e,0).length(),i=1/ci.setFromMatrixColumn(e,1).length(),o=1/ci.setFromMatrixColumn(e,2).length();return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=0,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,r=e.y,i=e.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(r),l=Math.sin(r),c=Math.cos(i),u=Math.sin(i);if("XYZ"===e.order){const e=o*c,n=o*u,r=a*c,i=a*u;t[0]=s*c,t[4]=-s*u,t[8]=l,t[1]=n+r*l,t[5]=e-i*l,t[9]=-a*s,t[2]=i-e*l,t[6]=r+n*l,t[10]=o*s}else if("YXZ"===e.order){const e=s*c,n=s*u,r=l*c,i=l*u;t[0]=e+i*a,t[4]=r*a-n,t[8]=o*l,t[1]=o*u,t[5]=o*c,t[9]=-a,t[2]=n*a-r,t[6]=i+e*a,t[10]=o*s}else if("ZXY"===e.order){const e=s*c,n=s*u,r=l*c,i=l*u;t[0]=e-i*a,t[4]=-o*u,t[8]=r+n*a,t[1]=n+r*a,t[5]=o*c,t[9]=i-e*a,t[2]=-o*l,t[6]=a,t[10]=o*s}else if("ZYX"===e.order){const e=o*c,n=o*u,r=a*c,i=a*u;t[0]=s*c,t[4]=r*l-n,t[8]=e*l+i,t[1]=s*u,t[5]=i*l+e,t[9]=n*l-r,t[2]=-l,t[6]=a*s,t[10]=o*s}else if("YZX"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*c,t[4]=i-e*u,t[8]=r*u+n,t[1]=u,t[5]=o*c,t[9]=-a*c,t[2]=-l*c,t[6]=n*u+r,t[10]=e-i*u}else if("XZY"===e.order){const e=o*s,n=o*l,r=a*s,i=a*l;t[0]=s*c,t[4]=-u,t[8]=l*c,t[1]=e*u+i,t[5]=o*c,t[9]=n*u-r,t[2]=r*u-n,t[6]=a*c,t[10]=i*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(di,e,hi)}lookAt(e,t,n){const r=this.elements;return mi.subVectors(e,t),0===mi.lengthSq()&&(mi.z=1),mi.normalize(),fi.crossVectors(n,mi),0===fi.lengthSq()&&(1===Math.abs(n.z)?mi.x+=1e-4:mi.z+=1e-4,mi.normalize(),fi.crossVectors(n,mi)),fi.normalize(),pi.crossVectors(mi,fi),r[0]=fi.x,r[4]=pi.x,r[8]=mi.x,r[1]=fi.y,r[5]=pi.y,r[9]=mi.y,r[2]=fi.z,r[6]=pi.z,r[10]=mi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,r=t.elements,i=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],c=n[1],u=n[5],d=n[9],h=n[13],f=n[2],p=n[6],m=n[10],g=n[14],v=n[3],A=n[7],y=n[11],b=n[15],x=r[0],S=r[4],E=r[8],C=r[12],w=r[1],_=r[5],I=r[9],T=r[13],M=r[2],R=r[6],O=r[10],P=r[14],N=r[3],k=r[7],D=r[11],L=r[15];return i[0]=o*x+a*w+s*M+l*N,i[4]=o*S+a*_+s*R+l*k,i[8]=o*E+a*I+s*O+l*D,i[12]=o*C+a*T+s*P+l*L,i[1]=c*x+u*w+d*M+h*N,i[5]=c*S+u*_+d*R+h*k,i[9]=c*E+u*I+d*O+h*D,i[13]=c*C+u*T+d*P+h*L,i[2]=f*x+p*w+m*M+g*N,i[6]=f*S+p*_+m*R+g*k,i[10]=f*E+p*I+m*O+g*D,i[14]=f*C+p*T+m*P+g*L,i[3]=v*x+A*w+y*M+b*N,i[7]=v*S+A*_+y*R+b*k,i[11]=v*E+A*I+y*O+b*D,i[15]=v*C+A*T+y*P+b*L,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],r=e[8],i=e[12],o=e[1],a=e[5],s=e[9],l=e[13],c=e[2],u=e[6],d=e[10],h=e[14];return e[3]*(+i*s*u-r*l*u-i*a*d+n*l*d+r*a*h-n*s*h)+e[7]*(+t*s*h-t*l*d+i*o*d-r*o*h+r*l*c-i*s*c)+e[11]*(+t*l*u-t*a*h-i*o*u+n*o*h+i*a*c-n*l*c)+e[15]*(-r*a*c-t*s*u+t*a*d+r*o*u-n*o*d+n*s*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=t,r[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],h=e[11],f=e[12],p=e[13],m=e[14],g=e[15],v=u*m*l-p*d*l+p*s*h-a*m*h-u*s*g+a*d*g,A=f*d*l-c*m*l-f*s*h+o*m*h+c*s*g-o*d*g,y=c*p*l-f*u*l+f*a*h-o*p*h-c*a*g+o*u*g,b=f*u*s-c*p*s-f*a*d+o*p*d+c*a*m-o*u*m,x=t*v+n*A+r*y+i*b;if(0===x)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const S=1/x;return e[0]=v*S,e[1]=(p*d*i-u*m*i-p*r*h+n*m*h+u*r*g-n*d*g)*S,e[2]=(a*m*i-p*s*i+p*r*l-n*m*l-a*r*g+n*s*g)*S,e[3]=(u*s*i-a*d*i-u*r*l+n*d*l+a*r*h-n*s*h)*S,e[4]=A*S,e[5]=(c*m*i-f*d*i+f*r*h-t*m*h-c*r*g+t*d*g)*S,e[6]=(f*s*i-o*m*i-f*r*l+t*m*l+o*r*g-t*s*g)*S,e[7]=(o*d*i-c*s*i+c*r*l-t*d*l-o*r*h+t*s*h)*S,e[8]=y*S,e[9]=(f*u*i-c*p*i-f*n*h+t*p*h+c*n*g-t*u*g)*S,e[10]=(o*p*i-f*a*i+f*n*l-t*p*l-o*n*g+t*a*g)*S,e[11]=(c*a*i-o*u*i-c*n*l+t*u*l+o*n*h-t*a*h)*S,e[12]=b*S,e[13]=(c*p*r-f*u*r+f*n*d-t*p*d-c*n*m+t*u*m)*S,e[14]=(f*a*r-o*p*r-f*n*s+t*p*s+o*n*m-t*a*m)*S,e[15]=(o*u*r-c*a*r+c*n*s-t*u*s-o*n*d+t*a*d)*S,this}scale(e){const t=this.elements,n=e.x,r=e.y,i=e.z;return t[0]*=n,t[4]*=r,t[8]*=i,t[1]*=n,t[5]*=r,t[9]*=i,t[2]*=n,t[6]*=r,t[10]*=i,t[3]*=n,t[7]*=r,t[11]*=i,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,r))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),r=Math.sin(t),i=1-n,o=e.x,a=e.y,s=e.z,l=i*o,c=i*a;return this.set(l*o+n,l*a-r*s,l*s+r*a,0,l*a+r*s,c*a+n,c*s-r*o,0,l*s-r*a,c*s+r*o,i*s*s+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,r,i,o){return this.set(1,n,i,0,e,1,o,0,t,r,1,0,0,0,0,1),this}compose(e,t,n){const r=this.elements,i=t._x,o=t._y,a=t._z,s=t._w,l=i+i,c=o+o,u=a+a,d=i*l,h=i*c,f=i*u,p=o*c,m=o*u,g=a*u,v=s*l,A=s*c,y=s*u,b=n.x,x=n.y,S=n.z;return r[0]=(1-(p+g))*b,r[1]=(h+y)*b,r[2]=(f-A)*b,r[3]=0,r[4]=(h-y)*x,r[5]=(1-(d+g))*x,r[6]=(m+v)*x,r[7]=0,r[8]=(f+A)*S,r[9]=(m-v)*S,r[10]=(1-(d+p))*S,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,t,n){const r=this.elements;let i=ci.set(r[0],r[1],r[2]).length();const o=ci.set(r[4],r[5],r[6]).length(),a=ci.set(r[8],r[9],r[10]).length();this.determinant()<0&&(i=-i),e.x=r[12],e.y=r[13],e.z=r[14],ui.copy(this);const s=1/i,l=1/o,c=1/a;return ui.elements[0]*=s,ui.elements[1]*=s,ui.elements[2]*=s,ui.elements[4]*=l,ui.elements[5]*=l,ui.elements[6]*=l,ui.elements[8]*=c,ui.elements[9]*=c,ui.elements[10]*=c,t.setFromRotationMatrix(ui),n.x=i,n.y=o,n.z=a,this}makePerspective(e,t,n,r,i,o,a=zn){const s=this.elements,l=2*i/(t-e),c=2*i/(n-r),u=(t+e)/(t-e),d=(n+r)/(n-r);let h,f;if(a===zn)h=-(o+i)/(o-i),f=-2*o*i/(o-i);else{if(a!==jn)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);h=-o/(o-i),f=-o*i/(o-i)}return s[0]=l,s[4]=0,s[8]=u,s[12]=0,s[1]=0,s[5]=c,s[9]=d,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=f,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this}makeOrthographic(e,t,n,r,i,o,a=zn){const s=this.elements,l=1/(t-e),c=1/(n-r),u=1/(o-i),d=(t+e)*l,h=(n+r)*c;let f,p;if(a===zn)f=(o+i)*u,p=-2*u;else{if(a!==jn)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);f=i*u,p=-1*u}return s[0]=2*l,s[4]=0,s[8]=0,s[12]=-d,s[1]=0,s[5]=2*c,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=p,s[14]=-f,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let e=0;e<16;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const ci=new Pr,ui=new li,di=new Pr(0,0,0),hi=new Pr(1,1,1),fi=new Pr,pi=new Pr,mi=new Pr,gi=new li,vi=new Or;class Ai{constructor(e=0,t=0,n=0,r=Ai.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,r=this._order){return this._x=e,this._y=t,this._z=n,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const r=e.elements,i=r[0],o=r[4],a=r[8],s=r[1],l=r[5],c=r[9],u=r[2],d=r[6],h=r[10];switch(t){case"XYZ":this._y=Math.asin(Xn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-o,i)):(this._x=Math.atan2(d,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Xn(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,i),this._z=0);break;case"ZXY":this._x=Math.asin(Xn(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(s,i));break;case"ZYX":this._y=Math.asin(-Xn(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(s,i)):(this._x=0,this._z=Math.atan2(-o,l));break;case"YZX":this._z=Math.asin(Xn(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,i)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-Xn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,l),this._y=Math.atan2(a,i)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return gi.makeRotationFromQuaternion(e),this.setFromRotationMatrix(gi,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return vi.setFromEuler(this),this.setFromQuaternion(vi,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Ai.DEFAULT_ORDER="XYZ";class yi{constructor(){this.mask=1}set(e){this.mask=1<>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),null!==this._colorsTexture&&(r.colorsTexture=this._colorsTexture.toJSON(e)),null!==this.boundingSphere&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),null!==this.boundingBox&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=r,n;function o(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let t=0;t0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Li.subVectors(r,t),Bi.subVectors(n,t),Fi.subVectors(e,t);const o=Li.dot(Li),a=Li.dot(Bi),s=Li.dot(Fi),l=Bi.dot(Bi),c=Bi.dot(Fi),u=o*l-a*a;if(0===u)return i.set(0,0,0),null;const d=1/u,h=(l*s-a*c)*d,f=(o*c-a*s)*d;return i.set(1-h-f,f,h)}static containsPoint(e,t,n,r){return null!==this.getBarycoord(e,t,n,r,Ui)&&Ui.x>=0&&Ui.y>=0&&Ui.x+Ui.y<=1}static getInterpolation(e,t,n,r,i,o,a,s){return null===this.getBarycoord(e,t,n,r,Ui)?(s.x=0,s.y=0,"z"in s&&(s.z=0),"w"in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Ui.x),s.addScaledVector(o,Ui.y),s.addScaledVector(a,Ui.z),s)}static isFrontFacing(e,t,n,r){return Li.subVectors(n,t),Bi.subVectors(e,t),Li.cross(Bi).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Li.subVectors(this.c,this.b),Bi.subVectors(this.a,this.b),.5*Li.cross(Bi).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Vi.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Vi.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,r,i){return Vi.getInterpolation(e,this.a,this.b,this.c,t,n,r,i)}containsPoint(e){return Vi.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Vi.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,r=this.b,i=this.c;let o,a;zi.subVectors(r,n),ji.subVectors(i,n),Hi.subVectors(e,n);const s=zi.dot(Hi),l=ji.dot(Hi);if(s<=0&&l<=0)return t.copy(n);Gi.subVectors(e,r);const c=zi.dot(Gi),u=ji.dot(Gi);if(c>=0&&u<=c)return t.copy(r);const d=s*u-c*l;if(d<=0&&s>=0&&c<=0)return o=s/(s-c),t.copy(n).addScaledVector(zi,o);Qi.subVectors(e,i);const h=zi.dot(Qi),f=ji.dot(Qi);if(f>=0&&h<=f)return t.copy(i);const p=h*l-s*f;if(p<=0&&l>=0&&f<=0)return a=l/(l-f),t.copy(n).addScaledVector(ji,a);const m=c*f-h*u;if(m<=0&&u-c>=0&&h-f>=0)return $i.subVectors(i,r),a=(u-c)/(u-c+(h-f)),t.copy(r).addScaledVector($i,a);const g=1/(m+p+d);return o=p*g,a=d*g,t.copy(n).addScaledVector(zi,o).addScaledVector(ji,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const Wi={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},Xi={h:0,s:0,l:0},qi={h:0,s:0,l:0};function Yi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Ki{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Yt){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,pr.toWorkingColorSpace(this,t),this}setRGB(e,t,n,r=pr.workingColorSpace){return this.r=e,this.g=t,this.b=n,pr.toWorkingColorSpace(this,r),this}setHSL(e,t,n,r=pr.workingColorSpace){if(e=qn(e,1),t=Xn(t,0,1),n=Xn(n,0,1),0===t)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Yi(i,r,e+1/3),this.g=Yi(i,r,e),this.b=Yi(i,r,e-1/3)}return pr.toWorkingColorSpace(this,r),this}setStyle(e,t=Yt){function n(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i;const o=r[1],a=r[2];switch(o){case"rgb":case"rgba":if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case"hsl":case"hsla":if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const n=r[1],i=n.length;if(3===i)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(6===i)return this.setHex(parseInt(n,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Yt){const n=Wi[e.toLowerCase()];return void 0!==n?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=mr(e.r),this.g=mr(e.g),this.b=mr(e.b),this}copyLinearToSRGB(e){return this.r=gr(e.r),this.g=gr(e.g),this.b=gr(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Yt){return pr.fromWorkingColorSpace(Ji.copy(this),e),65536*Math.round(Xn(255*Ji.r,0,255))+256*Math.round(Xn(255*Ji.g,0,255))+Math.round(Xn(255*Ji.b,0,255))}getHexString(e=Yt){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=pr.workingColorSpace){pr.fromWorkingColorSpace(Ji.copy(this),t);const n=Ji.r,r=Ji.g,i=Ji.b,o=Math.max(n,r,i),a=Math.min(n,r,i);let s,l;const c=(a+o)/2;if(a===o)s=0,l=0;else{const e=o-a;switch(l=c<=.5?e/(o+a):e/(2-o-a),o){case n:s=(r-i)/e+(r0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const r=this[t];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n:console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function r(e){const t=[];for(const n in e){const r=e[n];delete r.metadata,t.push(r)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(n.dispersion=this.dispersion),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==A&&(n.blending=this.blending),this.side!==p&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),this.blendSrc!==P&&(n.blendSrc=this.blendSrc),this.blendDst!==N&&(n.blendDst=this.blendDst),this.blendEquation!==E&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==V&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==bn&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==an&&(n.stencilFail=this.stencilFail),this.stencilZFail!==an&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==an&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}}class to extends eo{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Ki(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ai,this.combine=K,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const no=ro();function ro(){const e=new ArrayBuffer(4),t=new Float32Array(e),n=new Uint32Array(e),r=new Uint32Array(512),i=new Uint32Array(512);for(let e=0;e<256;++e){const t=e-127;t<-27?(r[e]=0,r[256|e]=32768,i[e]=24,i[256|e]=24):t<-14?(r[e]=1024>>-t-14,r[256|e]=1024>>-t-14|32768,i[e]=-t-1,i[256|e]=-t-1):t<=15?(r[e]=t+15<<10,r[256|e]=t+15<<10|32768,i[e]=13,i[256|e]=13):t<128?(r[e]=31744,r[256|e]=64512,i[e]=24,i[256|e]=24):(r[e]=31744,r[256|e]=64512,i[e]=13,i[256|e]=13)}const o=new Uint32Array(2048),a=new Uint32Array(64),s=new Uint32Array(64);for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;!(8388608&t);)t<<=1,n-=8388608;t&=-8388609,n+=947912704,o[e]=t|n}for(let e=1024;e<2048;++e)o[e]=939524096+(e-1024<<13);for(let e=1;e<31;++e)a[e]=e<<23;a[31]=1199570944,a[32]=2147483648;for(let e=33;e<63;++e)a[e]=2147483648+(e-32<<23);a[63]=3347054592;for(let e=1;e<64;++e)32!==e&&(s[e]=1024);return{floatView:t,uint32View:n,baseTable:r,shiftTable:i,mantissaTable:o,exponentTable:a,offsetTable:s}}function io(e){Math.abs(e)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),e=Xn(e,-65504,65504),no.floatView[0]=e;const t=no.uint32View[0],n=t>>23&511;return no.baseTable[n]+((8388607&t)>>no.shiftTable[n])}function oo(e){const t=e>>10;return no.uint32View[0]=no.mantissaTable[no.offsetTable[t]+(1023&e)]+no.exponentTable[t],no.floatView[0]}const ao={toHalfFloat:io,fromHalfFloat:oo},so=new Pr,lo=new er;class co{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=Mn,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=De,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return cr("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;r0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const t in n){const r=n[t];e.data.attributes[t]=r.toJSON(e.data)}const r={};let i=!1;for(const t in this.morphAttributes){const n=this.morphAttributes[t],o=[];for(let t=0,r=n.length;t0&&(r[t]=o,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const r=e.attributes;for(const e in r){const n=r[e];this.setAttribute(e,n.clone(t))}const i=e.morphAttributes;for(const e in i){const n=[],r=i[e];for(let e=0,i=r.length;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)return}To.copy(i).invert(),Mo.copy(e.ray).applyMatrix4(To),null!==n.boundingBox&&!1===Mo.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,Mo)}}_computeIntersections(e,t,n){let r;const i=this.geometry,o=this.material,a=i.index,s=i.attributes.position,l=i.attributes.uv,c=i.attributes.uv1,u=i.attributes.normal,d=i.groups,h=i.drawRange;if(null!==a)if(Array.isArray(o))for(let i=0,s=d.length;in.far?null:{distance:c,point:Go.clone(),object:e}}(e,t,n,r,Po,No,ko,Ho);if(u){i&&(Bo.fromBufferAttribute(i,s),Fo.fromBufferAttribute(i,l),Uo.fromBufferAttribute(i,c),u.uv=Vi.getInterpolation(Ho,Po,No,ko,Bo,Fo,Uo,new er)),o&&(Bo.fromBufferAttribute(o,s),Fo.fromBufferAttribute(o,l),Uo.fromBufferAttribute(o,c),u.uv1=Vi.getInterpolation(Ho,Po,No,ko,Bo,Fo,Uo,new er)),a&&(zo.fromBufferAttribute(a,s),jo.fromBufferAttribute(a,l),$o.fromBufferAttribute(a,c),u.normal=Vi.getInterpolation(Ho,Po,No,ko,zo,jo,$o,new Pr),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const e={a:s,b:l,c,normal:new Pr,materialIndex:0};Vi.getNormal(Po,No,ko,e.normal),u.face=e}return u}class Wo extends Io{constructor(e=1,t=1,n=1,r=1,i=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};const a=this;r=Math.floor(r),i=Math.floor(i),o=Math.floor(o);const s=[],l=[],c=[],u=[];let d=0,h=0;function f(e,t,n,r,i,o,f,p,m,g,v){const A=o/m,y=f/g,b=o/2,x=f/2,S=p/2,E=m+1,C=g+1;let w=0,_=0;const I=new Pr;for(let o=0;o0?1:-1,c.push(I.x,I.y,I.z),u.push(s/m),u.push(1-o/g),w+=1}}for(let e=0;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const e in this.extensions)!0===this.extensions[e]&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Zo extends Di{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new li,this.projectionMatrix=new li,this.projectionMatrixInverse=new li,this.coordinateSystem=zn}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const ea=new Pr,ta=new er,na=new er;class ra extends Zo{constructor(e=50,t=1,n=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=r,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Vn*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*Qn*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Vn*Math.atan(Math.tan(.5*Qn*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){ea.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ea.x,ea.y).multiplyScalar(-e/ea.z),ea.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ea.x,ea.y).multiplyScalar(-e/ea.z)}getViewSize(e,t){return this.getViewBounds(e,ta,na),t.subVectors(na,ta)}setViewOffset(e,t,n,r,i,o){this.aspect=e/t,null===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=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*Qn*this.fov)/this.zoom,n=2*t,r=this.aspect*n,i=-.5*r;const o=this.view;if(null!==this.view&&this.view.enabled){const e=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/e,t-=o.offsetY*n/a,r*=o.width/e,n*=o.height/a}const a=this.filmOffset;0!==a&&(i+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const ia=-90;class oa extends Di{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new ra(ia,1,e,t);r.layers=this.layers,this.add(r);const i=new ra(ia,1,e,t);i.layers=this.layers,this.add(i);const o=new ra(ia,1,e,t);o.layers=this.layers,this.add(o);const a=new ra(ia,1,e,t);a.layers=this.layers,this.add(a);const s=new ra(ia,1,e,t);s.layers=this.layers,this.add(s);const l=new ra(ia,1,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,r,i,o,a,s]=t;for(const e of t)this.remove(e);if(e===zn)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else{if(e!==jn)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1)}for(const e of t)this.add(e),e.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[i,o,a,s,l,c]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),f=e.xr.enabled;e.xr.enabled=!1;const p=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,r),e.render(t,i),e.setRenderTarget(n,1,r),e.render(t,o),e.setRenderTarget(n,2,r),e.render(t,a),e.setRenderTarget(n,3,r),e.render(t,s),e.setRenderTarget(n,4,r),e.render(t,l),n.texture.generateMipmaps=p,e.setRenderTarget(n,5,r),e.render(t,c),e.setRenderTarget(u,d,h),e.xr.enabled=f,n.texture.needsPMREMUpdate=!0}}class aa extends Er{constructor(e,t,n,r,i,o,a,s,l,c){super(e=void 0!==e?e:[],t=void 0!==t?t:de,n,r,i,o,a,s,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class sa extends _r{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new aa(r,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:Ce}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={tEquirect:{value:null}},r="\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",i="\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t",o=new Wo(5,5,5),a=new Jo({name:"CubemapFromEquirect",uniforms:Xo(n),vertexShader:r,fragmentShader:i,side:m,blending:v});a.uniforms.tEquirect.value=t;const s=new Qo(o,a),l=t.minFilter;return t.minFilter===Ie&&(t.minFilter=Ce),new oa(1,10,this).update(e,s),t.minFilter=l,s.geometry.dispose(),s.material.dispose(),this}clear(e,t,n,r){const i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}}const la=new Pr,ca=new Pr,ua=new tr;class da{constructor(e=new Pr(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,r){return this.normal.set(e,t,n),this.constant=r,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const r=la.subVectors(n,t).cross(ca.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(la),r=this.normal.dot(n);if(0===r)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const i=-(e.start.dot(this.normal)+this.constant)/r;return i<0||i>1?null:t.copy(e.start).addScaledVector(n,i)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||ua.getNormalMatrix(e),r=this.coplanarPoint(la).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const ha=new Zr,fa=new Pr;class pa{constructor(e=new da,t=new da,n=new da,r=new da,i=new da,o=new da){this.planes=[e,t,n,r,i,o]}set(e,t,n,r,i,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(r),a[4].copy(i),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=zn){const n=this.planes,r=e.elements,i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=r[6],d=r[7],h=r[8],f=r[9],p=r[10],m=r[11],g=r[12],v=r[13],A=r[14],y=r[15];if(n[0].setComponents(s-i,d-l,m-h,y-g).normalize(),n[1].setComponents(s+i,d+l,m+h,y+g).normalize(),n[2].setComponents(s+o,d+c,m+f,y+v).normalize(),n[3].setComponents(s-o,d-c,m-f,y-v).normalize(),n[4].setComponents(s-a,d-u,m-p,y-A).normalize(),t===zn)n[5].setComponents(s+a,d+u,m+p,y+A).normalize();else{if(t!==jn)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(a,u,p,A).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),ha.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),ha.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(ha)}intersectsSprite(e){return ha.center.set(0,0,0),ha.radius=.7071067811865476,ha.applyMatrix4(e.matrixWorld),this.intersectsSphere(ha)}intersectsSphere(e){const t=this.planes,n=e.center,r=-e.radius;for(let e=0;e<6;e++)if(t[e].distanceToPoint(n)0?e.max.x:e.min.x,fa.y=r.normal.y>0?e.max.y:e.min.y,fa.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(fa)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function ma(){let e=null,t=!1,n=null,r=null;function i(t,o){n(t,o),r=e.requestAnimationFrame(i)}return{start:function(){!0!==t&&null!==n&&(r=e.requestAnimationFrame(i),t=!0)},stop:function(){e.cancelAnimationFrame(r),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function ga(e){const t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);const r=t.get(n);r&&(e.deleteBuffer(r.buffer),t.delete(n))},update:function(n,r){if(n.isGLBufferAttribute){const e=t.get(n);return void((!e||e.version 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n\tvec3 batchingColor = getBatchingColor( batchId );\n\tvColor.xyz *= batchingColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif ( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t#endif\n\tuniform sampler2DArray morphTargetsTexture;\n\tuniform ivec2 morphTargetsTextureSize;\n\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t}\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},ya={common:{diffuse:{value:new Ki(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new tr},alphaMap:{value:null},alphaMapTransform:{value:new tr},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new tr}},envmap:{envMap:{value:null},envMapRotation:{value:new tr},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new tr}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new tr}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new tr},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new tr},normalScale:{value:new er(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new tr},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new tr}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new tr}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new tr}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ki(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ki(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new tr},alphaTest:{value:0},uvTransform:{value:new tr}},sprite:{diffuse:{value:new Ki(16777215)},opacity:{value:1},center:{value:new er(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new tr},alphaMap:{value:null},alphaMapTransform:{value:new tr},alphaTest:{value:0}}},ba={basic:{uniforms:qo([ya.common,ya.specularmap,ya.envmap,ya.aomap,ya.lightmap,ya.fog]),vertexShader:Aa.meshbasic_vert,fragmentShader:Aa.meshbasic_frag},lambert:{uniforms:qo([ya.common,ya.specularmap,ya.envmap,ya.aomap,ya.lightmap,ya.emissivemap,ya.bumpmap,ya.normalmap,ya.displacementmap,ya.fog,ya.lights,{emissive:{value:new Ki(0)}}]),vertexShader:Aa.meshlambert_vert,fragmentShader:Aa.meshlambert_frag},phong:{uniforms:qo([ya.common,ya.specularmap,ya.envmap,ya.aomap,ya.lightmap,ya.emissivemap,ya.bumpmap,ya.normalmap,ya.displacementmap,ya.fog,ya.lights,{emissive:{value:new Ki(0)},specular:{value:new Ki(1118481)},shininess:{value:30}}]),vertexShader:Aa.meshphong_vert,fragmentShader:Aa.meshphong_frag},standard:{uniforms:qo([ya.common,ya.envmap,ya.aomap,ya.lightmap,ya.emissivemap,ya.bumpmap,ya.normalmap,ya.displacementmap,ya.roughnessmap,ya.metalnessmap,ya.fog,ya.lights,{emissive:{value:new Ki(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Aa.meshphysical_vert,fragmentShader:Aa.meshphysical_frag},toon:{uniforms:qo([ya.common,ya.aomap,ya.lightmap,ya.emissivemap,ya.bumpmap,ya.normalmap,ya.displacementmap,ya.gradientmap,ya.fog,ya.lights,{emissive:{value:new Ki(0)}}]),vertexShader:Aa.meshtoon_vert,fragmentShader:Aa.meshtoon_frag},matcap:{uniforms:qo([ya.common,ya.bumpmap,ya.normalmap,ya.displacementmap,ya.fog,{matcap:{value:null}}]),vertexShader:Aa.meshmatcap_vert,fragmentShader:Aa.meshmatcap_frag},points:{uniforms:qo([ya.points,ya.fog]),vertexShader:Aa.points_vert,fragmentShader:Aa.points_frag},dashed:{uniforms:qo([ya.common,ya.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Aa.linedashed_vert,fragmentShader:Aa.linedashed_frag},depth:{uniforms:qo([ya.common,ya.displacementmap]),vertexShader:Aa.depth_vert,fragmentShader:Aa.depth_frag},normal:{uniforms:qo([ya.common,ya.bumpmap,ya.normalmap,ya.displacementmap,{opacity:{value:1}}]),vertexShader:Aa.meshnormal_vert,fragmentShader:Aa.meshnormal_frag},sprite:{uniforms:qo([ya.sprite,ya.fog]),vertexShader:Aa.sprite_vert,fragmentShader:Aa.sprite_frag},background:{uniforms:{uvTransform:{value:new tr},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Aa.background_vert,fragmentShader:Aa.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new tr}},vertexShader:Aa.backgroundCube_vert,fragmentShader:Aa.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Aa.cube_vert,fragmentShader:Aa.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Aa.equirect_vert,fragmentShader:Aa.equirect_frag},distanceRGBA:{uniforms:qo([ya.common,ya.displacementmap,{referencePosition:{value:new Pr},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Aa.distanceRGBA_vert,fragmentShader:Aa.distanceRGBA_frag},shadow:{uniforms:qo([ya.lights,ya.fog,{color:{value:new Ki(0)},opacity:{value:1}}]),vertexShader:Aa.shadow_vert,fragmentShader:Aa.shadow_frag}};ba.physical={uniforms:qo([ba.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new tr},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new tr},clearcoatNormalScale:{value:new er(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new tr},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new tr},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new tr},sheen:{value:0},sheenColor:{value:new Ki(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new tr},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new tr},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new tr},transmissionSamplerSize:{value:new er},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new tr},attenuationDistance:{value:0},attenuationColor:{value:new Ki(0)},specularColor:{value:new Ki(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new tr},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new tr},anisotropyVector:{value:new er},anisotropyMap:{value:null},anisotropyMapTransform:{value:new tr}}]),vertexShader:Aa.meshphysical_vert,fragmentShader:Aa.meshphysical_frag};const xa={r:0,b:0,g:0},Sa=new Ai,Ea=new li;function Ca(e,t,n,r,i,o,a){const s=new Ki(0);let l,c,u=!0===o?0:1,d=null,h=0,f=null;function g(e){let r=!0===e.isScene?e.background:null;return r&&r.isTexture&&(r=(e.backgroundBlurriness>0?n:t).get(r)),r}function v(t,n){t.getRGB(xa,Yo(e)),r.buffers.color.setClear(xa.r,xa.g,xa.b,n,a)}return{getClearColor:function(){return s},setClearColor:function(e,t=1){s.set(e),u=t,v(s,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,v(s,u)},render:function(t){let n=!1;const i=g(t);null===i?v(s,u):i&&i.isColor&&(v(i,1),n=!0);const o=e.xr.getEnvironmentBlendMode();"additive"===o?r.buffers.color.setClear(0,0,0,1,a):"alpha-blend"===o&&r.buffers.color.setClear(0,0,0,0,a),(e.autoClear||n)&&(r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))},addToRenderList:function(t,n){const r=g(n);r&&(r.isCubeTexture||r.mapping===me)?(void 0===c&&(c=new Qo(new Wo(1,1,1),new Jo({name:"BackgroundCubeMaterial",uniforms:Xo(ba.backgroundCube.uniforms),vertexShader:ba.backgroundCube.vertexShader,fragmentShader:ba.backgroundCube.fragmentShader,side:m,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(c)),Sa.copy(n.backgroundRotation),Sa.x*=-1,Sa.y*=-1,Sa.z*=-1,r.isCubeTexture&&!1===r.isRenderTargetTexture&&(Sa.y*=-1,Sa.z*=-1),c.material.uniforms.envMap.value=r,c.material.uniforms.flipEnvMap.value=r.isCubeTexture&&!1===r.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4(Ea.makeRotationFromEuler(Sa)),c.material.toneMapped=pr.getTransfer(r.colorSpace)!==tn,d===r&&h===r.version&&f===e.toneMapping||(c.material.needsUpdate=!0,d=r,h=r.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null)):r&&r.isTexture&&(void 0===l&&(l=new Qo(new va(2,2),new Jo({name:"BackgroundMaterial",uniforms:Xo(ba.background.uniforms),vertexShader:ba.background.vertexShader,fragmentShader:ba.background.fragmentShader,side:p,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=r,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.toneMapped=pr.getTransfer(r.colorSpace)!==tn,!0===r.matrixAutoUpdate&&r.updateMatrix(),l.material.uniforms.uvTransform.value.copy(r.matrix),d===r&&h===r.version&&f===e.toneMapping||(l.material.needsUpdate=!0,d=r,h=r.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null))}}}function wa(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=c(null);let o=i,a=!1;function s(t){return e.bindVertexArray(t)}function l(t){return e.deleteVertexArray(t)}function c(e){const t=[],r=[],i=[];for(let e=0;e=0){const n=i[t];let r=a[t];if(void 0===r&&("instanceMatrix"===t&&e.instanceMatrix&&(r=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(r=e.instanceColor)),void 0===n)return!0;if(n.attribute!==r)return!0;if(r&&n.data!==r.data)return!0;s++}return o.attributesNum!==s||o.index!==r}(n,m,l,g),v&&function(e,t,n,r){const i={},a=t.attributes;let s=0;const l=n.getAttributes();for(const t in l)if(l[t].location>=0){let n=a[t];void 0===n&&("instanceMatrix"===t&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===t&&e.instanceColor&&(n=e.instanceColor));const r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}o.attributes=i,o.attributesNum=s,o.index=r}(n,m,l,g),null!==g&&t.update(g,e.ELEMENT_ARRAY_BUFFER),(v||a)&&(a=!1,function(n,r,i,o){u();const a=o.attributes,s=i.getAttributes(),l=r.defaultAttributeValues;for(const r in s){const i=s[r];if(i.location>=0){let s=a[r];if(void 0===s&&("instanceMatrix"===r&&n.instanceMatrix&&(s=n.instanceMatrix),"instanceColor"===r&&n.instanceColor&&(s=n.instanceColor)),void 0!==s){const r=s.normalized,a=s.itemSize,l=t.get(s);if(void 0===l)continue;const c=l.buffer,u=l.type,f=l.bytesPerElement,m=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===Ne;if(s.isInterleavedBufferAttribute){const t=s.data,l=t.stride,g=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let a=void 0!==n.precision?n.precision:"highp";const s=o(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const l=!0===n.logarithmicDepthBuffer,c=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),u=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");i=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:o,textureFormatReadable:function(t){return t===He||r.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)},textureTypeReadable:function(n){const i=n===Le&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return!(n!==Me&&r.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)&&n!==De&&!i)},precision:a,logarithmicDepthBuffer:l,maxTextures:c,maxVertexTextures:u,maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE),maxCubemapSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),maxAttributes:e.getParameter(e.MAX_VERTEX_ATTRIBS),maxVertexUniforms:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:u>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function Ta(e){const t=this;let n=null,r=0,i=!1,o=!1;const a=new da,s=new tr,l={value:null,needsUpdate:!1};function c(e,n,r,i){const o=null!==e?e.length:0;let c=null;if(0!==o){if(c=l.value,!0!==i||null===c){const t=r+4*o,i=n.matrixWorldInverse;s.getNormalMatrix(i),(null===c||c.length0),t.numPlanes=r,t.numIntersection=0);else{const e=o?0:r,t=4*e;let i=p.clippingState||null;l.value=i,i=c(d,s,t,u);for(let e=0;e!==t;++e)i[e]=n[e];p.clippingState=i,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}}}function Ma(e){let t=new WeakMap;function n(e,t){return t===fe?e.mapping=de:t===pe&&(e.mapping=he),e}function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping;if(o===fe||o===pe){if(t.has(i))return n(t.get(i).texture,i.mapping);{const o=i.image;if(o&&o.height>0){const a=new sa(o.height);return a.fromEquirectangularTexture(e,i),t.set(i,a),i.addEventListener("dispose",r),n(a.texture,i.mapping)}return null}}}return i},dispose:function(){t=new WeakMap}}}class Ra extends Zo{constructor(e=-1,t=1,n=1,r=-1,i=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=r,this.near=i,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,r,i,o){null===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=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let i=n-e,o=n+e,a=r+t,s=r-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;i+=e*this.view.offsetX,o=i+e*this.view.width,a-=t*this.view.offsetY,s=a-t*this.view.height}this.projectionMatrix.makeOrthographic(i,o,a,s,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const Oa=[.125,.215,.35,.446,.526,.582],Pa=new Ra,Na=new Ki;let ka=null,Da=0,La=0,Ba=!1;const Fa=(1+Math.sqrt(5))/2,Ua=1/Fa,za=[new Pr(-Fa,Ua,0),new Pr(Fa,Ua,0),new Pr(-Ua,0,Fa),new Pr(Ua,0,Fa),new Pr(0,Fa,-Ua),new Pr(0,Fa,Ua),new Pr(-1,1,-1),new Pr(1,1,-1),new Pr(-1,1,1),new Pr(1,1,1)];class ja{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,r=100){ka=this._renderer.getRenderTarget(),Da=this._renderer.getActiveCubeFace(),La=this._renderer.getActiveMipmapLevel(),Ba=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const i=this._allocateTargets();return i.depthBuffer=!0,this._sceneToCubeUV(e,n,r,i),t>0&&this._blur(i,0,0,t),this._applyPMREM(i),this._cleanup(i),i}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Qa(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=Ga(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;ee-4?s=Oa[a-e+4-1]:0===a&&(s=0),r.push(s);const l=1/(o-2),c=-l,u=1+l,d=[c,c,u,c,u,u,c,c,u,u,c,u],h=6,f=6,p=3,m=2,g=1,v=new Float32Array(p*f*h),A=new Float32Array(m*f*h),y=new Float32Array(g*f*h);for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];v.set(r,p*f*e),A.set(d,m*f*e);const i=[e,e,e,e,e,e];y.set(i,g*f*e)}const b=new Io;b.setAttribute("position",new co(v,p)),b.setAttribute("uv",new co(A,m)),b.setAttribute("faceIndex",new co(y,g)),t.push(b),i>4&&i--}return{lodPlanes:t,sizeLods:n,sigmas:r}}(r)),this._blurMaterial=function(e,t,n){const r=new Float32Array(20),i=new Pr(0,1,0);return new Jo({name:"SphericalGaussianBlur",defines:{n:20,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:v,depthTest:!1,depthWrite:!1})}(r,e,t)}return r}_compileMaterial(e){const t=new Qo(this._lodPlanes[0],e);this._renderer.compile(t,Pa)}_sceneToCubeUV(e,t,n,r){const i=new ra(90,1,t,n),o=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],s=this._renderer,l=s.autoClear,c=s.toneMapping;s.getClearColor(Na),s.toneMapping=ee,s.autoClear=!1;const u=new to({name:"PMREM.Background",side:m,depthWrite:!1,depthTest:!1}),d=new Qo(new Wo,u);let h=!1;const f=e.background;f?f.isColor&&(u.color.copy(f),e.background=null,h=!0):(u.color.copy(Na),h=!0);for(let t=0;t<6;t++){const n=t%3;0===n?(i.up.set(0,o[t],0),i.lookAt(a[t],0,0)):1===n?(i.up.set(0,0,o[t]),i.lookAt(0,a[t],0)):(i.up.set(0,o[t],0),i.lookAt(0,0,a[t]));const l=this._cubeSize;Ha(r,n*l,t>2?l:0,l,l),s.setRenderTarget(r),h&&s.render(d,i),s.render(e,i)}d.geometry.dispose(),d.material.dispose(),s.toneMapping=c,s.autoClear=l,e.background=f}_textureToCubeUV(e,t){const n=this._renderer,r=e.mapping===de||e.mapping===he;r?(null===this._cubemapMaterial&&(this._cubemapMaterial=Qa()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=Ga());const i=r?this._cubemapMaterial:this._equirectMaterial,o=new Qo(this._lodPlanes[0],i);i.uniforms.envMap.value=e;const a=this._cubeSize;Ha(t,0,0,3*a,2*a),n.setRenderTarget(t),n.render(o,Pa)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const r=this._lodPlanes.length;for(let t=1;t20&&console.warn(`sigmaRadians, ${i}, is too large and will clip, as it requested ${p} samples when the maximum is set to 20`);const m=[];let g=0;for(let e=0;e<20;++e){const t=e/f,n=Math.exp(-t*t/2);m.push(n),0===e?g+=n:ev-4?r-v+4:0),4*(this._cubeSize-A),3*A,2*A),s.setRenderTarget(t),s.render(c,Pa)}}function $a(e,t,n){const r=new _r(e,t,n);return r.texture.mapping=me,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function Ha(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Ga(){return new Jo({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:v,depthTest:!1,depthWrite:!1})}function Qa(){return new Jo({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t",fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:v,depthTest:!1,depthWrite:!1})}function Va(e){let t=new WeakMap,n=null;function r(e){const n=e.target;n.removeEventListener("dispose",r);const i=t.get(n);void 0!==i&&(t.delete(n),i.dispose())}return{get:function(i){if(i&&i.isTexture){const o=i.mapping,a=o===fe||o===pe,s=o===de||o===he;if(a||s){let o=t.get(i);const l=void 0!==o?o.texture.pmremVersion:0;if(i.isRenderTargetTexture&&i.pmremVersion!==l)return null===n&&(n=new ja(e)),o=a?n.fromEquirectangular(i,o):n.fromCubemap(i,o),o.texture.pmremVersion=i.pmremVersion,t.set(i,o),o.texture;if(void 0!==o)return o.texture;{const l=i.image;return a&&l&&l.height>0||s&&l&&function(e){let t=0;for(let n=0;n<6;n++)void 0!==e[n]&&t++;return 6===t}(l)?(null===n&&(n=new ja(e)),o=a?n.fromEquirectangular(i):n.fromCubemap(i),o.texture.pmremVersion=i.pmremVersion,t.set(i,o),i.addEventListener("dispose",r),o.texture):null}}}return i},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function Wa(e){const t={};function n(n){if(void 0!==t[n])return t[n];let r;switch(n){case"WEBGL_depth_texture":r=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=e.getExtension(n)}return t[n]=r,r}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){const t=n(e);return null===t&&cr("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Xa(e,t,n,r){const i={},o=new WeakMap;function a(e){const s=e.target;null!==s.index&&t.remove(s.index);for(const e in s.attributes)t.remove(s.attributes[e]);for(const e in s.morphAttributes){const n=s.morphAttributes[e];for(let e=0,r=n.length;et.maxTextureSize&&(b=Math.ceil(y/t.maxTextureSize),y=t.maxTextureSize);const x=new Float32Array(y*b*4*u),S=new Ir(x,y,b,u);S.type=De,S.needsUpdate=!0;const E=4*A;for(let w=0;w0)return e;const i=t*n;let o=os[i];if(void 0===o&&(o=new Float32Array(i),os[i]=o),0!==t){r.toArray(o,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(o,i)}return o}function ds(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n":" "} ${i}: ${n[e]}`)}return r.join("\n")}(e.getShaderSource(t),r)}return i}function ll(e,t){const n=function(e){const t=pr.getPrimaries(pr.workingColorSpace),n=pr.getPrimaries(e);let r;switch(t===n?r="":t===rn&&n===nn?r="LinearDisplayP3ToLinearSRGB":t===nn&&n===rn&&(r="LinearSRGBToLinearDisplayP3"),e){case Kt:case Zt:return[r,"LinearTransferOETF"];case Yt:case Jt:return[r,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",e),[r,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function cl(e,t){let n;switch(t){case te:n="Linear";break;case ne:n="Reinhard";break;case re:n="OptimizedCineon";break;case ie:n="ACESFilmic";break;case ae:n="AgX";break;case se:n="Neutral";break;case oe:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",t),n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function ul(e){return""!==e}function dl(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function hl(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const fl=/^[ \t]*#include +<([\w\d./]+)>/gm;function pl(e){return e.replace(fl,gl)}const ml=new Map;function gl(e,t){let n=Aa[t];if(void 0===n){const e=ml.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Aa[e],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',t,e)}return pl(n)}const vl=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Al(e){return e.replace(vl,yl)}function yl(e,t,n,r){let i="";for(let e=parseInt(t);e0&&(y+="\n"),b=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,v].filter(ul).join("\n"),b.length>0&&(b+="\n")):(y=[bl(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,v,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(ul).join("\n"),b=[bl(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+p:"",m?"#define CUBEUV_TEXEL_WIDTH "+m.texelWidth:"",m?"#define CUBEUV_TEXEL_HEIGHT "+m.texelHeight:"",m?"#define CUBEUV_MAX_MIP "+m.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==ee?"#define TONE_MAPPING":"",n.toneMapping!==ee?Aa.tonemapping_pars_fragment:"",n.toneMapping!==ee?cl("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Aa.colorspace_pars_fragment,ll("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(ul).join("\n")),a=pl(a),a=dl(a,n),a=hl(a,n),s=pl(s),s=dl(s,n),s=hl(s,n),a=Al(a),s=Al(s),!0!==n.isRawShaderMaterial&&(x="#version 300 es\n",y=[g,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+y,b=["#define varying in",n.glslVersion===Un?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Un?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+b);const S=x+y+a,E=x+b+s,C=ol(i,i.VERTEX_SHADER,S),w=ol(i,i.FRAGMENT_SHADER,E);function _(t){if(e.debug.checkShaderErrors){const n=i.getProgramInfoLog(A).trim(),r=i.getShaderInfoLog(C).trim(),o=i.getShaderInfoLog(w).trim();let a=!0,s=!0;if(!1===i.getProgramParameter(A,i.LINK_STATUS))if(a=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(i,A,C,w);else{const e=sl(i,C,"vertex"),r=sl(i,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(A,i.VALIDATE_STATUS)+"\n\nMaterial Name: "+t.name+"\nMaterial Type: "+t.type+"\n\nProgram Info Log: "+n+"\n"+e+"\n"+r)}else""!==n?console.warn("THREE.WebGLProgram: Program Info Log:",n):""!==r&&""!==o||(s=!1);s&&(t.diagnostics={runnable:a,programLog:n,vertexShader:{log:r,prefix:y},fragmentShader:{log:o,prefix:b}})}i.deleteShader(C),i.deleteShader(w),I=new il(i,A),T=function(e,t){const n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i0,q=o.clearcoat>0,Y=o.dispersion>0,K=o.iridescence>0,J=o.sheen>0,Z=o.transmission>0,te=X&&!!o.anisotropyMap,ne=q&&!!o.clearcoatMap,re=q&&!!o.clearcoatNormalMap,ie=q&&!!o.clearcoatRoughnessMap,oe=K&&!!o.iridescenceMap,ae=K&&!!o.iridescenceThicknessMap,se=J&&!!o.sheenColorMap,le=J&&!!o.sheenRoughnessMap,ce=!!o.specularMap,ue=!!o.specularColorMap,de=!!o.specularIntensityMap,he=Z&&!!o.transmissionMap,fe=Z&&!!o.thicknessMap,pe=!!o.gradientMap,ge=!!o.alphaMap,ve=o.alphaTest>0,Ae=!!o.alphaHash,ye=!!o.extensions;let be=ee;o.toneMapped&&(null!==k&&!0!==k.isXRRenderTarget||(be=e.toneMapping));const xe={shaderID:_,shaderType:o.type,shaderName:o.name,vertexShader:M,fragmentShader:R,defines:o.defines,customVertexShaderID:O,customFragmentShaderID:P,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:f,batching:L,batchingColor:L&&null!==b._colorsTexture,instancing:D,instancingColor:D&&null!==b.instanceColor,instancingMorph:D&&null!==b.morphTexture,supportsVertexTextures:h,outputColorSpace:null===k?e.outputColorSpace:!0===k.isXRRenderTarget?k.texture.colorSpace:Kt,alphaToCoverage:!!o.alphaToCoverage,map:B,matcap:F,envMap:U,envMapMode:U&&C.mapping,envMapCubeUVHeight:w,aoMap:z,lightMap:j,bumpMap:$,normalMap:H,displacementMap:h&&G,emissiveMap:Q,normalMapObjectSpace:H&&o.normalMapType===Xt,normalMapTangentSpace:H&&o.normalMapType===Wt,metalnessMap:V,roughnessMap:W,anisotropy:X,anisotropyMap:te,clearcoat:q,clearcoatMap:ne,clearcoatNormalMap:re,clearcoatRoughnessMap:ie,dispersion:Y,iridescence:K,iridescenceMap:oe,iridescenceThicknessMap:ae,sheen:J,sheenColorMap:se,sheenRoughnessMap:le,specularMap:ce,specularColorMap:ue,specularIntensityMap:de,transmission:Z,transmissionMap:he,thicknessMap:fe,gradientMap:pe,opaque:!1===o.transparent&&o.blending===A&&!1===o.alphaToCoverage,alphaMap:ge,alphaTest:ve,alphaHash:Ae,combine:o.combine,mapUv:B&&v(o.map.channel),aoMapUv:z&&v(o.aoMap.channel),lightMapUv:j&&v(o.lightMap.channel),bumpMapUv:$&&v(o.bumpMap.channel),normalMapUv:H&&v(o.normalMap.channel),displacementMapUv:G&&v(o.displacementMap.channel),emissiveMapUv:Q&&v(o.emissiveMap.channel),metalnessMapUv:V&&v(o.metalnessMap.channel),roughnessMapUv:W&&v(o.roughnessMap.channel),anisotropyMapUv:te&&v(o.anisotropyMap.channel),clearcoatMapUv:ne&&v(o.clearcoatMap.channel),clearcoatNormalMapUv:re&&v(o.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ie&&v(o.clearcoatRoughnessMap.channel),iridescenceMapUv:oe&&v(o.iridescenceMap.channel),iridescenceThicknessMapUv:ae&&v(o.iridescenceThicknessMap.channel),sheenColorMapUv:se&&v(o.sheenColorMap.channel),sheenRoughnessMapUv:le&&v(o.sheenRoughnessMap.channel),specularMapUv:ce&&v(o.specularMap.channel),specularColorMapUv:ue&&v(o.specularColorMap.channel),specularIntensityMapUv:de&&v(o.specularIntensityMap.channel),transmissionMapUv:he&&v(o.transmissionMap.channel),thicknessMapUv:fe&&v(o.thicknessMap.channel),alphaMapUv:ge&&v(o.alphaMap.channel),vertexTangents:!!S.attributes.tangent&&(H||X),vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!S.attributes.color&&4===S.attributes.color.itemSize,pointsUvs:!0===b.isPoints&&!!S.attributes.uv&&(B||ge),fog:!!x,useFog:!0===o.fog,fogExp2:!!x&&x.isFogExp2,flatShading:!0===o.flatShading,sizeAttenuation:!0===o.sizeAttenuation,logarithmicDepthBuffer:d,skinning:!0===b.isSkinnedMesh,morphTargets:void 0!==S.morphAttributes.position,morphNormals:void 0!==S.morphAttributes.normal,morphColors:void 0!==S.morphAttributes.color,morphTargetsCount:T,morphTextureStride:N,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numSpotLightMaps:s.spotLightMap.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numSpotLightShadowsWithMaps:s.numSpotLightShadowsWithMaps,numLightProbes:s.numLightProbes,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:o.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:be,decodeVideoTexture:B&&!0===o.map.isVideoTexture&&pr.getTransfer(o.map.colorSpace)===tn,premultipliedAlpha:o.premultipliedAlpha,doubleSided:o.side===g,flipSided:o.side===m,useDepthPacking:o.depthPacking>=0,depthPacking:o.depthPacking||0,index0AttributeName:o.index0AttributeName,extensionClipCullDistance:ye&&!0===o.extensions.clipCullDistance&&r.has("WEBGL_clip_cull_distance"),extensionMultiDraw:ye&&!0===o.extensions.multiDraw&&r.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:o.customProgramCacheKey()};return xe.vertexUv1s=c.has(1),xe.vertexUv2s=c.has(2),xe.vertexUv3s=c.has(3),c.clear(),xe},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){s.disableAll(),t.supportsVertexTextures&&s.enable(0),t.instancing&&s.enable(1),t.instancingColor&&s.enable(2),t.instancingMorph&&s.enable(3),t.matcap&&s.enable(4),t.envMap&&s.enable(5),t.normalMapObjectSpace&&s.enable(6),t.normalMapTangentSpace&&s.enable(7),t.clearcoat&&s.enable(8),t.iridescence&&s.enable(9),t.alphaTest&&s.enable(10),t.vertexColors&&s.enable(11),t.vertexAlphas&&s.enable(12),t.vertexUv1s&&s.enable(13),t.vertexUv2s&&s.enable(14),t.vertexUv3s&&s.enable(15),t.vertexTangents&&s.enable(16),t.anisotropy&&s.enable(17),t.alphaHash&&s.enable(18),t.batching&&s.enable(19),t.dispersion&&s.enable(20),t.batchingColor&&s.enable(21),e.push(s.mask),s.disableAll(),t.fog&&s.enable(0),t.useFog&&s.enable(1),t.flatShading&&s.enable(2),t.logarithmicDepthBuffer&&s.enable(3),t.skinning&&s.enable(4),t.morphTargets&&s.enable(5),t.morphNormals&&s.enable(6),t.morphColors&&s.enable(7),t.premultipliedAlpha&&s.enable(8),t.shadowMapEnabled&&s.enable(9),t.doubleSided&&s.enable(10),t.flipSided&&s.enable(11),t.useDepthPacking&&s.enable(12),t.dithering&&s.enable(13),t.transmission&&s.enable(14),t.sheen&&s.enable(15),t.opaque&&s.enable(16),t.pointsUvs&&s.enable(17),t.decodeVideoTexture&&s.enable(18),t.alphaToCoverage&&s.enable(19),e.push(s.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=p[e.type];let n;if(t){const e=ba[t];n=Ko.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let r;for(let e=0,t=u.length;e0?r.push(u):!0===a.transparent?i.push(u):n.push(u)},unshift:function(e,t,a,s,l,c){const u=o(e,t,a,s,l,c);a.transmission>0?r.unshift(u):!0===a.transparent?i.unshift(u):n.unshift(u)},finish:function(){for(let n=t,r=e.length;n1&&n.sort(e||Il),r.length>1&&r.sort(t||Tl),i.length>1&&i.sort(t||Tl)}}}function Rl(){let e=new WeakMap;return{get:function(t,n){const r=e.get(t);let i;return void 0===r?(i=new Ml,e.set(t,[i])):n>=r.length?(i=new Ml,r.push(i)):i=r[n],i},dispose:function(){e=new WeakMap}}}function Ol(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new Pr,color:new Ki};break;case"SpotLight":n={position:new Pr,direction:new Pr,color:new Ki,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new Pr,color:new Ki,distance:0,decay:0};break;case"HemisphereLight":n={direction:new Pr,skyColor:new Ki,groundColor:new Ki};break;case"RectAreaLight":n={color:new Ki,position:new Pr,halfWidth:new Pr,halfHeight:new Pr}}return e[t.id]=n,n}}}let Pl=0;function Nl(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function kl(e){const t=new Ol,n=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new er};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new er,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new Pr);const i=new Pr,o=new li,a=new li;return{setup:function(i){let o=0,a=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let l=0,c=0,u=0,d=0,h=0,f=0,p=0,m=0,g=0,v=0,A=0;i.sort(Nl);for(let e=0,y=i.length;e0&&(!0===e.has("OES_texture_float_linear")?(r.rectAreaLTC1=ya.LTC_FLOAT_1,r.rectAreaLTC2=ya.LTC_FLOAT_2):(r.rectAreaLTC1=ya.LTC_HALF_1,r.rectAreaLTC2=ya.LTC_HALF_2)),r.ambient[0]=o,r.ambient[1]=a,r.ambient[2]=s;const y=r.hash;y.directionalLength===l&&y.pointLength===c&&y.spotLength===u&&y.rectAreaLength===d&&y.hemiLength===h&&y.numDirectionalShadows===f&&y.numPointShadows===p&&y.numSpotShadows===m&&y.numSpotMaps===g&&y.numLightProbes===A||(r.directional.length=l,r.spot.length=u,r.rectArea.length=d,r.point.length=c,r.hemi.length=h,r.directionalShadow.length=f,r.directionalShadowMap.length=f,r.pointShadow.length=p,r.pointShadowMap.length=p,r.spotShadow.length=m,r.spotShadowMap.length=m,r.directionalShadowMatrix.length=f,r.pointShadowMatrix.length=p,r.spotLightMatrix.length=m+g-v,r.spotLightMap.length=g,r.numSpotLightShadowsWithMaps=v,r.numLightProbes=A,y.directionalLength=l,y.pointLength=c,y.spotLength=u,y.rectAreaLength=d,y.hemiLength=h,y.numDirectionalShadows=f,y.numPointShadows=p,y.numSpotShadows=m,y.numSpotMaps=g,y.numLightProbes=A,r.version=Pl++)},setupView:function(e,t){let n=0,s=0,l=0,c=0,u=0;const d=t.matrixWorldInverse;for(let t=0,h=e.length;t=i.length?(o=new Dl(e),i.push(o)):o=i[r],o},dispose:function(){t=new WeakMap}}}class Bl extends eo{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Qt,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Fl extends eo{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function Ul(e,t,n){let r=new pa;const i=new er,o=new er,a=new Cr,s=new Bl({depthPacking:Vt}),l=new Fl,c={},u=n.maxTextureSize,h={[p]:m,[m]:p,[g]:g},A=new Jo({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new er},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),y=A.clone();y.defines.HORIZONTAL_PASS=1;const b=new Io;b.setAttribute("position",new co(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const x=new Qo(b,A),S=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=d;let E=this.type;function C(n,r){const o=t.update(x);A.defines.VSM_SAMPLES!==n.blurSamples&&(A.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,A.needsUpdate=!0,y.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new _r(i.x,i.y)),A.uniforms.shadow_pass.value=n.map.texture,A.uniforms.resolution.value=n.mapSize,A.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(r,null,o,A,x,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(r,null,o,y,x,null)}function w(t,n,r,i){let o=null;const a=!0===r.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==a)o=a;else if(o=!0===r.isPointLight?l:s,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=o.uuid,t=n.uuid;let r=c[e];void 0===r&&(r={},c[e]=r);let i=r[t];void 0===i&&(i=o.clone(),r[t]=i,n.addEventListener("dispose",I)),o=i}return o.visible=n.visible,o.wireframe=n.wireframe,o.side=i===f?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:h[n.side],o.alphaMap=n.alphaMap,o.alphaTest=n.alphaTest,o.map=n.map,o.clipShadows=n.clipShadows,o.clippingPlanes=n.clippingPlanes,o.clipIntersection=n.clipIntersection,o.displacementMap=n.displacementMap,o.displacementScale=n.displacementScale,o.displacementBias=n.displacementBias,o.wireframeLinewidth=n.wireframeLinewidth,o.linewidth=n.linewidth,!0===r.isPointLight&&!0===o.isMeshDistanceMaterial&&(e.properties.get(o).light=r),o}function _(n,i,o,a,s){if(!1===n.visible)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===f)&&(!n.frustumCulled||r.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const r=t.update(n),l=n.material;if(Array.isArray(l)){const t=r.groups;for(let c=0,u=t.length;cu||i.y>u)&&(i.x>u&&(o.x=Math.floor(u/g.x),i.x=o.x*g.x,d.mapSize.x=o.x),i.y>u&&(o.y=Math.floor(u/g.y),i.y=o.y*g.y,d.mapSize.y=o.y)),null===d.map||!0===p||!0===m){const e=this.type!==f?{minFilter:ye,magFilter:ye}:{};null!==d.map&&d.map.dispose(),d.map=new _r(i.x,i.y,e),d.map.texture.name=c.name+".shadowMap",d.camera.updateProjectionMatrix()}e.setRenderTarget(d.map),e.clear();const v=d.getViewportCount();for(let e=0;e=1):-1!==me.indexOf("OpenGL ES")&&(pe=parseFloat(/^OpenGL ES (\d)/.exec(me)[1]),fe=pe>=2);let ge=null,ve={};const Ae=e.getParameter(e.SCISSOR_BOX),ye=e.getParameter(e.VIEWPORT),be=(new Cr).fromArray(Ae),xe=(new Cr).fromArray(ye);function Se(t,n,r,i){const o=new Uint8Array(4),a=e.createTexture();e.bindTexture(t,a),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let a=0;an||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){const n=Math.floor(r*i.width),o=Math.floor(r*i.height);void 0===d&&(d=p(n,o));const a=t?p(n,o):d;return a.width=n,a.height=o,a.getContext("2d").drawImage(e,0,0,n,o),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+i.width+"x"+i.height+") to ("+n+"x"+o+")."),a}return"data"in e&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+i.width+"x"+i.height+")."),e}return e}function g(e){return e.generateMipmaps&&e.minFilter!==ye&&e.minFilter!==Ce}function v(t){e.generateMipmap(t)}function A(n,r,i,o,a=!1){if(null!==n){if(void 0!==e[n])return e[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let s=r;if(r===e.RED&&(i===e.FLOAT&&(s=e.R32F),i===e.HALF_FLOAT&&(s=e.R16F),i===e.UNSIGNED_BYTE&&(s=e.R8)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.R8UI),i===e.UNSIGNED_SHORT&&(s=e.R16UI),i===e.UNSIGNED_INT&&(s=e.R32UI),i===e.BYTE&&(s=e.R8I),i===e.SHORT&&(s=e.R16I),i===e.INT&&(s=e.R32I)),r===e.RG&&(i===e.FLOAT&&(s=e.RG32F),i===e.HALF_FLOAT&&(s=e.RG16F),i===e.UNSIGNED_BYTE&&(s=e.RG8)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(s=e.RG8UI),i===e.UNSIGNED_SHORT&&(s=e.RG16UI),i===e.UNSIGNED_INT&&(s=e.RG32UI),i===e.BYTE&&(s=e.RG8I),i===e.SHORT&&(s=e.RG16I),i===e.INT&&(s=e.RG32I)),r===e.RGB&&i===e.UNSIGNED_INT_5_9_9_9_REV&&(s=e.RGB9_E5),r===e.RGBA){const t=a?en:pr.getTransfer(o);i===e.FLOAT&&(s=e.RGBA32F),i===e.HALF_FLOAT&&(s=e.RGBA16F),i===e.UNSIGNED_BYTE&&(s=t===tn?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT_4_4_4_4&&(s=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(s=e.RGB5_A1)}return s!==e.R16F&&s!==e.R32F&&s!==e.RG16F&&s!==e.RG32F&&s!==e.RGBA16F&&s!==e.RGBA32F||t.get("EXT_color_buffer_float"),s}function y(t,n){let r;return t?null===n||n===ke||n===Ue?r=e.DEPTH24_STENCIL8:n===De?r=e.DEPTH32F_STENCIL8:n===Pe&&(r=e.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):null===n||n===ke||n===Ue?r=e.DEPTH_COMPONENT24:n===De?r=e.DEPTH_COMPONENT32F:n===Pe&&(r=e.DEPTH_COMPONENT16),r}function b(e,t){return!0===g(e)||e.isFramebufferTexture&&e.minFilter!==ye&&e.minFilter!==Ce?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function x(e){const t=e.target;t.removeEventListener("dispose",x),function(e){const t=r.get(e);if(void 0===t.__webglInit)return;const n=e.source,i=h.get(n);if(i){const r=i[t.__cacheKey];r.usedTimes--,0===r.usedTimes&&E(e),0===Object.keys(i).length&&h.delete(n)}r.remove(e)}(t),t.isVideoTexture&&u.delete(t)}function S(t){const n=t.target;n.removeEventListener("dispose",S),function(t){const n=r.get(t);if(t.depthTexture&&t.depthTexture.dispose(),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r0&&o.__version!==t.version){const e=t.image;if(null===e)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==e.complete)return void O(o,t,i);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(e.TEXTURE_2D,o.__webglTexture,e.TEXTURE0+i)}const _={[ge]:e.REPEAT,[ve]:e.CLAMP_TO_EDGE,[Ae]:e.MIRRORED_REPEAT},I={[ye]:e.NEAREST,[be]:e.NEAREST_MIPMAP_NEAREST,[Se]:e.NEAREST_MIPMAP_LINEAR,[Ce]:e.LINEAR,[we]:e.LINEAR_MIPMAP_NEAREST,[Ie]:e.LINEAR_MIPMAP_LINEAR},T={[xn]:e.NEVER,[Tn]:e.ALWAYS,[Sn]:e.LESS,[Cn]:e.LEQUAL,[En]:e.EQUAL,[In]:e.GEQUAL,[wn]:e.GREATER,[_n]:e.NOTEQUAL};function M(n,o){if(o.type!==De||!1!==t.has("OES_texture_float_linear")||o.magFilter!==Ce&&o.magFilter!==we&&o.magFilter!==Se&&o.magFilter!==Ie&&o.minFilter!==Ce&&o.minFilter!==we&&o.minFilter!==Se&&o.minFilter!==Ie||console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),e.texParameteri(n,e.TEXTURE_WRAP_S,_[o.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,_[o.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,_[o.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,I[o.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,I[o.minFilter]),o.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,T[o.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(o.magFilter===ye)return;if(o.minFilter!==Se&&o.minFilter!==Ie)return;if(o.type===De&&!1===t.has("OES_texture_float_linear"))return;if(o.anisotropy>1||r.get(o).__currentAnisotropy){const a=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,i.getMaxAnisotropy())),r.get(o).__currentAnisotropy=o.anisotropy}}}function R(t,n){let r=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",x));const i=n.source;let o=h.get(i);void 0===o&&(o={},h.set(i,o));const s=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(s!==t.__cacheKey){void 0===o[s]&&(o[s]={texture:e.createTexture(),usedTimes:0},a.memory.textures++,r=!0),o[s].usedTimes++;const i=o[t.__cacheKey];void 0!==i&&(o[t.__cacheKey].usedTimes--,0===i.usedTimes&&E(n)),t.__cacheKey=s,t.__webglTexture=o[s].texture}return r}function O(t,a,s){let l=e.TEXTURE_2D;(a.isDataArrayTexture||a.isCompressedArrayTexture)&&(l=e.TEXTURE_2D_ARRAY),a.isData3DTexture&&(l=e.TEXTURE_3D);const c=R(t,a),u=a.source;n.bindTexture(l,t.__webglTexture,e.TEXTURE0+s);const d=r.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(e.TEXTURE0+s);const t=pr.getPrimaries(pr.workingColorSpace),r=a.colorSpace===qt?null:pr.getPrimaries(a.colorSpace),h=a.colorSpace===qt||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,a.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,a.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);let f=m(a.image,!1,i.maxTextureSize);f=U(a,f);const p=o.convert(a.format,a.colorSpace),x=o.convert(a.type);let S,E=A(a.internalFormat,p,x,a.colorSpace,a.isVideoTexture);M(l,a);const C=a.mipmaps,w=!0!==a.isVideoTexture,_=void 0===d.__version||!0===c,I=u.dataReady,T=b(a,f);if(a.isDepthTexture)E=y(a.format===We,a.type),_&&(w?n.texStorage2D(e.TEXTURE_2D,1,E,f.width,f.height):n.texImage2D(e.TEXTURE_2D,0,E,f.width,f.height,0,p,x,null));else if(a.isDataTexture)if(C.length>0){w&&_&&n.texStorage2D(e.TEXTURE_2D,T,E,C[0].width,C[0].height);for(let t=0,r=C.length;t0){for(const r of a.layerUpdates){const i=S.width*S.height;n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,r,S.width,S.height,1,p,S.data.slice(i*r,i*(r+1)),0,0)}a.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,S.width,S.height,f.depth,p,S.data,0,0)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,E,S.width,S.height,f.depth,0,S.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else w?I&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,S.width,S.height,f.depth,p,x,S.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,E,S.width,S.height,f.depth,0,p,x,S.data)}else{w&&_&&n.texStorage2D(e.TEXTURE_2D,T,E,C[0].width,C[0].height);for(let t=0,r=C.length;t0){let t;switch(x){case e.UNSIGNED_BYTE:switch(p){case e.ALPHA:case e.LUMINANCE:t=1;break;case e.LUMINANCE_ALPHA:t=2;break;case e.RGB:t=3;break;case e.RGBA:t=4;break;default:throw new Error(`Unknown texel size for format ${p}.`)}break;case e.UNSIGNED_SHORT_4_4_4_4:case e.UNSIGNED_SHORT_5_5_5_1:case e.UNSIGNED_SHORT_5_6_5:t=1;break;default:throw new Error(`Unknown texel size for type ${x}.`)}const r=f.width*f.height*t;for(const t of a.layerUpdates)n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,t,f.width,f.height,1,p,x,f.data.slice(r*t,r*(t+1)));a.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,f.width,f.height,f.depth,p,x,f.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,E,f.width,f.height,f.depth,0,p,x,f.data);else if(a.isData3DTexture)w?(_&&n.texStorage3D(e.TEXTURE_3D,T,E,f.width,f.height,f.depth),I&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,f.width,f.height,f.depth,p,x,f.data)):n.texImage3D(e.TEXTURE_3D,0,E,f.width,f.height,f.depth,0,p,x,f.data);else if(a.isFramebufferTexture){if(_)if(w)n.texStorage2D(e.TEXTURE_2D,T,E,f.width,f.height);else{let t=f.width,r=f.height;for(let i=0;i>=1,r>>=1}}else if(C.length>0){if(w&&_){const t=z(C[0]);n.texStorage2D(e.TEXTURE_2D,T,E,t.width,t.height)}for(let t=0,r=C.length;t>u),r=Math.max(1,i.height>>u);c===e.TEXTURE_3D||c===e.TEXTURE_2D_ARRAY?n.texImage3D(c,u,f,t,r,i.depth,0,d,h,null):n.texImage2D(c,u,f,t,r,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),F(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,l,c,r.get(a).__webglTexture,0,B(i)):(c===e.TEXTURE_2D||c>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,l,c,r.get(a).__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function N(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){const i=n.depthTexture,o=i&&i.isDepthTexture?i.type:null,a=y(n.stencilBuffer,o),l=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,c=B(n);F(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,c,a,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,c,a,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,a,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,l,e.RENDERBUFFER,t)}else{const t=n.textures;for(let i=0;i0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function U(e,t){const n=e.colorSpace,r=e.format,i=e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==Kt&&n!==qt&&(pr.getTransfer(n)===tn?r===He&&i===Me||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",n)),t}function z(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(c.width=e.naturalWidth||e.width,c.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(c.width=e.displayWidth,c.height=e.displayHeight):(c.width=e.width,c.height=e.height),c}this.allocateTextureUnit=function(){const e=C;return e>=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+e+" texture units while this GPU supports only "+i.maxTextures),C+=1,e},this.resetTextureUnits=function(){C=0},this.setTexture2D=w,this.setTexture2DArray=function(t,i){const o=r.get(t);t.version>0&&o.__version!==t.version?O(o,t,i):n.bindTexture(e.TEXTURE_2D_ARRAY,o.__webglTexture,e.TEXTURE0+i)},this.setTexture3D=function(t,i){const o=r.get(t);t.version>0&&o.__version!==t.version?O(o,t,i):n.bindTexture(e.TEXTURE_3D,o.__webglTexture,e.TEXTURE0+i)},this.setTextureCube=function(t,a){const s=r.get(t);t.version>0&&s.__version!==t.version?function(t,a,s){if(6!==a.image.length)return;const l=R(t,a),c=a.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+s);const u=r.get(c);if(c.version!==u.__version||!0===l){n.activeTexture(e.TEXTURE0+s);const t=pr.getPrimaries(pr.workingColorSpace),r=a.colorSpace===qt?null:pr.getPrimaries(a.colorSpace),d=a.colorSpace===qt||t===r?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,a.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,a.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);const h=a.isCompressedTexture||a.image[0].isCompressedTexture,f=a.image[0]&&a.image[0].isDataTexture,p=[];for(let e=0;e<6;e++)p[e]=h||f?f?a.image[e].image:a.image[e]:m(a.image[e],!0,i.maxCubemapSize),p[e]=U(a,p[e]);const y=p[0],x=o.convert(a.format,a.colorSpace),S=o.convert(a.type),E=A(a.internalFormat,x,S,a.colorSpace),C=!0!==a.isVideoTexture,w=void 0===u.__version||!0===l,_=c.dataReady;let I,T=b(a,y);if(M(e.TEXTURE_CUBE_MAP,a),h){C&&w&&n.texStorage2D(e.TEXTURE_CUBE_MAP,T,E,y.width,y.height);for(let t=0;t<6;t++){I=p[t].mipmaps;for(let r=0;r0&&T++;const t=z(p[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,T,E,t.width,t.height)}for(let t=0;t<6;t++)if(f){C?_&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,p[t].width,p[t].height,x,S,p[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,E,p[t].width,p[t].height,0,x,S,p[t].data);for(let r=0;r1;if(d||(void 0===l.__webglTexture&&(l.__webglTexture=e.createTexture()),l.__version=i.version,a.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&!1===F(t)){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0)if(!1===F(t)){const i=t.textures,o=t.width,a=t.height;let s=e.COLOR_BUFFER_BIT;const c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;ts+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&a<=s-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==s&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),null!==i&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1));null!==a&&(r=t.getPose(e.targetRaySpace,n),null===r&&null!==i&&(r=i),null!==r&&(a.matrix.fromArray(r.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,r.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(r.linearVelocity)):a.hasLinearVelocity=!1,r.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(r.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Ql)))}return null!==a&&(a.visible=null!==r),null!==s&&(s.visible=null!==i),null!==l&&(l.visible=null!==o),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new Gl;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class Wl{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){const r=new Er;e.properties.get(r).__webglTexture=t.texture,t.depthNear==n.depthNear&&t.depthFar==n.depthFar||(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}getMesh(e){if(null!==this.texture&&null===this.mesh){const t=e.cameras[0].viewport,n=new Jo({vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Qo(new va(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}}class Xl extends $n{constructor(e,t){super();const n=this;let r=null,i=1,o=null,a="local-floor",s=1,l=null,c=null,u=null,d=null,h=null,f=null;const p=new Wl,m=t.getContextAttributes();let g=null,v=null;const A=[],y=[],b=new er;let x=null;const S=new ra;S.layers.enable(1),S.viewport=new Cr;const E=new ra;E.layers.enable(2),E.viewport=new Cr;const C=[S,E],w=new Hl;w.layers.enable(1),w.layers.enable(2);let _=null,I=null;function T(e){const t=y.indexOf(e.inputSource);if(-1===t)return;const n=A[t];void 0!==n&&(n.update(e.inputSource,e.frame,l||o),n.dispatchEvent({type:e.type,data:e.inputSource}))}function M(){r.removeEventListener("select",T),r.removeEventListener("selectstart",T),r.removeEventListener("selectend",T),r.removeEventListener("squeeze",T),r.removeEventListener("squeezestart",T),r.removeEventListener("squeezeend",T),r.removeEventListener("end",M),r.removeEventListener("inputsourceschange",R);for(let e=0;e=0&&(y[r]=null,A[r].disconnect(n))}for(let t=0;t=y.length){y.push(n),r=e;break}if(null===y[e]){y[e]=n,r=e;break}}if(-1===r)break}const i=A[r];i&&i.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=A[e];return void 0===t&&(t=new Vl,A[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=A[e];return void 0===t&&(t=new Vl,A[e]=t),t.getGripSpace()},this.getHand=function(e){let t=A[e];return void 0===t&&(t=new Vl,A[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){i=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(e){a=e,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||o},this.setReferenceSpace=function(e){l=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return u},this.getFrame=function(){return f},this.getSession=function(){return r},this.setSession=async function(c){if(r=c,null!==r){if(g=e.getRenderTarget(),r.addEventListener("select",T),r.addEventListener("selectstart",T),r.addEventListener("selectend",T),r.addEventListener("squeeze",T),r.addEventListener("squeezestart",T),r.addEventListener("squeezeend",T),r.addEventListener("end",M),r.addEventListener("inputsourceschange",R),!0!==m.xrCompatible&&await t.makeXRCompatible(),x=e.getPixelRatio(),e.getSize(b),void 0===r.renderState.layers){const n={antialias:m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:i};h=new XRWebGLLayer(r,t,n),r.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),v=new _r(h.framebufferWidth,h.framebufferHeight,{format:He,type:Me,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil})}else{let n=null,o=null,a=null;m.depth&&(a=m.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=m.stencil?We:Ve,o=m.stencil?Ue:ke);const s={colorFormat:t.RGBA8,depthFormat:a,scaleFactor:i};u=new XRWebGLBinding(r,t),d=u.createProjectionLayer(s),r.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),v=new _r(d.textureWidth,d.textureHeight,{format:He,type:Me,depthTexture:new Za(d.textureWidth,d.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0,resolveDepthBuffer:!1===d.ignoreDepthValues})}v.isXRRenderTarget=!0,this.setFoveation(s),l=null,o=await r.requestReferenceSpace(a),D.setContext(r),D.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==r)return r.environmentBlendMode};const O=new Pr,P=new Pr;function N(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===r)return;null!==p.texture&&(e.near=p.depthNear,e.far=p.depthFar),w.near=E.near=S.near=e.near,w.far=E.far=S.far=e.far,_===w.near&&I===w.far||(r.updateRenderState({depthNear:w.near,depthFar:w.far}),_=w.near,I=w.far,S.near=_,S.far=I,E.near=_,E.far=I,S.updateProjectionMatrix(),E.updateProjectionMatrix(),e.updateProjectionMatrix());const t=e.parent,n=w.cameras;N(w,t);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);const i=t.get(r),o=i.envMap,a=i.envMapRotation;o&&(e.envMap.value=o,ql.copy(a),ql.x*=-1,ql.y*=-1,ql.z*=-1,o.isCubeTexture&&!1===o.isRenderTargetTexture&&(ql.y*=-1,ql.z*=-1),e.envMapRotation.value.setFromMatrix4(Yl.makeRotationFromEuler(ql)),e.flipEnvMap.value=o.isCubeTexture&&!1===o.isRenderTargetTexture?-1:1,e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Yo(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,i,o,a,s){i.isMeshBasicMaterial||i.isMeshLambertMaterial?r(e,i):i.isMeshToonMaterial?(r(e,i),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,i)):i.isMeshPhongMaterial?(r(e,i),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,i)):i.isMeshStandardMaterial?(r(e,i),function(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}(e,i),i.isMeshPhysicalMaterial&&function(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===m&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,i,s)):i.isMeshMatcapMaterial?(r(e,i),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,i)):i.isMeshDepthMaterial?r(e,i):i.isMeshDistanceMaterial?(r(e,i),function(e,n){const r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}(e,i)):i.isMeshNormalMaterial?r(e,i):i.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,i),i.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,i)):i.isPointsMaterial?function(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=.5*i,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i,o,a):i.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,i):i.isShadowMaterial?(e.color.value.copy(i.color),e.opacity.value=i.opacity):i.isShaderMaterial&&(i.uniformsNeedUpdate=!1)}}}function Jl(e,t,n,r){let i={},o={},a=[];const s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function l(e,t,n,r){const i=e.value,o=t+"_"+n;if(void 0===r[o])return r[o]="number"==typeof i||"boolean"==typeof i?i:i.clone(),!0;{const e=r[o];if("number"==typeof i||"boolean"==typeof i){if(e!==i)return r[o]=i,!0}else if(!1===e.equals(i))return e.copy(i),!0}return!1}function c(e){const t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",e),t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const r=a.indexOf(n.__bindingPointIndex);a.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete o[n.id]}return{bind:function(e,t){const n=t.program;r.uniformBlockBinding(e,n)},update:function(n,d){let h=i[n.id];void 0===h&&(function(e){const t=e.uniforms;let n=0;for(let e=0,r=t.length;e0&&(n+=16-r),e.__size=n,e.__cache={}}(n),h=function(t){const n=function(){for(let e=0;e0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,f=!!n.morphAttributes.color;let p=ee;r.toneMapped&&(null!==_&&!0!==_.isXRRenderTarget||(p=S.toneMapping));const m=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,g=void 0!==m?m.length:0,v=te.get(r),A=y.state.lights;if(!0===H&&(!0===G||e!==T)){const t=e===T&&r.id===I;he.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==A.state.version||v.outputColorSpace!==s||i.isBatchedMesh&&!1===v.batching?b=!0:i.isBatchedMesh||!0!==v.batching?i.isBatchedMesh&&!0===v.batchingColor&&null===i.colorTexture||i.isBatchedMesh&&!1===v.batchingColor&&null!==i.colorTexture||i.isInstancedMesh&&!1===v.instancing?b=!0:i.isInstancedMesh||!0!==v.instancing?i.isSkinnedMesh&&!1===v.skinning?b=!0:i.isSkinnedMesh||!0!==v.skinning?i.isInstancedMesh&&!0===v.instancingColor&&null===i.instanceColor||i.isInstancedMesh&&!1===v.instancingColor&&null!==i.instanceColor||i.isInstancedMesh&&!0===v.instancingMorph&&null===i.morphTexture||i.isInstancedMesh&&!1===v.instancingMorph&&null!==i.morphTexture||v.envMap!==l||!0===r.fog&&v.fog!==o?b=!0:void 0===v.numClippingPlanes||v.numClippingPlanes===he.numPlanes&&v.numIntersection===he.numIntersection?(v.vertexAlphas!==c||v.vertexTangents!==u||v.morphTargets!==d||v.morphNormals!==h||v.morphColors!==f||v.toneMapping!==p||v.morphTargetsCount!==g)&&(b=!0):b=!0:b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let x=v.currentProgram;!0===b&&(x=We(r,t,i));let E=!1,C=!1,w=!1;const M=x.getUniforms(),R=v.uniforms;if(J.useProgram(x.program)&&(E=!0,C=!0,w=!0),r.id!==I&&(I=r.id,C=!0),E||T!==e){M.setValue(xe,"projectionMatrix",e.projectionMatrix),M.setValue(xe,"viewMatrix",e.matrixWorldInverse);const t=M.map.cameraPosition;void 0!==t&&t.setValue(xe,V.setFromMatrixPosition(e.matrixWorld)),K.logarithmicDepthBuffer&&M.setValue(xe,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&M.setValue(xe,"isOrthographic",!0===e.isOrthographicCamera),T!==e&&(T=e,C=!0,w=!0)}if(i.isSkinnedMesh){M.setOptional(xe,i,"bindMatrix"),M.setOptional(xe,i,"bindMatrixInverse");const e=i.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),M.setValue(xe,"boneTexture",e.boneTexture,ne))}i.isBatchedMesh&&(M.setOptional(xe,i,"batchingTexture"),M.setValue(xe,"batchingTexture",i._matricesTexture,ne),M.setOptional(xe,i,"batchingColorTexture"),null!==i._colorsTexture&&M.setValue(xe,"batchingColorTexture",i._colorsTexture,ne));const O=n.morphAttributes;var P,N;if(void 0===O.position&&void 0===O.normal&&void 0===O.color||me.update(i,n,x),(C||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,M.setValue(xe,"receiveShadow",i.receiveShadow)),r.isMeshGouraudMaterial&&null!==r.envMap&&(R.envMap.value=l,R.flipEnvMap.value=l.isCubeTexture&&!1===l.isRenderTargetTexture?-1:1),r.isMeshStandardMaterial&&null===r.envMap&&null!==t.environment&&(R.envMapIntensity.value=t.environmentIntensity),C&&(M.setValue(xe,"toneMappingExposure",S.toneMappingExposure),v.needsLights&&(N=w,(P=R).ambientLightColor.needsUpdate=N,P.lightProbe.needsUpdate=N,P.directionalLights.needsUpdate=N,P.directionalLightShadows.needsUpdate=N,P.pointLights.needsUpdate=N,P.pointLightShadows.needsUpdate=N,P.spotLights.needsUpdate=N,P.spotLightShadows.needsUpdate=N,P.rectAreaLights.needsUpdate=N,P.hemisphereLights.needsUpdate=N),o&&!0===r.fog&&ce.refreshFogUniforms(R,o),ce.refreshMaterialUniforms(R,r,L,D,y.state.transmissionRenderTarget[e.id]),il.upload(xe,Xe(v),R,ne)),r.isShaderMaterial&&!0===r.uniformsNeedUpdate&&(il.upload(xe,Xe(v),R,ne),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&M.setValue(xe,"center",i.center),M.setValue(xe,"modelViewMatrix",i.modelViewMatrix),M.setValue(xe,"normalMatrix",i.normalMatrix),M.setValue(xe,"modelMatrix",i.matrixWorld),r.isShaderMaterial||r.isRawShaderMaterial){const e=r.uniformsGroups;for(let t=0,n=e.length;t{function n(){r.forEach(function(e){te.get(e).currentProgram.isReady()&&r.delete(e)}),0!==r.size?setTimeout(n,10):t(e)}null!==Y.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)})};let Ne=null;function De(){je.stop()}function ze(){je.start()}const je=new ma;function $e(e,t,n,r){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)y.pushLight(e),e.castShadow&&y.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||$.intersectsSprite(e)){r&&V.setFromMatrixPosition(e.matrixWorld).applyMatrix4(Q);const t=se.update(e),i=e.material;i.visible&&A.push(e,t,i,n,V.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||$.intersectsObject(e))){const t=se.update(e),i=e.material;if(r&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),V.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),V.copy(t.boundingSphere.center)),V.applyMatrix4(e.matrixWorld).applyMatrix4(Q)),Array.isArray(i)){const r=t.groups;for(let o=0,a=r.length;o0&&Qe(i,t,n),o.length>0&&Qe(o,t,n),a.length>0&&Qe(a,t,n),J.buffers.depth.setTest(!0),J.buffers.depth.setMask(!0),J.buffers.color.setMask(!0),J.setPolygonOffset(!1)}function Ge(e,t,n,r){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;void 0===y.state.transmissionRenderTarget[r.id]&&(y.state.transmissionRenderTarget[r.id]=new _r(1,1,{generateMipmaps:!0,type:Y.has("EXT_color_buffer_half_float")||Y.has("EXT_color_buffer_float")?Le:Me,minFilter:Ie,samples:4,stencilBuffer:o,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:pr.workingColorSpace}));const i=y.state.transmissionRenderTarget[r.id],a=r.viewport||M;i.setSize(a.z,a.w);const s=S.getRenderTarget();S.setRenderTarget(i),S.getClearColor(P),N=S.getClearAlpha(),N<1&&S.setClearColor(16777215,.5),X?pe.render(n):S.clear();const l=S.toneMapping;S.toneMapping=ee;const c=r.viewport;if(void 0!==r.viewport&&(r.viewport=void 0),y.setupLightsView(r),!0===H&&he.setGlobalState(S.clippingPlanes,r),Qe(e,n,r),ne.updateMultisampleRenderTarget(i),ne.updateRenderTargetMipmap(i),!1===Y.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let i=0,o=t.length;i0)for(let t=0,o=n.length;t0&&Ge(r,i,e,t),X&&pe.render(e),He(A,e,t);null!==_&&(ne.updateMultisampleRenderTarget(_),ne.updateRenderTargetMipmap(_)),!0===e.isScene&&e.onAfterRender(S,e,t),ye.resetDefaultState(),I=-1,T=null,x.pop(),x.length>0?(y=x[x.length-1],!0===H&&he.setGlobalState(S.clippingPlanes,y.state.camera)):y=null,b.pop(),A=b.length>0?b[b.length-1]:null},this.getActiveCubeFace=function(){return C},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return _},this.setRenderTargetTextures=function(e,t,n){te.get(e.texture).__webglTexture=t,te.get(e.depthTexture).__webglTexture=n;const r=te.get(e);r.__hasExternalTextures=!0,r.__autoAllocateDepthBuffer=void 0===n,r.__autoAllocateDepthBuffer||!0===Y.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),r.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){const n=te.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){_=e,C=t,w=n;let r=!0,i=null,o=!1,a=!1;if(e){const s=te.get(e);void 0!==s.__useDefaultFramebuffer?(J.bindFramebuffer(xe.FRAMEBUFFER,null),r=!1):void 0===s.__webglFramebuffer?ne.setupRenderTarget(e):s.__hasExternalTextures&&ne.rebindTextures(e,te.get(e.texture).__webglTexture,te.get(e.depthTexture).__webglTexture);const l=e.texture;(l.isData3DTexture||l.isDataArrayTexture||l.isCompressedArrayTexture)&&(a=!0);const c=te.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(i=Array.isArray(c[t])?c[t][n]:c[t],o=!0):i=e.samples>0&&!1===ne.useMultisampledRTT(e)?te.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,M.copy(e.viewport),R.copy(e.scissor),O=e.scissorTest}else M.copy(U).multiplyScalar(L).floor(),R.copy(z).multiplyScalar(L).floor(),O=j;if(J.bindFramebuffer(xe.FRAMEBUFFER,i)&&r&&J.drawBuffers(e,i),J.viewport(M),J.scissor(R),J.setScissorTest(O),o){const r=te.get(e.texture);xe.framebufferTexture2D(xe.FRAMEBUFFER,xe.COLOR_ATTACHMENT0,xe.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){const r=te.get(e.texture),i=t||0;xe.framebufferTextureLayer(xe.FRAMEBUFFER,xe.COLOR_ATTACHMENT0,r.__webglTexture,n||0,i)}I=-1},this.readRenderTargetPixels=function(e,t,n,r,i,o,a){if(!e||!e.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=te.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){J.bindFramebuffer(xe.FRAMEBUFFER,s);try{const a=e.texture,s=a.format,l=a.type;if(!K.textureFormatReadable(s))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!K.textureTypeReadable(l))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&xe.readPixels(t,n,r,i,Ae.convert(s),Ae.convert(l),o)}finally{const e=null!==_?te.get(_).__webglFramebuffer:null;J.bindFramebuffer(xe.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,o,a){if(!e||!e.isWebGLRenderTarget)throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=te.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){J.bindFramebuffer(xe.FRAMEBUFFER,s);try{const a=e.texture,s=a.format,l=a.type;if(!K.textureFormatReadable(s))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!K.textureTypeReadable(l))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){const e=xe.createBuffer();xe.bindBuffer(xe.PIXEL_PACK_BUFFER,e),xe.bufferData(xe.PIXEL_PACK_BUFFER,o.byteLength,xe.STREAM_READ),xe.readPixels(t,n,r,i,Ae.convert(s),Ae.convert(l),0),xe.flush();const a=xe.fenceSync(xe.SYNC_GPU_COMMANDS_COMPLETE,0);await function(e,t){return new Promise(function(n,r){setTimeout(function i(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:r();break;case e.TIMEOUT_EXPIRED:setTimeout(i,4);break;default:n()}},4)})}(xe,a);try{xe.bindBuffer(xe.PIXEL_PACK_BUFFER,e),xe.getBufferSubData(xe.PIXEL_PACK_BUFFER,0,o)}finally{xe.deleteBuffer(e),xe.deleteSync(a)}return o}}finally{const e=null!==_?te.get(_).__webglFramebuffer:null;J.bindFramebuffer(xe.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t=null,n=0){!0!==e.isTexture&&(console.warn("WebGLRenderer: copyFramebufferToTexture function signature has changed."),t=arguments[0]||null,e=arguments[1]);const r=Math.pow(2,-n),i=Math.floor(e.image.width*r),o=Math.floor(e.image.height*r),a=null!==t?t.x:0,s=null!==t?t.y:0;ne.setTexture2D(e,0),xe.copyTexSubImage2D(xe.TEXTURE_2D,n,0,0,a,s,i,o),J.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0){let o,a,s,l,c,u;!0!==e.isTexture&&(console.warn("WebGLRenderer: copyTextureToTexture function signature has changed."),r=arguments[0]||null,e=arguments[1],t=arguments[2],i=arguments[3]||0,n=null),null!==n?(o=n.max.x-n.min.x,a=n.max.y-n.min.y,s=n.min.x,l=n.min.y):(o=e.image.width,a=e.image.height,s=0,l=0),null!==r?(c=r.x,u=r.y):(c=0,u=0);const d=Ae.convert(t.format),h=Ae.convert(t.type);ne.setTexture2D(t,0),xe.pixelStorei(xe.UNPACK_FLIP_Y_WEBGL,t.flipY),xe.pixelStorei(xe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),xe.pixelStorei(xe.UNPACK_ALIGNMENT,t.unpackAlignment);const f=xe.getParameter(xe.UNPACK_ROW_LENGTH),p=xe.getParameter(xe.UNPACK_IMAGE_HEIGHT),m=xe.getParameter(xe.UNPACK_SKIP_PIXELS),g=xe.getParameter(xe.UNPACK_SKIP_ROWS),v=xe.getParameter(xe.UNPACK_SKIP_IMAGES),A=e.isCompressedTexture?e.mipmaps[i]:e.image;xe.pixelStorei(xe.UNPACK_ROW_LENGTH,A.width),xe.pixelStorei(xe.UNPACK_IMAGE_HEIGHT,A.height),xe.pixelStorei(xe.UNPACK_SKIP_PIXELS,s),xe.pixelStorei(xe.UNPACK_SKIP_ROWS,l),e.isDataTexture?xe.texSubImage2D(xe.TEXTURE_2D,i,c,u,o,a,d,h,A.data):e.isCompressedTexture?xe.compressedTexSubImage2D(xe.TEXTURE_2D,i,c,u,A.width,A.height,d,A.data):xe.texSubImage2D(xe.TEXTURE_2D,i,c,u,d,h,A),xe.pixelStorei(xe.UNPACK_ROW_LENGTH,f),xe.pixelStorei(xe.UNPACK_IMAGE_HEIGHT,p),xe.pixelStorei(xe.UNPACK_SKIP_PIXELS,m),xe.pixelStorei(xe.UNPACK_SKIP_ROWS,g),xe.pixelStorei(xe.UNPACK_SKIP_IMAGES,v),0===i&&t.generateMipmaps&&xe.generateMipmap(xe.TEXTURE_2D),J.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n=null,r=null,i=0){let o,a,s,l,c,u,d,h,f;!0!==e.isTexture&&(console.warn("WebGLRenderer: copyTextureToTexture3D function signature has changed."),n=arguments[0]||null,r=arguments[1]||null,e=arguments[2],t=arguments[3],i=arguments[4]||0);const p=e.isCompressedTexture?e.mipmaps[i]:e.image;null!==n?(o=n.max.x-n.min.x,a=n.max.y-n.min.y,s=n.max.z-n.min.z,l=n.min.x,c=n.min.y,u=n.min.z):(o=p.width,a=p.height,s=p.depth,l=0,c=0,u=0),null!==r?(d=r.x,h=r.y,f=r.z):(d=0,h=0,f=0);const m=Ae.convert(t.format),g=Ae.convert(t.type);let v;if(t.isData3DTexture)ne.setTexture3D(t,0),v=xe.TEXTURE_3D;else{if(!t.isDataArrayTexture&&!t.isCompressedArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");ne.setTexture2DArray(t,0),v=xe.TEXTURE_2D_ARRAY}xe.pixelStorei(xe.UNPACK_FLIP_Y_WEBGL,t.flipY),xe.pixelStorei(xe.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),xe.pixelStorei(xe.UNPACK_ALIGNMENT,t.unpackAlignment);const A=xe.getParameter(xe.UNPACK_ROW_LENGTH),y=xe.getParameter(xe.UNPACK_IMAGE_HEIGHT),b=xe.getParameter(xe.UNPACK_SKIP_PIXELS),x=xe.getParameter(xe.UNPACK_SKIP_ROWS),S=xe.getParameter(xe.UNPACK_SKIP_IMAGES);xe.pixelStorei(xe.UNPACK_ROW_LENGTH,p.width),xe.pixelStorei(xe.UNPACK_IMAGE_HEIGHT,p.height),xe.pixelStorei(xe.UNPACK_SKIP_PIXELS,l),xe.pixelStorei(xe.UNPACK_SKIP_ROWS,c),xe.pixelStorei(xe.UNPACK_SKIP_IMAGES,u),e.isDataTexture||e.isData3DTexture?xe.texSubImage3D(v,i,d,h,f,o,a,s,m,g,p.data):t.isCompressedArrayTexture?xe.compressedTexSubImage3D(v,i,d,h,f,o,a,s,m,p.data):xe.texSubImage3D(v,i,d,h,f,o,a,s,m,g,p),xe.pixelStorei(xe.UNPACK_ROW_LENGTH,A),xe.pixelStorei(xe.UNPACK_IMAGE_HEIGHT,y),xe.pixelStorei(xe.UNPACK_SKIP_PIXELS,b),xe.pixelStorei(xe.UNPACK_SKIP_ROWS,x),xe.pixelStorei(xe.UNPACK_SKIP_IMAGES,S),0===i&&t.generateMipmaps&&xe.generateMipmap(v),J.unbindTexture()},this.initRenderTarget=function(e){void 0===te.get(e).__webglFramebuffer&&ne.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?ne.setTextureCube(e,0):e.isData3DTexture?ne.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?ne.setTexture2DArray(e,0):ne.setTexture2D(e,0),J.unbindTexture()},this.resetState=function(){C=0,w=0,_=null,J.reset(),ye.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return zn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Jt?"display-p3":"srgb",t.unpackColorSpace=pr.workingColorSpace===Zt?"display-p3":"srgb"}}class ec{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Ki(e),this.density=t}clone(){return new ec(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class tc{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new Ki(e),this.near=t,this.far=n}clone(){return new tc(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class nc extends Di{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Ai,this.environmentIntensity=1,this.environmentRotation=new Ai,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class rc{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=void 0!==e?e.length/t:0,this.usage=Mn,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Wn()}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return cr("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let r=0,i=this.stride;re.far||t.push({distance:s,point:lc.clone(),uv:Vi.getInterpolation(lc,pc,mc,gc,vc,Ac,yc,new er),face:null,object:this})}copy(e,t){return super.copy(e,t),void 0!==e.center&&this.center.copy(e.center),this.material=e.material,this}}function xc(e,t,n,r,i,o){dc.subVectors(e,n).addScalar(.5).multiply(r),void 0!==i?(hc.x=o*dc.x-i*dc.y,hc.y=i*dc.x+o*dc.y):hc.copy(dc),e.copy(t),e.x+=hc.x,e.y+=hc.y,e.applyMatrix4(fc)}const Sc=new Pr,Ec=new Pr;class Cc extends Di{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let e=0,n=t.length;e0){let n,r;for(n=1,r=t.length;n0){Sc.setFromMatrixPosition(this.matrixWorld);const n=e.ray.origin.distanceTo(Sc);this.getObjectForDistance(n).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Sc.setFromMatrixPosition(e.matrixWorld),Ec.setFromMatrixPosition(this.matrixWorld);const n=Sc.distanceTo(Ec)/e.zoom;let r,i;for(t[0].object.visible=!0,r=1,i=t.length;r=e))break;t[r-1].object.visible=!1,t[r].object.visible=!0}for(this._currentLevel=r-1;r=n.length&&n.push({start:-1,count:-1,z:-1});const i=n[this.index];r.push(i),this.index++,i.start=e.start,i.count=e.count,i.z=t}reset(){this.list.length=0,this.index=0}}const Jc="batchId",Zc=new li,eu=new li,tu=new li,nu=new Ki(1,1,1),ru=new li,iu=new pa,ou=new Dr,au=new Zr,su=new Pr,lu=new Pr,cu=new Pr,uu=new Kc,du=new Qo,hu=[];function fu(e,t,n=0){const r=t.itemSize;if(e.isInterleavedBufferAttribute||e.array.constructor!==t.array.constructor){const i=e.count;for(let o=0;o65536?new Uint32Array(i):new Uint16Array(i);t.setIndex(new co(e,1))}const o=r>65536?new Uint32Array(n):new Uint16Array(n);t.setAttribute(Jc,new co(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(Jc))throw new Error(`BatchedMesh: Geometry cannot use attribute "${Jc}"`);const t=this.geometry;if(Boolean(e.getIndex())!==Boolean(t.getIndex()))throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const n in t.attributes){if(n===Jc)continue;if(!e.hasAttribute(n))throw new Error(`BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);const r=e.getAttribute(n),i=t.getAttribute(n);if(r.itemSize!==i.itemSize||r.normalized!==i.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new Dr);const e=this._geometryCount,t=this.boundingBox,n=this._active;t.makeEmpty();for(let r=0;r=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const r={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let i=null;const o=this._reservedRanges,a=this._drawRanges,s=this._bounds;0!==this._geometryCount&&(i=o[o.length-1]),r.vertexCount=-1===t?e.getAttribute("position").count:t,r.vertexStart=null===i?0:i.vertexStart+i.vertexCount;const l=e.getIndex(),c=null!==l;if(c&&(r.indexCount=-1===n?l.count:n,r.indexStart=null===i?0:i.indexStart+i.indexCount),-1!==r.indexStart&&r.indexStart+r.indexCount>this._maxIndexCount||r.vertexStart+r.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const u=this._visibility,d=this._active,h=this._matricesTexture,f=this._matricesTexture.image.data,p=this._colorsTexture;u.push(!0),d.push(!0);const m=this._geometryCount;this._geometryCount++,tu.toArray(f,16*m),h.needsUpdate=!0,null!==p&&(nu.toArray(p.image.data,4*m),p.needsUpdate=!0),o.push(r),a.push({start:c?r.indexStart:r.vertexStart,count:-1}),s.push({boxInitialized:!1,box:new Dr,sphereInitialized:!1,sphere:new Zr});const g=this.geometry.getAttribute(Jc);for(let e=0;e=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const n=this.geometry,r=null!==n.getIndex(),i=n.getIndex(),o=t.getIndex(),a=this._reservedRanges[e];if(r&&o.count>a.indexCount||t.attributes.position.count>a.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const s=a.vertexStart,l=a.vertexCount;for(const e in n.attributes){if(e===Jc)continue;const r=t.getAttribute(e),i=n.getAttribute(e);fu(r,i,s);const o=r.itemSize;for(let e=r.count,t=l;e=t.length||!1===t[e]||(t[e]=!1,this._visibilityChanged=!0),this}getInstanceCountAt(e){return null===this._multiDrawInstances?null:this._multiDrawInstances[e]}setInstanceCountAt(e,t){return null===this._multiDrawInstances&&(this._multiDrawInstances=new Int32Array(this._maxGeometryCount).fill(1)),this._multiDrawInstances[e]=t,e}getBoundingBoxAt(e,t){if(!1===this._active[e])return null;const n=this._bounds[e],r=n.box,i=this.geometry;if(!1===n.boxInitialized){r.makeEmpty();const t=i.index,o=i.attributes.position,a=this._drawRanges[e];for(let e=a.start,n=a.start+a.count;e=this._geometryCount||!1===n[e]||(t.toArray(i,16*e),r.needsUpdate=!0),this}getMatrixAt(e,t){const n=this._active,r=this._matricesTexture.image.data;return e>=this._geometryCount||!1===n[e]?null:t.fromArray(r,16*e)}setColorAt(e,t){null===this._colorsTexture&&this._initColorsTexture();const n=this._active,r=this._colorsTexture,i=this._colorsTexture.image.data;return e>=this._geometryCount||!1===n[e]||(t.toArray(i,4*e),r.needsUpdate=!0),this}getColorAt(e,t){const n=this._active,r=this._colorsTexture.image.data;return e>=this._geometryCount||!1===n[e]?null:t.fromArray(r,4*e)}setVisibleAt(e,t){const n=this._visibility,r=this._active;return e>=this._geometryCount||!1===r[e]||n[e]===t||(n[e]=t,this._visibilityChanged=!0),this}getVisibleAt(e){const t=this._visibility,n=this._active;return!(e>=this._geometryCount||!1===n[e])&&t[e]}raycast(e,t){const n=this._visibility,r=this._active,i=this._drawRanges,o=this._geometryCount,a=this.matrixWorld,s=this.geometry;du.material=this.material,du.geometry.index=s.index,du.geometry.attributes=s.attributes,null===du.geometry.boundingBox&&(du.geometry.boundingBox=new Dr),null===du.geometry.boundingSphere&&(du.geometry.boundingSphere=new Zr);for(let s=0;s({...e})),this._reservedRanges=e._reservedRanges.map(e=>({...e})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(e=>({boxInitialized:e.boxInitialized,box:e.box.clone(),sphereInitialized:e.sphereInitialized,sphere:e.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),null!==this._colorsTexture&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.slice()),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,null!==this._colorsTexture&&(this._colorsTexture.dispose(),this._colorsTexture=null),this}onBeforeRender(e,t,n,r,i){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=r.getIndex(),a=null===o?1:o.array.BYTES_PER_ELEMENT,s=this._active,l=this._visibility,c=this._multiDrawStarts,u=this._multiDrawCounts,d=this._drawRanges,h=this.perObjectFrustumCulled;h&&(ru.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),iu.setFromProjectionMatrix(ru,e.coordinateSystem));let f=0;if(this.sortObjects){eu.copy(this.matrixWorld).invert(),su.setFromMatrixPosition(n.matrixWorld).applyMatrix4(eu),lu.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(eu);for(let e=0,t=l.length;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;xu.applyMatrix4(e.matrixWorld);const s=t.ray.origin.distanceTo(xu);return st.far?void 0:{distance:s,point:Su.clone().applyMatrix4(e.matrixWorld),index:i,face:null,faceIndex:null,object:e}}const wu=new Pr,_u=new Pr;class Iu extends Eu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;o.push({distance:l,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,object:a})}}class Lu extends Er{constructor(e,t,n,r,i,o,a,s,l){super(e,t,n,r,i,o,a,s,l),this.isVideoTexture=!0,this.minFilter=void 0!==o?o:Ce,this.magFilter=void 0!==i?i:Ce,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(function t(){c.needsUpdate=!0,e.requestVideoFrameCallback(t)})}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;!1=="requestVideoFrameCallback"in e&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class Bu extends Er{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=ye,this.minFilter=ye,this.generateMipmaps=!1,this.needsUpdate=!0}}class Fu extends Er{constructor(e,t,n,r,i,o,a,s,l,c,u,d){super(null,o,a,s,l,c,r,i,u,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class Uu extends Fu{constructor(e,t,n,r,i,o){super(e,t,n,i,o),this.isCompressedArrayTexture=!0,this.image.depth=r,this.wrapR=ve,this.layerUpdates=new Set}addLayerUpdates(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class zu extends Fu{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,de),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class ju extends Er{constructor(e,t,n,r,i,o,a,s,l){super(e,t,n,r,i,o,a,s,l),this.isCanvasTexture=!0,this.needsUpdate=!0}}class $u{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,r=this.getPoint(0),i=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),i+=n.distanceTo(r),t.push(i),r=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let r=0;const i=n.length;let o;o=t||e*n[i-1];let a,s=0,l=i-1;for(;s<=l;)if(r=Math.floor(s+(l-s)/2),a=n[r]-o,a<0)s=r+1;else{if(!(a>0)){l=r;break}l=r-1}if(r=l,n[r]===o)return r/(i-1);const c=n[r];return(r+(o-c)/(n[r+1]-c))/(i-1)}getTangent(e,t){const n=1e-4;let r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);const o=this.getPoint(r),a=this.getPoint(i),s=t||(o.isVector2?new er:new Pr);return s.copy(a).sub(o).normalize(),s}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new Pr,r=[],i=[],o=[],a=new Pr,s=new li;for(let t=0;t<=e;t++){const n=t/e;r[t]=this.getTangentAt(n,new Pr)}i[0]=new Pr,o[0]=new Pr;let l=Number.MAX_VALUE;const c=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),d<=l&&n.set(0,0,1),a.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],a),o[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),o[t]=o[t-1].clone(),a.crossVectors(r[t-1],r[t]),a.length()>Number.EPSILON){a.normalize();const e=Math.acos(Xn(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(a,e))}o[t].crossVectors(r[t],i[t])}if(!0===t){let t=Math.acos(Xn(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(a.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),o[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Hu extends $u{constructor(e=0,t=0,n=1,r=1,i=0,o=2*Math.PI,a=!1,s=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(e,t=new er){const n=t,r=2*Math.PI;let i=this.aEndAngle-this.aStartAngle;const o=Math.abs(i)r;)i-=r;i0?0:(Math.floor(Math.abs(l)/i)+1)*i:0===c&&l===i-1&&(l=i-2,c=1),this.closed||l>0?a=r[(l-1)%i]:(Vu.subVectors(r[0],r[1]).add(r[0]),a=Vu);const u=r[l%i],d=r[(l+1)%i];if(this.closed||l+2r.length-2?r.length-1:o+1],u=r[o>r.length-3?r.length-1:o+2];return n.set(Ku(a,s.x,l.x,c.x,u.x),Ku(a,s.y,l.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const e=r[i]-n,o=this.curves[i],a=o.getLength(),s=0===a?0:1-e/a;return o.getPointAt(s,t)}i++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,r=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const e=l.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class ud extends Io{constructor(e=[new er(0,-.5),new er(.5,0),new er(0,.5)],t=12,n=0,r=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:r},t=Math.floor(t),r=Xn(r,0,2*Math.PI);const i=[],o=[],a=[],s=[],l=[],c=1/t,u=new Pr,d=new er,h=new Pr,f=new Pr,p=new Pr;let m=0,g=0;for(let t=0;t<=e.length-1;t++)switch(t){case 0:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,h.x=1*g,h.y=-m,h.z=0*g,p.copy(h),h.normalize(),s.push(h.x,h.y,h.z);break;case e.length-1:s.push(p.x,p.y,p.z);break;default:m=e[t+1].x-e[t].x,g=e[t+1].y-e[t].y,h.x=1*g,h.y=-m,h.z=0*g,f.copy(h),h.x+=p.x,h.y+=p.y,h.z+=p.z,h.normalize(),s.push(h.x,h.y,h.z),p.copy(f)}for(let i=0;i<=t;i++){const h=n+i*c*r,f=Math.sin(h),p=Math.cos(h);for(let n=0;n<=e.length-1;n++){u.x=e[n].x*f,u.y=e[n].y,u.z=e[n].x*p,o.push(u.x,u.y,u.z),d.x=i/t,d.y=n/(e.length-1),a.push(d.x,d.y);const r=s[3*n+0]*f,c=s[3*n+1],h=s[3*n+0]*p;l.push(r,c,h)}}for(let n=0;n0&&v(!0),t>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new yo(u,3)),this.setAttribute("normal",new yo(d,3)),this.setAttribute("uv",new yo(h,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new fd(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class pd extends fd{constructor(e=1,t=1,n=32,r=1,i=!1,o=0,a=2*Math.PI){super(0,e,t,n,r,i,o,a),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:o,thetaLength:a}}static fromJSON(e){return new pd(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class md extends Io{constructor(e=[],t=[],n=1,r=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:n,detail:r};const i=[],o=[];function a(e,t,n,r){const i=r+1,o=[];for(let r=0;r<=i;r++){o[r]=[];const a=e.clone().lerp(n,r/i),s=t.clone().lerp(n,r/i),l=i-r;for(let e=0;e<=l;e++)o[r][e]=0===e&&r===i?a:a.clone().lerp(s,e/l)}for(let e=0;e.9&&a<.1&&(t<.2&&(o[e+0]+=1),n<.2&&(o[e+2]+=1),r<.2&&(o[e+4]+=1))}}()}(),this.setAttribute("position",new yo(i,3)),this.setAttribute("normal",new yo(i.slice(),3)),this.setAttribute("uv",new yo(o,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new md(e.vertices,e.indices,e.radius,e.details)}}class gd extends md{constructor(e=1,t=0){const n=(1+Math.sqrt(5))/2,r=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new gd(e.radius,e.detail)}}const vd=new Pr,Ad=new Pr,yd=new Pr,bd=new Vi;class xd extends Io{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},null!==e){const n=4,r=Math.pow(10,n),i=Math.cos(Qn*t),o=e.getIndex(),a=e.getAttribute("position"),s=o?o.count:a.count,l=[0,0,0],c=["a","b","c"],u=new Array(3),d={},h=[];for(let e=0;e0)for(o=t;o=t;o-=r)a=Gd(o,e[o],e[o+1],a);return a&&Fd(a,a.next)&&(Qd(a),a=a.next),a}function Cd(e,t){if(!e)return e;t||(t=e);let n,r=e;do{if(n=!1,r.steiner||!Fd(r,r.next)&&0!==Bd(r.prev,r,r.next))r=r.next;else{if(Qd(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function wd(e,t,n,r,i,o,a){if(!e)return;!a&&o&&function(e,t,n,r){let i=e;do{0===i.z&&(i.z=Nd(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,function(e){let t,n,r,i,o,a,s,l,c=1;do{for(n=e,e=null,o=null,a=0;n;){for(a++,r=n,s=0,t=0;t0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(e,r,i,o);let s,l,c=e;for(;e.prev!==e.next;)if(s=e.prev,l=e.next,o?Id(e,r,i,o):_d(e))t.push(s.i/n|0),t.push(e.i/n|0),t.push(l.i/n|0),Qd(e),e=l.next,c=l.next;else if((e=l)===c){a?1===a?wd(e=Td(Cd(e),t,n),t,n,r,i,o,2):2===a&&Md(e,t,n,r,i,o):wd(Cd(e),t,n,r,i,o,1);break}}function _d(e){const t=e.prev,n=e,r=e.next;if(Bd(t,n,r)>=0)return!1;const i=t.x,o=n.x,a=r.x,s=t.y,l=n.y,c=r.y,u=io?i>a?i:a:o>a?o:a,f=s>l?s>c?s:c:l>c?l:c;let p=r.next;for(;p!==t;){if(p.x>=u&&p.x<=h&&p.y>=d&&p.y<=f&&Dd(i,s,o,l,a,c,p.x,p.y)&&Bd(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Id(e,t,n,r){const i=e.prev,o=e,a=e.next;if(Bd(i,o,a)>=0)return!1;const s=i.x,l=o.x,c=a.x,u=i.y,d=o.y,h=a.y,f=sl?s>c?s:c:l>c?l:c,g=u>d?u>h?u:h:d>h?d:h,v=Nd(f,p,t,n,r),A=Nd(m,g,t,n,r);let y=e.prevZ,b=e.nextZ;for(;y&&y.z>=v&&b&&b.z<=A;){if(y.x>=f&&y.x<=m&&y.y>=p&&y.y<=g&&y!==i&&y!==a&&Dd(s,u,l,d,c,h,y.x,y.y)&&Bd(y.prev,y,y.next)>=0)return!1;if(y=y.prevZ,b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Dd(s,u,l,d,c,h,b.x,b.y)&&Bd(b.prev,b,b.next)>=0)return!1;b=b.nextZ}for(;y&&y.z>=v;){if(y.x>=f&&y.x<=m&&y.y>=p&&y.y<=g&&y!==i&&y!==a&&Dd(s,u,l,d,c,h,y.x,y.y)&&Bd(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;b&&b.z<=A;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==i&&b!==a&&Dd(s,u,l,d,c,h,b.x,b.y)&&Bd(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Td(e,t,n){let r=e;do{const i=r.prev,o=r.next.next;!Fd(i,o)&&Ud(i,r,r.next,o)&&$d(i,o)&&$d(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),Qd(r),Qd(r.next),r=e=o),r=r.next}while(r!==e);return Cd(r)}function Md(e,t,n,r,i,o){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&Ld(a,e)){let s=Hd(a,e);return a=Cd(a,a.next),s=Cd(s,s.next),wd(a,t,n,r,i,o,0),void wd(s,t,n,r,i,o,0)}e=e.next}a=a.next}while(a!==e)}function Rd(e,t){return e.x-t.x}function Od(e,t){const n=function(e,t){let n,r=t,i=-1/0;const o=e.x,a=e.y;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){const e=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(e<=o&&e>i&&(i=e,n=r.x=r.x&&r.x>=l&&o!==r.x&&Dd(an.x||r.x===n.x&&Pd(n,r)))&&(n=r,d=u)),r=r.next}while(r!==s);return n}(e,t);if(!n)return t;const r=Hd(n,e);return Cd(r,r.next),Cd(n,n.next)}function Pd(e,t){return Bd(e.prev,e,t.prev)<0&&Bd(t.next,e,e.next)<0}function Nd(e,t,n,r,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function kd(e){let t=e,n=e;do{(t.x=(e-a)*(o-s)&&(e-a)*(r-s)>=(n-a)*(t-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function Ld(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Ud(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&($d(e,t)&&$d(t,e)&&function(e,t){let n=e,r=!1;const i=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Bd(e.prev,e,t.prev)||Bd(e,t.prev,t))||Fd(e,t)&&Bd(e.prev,e,e.next)>0&&Bd(t.prev,t,t.next)>0)}function Bd(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Fd(e,t){return e.x===t.x&&e.y===t.y}function Ud(e,t,n,r){const i=jd(Bd(e,t,n)),o=jd(Bd(e,t,r)),a=jd(Bd(n,r,e)),s=jd(Bd(n,r,t));return i!==o&&a!==s||!(0!==i||!zd(e,n,t))||!(0!==o||!zd(e,r,t))||!(0!==a||!zd(n,e,r))||!(0!==s||!zd(n,t,r))}function zd(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function jd(e){return e>0?1:e<0?-1:0}function $d(e,t){return Bd(e.prev,e,e.next)<0?Bd(e,t,e.next)>=0&&Bd(e,e.prev,t)>=0:Bd(e,t,e.prev)<0||Bd(e,e.next,t)<0}function Hd(e,t){const n=new Vd(e.i,e.x,e.y),r=new Vd(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Gd(e,t,n,r){const i=new Vd(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Qd(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Vd(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Wd{static area(e){const t=e.length;let n=0;for(let r=t-1,i=0;i80*n){s=c=e[0],l=u=e[1];for(let t=n;tc&&(c=d),h>u&&(u=h);f=Math.max(c-s,u-l),f=0!==f?32767/f:0}return wd(o,a,n,s,l,f,0),a}(n,r);for(let e=0;e2&&e[t-1].equals(e[0])&&e.pop()}function qd(e,t){for(let n=0;nNumber.EPSILON){const d=Math.sqrt(u),h=Math.sqrt(l*l+c*c),f=t.x-s/d,p=t.y+a/d,m=((n.x-c/h-f)*c-(n.y+l/h-p)*l)/(a*c-s*l);r=f+a*m-e.x,i=p+s*m-e.y;const g=r*r+i*i;if(g<=2)return new er(r,i);o=Math.sqrt(g/2)}else{let e=!1;a>Number.EPSILON?l>Number.EPSILON&&(e=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(e=!0):Math.sign(s)===Math.sign(c)&&(e=!0),e?(r=-s,i=a,o=Math.sqrt(u)):(r=a,i=s,o=Math.sqrt(u/2))}return new er(r/o,i/o)}const O=[];for(let e=0,t=_.length,n=t-1,r=e+1;e=0;e--){const t=e/f,n=u*Math.cos(t*Math.PI/2),r=d*Math.sin(t*Math.PI/2)+h;for(let e=0,t=_.length;e=0;){const r=n;let i=n-1;i<0&&(i=e.length-1);for(let e=0,n=s+2*f;e0)&&h.push(t,i,l),(e!==n-1||s0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class ph extends eo{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Ki(16777215),this.specular=new Ki(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ki(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ai,this.combine=K,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class mh extends eo{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Ki(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ki(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class gh extends eo{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class vh extends eo{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Ki(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ki(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ai,this.combine=K,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Ah extends eo{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Ki(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Wt,this.normalScale=new er(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class yh extends mu{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function bh(e,t,n){return!e||!n&&e.constructor===t?e:"number"==typeof t.BYTES_PER_ELEMENT?new t(e):Array.prototype.slice.call(e)}function xh(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Sh(e){const t=e.length,n=new Array(t);for(let e=0;e!==t;++e)n[e]=e;return n.sort(function(t,n){return e[t]-e[n]}),n}function Eh(e,t,n){const r=e.length,i=new e.constructor(r);for(let o=0,a=0;a!==r;++o){const r=n[o]*t;for(let n=0;n!==t;++n)i[a++]=e[r+n]}return i}function Ch(e,t,n,r){let i=1,o=e[0];for(;void 0!==o&&void 0===o[r];)o=e[i++];if(void 0===o)return;let a=o[r];if(void 0!==a)if(Array.isArray(a))do{a=o[r],void 0!==a&&(t.push(o.time),n.push.apply(n,a)),o=e[i++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[r],void 0!==a&&(t.push(o.time),a.toArray(n,n.length)),o=e[i++]}while(void 0!==o);else do{a=o[r],void 0!==a&&(t.push(o.time),n.push(a)),o=e[i++]}while(void 0!==o)}const wh={convertArray:bh,isTypedArray:xh,getKeyframeOrder:Sh,sortedArray:Eh,flattenJSON:Ch,subclip:function(e,t,n,r,i=30){const o=e.clone();o.name=t;const a=[];for(let e=0;e=r)){l.push(t.times[e]);for(let n=0;no.tracks[e].times[0]&&(s=o.tracks[e].times[0]);for(let e=0;e=r.times[d]){const e=d*l+s,t=e+l-s;h=r.values.slice(e,t)}else{const e=r.createInterpolant(),t=s,n=l-s;e.evaluate(o),h=e.resultBuffer.slice(t,n)}"quaternion"===i&&(new Or).fromArray(h).normalize().conjugate().toArray(h);const f=a.times.length;for(let e=0;e=i)){const a=t[1];e=i)break t}o=n,n=0;break n}break e}for(;n>>1;et;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);const e=this.getValueSize();this.times=n.slice(i,o),this.values=this.values.slice(i*e,o*e)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let t=0;t!==i;t++){const r=n[t];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,t,r),e=!1;break}if(null!==o&&o>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,t,r,o),e=!1;break}o=r}if(void 0!==r&&xh(r))for(let t=0,n=r.length;t!==n;++t){const n=r[t];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,t,n),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===Lt,i=e.length-1;let o=1;for(let a=1;a0){e[o]=e[i];for(let e=i*n,r=o*n,a=0;a!==n;++a)t[r+a]=t[e+a];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=new(0,this.constructor)(this.name,e,t);return n.createInterpolant=this.createInterpolant,n}}Rh.prototype.TimeBufferType=Float32Array,Rh.prototype.ValueBufferType=Float32Array,Rh.prototype.DefaultInterpolation=Dt;class Oh extends Rh{constructor(e,t,n){super(e,t,n)}}Oh.prototype.ValueTypeName="bool",Oh.prototype.ValueBufferType=Array,Oh.prototype.DefaultInterpolation=kt,Oh.prototype.InterpolantFactoryMethodLinear=void 0,Oh.prototype.InterpolantFactoryMethodSmooth=void 0;class Ph extends Rh{}Ph.prototype.ValueTypeName="color";class Nh extends Rh{}Nh.prototype.ValueTypeName="number";class kh extends _h{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){const i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-t)/(r-t);let l=e*a;for(let e=l+a;l!==e;l+=4)Or.slerpFlat(i,0,o,l-a,o,l,s);return i}}class Dh extends Rh{InterpolantFactoryMethodLinear(e){return new kh(this.times,this.values,this.getValueSize(),e)}}Dh.prototype.ValueTypeName="quaternion",Dh.prototype.InterpolantFactoryMethodSmooth=void 0;class Lh extends Rh{constructor(e,t,n){super(e,t,n)}}Lh.prototype.ValueTypeName="string",Lh.prototype.ValueBufferType=Array,Lh.prototype.DefaultInterpolation=kt,Lh.prototype.InterpolantFactoryMethodLinear=void 0,Lh.prototype.InterpolantFactoryMethodSmooth=void 0;class Bh extends Rh{}Bh.prototype.ValueTypeName="vector";class Fh{constructor(e="",t=-1,n=[],r=zt){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Wn(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(Uh(n[e]).scale(r));const i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i}static toJSON(e){const t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let e=0,r=n.length;e!==r;++e)t.push(Rh.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){const i=t.length,o=[];for(let e=0;e1){const e=o[1];let t=r[e];t||(r[e]=t=[]),t.push(n)}}const o=[];for(const e in r)o.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(e,t,n,r,i){if(0!==n.length){const o=[],a=[];Ch(n,o,a,r),0!==o.length&&i.push(new e(t,o,a))}},r=[],i=e.name||"default",o=e.fps||30,a=e.blendMode;let s=e.length||-1;const l=e.hierarchy||[];for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0),i;if(void 0!==Gh[e])return void Gh[e].push({onLoad:t,onProgress:n,onError:r});Gh[e]=[],Gh[e].push({onLoad:t,onProgress:n,onError:r});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,s=this.responseType;fetch(o).then(t=>{if(200===t.status||0===t.status){if(0===t.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Gh[e],r=t.body.getReader(),i=t.headers.get("X-File-Size")||t.headers.get("Content-Length"),o=i?parseInt(i):0,a=0!==o;let s=0;const l=new ReadableStream({start(e){!function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;const r=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});for(let e=0,t=n.length;e{e.error(t)})}()}});return new Response(l)}throw new Qh(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then(e=>(new DOMParser).parseFromString(e,a));case"json":return e.json();default:if(void 0===a)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(a),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{zh.add(e,t);const n=Gh[e];delete Gh[e];for(let e=0,r=n.length;e{const n=Gh[e];if(void 0===n)throw this.manager.itemError(e),t;delete Gh[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Wh extends Hh{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new Vh(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(n){try{t(i.parse(JSON.parse(n)))}catch(t){r?r(t):console.error(t),i.manager.itemError(e)}},n,r)}parse(e){const t=[];for(let n=0;n0:r.vertexColors=e.vertexColors),void 0!==e.uniforms)for(const t in e.uniforms){const i=e.uniforms[t];switch(r.uniforms[t]={},i.type){case"t":r.uniforms[t].value=n(i.value);break;case"c":r.uniforms[t].value=(new Ki).setHex(i.value);break;case"v2":r.uniforms[t].value=(new er).fromArray(i.value);break;case"v3":r.uniforms[t].value=(new Pr).fromArray(i.value);break;case"v4":r.uniforms[t].value=(new Cr).fromArray(i.value);break;case"m3":r.uniforms[t].value=(new tr).fromArray(i.value);break;case"m4":r.uniforms[t].value=(new li).fromArray(i.value);break;default:r.uniforms[t].value=i.value}}if(void 0!==e.defines&&(r.defines=e.defines),void 0!==e.vertexShader&&(r.vertexShader=e.vertexShader),void 0!==e.fragmentShader&&(r.fragmentShader=e.fragmentShader),void 0!==e.glslVersion&&(r.glslVersion=e.glslVersion),void 0!==e.extensions)for(const t in e.extensions)r.extensions[t]=e.extensions[t];if(void 0!==e.lights&&(r.lights=e.lights),void 0!==e.clipping&&(r.clipping=e.clipping),void 0!==e.size&&(r.size=e.size),void 0!==e.sizeAttenuation&&(r.sizeAttenuation=e.sizeAttenuation),void 0!==e.map&&(r.map=n(e.map)),void 0!==e.matcap&&(r.matcap=n(e.matcap)),void 0!==e.alphaMap&&(r.alphaMap=n(e.alphaMap)),void 0!==e.bumpMap&&(r.bumpMap=n(e.bumpMap)),void 0!==e.bumpScale&&(r.bumpScale=e.bumpScale),void 0!==e.normalMap&&(r.normalMap=n(e.normalMap)),void 0!==e.normalMapType&&(r.normalMapType=e.normalMapType),void 0!==e.normalScale){let t=e.normalScale;!1===Array.isArray(t)&&(t=[t,t]),r.normalScale=(new er).fromArray(t)}return void 0!==e.displacementMap&&(r.displacementMap=n(e.displacementMap)),void 0!==e.displacementScale&&(r.displacementScale=e.displacementScale),void 0!==e.displacementBias&&(r.displacementBias=e.displacementBias),void 0!==e.roughnessMap&&(r.roughnessMap=n(e.roughnessMap)),void 0!==e.metalnessMap&&(r.metalnessMap=n(e.metalnessMap)),void 0!==e.emissiveMap&&(r.emissiveMap=n(e.emissiveMap)),void 0!==e.emissiveIntensity&&(r.emissiveIntensity=e.emissiveIntensity),void 0!==e.specularMap&&(r.specularMap=n(e.specularMap)),void 0!==e.specularIntensityMap&&(r.specularIntensityMap=n(e.specularIntensityMap)),void 0!==e.specularColorMap&&(r.specularColorMap=n(e.specularColorMap)),void 0!==e.envMap&&(r.envMap=n(e.envMap)),void 0!==e.envMapRotation&&r.envMapRotation.fromArray(e.envMapRotation),void 0!==e.envMapIntensity&&(r.envMapIntensity=e.envMapIntensity),void 0!==e.reflectivity&&(r.reflectivity=e.reflectivity),void 0!==e.refractionRatio&&(r.refractionRatio=e.refractionRatio),void 0!==e.lightMap&&(r.lightMap=n(e.lightMap)),void 0!==e.lightMapIntensity&&(r.lightMapIntensity=e.lightMapIntensity),void 0!==e.aoMap&&(r.aoMap=n(e.aoMap)),void 0!==e.aoMapIntensity&&(r.aoMapIntensity=e.aoMapIntensity),void 0!==e.gradientMap&&(r.gradientMap=n(e.gradientMap)),void 0!==e.clearcoatMap&&(r.clearcoatMap=n(e.clearcoatMap)),void 0!==e.clearcoatRoughnessMap&&(r.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),void 0!==e.clearcoatNormalMap&&(r.clearcoatNormalMap=n(e.clearcoatNormalMap)),void 0!==e.clearcoatNormalScale&&(r.clearcoatNormalScale=(new er).fromArray(e.clearcoatNormalScale)),void 0!==e.iridescenceMap&&(r.iridescenceMap=n(e.iridescenceMap)),void 0!==e.iridescenceThicknessMap&&(r.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),void 0!==e.transmissionMap&&(r.transmissionMap=n(e.transmissionMap)),void 0!==e.thicknessMap&&(r.thicknessMap=n(e.thicknessMap)),void 0!==e.anisotropyMap&&(r.anisotropyMap=n(e.anisotropyMap)),void 0!==e.sheenColorMap&&(r.sheenColorMap=n(e.sheenColorMap)),void 0!==e.sheenRoughnessMap&&(r.sheenRoughnessMap=n(e.sheenRoughnessMap)),r}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){return new{ShadowMaterial:uh,SpriteMaterial:ac,RawShaderMaterial:dh,ShaderMaterial:Jo,PointsMaterial:Mu,MeshPhysicalMaterial:fh,MeshStandardMaterial:hh,MeshPhongMaterial:ph,MeshToonMaterial:mh,MeshNormalMaterial:gh,MeshLambertMaterial:vh,MeshDepthMaterial:Bl,MeshDistanceMaterial:Fl,MeshBasicMaterial:to,MeshMatcapMaterial:Ah,LineDashedMaterial:yh,LineBasicMaterial:mu,Material:eo}[e]}}class bf{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);let t="";for(let n=0,r=e.length;n0){const n=new jh(t);i=new qh(n),i.setCrossOrigin(this.crossOrigin);for(let t=0,n=e.length;t0){r=new qh(this.manager),r.setCrossOrigin(this.crossOrigin);for(let t=0,r=e.length;t{const t=new Dr;t.min.fromArray(e.boxMin),t.max.fromArray(e.boxMax);const n=new Zr;return n.radius=e.sphereRadius,n.center.fromArray(e.sphereCenter),{boxInitialized:e.boxInitialized,box:t,sphereInitialized:e.sphereInitialized,sphere:n}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=u(e.matricesTexture.uuid),void 0!==e.colorsTexture&&(o._colorsTexture=u(e.colorsTexture.uuid));break;case"LOD":o=new Cc;break;case"Line":o=new Eu(l(e.geometry),c(e.material));break;case"LineLoop":o=new Tu(l(e.geometry),c(e.material));break;case"LineSegments":o=new Iu(l(e.geometry),c(e.material));break;case"PointCloud":case"Points":o=new ku(l(e.geometry),c(e.material));break;case"Sprite":o=new bc(c(e.material));break;case"Group":o=new Gl;break;case"Bone":o=new Dc;break;default:o=new Di}if(o.uuid=e.uuid,void 0!==e.name&&(o.name=e.name),void 0!==e.matrix?(o.matrix.fromArray(e.matrix),void 0!==e.matrixAutoUpdate&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(void 0!==e.position&&o.position.fromArray(e.position),void 0!==e.rotation&&o.rotation.fromArray(e.rotation),void 0!==e.quaternion&&o.quaternion.fromArray(e.quaternion),void 0!==e.scale&&o.scale.fromArray(e.scale)),void 0!==e.up&&o.up.fromArray(e.up),void 0!==e.castShadow&&(o.castShadow=e.castShadow),void 0!==e.receiveShadow&&(o.receiveShadow=e.receiveShadow),e.shadow&&(void 0!==e.shadow.bias&&(o.shadow.bias=e.shadow.bias),void 0!==e.shadow.normalBias&&(o.shadow.normalBias=e.shadow.normalBias),void 0!==e.shadow.radius&&(o.shadow.radius=e.shadow.radius),void 0!==e.shadow.mapSize&&o.shadow.mapSize.fromArray(e.shadow.mapSize),void 0!==e.shadow.camera&&(o.shadow.camera=this.parseObject(e.shadow.camera))),void 0!==e.visible&&(o.visible=e.visible),void 0!==e.frustumCulled&&(o.frustumCulled=e.frustumCulled),void 0!==e.renderOrder&&(o.renderOrder=e.renderOrder),void 0!==e.userData&&(o.userData=e.userData),void 0!==e.layers&&(o.layers.mask=e.layers),void 0!==e.children){const a=e.children;for(let e=0;e{t&&t(n),i.manager.itemEnd(e)}).catch(e=>{r&&r(e)}):(setTimeout(function(){t&&t(o),i.manager.itemEnd(e)},0),o);const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader;const s=fetch(e,a).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign(i.options,{colorSpaceConversion:"none"}))}).then(function(n){return zh.add(e,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),zh.remove(e),i.manager.itemError(e),i.manager.itemEnd(e)});zh.add(e,s),i.manager.itemStart(e)}}let Tf;class Mf{static getContext(){return void 0===Tf&&(Tf=new(window.AudioContext||window.webkitAudioContext)),Tf}static setContext(e){Tf=e}}class Rf extends Hh{constructor(e){super(e)}load(e,t,n,r){const i=this,o=new Vh(this.manager);function a(t){r?r(t):console.error(t),i.manager.itemError(e)}o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(e){try{const n=e.slice(0);Mf.getContext().decodeAudioData(n,function(e){t(e)}).catch(a)}catch(e){a(e)}},n,r)}}const Of=new li,Pf=new li,Nf=new li;class kf{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new ra,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new ra,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Nf.copy(e.projectionMatrix);const n=t.eyeSep/2,r=n*t.near/t.focus,i=t.near*Math.tan(Qn*t.fov*.5)/t.zoom;let o,a;Pf.elements[12]=-n,Of.elements[12]=n,o=-i*t.aspect+r,a=i*t.aspect+r,Nf.elements[0]=2*t.near/(a-o),Nf.elements[8]=(a+o)/(a-o),this.cameraL.projectionMatrix.copy(Nf),o=-i*t.aspect-r,a=i*t.aspect-r,Nf.elements[0]=2*t.near/(a-o),Nf.elements[8]=(a+o)/(a-o),this.cameraR.projectionMatrix.copy(Nf)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(Pf),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(Of)}}class Df{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Lf(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=Lf();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function Lf(){return("undefined"==typeof performance?Date:performance).now()}const Bf=new Pr,Ff=new Or,Uf=new Pr,zf=new Pr;class jf extends Di{constructor(){super(),this.type="AudioListener",this.context=Mf.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Df}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Bf,Ff,Uf),zf.set(0,0,-1).applyQuaternion(Ff),t.positionX){const e=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(Bf.x,e),t.positionY.linearRampToValueAtTime(Bf.y,e),t.positionZ.linearRampToValueAtTime(Bf.z,e),t.forwardX.linearRampToValueAtTime(zf.x,e),t.forwardY.linearRampToValueAtTime(zf.y,e),t.forwardZ.linearRampToValueAtTime(zf.z,e),t.upX.linearRampToValueAtTime(n.x,e),t.upY.linearRampToValueAtTime(n.y,e),t.upZ.linearRampToValueAtTime(n.z,e)}else t.setPosition(Bf.x,Bf.y,Bf.z),t.setOrientation(zf.x,zf.y,zf.z,n.x,n.y,n.z)}}class $f extends Di{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,null!==this.source&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,r,this._addIndex*t,1,t);for(let e=t,i=t+t;e!==i;++e)if(n[e]!==n[e+t]){a.setValue(n,r);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,r=n*this._origIndex;e.getValue(t,r);for(let e=n,i=r;e!==i;++e)t[e]=t[r+e%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=3*this.valueSize;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let r=0;r!==i;++r)e[t+r]=e[n+r]}_slerp(e,t,n,r){Or.slerpFlat(e,t,e,t,e,n,r)}_slerpAdditive(e,t,n,r,i){const o=this._workIndex*i;Or.multiplyQuaternionsFlat(e,o,e,t,e,n),Or.slerpFlat(e,t,e,t,e,o,r)}_lerp(e,t,n,r,i){const o=1-r;for(let a=0;a!==i;++a){const i=t+a;e[i]=e[i]*o+e[n+a]*r}}_lerpAdditive(e,t,n,r,i){for(let o=0;o!==i;++o){const i=t+o;e[i]=e[i]+e[n+o]*r}}}const Yf="\\[\\]\\.:\\/",Kf=new RegExp("["+Yf+"]","g"),Jf="[^"+Yf+"]",Zf="[^"+Yf.replace("\\.","")+"]",ep=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",Jf)+/(WCOD+)?/.source.replace("WCOD",Zf)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Jf)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Jf)+"$"),tp=["material","materials","bones","map"];class np{constructor(e,t,n){this.path=t,this.parsedPath=n||np.parseTrackName(t),this.node=np.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new np.Composite(e,t,n):new np(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(Kf,"")}static parseTrackName(e){const t=ep.exec(e);if(null===t)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){const e=n.nodeName.substring(r+1);-1!==tp.indexOf(e)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(void 0===t||""===t||"."===t||-1===t||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(void 0!==n)return n}if(e.children){const n=function(e){for(let r=0;r=i){const o=i++,c=e[o];t[c.uuid]=l,e[l]=c,t[s]=o,e[o]=a;for(let e=0,t=r;e!==t;++e){const t=n[e],r=t[o],i=t[l];t[l]=r,t[o]=i}}}this.nCachedObjects_=i}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,r=n.length;let i=this.nCachedObjects_,o=e.length;for(let a=0,s=arguments.length;a!==s;++a){const s=arguments[a].uuid,l=t[s];if(void 0!==l)if(delete t[s],l0&&(t[a.uuid]=l),e[l]=a,e.pop();for(let e=0,t=r;e!==t;++e){const t=n[e];t[l]=t[i],t.pop()}}}this.nCachedObjects_=i}subscribe_(e,t){const n=this._bindingsIndicesByPath;let r=n[e];const i=this._bindings;if(void 0!==r)return i[r];const o=this._paths,a=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l);r=i.length,n[e]=r,o.push(e),a.push(t),i.push(u);for(let n=c,r=s.length;n!==r;++n){const r=s[n];u[n]=new np(r,e,t)}return u}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(void 0!==n){const r=this._paths,i=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a];t[e[a]]=n,o[n]=s,o.pop(),i[n]=i[a],i.pop(),r[n]=r[a],r.pop()}}}class ip{constructor(e,t,n=null,r=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=r;const i=t.tracks,o=i.length,a=new Array(o),s={endingStart:Bt,endingEnd:Bt};for(let e=0;e!==o;++e){const t=i[e].createInterpolant(null);a[e]=t,t.settings=s}this._interpolantSettings=s,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Pt,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const n=this._clip.duration,r=e._clip.duration,i=r/n,o=n/r;e.warp(1,i,t),this.warp(o,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return null!==e&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const r=this._mixer,i=r.time,o=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=r._lendControlInterpolant(),this._timeScaleInterpolant=a);const s=a.parameterPositions,l=a.sampleValues;return s[0]=i,s[1]=i+n,l[0]=e/o,l[1]=t/o,this}stopWarping(){const e=this._timeScaleInterpolant;return null!==e&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,r){if(!this.enabled)return void this._updateWeight(e);const i=this._startTime;if(null!==i){const r=(e-i)*n;r<0||0===n?t=0:(this._startTime=null,t=n*r)}t*=this._updateTimeScale(e);const o=this._updateTime(t),a=this._updateWeight(e);if(a>0){const e=this._interpolants,t=this._propertyBindings;if(this.blendMode===jt)for(let n=0,r=e.length;n!==r;++n)e[n].evaluate(o),t[n].accumulateAdditive(a);else for(let n=0,i=e.length;n!==i;++n)e[n].evaluate(o),t[n].accumulate(r,a)}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(null!==n){const r=n.evaluate(e)[0];t*=r,e>n.parameterPositions[1]&&(this.stopFading(),0===r&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;null!==n&&(t*=n.evaluate(e)[0],e>n.parameterPositions[1]&&(this.stopWarping(),0===t?this.paused=!0:this.timeScale=t))}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let r=this.time+e,i=this._loopCount;const o=n===Nt;if(0===e)return-1===i||!o||1&~i?r:t-r;if(n===Ot){-1===i&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(r>=t)r=t;else{if(!(r<0)){this.time=r;break e}r=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(-1===i&&(e>=0?(i=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),r>=t||r<0){const n=Math.floor(r/t);r-=t*n,i+=Math.abs(n);const a=this.repetitions-i;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,r=e>0?t:0,this.time=r,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(1===a){const t=e<0;this._setEndings(t,!t,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this.time=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=r;if(o&&!(1&~i))return t-r}return r}_setEndings(e,t,n){const r=this._interpolantSettings;n?(r.endingStart=Ft,r.endingEnd=Ft):(r.endingStart=e?this.zeroSlopeAtStart?Ft:Bt:Ut,r.endingEnd=t?this.zeroSlopeAtEnd?Ft:Bt:Ut)}_scheduleFading(e,t,n){const r=this._mixer,i=r.time;let o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,s=o.sampleValues;return a[0]=i,s[0]=t,a[1]=i+e,s[1]=n,this}}const op=new Float32Array(1);class ap extends $n{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,r=e._clip.tracks,i=r.length,o=e._propertyBindings,a=e._interpolants,s=n.uuid,l=this._bindingsByRootAndName;let c=l[s];void 0===c&&(c={},l[s]=c);for(let e=0;e!==i;++e){const i=r[e],l=i.name;let u=c[l];if(void 0!==u)++u.referenceCount,o[e]=u;else{if(u=o[e],void 0!==u){null===u._cacheIndex&&(++u.referenceCount,this._addInactiveBinding(u,s,l));continue}const r=t&&t._propertyBindings[e].binding.parsedPath;u=new qf(np.create(n,l,r),i.ValueTypeName,i.getValueSize()),++u.referenceCount,this._addInactiveBinding(u,s,l),o[e]=u}a[e].resultBuffer=u.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(null===e._cacheIndex){const t=(e._localRoot||this._root).uuid,n=e._clip.uuid,r=this._actionsByClip[n];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,n,t)}const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let e=0,n=t.length;e!==n;++e){const n=t[e];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return null!==t&&t=0;--t)e[t].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,r=this.time+=e,i=Math.sign(e),o=this._accuIndex^=1;for(let a=0;a!==n;++a)t[a]._update(r,e,i,o);const a=this._bindings,s=this._nActiveBindings;for(let e=0;e!==s;++e)a[e].apply(o);return this}setTime(e){this.time=0;for(let e=0;ethis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ap).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const bp=new Pr,xp=new Pr;class Sp{constructor(e=new Pr,t=new Pr){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){bp.subVectors(e,this.start),xp.subVectors(this.end,this.start);const n=xp.dot(xp);let r=xp.dot(bp)/n;return t&&(r=Xn(r,0,1)),r}closestPointToPoint(e,t,n){const r=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(r).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const Ep=new Pr;class Cp extends Di{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const n=new Io,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let e=0,t=1,n=32;e1)for(let n=0;n.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{qp.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(qp,t)}}setLength(e,t=.2*e,n=.2*t){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class Zp extends Iu{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=new Io;n.setAttribute("position",new yo(t,3)),n.setAttribute("color",new yo([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3)),super(n,new mu({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(e,t,n){const r=new Ki,i=this.geometry.attributes.color.array;return r.set(e),r.toArray(i,0),r.toArray(i,3),r.set(t),r.toArray(i,6),r.toArray(i,9),r.set(n),r.toArray(i,12),r.toArray(i,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class em{constructor(){this.type="ShapePath",this.color=new Ki,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new cd,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,r){return this.currentPath.quadraticCurveTo(e,t,n,r),this}bezierCurveTo(e,t,n,r,i,o){return this.currentPath.bezierCurveTo(e,t,n,r,i,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e,t){const n=t.length;let r=!1;for(let i=n-1,o=0;oNumber.EPSILON){if(l<0&&(n=t[o],s=-s,a=t[i],l=-l),e.ya.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=l*(e.x-n.x)-s*(e.y-n.y);if(0===t)return!0;if(t<0)continue;r=!r}}else{if(e.y!==n.y)continue;if(a.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=a.x)return!0}}return r}const n=Wd.isClockWise,r=this.subPaths;if(0===r.length)return[];let i,o,a;const s=[];if(1===r.length)return o=r[0],a=new Sd,a.curves=o.curves,s.push(a),s;let l=!n(r[0].getPoints());l=e?!l:l;const c=[],u=[];let d,h,f=[],p=0;u[p]=void 0,f[p]=[];for(let t=0,a=r.length;t1){let e=!1,n=0;for(let e=0,t=u.length;e0&&!1===e&&(f=c)}for(let e=0,t=u.length;ea});var i=/^\s+/,o=/\s+$/;function a(e,t){if(t=t||{},(e=e||"")instanceof a)return e;if(!(this instanceof a))return new a(e,t);var n=function(e){var t,n,a,s={r:0,g:0,b:0},l=1,c=null,u=null,d=null,h=!1,f=!1;return"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(E[e])e=E[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=L.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=L.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=L.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=L.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=L.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=L.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=L.hex8.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),a:P(t[4]),format:n?"name":"hex8"}:(t=L.hex6.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),format:n?"name":"hex"}:(t=L.hex4.exec(e))?{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),a:P(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=L.hex3.exec(e))&&{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==r(e)&&(B(e.r)&&B(e.g)&&B(e.b)?(t=e.r,n=e.g,a=e.b,s={r:255*_(t,255),g:255*_(n,255),b:255*_(a,255)},h=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):B(e.h)&&B(e.s)&&B(e.v)?(c=R(e.s),u=R(e.v),s=function(e,t,n){e=6*_(e,360),t=_(t,100),n=_(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,c,u),h=!0,f="hsv"):B(e.h)&&B(e.s)&&B(e.l)&&(c=R(e.s),d=R(e.l),s=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=_(e,360),t=_(t,100),n=_(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,c,d),h=!0,f="hsl"),e.hasOwnProperty("a")&&(l=e.a)),l=w(l),{ok:h,format:e.format||f,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:l}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function s(e,t,n){e=_(e,255),t=_(t,255),n=_(n,255);var r,i,o=Math.max(e,t,n),a=Math.min(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(a(r));return o}function S(e,t){t=t||6;for(var n=a(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],l=1/t;t--;)s.push(a({h:r,s:i,v:o})),o=(o+l)%1;return s}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=w(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[M(Math.round(e).toString(16)),M(Math.round(t).toString(16)),M(Math.round(n).toString(16)),M(O(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*_(this._r,255))+"%",g:Math.round(100*_(this._g,255))+"%",b:Math.round(100*_(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%)":"rgba("+Math.round(100*_(this._r,255))+"%, "+Math.round(100*_(this._g,255))+"%, "+Math.round(100*_(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(C[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+u(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=a(e);n="#"+u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(b,arguments)},triad:function(){return this._applyCombination(y,[3])},tetrad:function(){return this._applyCombination(y,[4])}},a.fromRatio=function(e,t){if("object"==r(e)){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]="a"===i?e[i]:R(e[i]));e=n}return a(e,t)},a.equals=function(e,t){return!(!e||!t)&&a(e).toRgbString()==a(t).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(e,t,n){n=0===n?0:n||50;var r=a(e).toRgb(),i=a(t).toRgb(),o=n/100;return a({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},a.readability=function(e,t){var n=a(e),r=a(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(e,t,n){var r,i,o,s,l,c=a.readability(e,t);switch(i=!1,(o=n,"AA"!==(s=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(l=(o.size||"small").toLowerCase())&&"large"!==l&&(l="small"),r={level:s,size:l}).level+r.size){case"AAsmall":case"AAAlarge":i=c>=4.5;break;case"AAlarge":i=c>=3;break;case"AAAsmall":i=c>=7}return i},a.mostReadable=function(e,t,n){var r,i,o,s,l=null,c=0;i=(n=n||{}).includeFallbackColors,o=n.level,s=n.size;for(var u=0;uc&&(c=r,l=a(t[u]));return a.isReadable(e,l,{level:o,size:s})||!i?l:(n.includeFallbackColors=!1,a.mostReadable(e,["#fff","#000"],n))};var E=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=a.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(E);function w(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return Math.min(1,Math.max(0,e))}function T(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function O(e){return Math.round(255*parseFloat(e)).toString(16)}function P(e){return T(e)/255}var N,k,D,L=(k="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",D="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+k),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+k),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+k),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(e){return!!L.CSS_UNIT.exec(e)}},35665(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(57833)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js.LICENSE.txt new file mode 100644 index 00000000000..af12db3f992 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/188.ab1e190a8d53c1f974d0.js.LICENSE.txt @@ -0,0 +1,84 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/*! + Copyright (c) 2015 Jed Watson. + Based on code that is Copyright 2013-2015, Facebook, Inc. + All rights reserved. +*/ + +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ + +/** + * @license + * Copyright 2010-2024 Three.js Authors + * SPDX-License-Identifier: MIT + */ + +/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */ + +/**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */ + +/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */ + +/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */ + +/**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */ + +/**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */ + +/**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */ + +/**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */ + +/**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */ + +/**![plus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ4MiAxNTJoNjBxOCAwIDggOHY3MDRxMCA4LTggOGgtNjBxLTggMC04LThWMTYwcTAtOCA4LTh6IiAvPjxwYXRoIGQ9Ik0xOTIgNDc0aDY3MnE4IDAgOCA4djYwcTAgOC04IDhIMTYwcS04IDAtOC04di02MHEwLTggOC04eiIgLz48L3N2Zz4=) */ diff --git a/modules/dreamview_plus/frontend/dist/323.8dc26690901af141ed3c.js b/modules/dreamview_plus/frontend/dist/323.8dc26690901af141ed3c.js new file mode 100644 index 00000000000..4490a26d332 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/323.8dc26690901af141ed3c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[323],{80323(e,t,n){n.r(t),n.d(t,{default:()=>R});var r=n(40366),o=n(88206),a=n(88219),i=n(47960);function c(e){return c="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},c(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n29&&r.pop(),r})}({level:e.item.logLevel,text:e.item.msg,time:(0,a.eh)(1e3*e.timestampSec)})})},[u]);var y=f().classes;return r.createElement(b.A,{className:y["panel-console-root"]},r.createElement("div",{className:y["panel-console-inner"]},o.map(function(e,t){return r.createElement(j,{key:t+1,text:e.text,level:e.level,time:e.time})})))}function N(e){var t=(0,r.useMemo)(function(){return(0,y.A)({PanelComponent:I,panelId:e.panelId,subscribeInfo:[{name:p.lt.SIM_WORLD,needChannel:!1}]})},[]);return r.createElement(t,e)}I.displayName="InternalConsole";const R=r.memo(N)},88219(e,t,n){function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Number(e);if(r>Math.pow(10,t-1))return String(r);var o="0".repeat(t-String(r).length);if("number"!=typeof r)throw new Error("fill0 recived an invidate value");return n?"".concat(o).concat(r):"".concat(r).concat(o)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Date(e),o=r(n.getHours()),a=r(n.getMinutes()),i=r(n.getSeconds()),c=r(n.getMilliseconds(),3),l="".concat(o,":").concat(a,":").concat(i);return t&&(l+=":".concat(c)),l}function a(e){var t=r(Math.floor(e%1e3),3),n=r(Math.floor(e/1e3%60)),o=r(Math.floor(e/6e4));return"".concat(o,":").concat(n,".").concat(t)}n.d(t,{Dy:()=>a,_E:()=>r,eh:()=>o})}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/329.6cb8c19d6743b03714e6.js b/modules/dreamview_plus/frontend/dist/329.6cb8c19d6743b03714e6.js new file mode 100644 index 00000000000..73b12833e6b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/329.6cb8c19d6743b03714e6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[329],{40329(e,n,r){r.r(n),r.d(n,{DashBoard:()=>Y,DashBoardOrigin:()=>z});var o=r(40366),t=r(23218);const a=(0,t.n9)(function(e){return{"panel-dash-board":{display:"flex",flexDirection:"column",rowGap:"8px",height:"100%",width:"100%",minWidth:"380px",padding:"16px",background:e.components.dashBoard.bgColor},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});var l=r(60346),i=r(46533);const s=(0,t.n9)(function(e){return{"dashboard-drive-mode":{display:"flex",flex:"1",justifyContent:"center",alignItems:"center",background:e.components.dashBoard.cardBgColor,borderRadius:"6px",fontFamily:"PingFangSC-Semibold",fontSize:"14px",color:e.components.dashBoard.color,fontWeight:600,height:"100%"},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});var c=function(e){return e.MANUAL="MANUAL",e.AUTO="AUTO",e.DISENGAGED="DISENGAGED",e.AUTO_STEER="AUTO STEER",e.AUTO_SPEED="AUTO SPEED",e.CHASSIS_ERROR="CHASSIS ERROR",e.UNKNOWN="UNKNOWN",e}({});function d(e){var n=s().classes;return o.createElement("div",{className:n["dashboard-drive-mode"]},e.mode)}const u=o.memo(d),g=(0,t.n9)(function(e){return{"dash-board-signal-gear":{display:"flex",flexDirection:"row",flex:"1",columnGap:"10px",height:"100%",width:"100%"},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});var m=r(88206);const f=(0,t.n9)(function(e){return{"dashboard-signal":{display:"flex",flex:"1",justifyContent:"center",alignItems:"center",background:e.components.dashBoard.cardBgColor,borderRadius:"6px",fontFamily:"PingFangSC-Semibold",fontSize:"14px",color:e.components.dashBoard.color,fontWeight:600,width:"100%",height:"100%"},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function h(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,o=Array(n);re.length)&&(n=e.length);for(var r=0,o=Array(n);rat});var r=n(40366),o=n(88206),a=n(27878),i=n(47960),l=n(83517),c=n(84436),u=n(46533),s=n(31454),f=n.n(s),m=n(23218),p=n(93125),d=n.n(p),h=n(59009);function v(e){return v="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},v(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t .anticon":{marginRight:"6px",fontSize:"16px"}}),small:{padding:"4px 16px",height:"28px",fontSize:e.tokens.font.size.sm,borderRadius:"6px"}}});function x(e){var t=e.className,n=e.onClick,o=void 0===n?d():n,a=e.size,i=void 0===a?"normal":a,l=C(),c=l.cx,u=l.classes;return r.createElement("button",{onClick:o,className:c(u["color-button"],g({},u.small,"small"===i),t),type:"button"},e.children)}const w=r.memo(x);var E=n(60346),k=n(95250),S=n(10613),A=n.n(S);function O(e){return O="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},O(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":se({height:"40px",color:e.tokens.colors.fontColor4},e.tokens.typography.content)},"& .ant-form-item-control":{width:"254px",flexGrow:"unset"},"& .ant-form-item":{marginBottom:e.tokens.margin.speace2},"& .dreamview-input-affix-wrapper":{height:"40px"},"& .ant-form-item-control-input":{height:"40px"}},"chart-new-line":{display:"flex",marginTop:"-4px"},"chart-editing-divider":{height:"1px",background:e.tokens.colors.divider2,marginBottom:e.tokens.margin.speace2},title:se(se({padding:"".concat(e.tokens.padding.speace," ").concat(e.tokens.padding.speace3)},e.tokens.typography.title),{},{color:e.components.pncMonitor.chartTitleColor,"& .anticon":{position:"absolute",right:e.tokens.margin.speace2,top:"12px",cursor:"pointer",color:e.tokens.colors.fontColor5}}),"content-box":{padding:"0 ".concat(e.tokens.padding.speace3),height:"calc(80vh - 17px - 42px)"},"chart-editing-title":{height:"20px",lineHeight:"20px",display:"flex",marginBottom:e.tokens.margin.speace,paddingLeft:e.tokens.padding.speace,position:"relative",color:e.tokens.colors.fontColor5,fontFamily:"PingFangSC-Medium",fontWeight:500,"&::after":{content:'""',position:"absolute",left:0,top:"4px",width:"2px",height:"12px",backgroundColor:e.tokens.colors.brand3}},"chart-editing-extra":{position:"absolute",right:0,top:0,bottom:0},"chart-delete-btn":se(se({},e.tokens.typography.content),{},{margin:"".concat(e.tokens.margin.speace3," auto"),width:"160px",height:"40px",lineHeight:"40px",textAlign:"center",background:e.components.pncMonitor.deleteBtnBgColor,borderRadius:e.tokens.border.borderRadius.large,color:"#F75660",cursor:"pointer","& .anticon":{marginRight:"6px",fontSize:e.tokens.font.size.large},"&:hover":{background:(0,h.A)(e.tokens.colors.background1).setAlpha(.9).toRgbString()},"&:active":{opacity:.8}})}});function pe(e){return me({themeText:e})}function de(){var e=pe((0,m.wR)().theme).classes;return r.createElement("div",{className:e["chart-editing-divider"]})}function he(e){var t=pe((0,m.wR)().theme),n=t.classes,o=t.cx;return r.createElement("div",{className:o(n["chart-editing-title"],e.className)},e.children,r.createElement("div",{className:n["chart-editing-extra"]},e.extra))}function ve(e){var t,n,l=e.onChange,c=e.activeChartConfig,u=e.onDeleteChart,s=e.onCloseClick,f=e.channelList,p=pe((0,m.wR)().theme).classes,d=(t=o.lV.useForm(),n=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(t,n)||le(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],h=(0,i.Bd)("chartEditing").t,v=r.createElement(w,{onClick:function(){d.getFieldValue(H.lineList).length>=7?(0,o.iU)({type:"error",content:h("errorMaxLine")}):d.setFieldValue(H.lineList,[].concat(function(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.getFieldValue(H.lineList)),[z()]))},className:p["chart-new-line"],size:"small"},r.createElement(o.Av,{name:"IcAddPanel"}),h("newLine"));return(0,r.useEffect)(function(){c.uid&&d.setFieldsValue(c.value)},[c.uid]),r.createElement("div",{className:p["chart-editing"]},r.createElement("div",{className:p.title},h("chartEditing"),r.createElement(o.Av,{name:"IcClose",onClick:s})),r.createElement(de,null),r.createElement(a.A,{className:p["content-box"]},r.createElement(o.lV,{form:d,onFieldsChange:function(e){l({uid:c.uid,value:d.getFieldsValue()},e)},initialValues:W()},r.createElement(o.lV.Item,{name:H.title,label:h("labelTitle")},r.createElement(o.pd,{allowClear:!0,autoComplete:"off"})),r.createElement(de,null),r.createElement(he,null,h("XAxis")),r.createElement(o.lV.Item,{name:H.xAxisName,label:h("labelXAxisName")},r.createElement(o.pd,{autoComplete:"off",allowClear:!0})),r.createElement(de,null),r.createElement(he,{className:p.bottom14,extra:v},h("YAxis")),r.createElement(o.lV.Item,{name:H.yAxisName,label:h("labelXAxisName")},r.createElement(o.pd,{autoComplete:"off",allowClear:!0})),r.createElement(o.lV.List,{name:H.lineList},function(e,t){var n=t.add,o=t.remove;return e.map(function(e,t){return r.createElement(ae,{channelList:f,index:t,key:d.getFieldValue([H.lineList,e.name,"uid"]),activeChartConfig:c,filed:e,add:n,remove:o})})})),r.createElement("div",{onClick:function(){u(c)},className:p["chart-delete-btn"]},r.createElement(o.Av,{name:"IcDelete"}),h("deleteChart"))))}const be=r.memo(ve),ye=(0,m.n9)(function(e){return{"charts-operation":{textAlign:"center",marginTop:"20px"},"charts-popover":{"& .dreamview-popover-inner":{padding:0}},"charts-container":{padding:e.tokens.padding.speace2,height:"100%"},"fixed-left":{left:"0 !important"}}});var ge=n(32214),Ce=n(60666),xe=n(62323),we=n.n(xe),Ee=n(33545),ke=n.n(Ee),Se=n(15076),Ae=n(81853),Oe=n.n(Ae),je=n(61998),Ne=n.n(je),Pe=n(4200),Ie=n.n(Pe);function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return De(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n390||a>390?"remove":"add")};(0,r.useEffect)(function(){n(a)},[]),(0,r.useEffect)(function(){o.current&&t&&a(o.current)},[t])}n(9957),n(90958),n(51987),n(36242),n(37859);var Me=n(9738),Fe=n.n(Me);function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ze(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=10,S=!!C.uid;Ve(n["fixed-left"],S);var A=(0,r.useCallback)(function(e,t){var n=f()(v);n.find(function(t){return t.uid===e.uid}).value=e.value,t.some(function(e){return e.name.some(function(e){return[H.lineChannel,H.lineChannelX,H.lineChannelY].includes(e)})})&&d(n.reduce(function(e,t){return[].concat(et(e),et(t.value.lineList.filter(function(e){return e.lineChannel}).reduce(function(e,t){return[].concat(et(e),["".concat(t.lineDataName,"!").concat(t.lineChannel)])},[])))},[])),g(n)},[v]),O=(0,r.useMemo)(function(){var e;return(null===(e=p.find(function(e){return e.dataName===u.lt.Cyber}))||void 0===e?void 0:e.channels.map(function(e){return{label:e.channelName,value:e.channelName,dataName:u.lt.Cyber,channelName:e.channelName,msgType:e.msgType,protoPath:e.protoPath}}))||[]},[p]),j=r.createElement(be,{onCloseClick:E,channelList:O,onDeleteChart:b,key:C.uid,activeChartConfig:C,onChange:A}),N=(0,Ce.Sc)(),P=N.onRef,I=N.contextValue;return r.createElement(o._k,{rootClassName:s("js-chart-popover"),placement:"right",destroyTooltipOnHide:!0,open:S,content:j},r.createElement(Ce.O6.Provider,{value:I},r.createElement(a.A,{ref:P,className:s(n["charts-container"],"js-chart-container")},v.map(function(e){return r.createElement(Ze,{onClick:x,key:e.uid,config:e,isActive:e.uid===(null==C?void 0:C.uid)})}),r.createElement(ge.i,{rif:!k,className:n["charts-operation"]},r.createElement(w,{onClick:y},r.createElement(o.Av,{name:"IcAddPanel"}),m("newChart"))))))}function rt(){return r.createElement(Re,null,r.createElement(nt,null))}function ot(e){var t=(0,r.useMemo)(function(){return(0,E.A)({PanelComponent:rt,panelId:e.panelId})},[]);return r.createElement(t,e)}rt.displayName="Charts";const at=r.memo(ot)},32800(e,t,n){var r=n(46874),o=n(33574),a=n(59106),i=n(76233),l=n(57746),c=n(74854),u=Math.min;e.exports=function(e,t,n){for(var s=n?a:o,f=e[0].length,m=e.length,p=m,d=Array(m),h=1/0,v=[];p--;){var b=e[p];p&&t&&(b=i(b,l(t))),h=u(b.length,h),d[p]=!n&&(t||f>=120&&b.length>=120)?new r(p&&b):void 0}b=e[0];var y=-1,g=d[0];e:for(;++yo,wU:()=>i});var s=n(75508);if(!s)throw new Error("MeshLine requires three.js");class i extends s.BufferGeometry{constructor(){super(),this.isMeshLine=!0,this.type="MeshLine",this.positions=[],this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[],this.counters=[],this._points=[],this._geom=null,this.widthCallback=null,this.matrixWorld=new s.Matrix4,Object.defineProperties(this,{geometry:{enumerable:!0,get:function(){return this}},geom:{enumerable:!0,get:function(){return this._geom},set:function(e){this.setGeometry(e,this.widthCallback)}},points:{enumerable:!0,get:function(){return this._points},set:function(e){this.setPoints(e,this.widthCallback)}}})}}function r(e,t,n,s,i){var r;if(e=e.subarray||e.slice?e:e.buffer,n=n.subarray||n.slice?n:n.buffer,e=t?e.subarray?e.subarray(t,i&&t+i):e.slice(t,i&&t+i):e,n.set)n.set(e,s);else for(r=0;rM)){o.applyMatrix4(this.matrixWorld);var A=e.ray.origin.distanceTo(o);Ae.far||(t.push({distance:A,point:l.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this}),y=v)}}}},i.prototype.compareV3=function(e,t){var n=6*e,s=6*t;return this.positions[n]===this.positions[s]&&this.positions[n+1]===this.positions[s+1]&&this.positions[n+2]===this.positions[s+2]},i.prototype.copyV3=function(e){var t=6*e;return[this.positions[t],this.positions[t+1],this.positions[t+2]]},i.prototype.process=function(){var e,t,n=this.positions.length/6;this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[],t=this.compareV3(0,n-1)?this.copyV3(n-2):this.copyV3(0),this.previous.push(t[0],t[1],t[2]),this.previous.push(t[0],t[1],t[2]);for(var i=0;i0&&(t=this.copyV3(i),this.next.push(t[0],t[1],t[2]),this.next.push(t[0],t[1],t[2]))}t=this.compareV3(n-1,0)?this.copyV3(1):this.copyV3(n-1),this.next.push(t[0],t[1],t[2]),this.next.push(t[0],t[1],t[2]),this._attributes&&this._attributes.position.count===this.positions.length?(this._attributes.position.copyArray(new Float32Array(this.positions)),this._attributes.position.needsUpdate=!0,this._attributes.previous.copyArray(new Float32Array(this.previous)),this._attributes.previous.needsUpdate=!0,this._attributes.next.copyArray(new Float32Array(this.next)),this._attributes.next.needsUpdate=!0,this._attributes.side.copyArray(new Float32Array(this.side)),this._attributes.side.needsUpdate=!0,this._attributes.width.copyArray(new Float32Array(this.width)),this._attributes.width.needsUpdate=!0,this._attributes.uv.copyArray(new Float32Array(this.uvs)),this._attributes.uv.needsUpdate=!0,this._attributes.index.copyArray(new Uint16Array(this.indices_array)),this._attributes.index.needsUpdate=!0):this._attributes={position:new s.BufferAttribute(new Float32Array(this.positions),3),previous:new s.BufferAttribute(new Float32Array(this.previous),3),next:new s.BufferAttribute(new Float32Array(this.next),3),side:new s.BufferAttribute(new Float32Array(this.side),1),width:new s.BufferAttribute(new Float32Array(this.width),1),uv:new s.BufferAttribute(new Float32Array(this.uvs),2),index:new s.BufferAttribute(new Uint16Array(this.indices_array),1),counters:new s.BufferAttribute(new Float32Array(this.counters),1)},this.setAttribute("position",this._attributes.position),this.setAttribute("previous",this._attributes.previous),this.setAttribute("next",this._attributes.next),this.setAttribute("side",this._attributes.side),this.setAttribute("width",this._attributes.width),this.setAttribute("uv",this._attributes.uv),this.setAttribute("counters",this._attributes.counters),this.setIndex(this._attributes.index),this.computeBoundingSphere(),this.computeBoundingBox()},i.prototype.advance=function(e){var t=this._attributes.position.array,n=this._attributes.previous.array,s=this._attributes.next.array,i=t.length;r(t,0,n,0,i),r(t,6,t,0,i-6),t[i-6]=e.x,t[i-5]=e.y,t[i-4]=e.z,t[i-3]=e.x,t[i-2]=e.y,t[i-1]=e.z,r(t,6,s,0,i-6),s[i-6]=e.x,s[i-5]=e.y,s[i-4]=e.z,s[i-3]=e.x,s[i-2]=e.y,s[i-1]=e.z,this._attributes.position.needsUpdate=!0,this._attributes.previous.needsUpdate=!0,this._attributes.next.needsUpdate=!0},s.ShaderChunk.meshline_vert=["",s.ShaderChunk.logdepthbuf_pars_vertex,s.ShaderChunk.fog_pars_vertex,"","attribute vec3 previous;","attribute vec3 next;","attribute float side;","attribute float width;","attribute float counters;","","uniform vec2 resolution;","uniform float lineWidth;","uniform vec3 color;","uniform float opacity;","uniform float sizeAttenuation;","","varying vec2 vUV;","varying vec4 vColor;","varying float vCounters;","","vec2 fix( vec4 i, float aspect ) {",""," vec2 res = i.xy / i.w;"," res.x *= aspect;","\t vCounters = counters;"," return res;","","}","","void main() {",""," float aspect = resolution.x / resolution.y;",""," vColor = vec4( color, opacity );"," vUV = uv;",""," mat4 m = projectionMatrix * modelViewMatrix;"," vec4 finalPosition = m * vec4( position, 1.0 );"," vec4 prevPos = m * vec4( previous, 1.0 );"," vec4 nextPos = m * vec4( next, 1.0 );",""," vec2 currentP = fix( finalPosition, aspect );"," vec2 prevP = fix( prevPos, aspect );"," vec2 nextP = fix( nextPos, aspect );",""," float w = lineWidth * width;",""," vec2 dir;"," if( nextP == currentP ) dir = normalize( currentP - prevP );"," else if( prevP == currentP ) dir = normalize( nextP - currentP );"," else {"," vec2 dir1 = normalize( currentP - prevP );"," vec2 dir2 = normalize( nextP - currentP );"," dir = normalize( dir1 + dir2 );",""," vec2 perp = vec2( -dir1.y, dir1.x );"," vec2 miter = vec2( -dir.y, dir.x );"," //w = clamp( w / dot( miter, perp ), 0., 4. * lineWidth * width );",""," }",""," //vec2 normal = ( cross( vec3( dir, 0. ), vec3( 0., 0., 1. ) ) ).xy;"," vec4 normal = vec4( -dir.y, dir.x, 0., 1. );"," normal.xy *= .5 * w;"," normal *= projectionMatrix;"," if( sizeAttenuation == 0. ) {"," normal.xy *= finalPosition.w;"," normal.xy /= ( vec4( resolution, 0., 1. ) * projectionMatrix ).xy;"," }",""," finalPosition.xy += normal.xy * side;",""," gl_Position = finalPosition;","",s.ShaderChunk.logdepthbuf_vertex,s.ShaderChunk.fog_vertex&&" vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );",s.ShaderChunk.fog_vertex,"}"].join("\n"),s.ShaderChunk.meshline_frag=["",s.ShaderChunk.fog_pars_fragment,s.ShaderChunk.logdepthbuf_pars_fragment,"","uniform sampler2D map;","uniform sampler2D alphaMap;","uniform float useMap;","uniform float useAlphaMap;","uniform float useDash;","uniform float dashArray;","uniform float dashOffset;","uniform float dashRatio;","uniform float visibility;","uniform float alphaTest;","uniform vec2 repeat;","","varying vec2 vUV;","varying vec4 vColor;","varying float vCounters;","","void main() {","",s.ShaderChunk.logdepthbuf_fragment,""," vec4 c = vColor;"," if( useMap == 1. ) c *= texture2D( map, vUV * repeat );"," if( useAlphaMap == 1. ) c.a *= texture2D( alphaMap, vUV * repeat ).a;"," if( c.a < alphaTest ) discard;"," if( useDash == 1. ){"," c.a *= ceil(mod(vCounters + dashOffset, dashArray) - (dashArray * dashRatio));"," }"," gl_FragColor = c;"," gl_FragColor.a *= step(vCounters, visibility);","",s.ShaderChunk.fog_fragment,"}"].join("\n");class o extends s.ShaderMaterial{constructor(e){super({uniforms:Object.assign({},s.UniformsLib.fog,{lineWidth:{value:1},map:{value:null},useMap:{value:0},alphaMap:{value:null},useAlphaMap:{value:0},color:{value:new s.Color(16777215)},opacity:{value:1},resolution:{value:new s.Vector2(1,1)},sizeAttenuation:{value:1},dashArray:{value:0},dashOffset:{value:0},dashRatio:{value:.5},useDash:{value:0},visibility:{value:1},alphaTest:{value:0},repeat:{value:new s.Vector2(1,1)}}),vertexShader:s.ShaderChunk.meshline_vert,fragmentShader:s.ShaderChunk.meshline_frag}),this.isMeshLineMaterial=!0,this.type="MeshLineMaterial",Object.defineProperties(this,{lineWidth:{enumerable:!0,get:function(){return this.uniforms.lineWidth.value},set:function(e){this.uniforms.lineWidth.value=e}},map:{enumerable:!0,get:function(){return this.uniforms.map.value},set:function(e){this.uniforms.map.value=e}},useMap:{enumerable:!0,get:function(){return this.uniforms.useMap.value},set:function(e){this.uniforms.useMap.value=e}},alphaMap:{enumerable:!0,get:function(){return this.uniforms.alphaMap.value},set:function(e){this.uniforms.alphaMap.value=e}},useAlphaMap:{enumerable:!0,get:function(){return this.uniforms.useAlphaMap.value},set:function(e){this.uniforms.useAlphaMap.value=e}},color:{enumerable:!0,get:function(){return this.uniforms.color.value},set:function(e){this.uniforms.color.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},sizeAttenuation:{enumerable:!0,get:function(){return this.uniforms.sizeAttenuation.value},set:function(e){this.uniforms.sizeAttenuation.value=e}},dashArray:{enumerable:!0,get:function(){return this.uniforms.dashArray.value},set:function(e){this.uniforms.dashArray.value=e,this.useDash=0!==e?1:0}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},dashRatio:{enumerable:!0,get:function(){return this.uniforms.dashRatio.value},set:function(e){this.uniforms.dashRatio.value=e}},useDash:{enumerable:!0,get:function(){return this.uniforms.useDash.value},set:function(e){this.uniforms.useDash.value=e}},visibility:{enumerable:!0,get:function(){return this.uniforms.visibility.value},set:function(e){this.uniforms.visibility.value=e}},alphaTest:{enumerable:!0,get:function(){return this.uniforms.alphaTest.value},set:function(e){this.uniforms.alphaTest.value=e}},repeat:{enumerable:!0,get:function(){return this.uniforms.repeat.value},set:function(e){this.uniforms.repeat.value.copy(e)}}}),this.setValues(e)}}o.prototype.copy=function(e){return s.ShaderMaterial.prototype.copy.call(this,e),this.lineWidth=e.lineWidth,this.map=e.map,this.useMap=e.useMap,this.alphaMap=e.alphaMap,this.useAlphaMap=e.useAlphaMap,this.color.copy(e.color),this.opacity=e.opacity,this.resolution.copy(e.resolution),this.sizeAttenuation=e.sizeAttenuation,this.dashArray.copy(e.dashArray),this.dashOffset.copy(e.dashOffset),this.dashRatio.copy(e.dashRatio),this.useDash=e.useDash,this.visibility=e.visibility,this.alphaTest=e.alphaTest,this.repeat.copy(e.repeat),this}},72110(e,t,n){"use strict";n.d(t,{CS:()=>Nn,GW:()=>An,zh:()=>bn});var s=b(),i=e=>f(e,s),r=b();i.write=e=>f(e,r);var o=b();i.onStart=e=>f(e,o);var a=b();i.onFrame=e=>f(e,a);var u=b();i.onFinish=e=>f(e,u);var c=[];i.setTimeout=(e,t)=>{const n=i.now()+t,s=()=>{const e=c.findIndex(e=>e.cancel==s);~e&&c.splice(e,1),p-=~e?1:0},r={time:n,handler:e,cancel:s};return c.splice(l(n),0,r),p+=1,g(),r};var l=e=>~(~c.findIndex(t=>t.time>e)||~c.length);i.cancel=e=>{o.delete(e),a.delete(e),u.delete(e),s.delete(e),r.delete(e)},i.sync=e=>{m=!0,i.batchedUpdates(e),m=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function s(...e){t=e,i.onStart(n)}return s.handler=e,s.cancel=()=>{o.delete(n),t=null},s};var h="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>h=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v()};var d=-1,p=0,m=!1;function f(e,t){m?(t.delete(e),e(0)):(t.add(e),g())}function g(){d<0&&(d=0,"demand"!==i.frameLoop&&h(y))}function y(){~d&&(h(y),i.batchedUpdates(v))}function v(){const e=d;d=i.now();const t=l(d);t&&(w(c.splice(0,t),e=>e.handler()),p-=t),p?(o.flush(),s.flush(e?Math.min(64,d-e):16.667),a.flush(),r.flush(),u.flush()):d=-1}function b(){let e=new Set,t=e;return{add(n){p+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(p-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,p-=t.size,w(t,t=>t(n)&&e.add(t)),p+=e.size,t=e)}}}function w(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}var x=n(40366),_=Object.defineProperty,M={};function A(){}((e,t)=>{for(var n in t)_(e,n,{get:t[n],enumerable:!0})})(M,{assign:()=>F,colors:()=>L,createStringInterpolator:()=>j,skipAnimation:()=>R,to:()=>V,willAdvance:()=>z});var P={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function k(e,t){if(P.arr(e)){if(!P.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function E(e,t,n){if(P.arr(e))for(let s=0;sP.und(e)?[]:P.arr(e)?e:[e];function S(e,t){if(e.size){const n=Array.from(e);e.clear(),C(n,t)}}var j,V,T=(e,...t)=>S(e,e=>e(...t)),I=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),L=null,R=!1,z=A,F=e=>{e.to&&(V=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(L=e.colors),null!=e.skipAnimation&&(R=e.skipAnimation),e.createStringInterpolator&&(j=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(z=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)},N=new Set,U=[],D=[],B=0,W={get idle(){return!N.size&&!U.length},start(e){B>e.priority?(N.add(e),i.onStart(q)):(G(e),i(H))},advance:H,sort(e){if(B)i.onFrame(()=>W.sort(e));else{const t=U.indexOf(e);~t&&(U.splice(t,1),Y(e))}},clear(){U=[],N.clear()}};function q(){N.forEach(G),N.clear(),i(H)}function G(e){U.includes(e)||Y(e)}function Y(e){U.splice(function(t){const n=t.findIndex(t=>t.priority>e.priority);return n<0?t.length:n}(U),0,e)}function H(e){const t=D;for(let n=0;n0}var $="[-+]?\\d*\\.?\\d+",Q=$+"%";function K(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var X=new RegExp("rgb"+K($,$,$)),Z=new RegExp("rgba"+K($,$,$,$)),J=new RegExp("hsl"+K($,Q,Q)),ee=new RegExp("hsla"+K($,Q,Q,$)),te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,se=/^#([0-9a-fA-F]{6})$/,ie=/^#([0-9a-fA-F]{8})$/;function re(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oe(e,t,n){const s=n<.5?n*(1+t):n+t-n*t,i=2*n-s,r=re(i,s,e+1/3),o=re(i,s,e),a=re(i,s,e-1/3);return Math.round(255*r)<<24|Math.round(255*o)<<16|Math.round(255*a)<<8}function ae(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ue(e){return(parseFloat(e)%360+360)%360/360}function ce(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function le(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function he(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=se.exec(e))?parseInt(t[1]+"ff",16)>>>0:L&&void 0!==L[e]?L[e]:(t=X.exec(e))?(ae(t[1])<<24|ae(t[2])<<16|ae(t[3])<<8|255)>>>0:(t=Z.exec(e))?(ae(t[1])<<24|ae(t[2])<<16|ae(t[3])<<8|ce(t[4]))>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ie.exec(e))?parseInt(t[1],16)>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=J.exec(e))?(255|oe(ue(t[1]),le(t[2]),le(t[3])))>>>0:(t=ee.exec(e))?(oe(ue(t[1]),le(t[2]),le(t[3]))|ce(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var de=(e,t,n)=>{if(P.fun(e))return e;if(P.arr(e))return de({range:e,output:t,extrapolate:n});if(P.str(e.output[0]))return j(e);const s=e,i=s.output,r=s.range||[0,1],o=s.extrapolateLeft||s.extrapolate||"extend",a=s.extrapolateRight||s.extrapolate||"extend",u=s.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,r);return function(e,t,n,s,i,r,o,a,u){let c=u?u(e):e;if(cn){if("identity"===a)return c;"clamp"===a&&(c=n)}return s===i?s:t===n?e<=t?s:i:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=r(c),s===-1/0?c=-c:i===1/0?c+=s:c=c*(i-s)+s,c)}(e,r[t],r[t+1],i[t],i[t+1],u,o,a,s.map)}},pe=1.70158,me=1.525*pe,fe=pe+1,ge=2*Math.PI/3,ye=2*Math.PI/4.5,ve=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},be={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>fe*e*e*e-pe*e*e,easeOutBack:e=>1+fe*Math.pow(e-1,3)+pe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-me)/2:(Math.pow(2*e-2,2)*((me+1)*(2*e-2)+me)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ge),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ge)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ye)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ye)/2+1,easeInBounce:e=>1-ve(1-e),easeOutBounce:ve,easeInOutBounce:e=>e<.5?(1-ve(1-2*e))/2:(1+ve(2*e-1))/2,steps:(e,t="end")=>n=>{const s=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return i=("end"===t?Math.floor(s):Math.ceil(s))/e,Math.min(Math.max(i,0),1);var i}},we=Symbol.for("FluidValue.get"),xe=Symbol.for("FluidValue.observers"),_e=e=>Boolean(e&&e[we]),Me=e=>e&&e[we]?e[we]():e,Ae=e=>e[xe]||null;function Pe(e,t){const n=e[xe];n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var ke=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ce(this,e)}},Ce=(e,t)=>je(e,we,t);function Ee(e,t){if(e[we]){let n=e[xe];n||je(e,xe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Oe(e,t){const n=e[xe];if(n&&n.has(t)){const s=n.size-1;s?n.delete(t):e[xe]=null,e.observerRemoved&&e.observerRemoved(s,t)}}var Se,je=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ve=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Te=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ie=new RegExp(`(${Ve.source})(%|[a-z]+)`,"i"),Le=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Re=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ze=e=>{const[t,n]=Fe(e);if(!t||I())return e;const s=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(s)return s.trim();if(n&&n.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&&Re.test(n)?ze(n):n||e},Fe=e=>{const t=Re.exec(e);if(!t)return[,];const[,n,s]=t;return[n,s]},Ne=(e,t,n,s,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(s)}, ${i})`,Ue=e=>{Se||(Se=L?new RegExp(`(${Object.keys(L).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Me(e).replace(Re,ze).replace(Te,he).replace(Se,he)),n=t.map(e=>e.match(Ve).map(Number)),s=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>de({...e,output:t}));return e=>{const n=!Ie.test(t[0])&&t.find(e=>Ie.test(e))?.replace(Ve,"");let i=0;return t[0].replace(Ve,()=>`${s[i++](e)}${n||""}`).replace(Le,Ne)}},De="react-spring: ",Be=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${De}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},We=Be(console.warn);function qe(){We(`${De}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Ge=Be(console.warn);function Ye(e){return P.str(e)&&("#"==e[0]||/\d/.test(e)||!I()&&Re.test(e)||e in(L||{}))}var He=I()?x.useEffect:x.useLayoutEffect;function $e(){const e=(0,x.useState)()[1],t=(()=>{const e=(0,x.useRef)(!1);return He(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var Qe=e=>(0,x.useEffect)(e,Ke),Ke=[];function Xe(e){const t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e}),t.current}var Ze=Symbol.for("Animated:node"),Je=e=>e&&e[Ze],et=(e,t)=>{return n=e,s=Ze,i=t,Object.defineProperty(n,s,{value:i,writable:!0,configurable:!0});var n,s,i},tt=e=>e&&e[Ze]&&e[Ze].getPayload(),nt=class{constructor(){et(this,this)}getPayload(){return this.payload||[]}},st=class extends nt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,P.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new st(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return P.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,P.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},it=class extends st{constructor(e){super(0),this._string=null,this._toString=de({output:[e,e]})}static create(e){return new it(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(P.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=de({output:[this.getValue(),e]})),this._value=0,super.reset()}},rt={dependencies:null},ot=class extends nt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return E(this.source,(n,s)=>{var i;(i=n)&&i[Ze]===i?t[s]=n.getValue(e):_e(n)?t[s]=Me(n):e||(t[s]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&C(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return E(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){rt.dependencies&&_e(e)&&rt.dependencies.add(e);const t=tt(e);t&&C(t,e=>this.add(e))}},at=class extends ot{constructor(e){super(e)}static create(e){return new at(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(ut)),!0)}};function ut(e){return(Ye(e)?it:st).create(e)}function ct(e){const t=Je(e);return t?t.constructor:P.arr(e)?at:Ye(e)?it:st}var lt=(e,t)=>{const n=!P.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((s,r)=>{const o=(0,x.useRef)(null),a=n&&(0,x.useCallback)(e=>{o.current=function(e,t){return e&&(P.fun(e)?e(t):e.current=t),t}(r,e)},[r]),[u,c]=function(e,t){const n=new Set;return rt.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new ot(e),rt.dependencies=null,[e,n]}(s,t),l=$e(),h=()=>{const e=o.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&l()},d=new ht(h,c),p=(0,x.useRef)();He(()=>(p.current=d,C(c,e=>Ee(e,d)),()=>{p.current&&(C(p.current.deps,e=>Oe(e,p.current)),i.cancel(p.current.update))})),(0,x.useEffect)(h,[]),Qe(()=>()=>{const e=p.current;C(e.deps,t=>Oe(t,e))});const m=t.getComponentProps(u.getValue());return x.createElement(e,{...m,ref:a})})},ht=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&i.write(this.update)}},dt=Symbol.for("AnimatedComponent"),pt=e=>P.str(e)?e:e&&P.str(e.displayName)?e.displayName:P.fun(e)&&e.name||null;function mt(e,...t){return P.fun(e)?e(...t):e}var ft=(e,t)=>!0===e||!!(t&&e&&(P.fun(e)?e(t):O(e).includes(t))),gt=(e,t)=>P.obj(e)?t&&e[t]:e,yt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,vt=e=>e,bt=(e,t=vt)=>{let n=wt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const s={};for(const i of n){const n=t(e[i],i);P.und(n)||(s[i]=n)}return s},wt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function _t(e){const t=function(e){const t={};let n=0;if(E(e,(e,s)=>{xt[s]||(t[s]=e,n++)}),n)return t}(e);if(t){const n={to:t};return E(e,(e,s)=>s in t||(n[s]=e)),n}return{...e}}function Mt(e){return e=Me(e),P.arr(e)?e.map(Mt):Ye(e)?M.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function At(e){return P.fun(e)||P.arr(e)&&P.obj(e[0])}var Pt={tension:170,friction:26,mass:1,damping:1,easing:be.linear,clamp:!1},kt=class{constructor(){this.velocity=0,Object.assign(this,Pt)}};function Ct(e,t){if(P.und(t.decay)){const n=!P.und(t.tension)||!P.und(t.friction);!n&&P.und(t.frequency)&&P.und(t.damping)&&P.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Et=[],Ot=class{constructor(){this.changed=!1,this.values=Et,this.toValues=null,this.fromValues=Et,this.config=new kt,this.immediate=!1}};function St(e,{key:t,props:n,defaultProps:s,state:r,actions:o}){return new Promise((a,u)=>{let c,l,h=ft(n.cancel??s?.cancel,t);if(h)m();else{P.und(n.pause)||(r.paused=ft(n.pause,t));let e=s?.pause;!0!==e&&(e=r.paused||ft(e,t)),c=mt(n.delay||0,t),e?(r.resumeQueue.add(p),o.pause()):(o.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(l),l.cancel(),c=l.time-i.now()}function p(){c>0&&!M.skipAnimation?(r.delayed=!0,l=i.setTimeout(m,c),r.pauseQueue.add(d),r.timeouts.add(l)):m()}function m(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(l),e<=(r.cancelId||0)&&(h=!0);try{o.start({...n,callId:e,cancel:h},a)}catch(e){u(e)}}})}var jt=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?It(e.get()):t.every(e=>e.noop)?Vt(e.get()):Tt(e.get(),t.every(e=>e.finished)),Vt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Tt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),It=e=>({value:e,cancelled:!0,finished:!1});function Lt(e,t,n,s){const{callId:r,parentId:o,onRest:a}=t,{asyncTo:u,promise:c}=n;return o||e!==u||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const l=bt(t,(e,t)=>"onRest"===t?void 0:e);let h,d;const p=new Promise((e,t)=>(h=e,d=t)),m=e=>{const t=r<=(n.cancelId||0)&&It(s)||r!==n.asyncId&&Tt(s,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new zt,o=new Ft;return(async()=>{if(M.skipAnimation)throw Rt(n),o.result=Tt(s,!1),d(o),o;m(i);const a=P.obj(e)?{...e}:{...t,to:e};a.parentId=r,E(l,(e,t)=>{P.und(a[t])&&(a[t]=e)});const u=await s.start(a);return m(i),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let g;if(M.skipAnimation)return Rt(n),Tt(s,!1);try{let t;t=P.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,s.stop.bind(s))),await Promise.all([t.then(h),p]),g=Tt(s.get(),!0,!1)}catch(e){if(e instanceof zt)g=e.result;else{if(!(e instanceof Ft))throw e;g=e.result}}finally{r==n.asyncId&&(n.asyncId=o,n.asyncTo=o?u:void 0,n.promise=o?c:void 0)}return P.fun(a)&&i.batchedUpdates(()=>{a(g,s,s.item)}),g})():c}function Rt(e,t){S(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var zt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ft=class extends Error{constructor(){super("SkipAnimationSignal")}},Nt=e=>e instanceof Dt,Ut=1,Dt=class extends ke{constructor(){super(...arguments),this.id=Ut++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Je(this);return e&&e.getValue()}to(...e){return M.to(this,e)}interpolate(...e){return qe(),M.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Pe(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||W.sort(this),Pe(this,{type:"priority",parent:this,priority:e})}},Bt=Symbol.for("SpringPhase"),Wt=e=>(1&e[Bt])>0,qt=e=>(2&e[Bt])>0,Gt=e=>(4&e[Bt])>0,Yt=(e,t)=>t?e[Bt]|=3:e[Bt]&=-3,Ht=(e,t)=>t?e[Bt]|=4:e[Bt]&=-5,$t=class extends Dt{constructor(e,t){if(super(),this.animation=new Ot,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!P.und(e)||!P.und(t)){const n=P.obj(e)?{...e}:{...t,from:e};P.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(qt(this)||this._state.asyncTo)||Gt(this)}get goal(){return Me(this.animation.to)}get velocity(){const e=Je(this);return e instanceof st?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return Wt(this)}get isAnimating(){return qt(this)}get isPaused(){return Gt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const s=this.animation;let{toValues:i}=s;const{config:r}=s,o=tt(s.to);!o&&_e(s.to)&&(i=O(Me(s.to))),s.values.forEach((a,u)=>{if(a.done)return;const c=a.constructor==it?1:o?o[u].lastPosition:i[u];let l=s.immediate,h=c;if(!l){if(h=a.lastPosition,r.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=s.fromValues[u],i=null!=a.v0?a.v0:a.v0=P.arr(r.velocity)?r.velocity[u]:r.velocity;let o;const d=r.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(P.und(r.duration))if(r.decay){const e=!0===r.decay?.998:r.decay,s=Math.exp(-(1-e)*t);h=n+i/(1-e)*(1-s),l=Math.abs(a.lastPosition-h)<=d,o=i*s}else{o=null==a.lastVelocity?i:a.lastVelocity;const t=r.restVelocity||d/10,s=r.clamp?0:r.bounce,u=!P.und(s),p=n==c?a.v0>0:nt,m||(l=Math.abs(c-h)<=d,!l));++e)u&&(f=h==c||h>c==p,f&&(o=-o*s,h=c)),o+=(1e-6*-r.tension*(h-c)+.001*-r.friction*o)/r.mass*g,h+=o*g}else{let s=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,a.durationProgress>0&&(a.elapsedTime=r.duration*a.durationProgress,t=a.elapsedTime+=e)),s=(r.progress||0)+t/this._memoizedDuration,s=s>1?1:s<0?0:s,a.durationProgress=s),h=n+r.easing(s)*(c-n),o=(h-a.lastPosition)/e,l=1==s}a.lastVelocity=o,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),l=!0)}o&&!o[u].done&&(l=!1),l?a.done=!0:t=!1,a.setValue(h,r.round)&&(n=!0)});const a=Je(this),u=a.getValue();if(t){const e=Me(s.to);u===e&&!n||r.decay?n&&r.decay&&this._onChange(u):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(u)}set(e){return i.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(qt(this)){const{to:e,config:t}=this.animation;i.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return P.und(e)?(n=this.queue||[],this.queue=[]):n=[P.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>jt(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Rt(this._state,e&&this._lastCallId),i.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:s}=e;n=P.obj(n)?n[t]:n,(null==n||At(n))&&(n=void 0),s=P.obj(s)?s[t]:s,null==s&&(s=void 0);const i={to:n,from:s};return Wt(this)||(e.reverse&&([n,s]=[s,n]),s=Me(s),P.und(s)?Je(this)||this._set(n):this._set(s)),i}_update({...e},t){const{key:n,defaultProps:s}=this;e.default&&Object.assign(s,bt(e,(e,t)=>/^on/.test(t)?gt(e,n):e)),tn(this,e,"onProps"),nn(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const r=this._state;return St(++this._lastCallId,{key:n,props:e,defaultProps:s,state:r,actions:{pause:()=>{Gt(this)||(Ht(this,!0),T(r.pauseQueue),nn(this,"onPause",Tt(this,Qt(this,this.animation.to)),this))},resume:()=>{Gt(this)&&(Ht(this,!1),qt(this)&&this._resume(),T(r.resumeQueue),nn(this,"onResume",Tt(this,Qt(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Kt(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(It(this));const s=!P.und(e.to),r=!P.und(e.from);if(s||r){if(!(t.callId>this._lastToId))return n(It(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:u}=this,{to:c,from:l}=u;let{to:h=c,from:d=l}=e;!r||s||t.default&&!P.und(h)||(h=d),t.reverse&&([h,d]=[d,h]);const p=!k(d,l);p&&(u.from=d),d=Me(d);const m=!k(h,c);m&&this._focus(h);const f=At(t.to),{config:g}=u,{decay:y,velocity:v}=g;(s||r)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Ct(n={...n},t),t={...n,...t}),Ct(e,t),Object.assign(e,t);for(const t in Pt)null==e[t]&&(e[t]=Pt[t]);let{frequency:s,damping:i}=e;const{mass:r}=e;P.und(s)||(s<.01&&(s=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/s,2)*r,e.friction=4*Math.PI*i*r/s)}(g,mt(t.config,o),t.config!==a.config?mt(a.config,o):void 0);let b=Je(this);if(!b||P.und(h))return n(Tt(this,!0));const w=P.und(t.reset)?r&&!t.default:!P.und(d)&&ft(t.reset,o),x=w?d:this.get(),_=Mt(h),M=P.num(_)||P.arr(_)||Ye(_),A=!f&&(!M||ft(a.immediate||t.immediate,o));if(m){const e=ct(h);if(e!==b.constructor){if(!A)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const E=b.constructor;let S=_e(h),j=!1;if(!S){const e=w||!Wt(this)&&p;(m||e)&&(j=k(Mt(x),_),S=!j),(k(u.immediate,A)||A)&&k(g.decay,y)&&k(g.velocity,v)||(S=!0)}if(j&&qt(this)&&(u.changed&&!w?S=!0:S||this._stop(c)),!f&&((S||_e(c))&&(u.values=b.getPayload(),u.toValues=_e(h)?null:E==it?[1]:O(_)),u.immediate!=A&&(u.immediate=A,A||w||this._set(c)),S)){const{onRest:e}=u;C(en,e=>tn(this,t,e));const s=Tt(this,Qt(this,c));T(this._pendingCalls,s),this._pendingCalls.add(n),u.changed&&i.batchedUpdates(()=>{u.changed=!w,e?.(s,this),w?mt(a.onRest,s):u.onStart?.(s,this)})}w&&this._set(x),f?n(Lt(t.to,t,this._state,this)):S?this._start():qt(this)&&!m?this._pendingCalls.add(n):n(Vt(x))}_focus(e){const t=this.animation;e!==t.to&&(Ae(this)&&this._detach(),t.to=e,Ae(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;_e(t)&&(Ee(t,this),Nt(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;_e(e)&&Oe(e,this)}_set(e,t=!0){const n=Me(e);if(!P.und(n)){const e=Je(this);if(!e||!k(n,e.getValue())){const s=ct(n);e&&e.constructor==s?e.setValue(n):et(this,s.create(n)),e&&i.batchedUpdates(()=>{this._onChange(n,t)})}}return Je(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,nn(this,"onStart",Tt(this,Qt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),mt(this.animation.onChange,e,this)),mt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Je(this).reset(Me(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),qt(this)||(Yt(this,!0),Gt(this)||this._resume())}_resume(){M.skipAnimation?this.finish():W.start(this)}_stop(e,t){if(qt(this)){Yt(this,!1);const n=this.animation;C(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Pe(this,{type:"idle",parent:this});const s=t?It(this.get()):Tt(this.get(),Qt(this,e??n.to));T(this._pendingCalls,s),n.changed&&(n.changed=!1,nn(this,"onRest",s,this))}}};function Qt(e,t){const n=Mt(t);return k(Mt(e.get()),n)}function Kt(e,t=e.loop,n=e.to){const s=mt(t);if(s){const i=!0!==s&&_t(s),r=(i||e).reverse,o=!i||i.reset;return Xt({...e,loop:t,default:!1,pause:void 0,to:!r||At(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Xt(e){const{to:t,from:n}=e=_t(e),s=new Set;return P.obj(t)&&Jt(t,s),P.obj(n)&&Jt(n,s),e.keys=s.size?Array.from(s):null,e}function Zt(e){const t=Xt(e);return P.und(t.default)&&(t.default=bt(t)),t}function Jt(e,t){E(e,(e,n)=>null!=e&&t.add(n))}var en=["onStart","onRest","onChange","onPause","onResume"];function tn(e,t,n){e.animation[n]=t[n]!==yt(t,n)?gt(t[n],e.key):void 0}function nn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var sn=["onStart","onChange","onRest"],rn=1,on=class{constructor(e,t){this.id=rn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];P.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Xt(e)),this}start(e){let{queue:t}=this;return e?t=O(e).map(Xt):this.queue=[],this._flush?this._flush(this,t):(pn(this,t),an(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;C(O(t),t=>n[t].stop(!!e))}else Rt(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(P.und(e))this.start({pause:!0});else{const t=this.springs;C(O(e),e=>t[e].pause())}return this}resume(e){if(P.und(e))this.start({pause:!1});else{const t=this.springs;C(O(e),e=>t[e].resume())}return this}each(e){E(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,s=this._active.size>0,i=this._changed.size>0;(s&&!this._started||i&&!this._started)&&(this._started=!0,S(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const r=!s&&this._started,o=i||r&&n.size?this.get():null;i&&t.size&&S(t,([e,t])=>{t.value=o,e(t,this,this._item)}),r&&(this._started=!1,S(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}i.onFrame(this._onFrame)}};function an(e,t){return Promise.all(t.map(t=>un(e,t))).then(t=>jt(e,t))}async function un(e,t,n){const{keys:s,to:r,from:o,loop:a,onRest:u,onResolve:c}=t,l=P.obj(t.default)&&t.default;a&&(t.loop=!1),!1===r&&(t.to=null),!1===o&&(t.from=null);const h=P.arr(r)||P.fun(r)?r:void 0;h?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):C(sn,n=>{const s=t[n];if(P.fun(s)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(s);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(s,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[n]=t[n])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,T(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(s||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),m=!0===t.cancel||!0===yt(t,"cancel");(h||m&&d.asyncId)&&p.push(St(++e._lastAsyncId,{props:t,state:d,actions:{pause:A,resume:A,start(t,n){m?(Rt(d,e._lastAsyncId),n(It(e))):(t.onRest=u,n(Lt(h,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});const f=jt(e,await Promise.all(p));if(a&&f.finished&&(!n||!f.noop)){const n=Kt(t,a,r);if(n)return pn(e,[n]),un(e,n,!0)}return c&&i.batchedUpdates(()=>c(f,e,e.item)),f}function cn(e,t){const n={...e.springs};return t&&C(O(t),e=>{P.und(e.keys)&&(e=Xt(e)),P.obj(e.to)||(e={...e,to:void 0}),dn(n,e,e=>hn(e))}),ln(e,n),n}function ln(e,t){E(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,Ee(t,e))})}function hn(e,t){const n=new $t;return n.key=e,t&&Ee(n,t),n}function dn(e,t,n){t.keys&&C(t.keys,s=>{(e[s]||(e[s]=n(s)))._prepareNode(t)})}function pn(e,t){C(t,t=>{dn(e.springs,t,t=>hn(t,e))})}var mn,fn,gn=({children:e,...t})=>{const n=(0,x.useContext)(yn),s=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,x.useState)(()=>({inputs:t,result:e()})),s=(0,x.useRef)(),i=s.current;let r=i;return r?Boolean(t&&r.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{s.current=r,i==n&&(n.inputs=n.result=void 0)},[r]),r.result}(()=>({pause:s,immediate:i}),[s,i]);const{Provider:r}=yn;return x.createElement(r,{value:t},e)},yn=(mn=gn,fn={},Object.assign(mn,x.createContext(fn)),mn.Provider._context=mn,mn.Consumer._context=mn,mn);gn.Provider=yn.Provider,gn.Consumer=yn.Consumer;var vn=()=>{const e=[],t=function(t){Ge(`${De}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const s=[];return C(e,(e,i)=>{if(P.und(t))s.push(e.start());else{const r=n(t,e,i);r&&s.push(e.start(r))}}),s};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return C(e,e=>e.pause(...arguments)),this},t.resume=function(){return C(e,e=>e.resume(...arguments)),this},t.set=function(t){C(e,(e,n)=>{const s=P.fun(t)?t(n,e):t;s&&e.set(s)})},t.start=function(t){const n=[];return C(e,(e,s)=>{if(P.und(t))n.push(e.start());else{const i=this._getProps(t,e,s);i&&n.push(e.start(i))}}),n},t.stop=function(){return C(e,e=>e.stop(...arguments)),this},t.update=function(t){return C(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return P.fun(e)?e(n,t):e};return t._getProps=n,t};function bn(e,t){const n=P.fun(e),[[s],i]=function(e,t,n){const s=P.fun(t)&&t;s&&!n&&(n=[]);const i=(0,x.useMemo)(()=>s||3==arguments.length?vn():void 0,[]),r=(0,x.useRef)(0),o=$e(),a=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const n=cn(e,t);return r.current>0&&!a.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?an(e,t):new Promise(s=>{ln(e,n),a.queue.push(()=>{s(an(e,t))}),o()})}}),[]),u=(0,x.useRef)([...a.ctrls]),c=[],l=Xe(e)||0;function h(e,n){for(let i=e;i{C(u.current.slice(e,l),e=>{(function(e,t){e.ref?.delete(e),t?.delete(e)})(e,i),e.stop(!0)}),u.current.length=e,h(l,e)},[e]),(0,x.useMemo)(()=>{h(0,Math.min(l,e))},n);const d=u.current.map((e,t)=>cn(e,c[t])),p=(0,x.useContext)(gn),m=Xe(p),f=p!==m&&function(e){for(const t in e)return!0;return!1}(p);He(()=>{r.current++,a.ctrls=u.current;const{queue:e}=a;e.length&&(a.queue=[],C(e,e=>e())),C(u.current,(e,t)=>{i?.add(e),f&&e.start({default:p});const n=c[t];n&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),Qe(()=>()=>{C(a.ctrls,e=>e.stop(!0))});const g=d.map(e=>({...e}));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[s,i]:s}var wn=class extends Dt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=de(...t);const n=this._get(),s=ct(n);et(this,s.create(n))}advance(e){const t=this._get();k(t,this.get())||(Je(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&_n(this._active)&&Mn(this)}_get(){const e=P.arr(this.source)?this.source.map(Me):O(Me(this.source));return this.calc(...e)}_start(){this.idle&&!_n(this._active)&&(this.idle=!1,C(tt(this),e=>{e.done=!1}),M.skipAnimation?(i.batchedUpdates(()=>this.advance()),Mn(this)):W.start(this))}_attach(){let e=1;C(O(this.source),t=>{_e(t)&&Ee(t,this),Nt(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){C(O(this.source),e=>{_e(e)&&Oe(e,this)}),this._active.clear(),Mn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=O(this.source).reduce((e,t)=>Math.max(e,(Nt(t)?t.priority:0)+1),0))}};function xn(e){return!1!==e.idle}function _n(e){return!e.size||Array.from(e).every(xn)}function Mn(e){e.idle||(e.idle=!0,C(tt(e),e=>{e.done=!0}),Pe(e,{type:"idle",parent:e}))}var An=(e,...t)=>(qe(),new wn(e,t));M.assign({createStringInterpolator:Ue,to:(e,t)=>new wn(e,t)}),W.advance;var Pn=n(76212),kn=/^--/;function Cn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||kn.test(e)||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}var En={},On={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sn=["Webkit","Ms","Moz","O"];On=Object.keys(On).reduce((e,t)=>(Sn.forEach(n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t]),e),On);var jn=/^(matrix|translate|scale|rotate|skew)/,Vn=/^(translate)/,Tn=/^(rotate|skew)/,In=(e,t)=>P.num(e)&&0!==e?e+t:e,Ln=(e,t)=>P.arr(e)?e.every(e=>Ln(e,t)):P.num(e)?e===t:parseFloat(e)===t,Rn=class extends ot{constructor({x:e,y:t,z:n,...s}){const i=[],r=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),r.push(e=>[`translate3d(${e.map(e=>In(e,"px")).join(",")})`,Ln(e,0)])),E(s,(e,t)=>{if("transform"===t)i.push([e||""]),r.push(e=>[e,""===e]);else if(jn.test(t)){if(delete s[t],P.und(e))return;const n=Vn.test(t)?"px":Tn.test(t)?"deg":"";i.push(O(e)),r.push("rotate3d"===t?([e,t,s,i])=>[`rotate3d(${e},${t},${s},${In(i,n)})`,Ln(i,0)]:e=>[`${t}(${e.map(e=>In(e,n)).join(",")})`,Ln(e,t.startsWith("scale")?1:0)])}}),i.length&&(s.transform=new zn(i,r)),super(s)}},zn=class extends ke{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return C(this.inputs,(n,s)=>{const i=Me(n[0]),[r,o]=this.transforms[s](P.arr(i)?i:n.map(Me));e+=" "+r,t=t&&o}),t?"none":e}observerAdded(e){1==e&&C(this.inputs,e=>C(e,e=>_e(e)&&Ee(e,this)))}observerRemoved(e){0==e&&C(this.inputs,e=>C(e,e=>_e(e)&&Oe(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),Pe(this,e)}};M.assign({batchedUpdates:Pn.unstable_batchedUpdates,createStringInterpolator:Ue,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Fn=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new ot(e),getComponentProps:s=e=>e}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:s},r=e=>{const t=pt(e)||"Anonymous";return(e=P.str(e)?r[e]||(r[e]=lt(e,i)):e[dt]||(e[dt]=lt(e,i))).displayName=`Animated(${t})`,e};return E(e,(t,n)=>{P.arr(e)&&(n=pt(t)),r[n]=r(t)}),{animated:r}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:s,style:i,children:r,scrollTop:o,scrollLeft:a,viewBox:u,...c}=t,l=Object.values(c),h=Object.keys(c).map(t=>n||e.hasAttribute(t)?t:En[t]||(En[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));void 0!==r&&(e.textContent=r);for(const t in i)if(i.hasOwnProperty(t)){const n=Cn(t,i[t]);kn.test(t)?e.style.setProperty(t,n):e.style[t]=n}h.forEach((t,n)=>{e.setAttribute(t,l[n])}),void 0!==s&&(e.className=s),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==u&&e.setAttribute("viewBox",u)},createAnimatedStyle:e=>new Rn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Nn=Fn.animated},8496(e,t,n){"use strict";n.d(t,{A:()=>s});const s=class{static isWebGLAvailable(){try{const e=document.createElement("canvas");return!(!window.WebGLRenderingContext||!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}catch(e){return!1}}static isWebGL2Available(){try{const e=document.createElement("canvas");return!(!window.WebGL2RenderingContext||!e.getContext("webgl2"))}catch(e){return!1}}static isColorSpaceAvailable(e){try{const t=document.createElement("canvas"),n=window.WebGL2RenderingContext&&t.getContext("webgl2");return n.drawingBufferColorSpace=e,n.drawingBufferColorSpace===e}catch(e){return!1}}static getWebGLErrorMessage(){return this.getErrorMessage(1)}static getWebGL2ErrorMessage(){return this.getErrorMessage(2)}static getErrorMessage(e){const t={1:window.WebGLRenderingContext,2:window.WebGL2RenderingContext};let n='Your $0 does not seem to support $1';const s=document.createElement("div");return s.id="webglmessage",s.style.fontFamily="monospace",s.style.fontSize="13px",s.style.fontWeight="normal",s.style.textAlign="center",s.style.background="#fff",s.style.color="#000",s.style.padding="1.5em",s.style.width="400px",s.style.margin="5em auto 0",n=t[e]?n.replace("$0","graphics card"):n.replace("$0","browser"),n=n.replace("$1",{1:"WebGL",2:"WebGL 2"}[e]),s.innerHTML=n,s}}},63739(e,t,n){"use strict";n.d(t,{N:()=>l});var s=n(75508);const i={type:"change"},r={type:"start"},o={type:"end"},a=new s.Ray,u=new s.Plane,c=Math.cos(70*s.MathUtils.DEG2RAD);class l extends s.EventDispatcher{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new s.Vector3,this.cursor=new s.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return p.phi},this.getAzimuthalAngle=function(){return p.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(e){e.addEventListener("keydown",ne),this._domElementKeyEvents=e},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",ne),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(i),n.update(),h=l.NONE},this.update=function(){const t=new s.Vector3,r=(new s.Quaternion).setFromUnitVectors(e.up,new s.Vector3(0,1,0)),o=r.clone().invert(),y=new s.Vector3,v=new s.Quaternion,b=new s.Vector3,w=2*Math.PI;return function(x=null){const _=n.object.position;t.copy(_).sub(n.target),t.applyQuaternion(r),p.setFromVector3(t),n.autoRotate&&h===l.NONE&&T(function(e){return null!==e?2*Math.PI/60*n.autoRotateSpeed*e:2*Math.PI/60/60*n.autoRotateSpeed}(x)),n.enableDamping?(p.theta+=m.theta*n.dampingFactor,p.phi+=m.phi*n.dampingFactor):(p.theta+=m.theta,p.phi+=m.phi);let M=n.minAzimuthAngle,A=n.maxAzimuthAngle;isFinite(M)&&isFinite(A)&&(M<-Math.PI?M+=w:M>Math.PI&&(M-=w),A<-Math.PI?A+=w:A>Math.PI&&(A-=w),p.theta=M<=A?Math.max(M,Math.min(A,p.theta)):p.theta>(M+A)/2?Math.max(M,p.theta):Math.min(A,p.theta)),p.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,p.phi)),p.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(g,n.dampingFactor):n.target.add(g),n.target.sub(n.cursor),n.target.clampLength(n.minTargetRadius,n.maxTargetRadius),n.target.add(n.cursor);let P=!1;if(n.zoomToCursor&&E||n.object.isOrthographicCamera)p.radius=D(p.radius);else{const e=p.radius;p.radius=D(p.radius*f),P=e!=p.radius}if(t.setFromSpherical(p),t.applyQuaternion(o),_.copy(n.target).add(t),n.object.lookAt(n.target),!0===n.enableDamping?(m.theta*=1-n.dampingFactor,m.phi*=1-n.dampingFactor,g.multiplyScalar(1-n.dampingFactor)):(m.set(0,0,0),g.set(0,0,0)),n.zoomToCursor&&E){let i=null;if(n.object.isPerspectiveCamera){const e=t.length();i=D(e*f);const s=e-i;n.object.position.addScaledVector(k,s),n.object.updateMatrixWorld(),P=!!s}else if(n.object.isOrthographicCamera){const e=new s.Vector3(C.x,C.y,0);e.unproject(n.object);const r=n.object.zoom;n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/f)),n.object.updateProjectionMatrix(),P=r!==n.object.zoom;const o=new s.Vector3(C.x,C.y,0);o.unproject(n.object),n.object.position.sub(o).add(e),n.object.updateMatrixWorld(),i=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==i&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(i).add(n.object.position):(a.origin.copy(n.object.position),a.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(a.direction))d||8*(1-v.dot(n.object.quaternion))>d||b.distanceToSquared(n.target)>d)&&(n.dispatchEvent(i),y.copy(n.object.position),v.copy(n.object.quaternion),b.copy(n.target),!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ie),n.domElement.removeEventListener("pointerdown",K),n.domElement.removeEventListener("pointercancel",Z),n.domElement.removeEventListener("wheel",J),n.domElement.removeEventListener("pointermove",X),n.domElement.removeEventListener("pointerup",Z),n.domElement.getRootNode().removeEventListener("keydown",ee,{capture:!0}),null!==n._domElementKeyEvents&&(n._domElementKeyEvents.removeEventListener("keydown",ne),n._domElementKeyEvents=null)};const n=this,l={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let h=l.NONE;const d=1e-6,p=new s.Spherical,m=new s.Spherical;let f=1;const g=new s.Vector3,y=new s.Vector2,v=new s.Vector2,b=new s.Vector2,w=new s.Vector2,x=new s.Vector2,_=new s.Vector2,M=new s.Vector2,A=new s.Vector2,P=new s.Vector2,k=new s.Vector3,C=new s.Vector2;let E=!1;const O=[],S={};let j=!1;function V(e){const t=Math.abs(.01*e);return Math.pow(.95,n.zoomSpeed*t)}function T(e){m.theta-=e}function I(e){m.phi-=e}const L=function(){const e=new s.Vector3;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),g.add(e)}}(),R=function(){const e=new s.Vector3;return function(t,s){!0===n.screenSpacePanning?e.setFromMatrixColumn(s,1):(e.setFromMatrixColumn(s,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),g.add(e)}}(),z=function(){const e=new s.Vector3;return function(t,s){const i=n.domElement;if(n.object.isPerspectiveCamera){const r=n.object.position;e.copy(r).sub(n.target);let o=e.length();o*=Math.tan(n.object.fov/2*Math.PI/180),L(2*t*o/i.clientHeight,n.object.matrix),R(2*s*o/i.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(L(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),R(s*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function F(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?f/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function N(e){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?f*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function U(e,t){if(!n.zoomToCursor)return;E=!0;const s=n.domElement.getBoundingClientRect(),i=e-s.left,r=t-s.top,o=s.width,a=s.height;C.x=i/o*2-1,C.y=-r/a*2+1,k.set(C.x,C.y,1).unproject(n.object).sub(n.object.position).normalize()}function D(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function B(e){y.set(e.clientX,e.clientY)}function W(e){w.set(e.clientX,e.clientY)}function q(e){if(1===O.length)y.set(e.pageX,e.pageY);else{const t=oe(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);y.set(n,s)}}function G(e){if(1===O.length)w.set(e.pageX,e.pageY);else{const t=oe(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);w.set(n,s)}}function Y(e){const t=oe(e),n=e.pageX-t.x,s=e.pageY-t.y,i=Math.sqrt(n*n+s*s);M.set(0,i)}function H(e){if(1==O.length)v.set(e.pageX,e.pageY);else{const t=oe(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);v.set(n,s)}b.subVectors(v,y).multiplyScalar(n.rotateSpeed);const t=n.domElement;T(2*Math.PI*b.x/t.clientHeight),I(2*Math.PI*b.y/t.clientHeight),y.copy(v)}function $(e){if(1===O.length)x.set(e.pageX,e.pageY);else{const t=oe(e),n=.5*(e.pageX+t.x),s=.5*(e.pageY+t.y);x.set(n,s)}_.subVectors(x,w).multiplyScalar(n.panSpeed),z(_.x,_.y),w.copy(x)}function Q(e){const t=oe(e),s=e.pageX-t.x,i=e.pageY-t.y,r=Math.sqrt(s*s+i*i);A.set(0,r),P.set(0,Math.pow(A.y/M.y,n.zoomSpeed)),F(P.y),M.copy(A),U(.5*(e.pageX+t.x),.5*(e.pageY+t.y))}function K(e){!1!==n.enabled&&(0===O.length&&(n.domElement.setPointerCapture(e.pointerId),n.domElement.addEventListener("pointermove",X),n.domElement.addEventListener("pointerup",Z)),function(e){for(let t=0;t0?F(V(P.y)):P.y<0&&N(V(P.y)),M.copy(A),n.update()}(e);break;case l.PAN:if(!1===n.enablePan)return;!function(e){x.set(e.clientX,e.clientY),_.subVectors(x,w).multiplyScalar(n.panSpeed),z(_.x,_.y),w.copy(x),n.update()}(e)}}(e))}function Z(e){switch(function(e){delete S[e.pointerId];for(let t=0;t0&&F(V(e.deltaY)),n.update()}(function(e){const t=e.deltaMode,n={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(t){case 1:n.deltaY*=16;break;case 2:n.deltaY*=100}return e.ctrlKey&&!j&&(n.deltaY*=10),n}(e)),n.dispatchEvent(o))}function ee(e){"Control"===e.key&&(j=!0,n.domElement.getRootNode().addEventListener("keyup",te,{passive:!0,capture:!0}))}function te(e){"Control"===e.key&&(j=!1,n.domElement.getRootNode().removeEventListener("keyup",te,{passive:!0,capture:!0}))}function ne(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?I(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):z(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?I(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):z(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?T(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):z(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?T(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):z(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function se(e){switch(re(e),O.length){case 1:switch(n.touches.ONE){case s.TOUCH.ROTATE:if(!1===n.enableRotate)return;q(e),h=l.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(!1===n.enablePan)return;G(e),h=l.TOUCH_PAN;break;default:h=l.NONE}break;case 2:switch(n.touches.TWO){case s.TOUCH.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&Y(e),n.enablePan&&G(e)}(e),h=l.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&Y(e),n.enableRotate&&q(e)}(e),h=l.TOUCH_DOLLY_ROTATE;break;default:h=l.NONE}break;default:h=l.NONE}h!==l.NONE&&n.dispatchEvent(r)}function ie(e){!1!==n.enabled&&e.preventDefault()}function re(e){let t=S[e.pointerId];void 0===t&&(t=new s.Vector2,S[e.pointerId]=t),t.set(e.pageX,e.pageY)}function oe(e){const t=e.pointerId===O[0]?O[1]:O[0];return S[t]}n.domElement.addEventListener("contextmenu",ie),n.domElement.addEventListener("pointerdown",K),n.domElement.addEventListener("pointercancel",Z),n.domElement.addEventListener("wheel",J,{passive:!1}),n.domElement.getRootNode().addEventListener("keydown",ee,{passive:!0,capture:!0}),this.update()}}},65220(e,t,n){"use strict";n.d(t,{_:()=>i});var s=n(75508);class i extends s.ExtrudeGeometry{constructor(e,t={}){const n=t.font;if(void 0===n)super();else{const s=n.generateShapes(e,t.size);void 0===t.depth&&void 0!==t.height&&console.warn("THREE.TextGeometry: .height is now depreciated. Please use .depth instead"),t.depth=void 0!==t.depth?t.depth:void 0!==t.height?t.height:50,void 0===t.bevelThickness&&(t.bevelThickness=10),void 0===t.bevelSize&&(t.bevelSize=8),void 0===t.bevelEnabled&&(t.bevelEnabled=!1),super(s,t)}this.type="TextGeometry"}}},2363(e,t,n){"use strict";n.d(t,{J:()=>i});var s=n(75508);class i extends s.Loader{constructor(e){super(e)}load(e,t,n,i){const r=this,o=new s.FileLoader(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(e){const n=r.parse(JSON.parse(e));t&&t(n)},n,i)}parse(e){return new r(e)}}class r{constructor(e){this.isFont=!0,this.type="Font",this.data=e}generateShapes(e,t=100){const n=[],s=function(e,t,n){const s=Array.from(e),i=t/n.resolution,r=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*i,a=[];let u=0,c=0;for(let e=0;ei});var s=n(75508);class i extends s.Loader{constructor(e){super(e)}load(e,t,n,i){const r=this,o=""===this.path?s.LoaderUtils.extractUrlBase(e):this.path,a=new s.FileLoader(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,function(n){try{t(r.parse(n,o))}catch(t){i?i(t):console.error(t),r.manager.itemError(e)}},n,i)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,t){const n=e.split("\n");let s={};const i=/\s+/,o={};for(let e=0;e=0?t.substring(0,r):t;a=a.toLowerCase();let u=r>=0?t.substring(r+1):"";if(u=u.trim(),"newmtl"===a)s={name:u},o[u]=s;else if("ka"===a||"kd"===a||"ks"===a||"ke"===a){const e=u.split(i,3);s[a]=[parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2])]}else s[a]=u}const a=new r(this.resourcePath||t,this.materialOptions);return a.setCrossOrigin(this.crossOrigin),a.setManager(this.manager),a.setMaterials(o),a}}class r{constructor(e="",t={}){this.baseUrl=e,this.options=t,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=void 0!==this.options.side?this.options.side:s.FrontSide,this.wrap=void 0!==this.options.wrap?this.options.wrap:s.RepeatWrapping}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const t={};for(const n in e){const s=e[n],i={};t[n]=i;for(const e in s){let t=!0,n=s[e];const r=e.toLowerCase();switch(r){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(n=[n[0]/255,n[1]/255,n[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===n[0]&&0===n[1]&&0===n[2]&&(t=!1)}t&&(i[r]=n)}}return t}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const t in this.materialsInfo)this.materialsArray[e]=this.create(t),this.nameLookup[t]=e,e++;return this.materialsArray}create(e){return void 0===this.materials[e]&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const t=this,n=this.materialsInfo[e],i={name:e,side:this.side};function r(e,n){if(i[e])return;const r=t.getTextureParams(n,i),o=t.loadTexture((a=t.baseUrl,"string"!=typeof(u=r.url)||""===u?"":/^https?:\/\//i.test(u)?u:a+u));var a,u;o.repeat.copy(r.scale),o.offset.copy(r.offset),o.wrapS=t.wrap,o.wrapT=t.wrap,"map"!==e&&"emissiveMap"!==e||(o.colorSpace=s.SRGBColorSpace),i[e]=o}for(const e in n){const t=n[e];let o;if(""!==t)switch(e.toLowerCase()){case"kd":i.color=(new s.Color).fromArray(t).convertSRGBToLinear();break;case"ks":i.specular=(new s.Color).fromArray(t).convertSRGBToLinear();break;case"ke":i.emissive=(new s.Color).fromArray(t).convertSRGBToLinear();break;case"map_kd":r("map",t);break;case"map_ks":r("specularMap",t);break;case"map_ke":r("emissiveMap",t);break;case"norm":r("normalMap",t);break;case"map_bump":case"bump":r("bumpMap",t);break;case"map_d":r("alphaMap",t),i.transparent=!0;break;case"ns":i.shininess=parseFloat(t);break;case"d":o=parseFloat(t),o<1&&(i.opacity=o,i.transparent=!0);break;case"tr":o=parseFloat(t),this.options&&this.options.invertTrProperty&&(o=1-o),o>0&&(i.opacity=1-o,i.transparent=!0)}}return this.materials[e]=new s.MeshPhongMaterial(i),this.materials[e]}getTextureParams(e,t){const n={scale:new s.Vector2(1,1),offset:new s.Vector2(0,0)},i=e.split(/\s+/);let r;return r=i.indexOf("-bm"),r>=0&&(t.bumpScale=parseFloat(i[r+1]),i.splice(r,2)),r=i.indexOf("-s"),r>=0&&(n.scale.set(parseFloat(i[r+1]),parseFloat(i[r+2])),i.splice(r,4)),r=i.indexOf("-o"),r>=0&&(n.offset.set(parseFloat(i[r+1]),parseFloat(i[r+2])),i.splice(r,4)),n.url=i.join(" ").trim(),n}loadTexture(e,t,n,i,r){const o=void 0!==this.manager?this.manager:s.DefaultLoadingManager;let a=o.getHandler(e);null===a&&(a=new s.TextureLoader(o)),a.setCrossOrigin&&a.setCrossOrigin(this.crossOrigin);const u=a.load(e,n,i,r);return void 0!==t&&(u.mapping=t),u}}},72367(e,t,n){"use strict";n.d(t,{L:()=>g});var s=n(75508);const i=/^[og]\s*(.+)?/,r=/^mtllib /,o=/^usemtl /,a=/^usemap /,u=/\s+/,c=new s.Vector3,l=new s.Vector3,h=new s.Vector3,d=new s.Vector3,p=new s.Vector3,m=new s.Color;function f(){const e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);const n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){const n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);const s={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){const t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(s),s},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(let e=this.materials.length-1;e>=0;e--)this.materials[e].groupCount<=0&&this.materials.splice(e,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}},n&&n.name&&"function"==typeof n.clone){const e=n.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){const n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){const s=this.vertices,i=this.object.geometry.vertices;i.push(s[e+0],s[e+1],s[e+2]),i.push(s[t+0],s[t+1],s[t+2]),i.push(s[n+0],s[n+1],s[n+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){const s=this.normals,i=this.object.geometry.normals;i.push(s[e+0],s[e+1],s[e+2]),i.push(s[t+0],s[t+1],s[t+2]),i.push(s[n+0],s[n+1],s[n+2])},addFaceNormal:function(e,t,n){const s=this.vertices,i=this.object.geometry.normals;c.fromArray(s,e),l.fromArray(s,t),h.fromArray(s,n),p.subVectors(h,l),d.subVectors(c,l),p.cross(d),p.normalize(),i.push(p.x,p.y,p.z),i.push(p.x,p.y,p.z),i.push(p.x,p.y,p.z)},addColor:function(e,t,n){const s=this.colors,i=this.object.geometry.colors;void 0!==s[e]&&i.push(s[e+0],s[e+1],s[e+2]),void 0!==s[t]&&i.push(s[t+0],s[t+1],s[t+2]),void 0!==s[n]&&i.push(s[n+0],s[n+1],s[n+2])},addUV:function(e,t,n){const s=this.uvs,i=this.object.geometry.uvs;i.push(s[e+0],s[e+1]),i.push(s[t+0],s[t+1]),i.push(s[n+0],s[n+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,s,i,r,o,a,u){const c=this.vertices.length;let l=this.parseVertexIndex(e,c),h=this.parseVertexIndex(t,c),d=this.parseVertexIndex(n,c);if(this.addVertex(l,h,d),this.addColor(l,h,d),void 0!==o&&""!==o){const e=this.normals.length;l=this.parseNormalIndex(o,e),h=this.parseNormalIndex(a,e),d=this.parseNormalIndex(u,e),this.addNormal(l,h,d)}else this.addFaceNormal(l,h,d);if(void 0!==s&&""!==s){const e=this.uvs.length;l=this.parseUVIndex(s,e),h=this.parseUVIndex(i,e),d=this.parseUVIndex(r,e),this.addUV(l,h,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let n=0,s=e.length;n=7?(m.setRGB(parseFloat(e[4]),parseFloat(e[5]),parseFloat(e[6])).convertSRGBToLinear(),t.colors.push(m.r,m.g,m.b)):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]));break;case"vt":t.uvs.push(parseFloat(e[1]),parseFloat(e[2]))}}else if("f"===l){const e=s.slice(1).trim().split(u),n=[];for(let t=0,s=e.length;t0){const e=s.split("/");n.push(e)}}const i=n[0];for(let e=1,s=n.length-1;e1){const e=c[1].trim().toLowerCase();t.object.smooth="0"!==e&&"off"!==e}else t.object.smooth=!0;const e=t.object.currentMaterial();e&&(e.smooth=t.object.smooth)}else{if("\0"===s)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+s+'"')}}t.finalize();const l=new s.Group;if(l.materialLibraries=[].concat(t.materialLibraries),!0==!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length))for(let e=0,n=t.objects.length;e0&&c.setAttribute("normal",new s.Float32BufferAttribute(i.normals,3)),i.colors.length>0&&(u=!0,c.setAttribute("color",new s.Float32BufferAttribute(i.colors,3))),!0===i.hasUVIndices&&c.setAttribute("uv",new s.Float32BufferAttribute(i.uvs,2));const h=[];for(let e=0,n=r.length;e1){for(let e=0,t=r.length;e0){const e=new s.PointsMaterial({size:1,sizeAttenuation:!1}),n=new s.BufferGeometry;n.setAttribute("position",new s.Float32BufferAttribute(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(n.setAttribute("color",new s.Float32BufferAttribute(t.colors,3)),e.vertexColors=!0);const i=new s.Points(n,e);l.add(i)}return l}}},15983(e,t,n){"use strict";n.d(t,{B:()=>l,v:()=>i});var s=n(75508);class i extends s.Object3D{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new s.Vector2(.5,.5),this.addEventListener("removed",function(){this.traverse(function(e){e.element instanceof Element&&null!==e.element.parentNode&&e.element.parentNode.removeChild(e.element)})})}copy(e,t){return super.copy(e,t),this.element=e.element.cloneNode(!0),this.center=e.center,this}}const r=new s.Vector3,o=new s.Matrix4,a=new s.Matrix4,u=new s.Vector3,c=new s.Vector3;class l{constructor(e={}){const t=this;let n,s,i,l;const h={objects:new WeakMap},d=void 0!==e.element?e.element:document.createElement("div");function p(e){e.isCSS2DObject&&(e.element.style.display="none");for(let t=0,n=e.children.length;t=-1&&r.z<=1&&!0===e.layers.test(s.layers),m=e.element;m.style.display=!0===p?"":"none",!0===p&&(e.onBeforeRender(t,n,s),m.style.transform="translate("+-100*e.center.x+"%,"+-100*e.center.y+"%)translate("+(r.x*i+i)+"px,"+(-r.y*l+l)+"px)",m.parentNode!==d&&d.appendChild(m),e.onAfterRender(t,n,s));const g={distanceToCameraSquared:(o=s,f=e,u.setFromMatrixPosition(o.matrixWorld),c.setFromMatrixPosition(f.matrixWorld),u.distanceToSquared(c))};h.objects.set(e,g)}for(let t=0,i=e.children.length;tF});var t=r(40366),o=r(58788),c=r(29210),u=r(62804),i=r(63864),a=r(75100),l=(r(42756),r(47960)),f=r(83517),s=r(27878),p=r(60346);const y=(0,r(23218).n9)(function(n){return{"cm-container":{display:"flex",width:"100%",height:"100%"},error:{color:n.tokens.colors.error2},info:{color:n.tokens.colors.brand3},warn:{color:n.tokens.colors.warn2}}});var d=r(7174).A.create({baseURL:"http://127.0.0.1:8889"}),b=function(n){return d.post("/terminals?cols=".concat(n.cols,"&rows=").concat(n.rows))},v=function(n,e){return d.post("/terminals/".concat(n,"/size?cols=").concat(e.cols,"&rows=").concat(e.rows))},m=r(84436),w=r(36242),h=r(63212);function g(n){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g(n)}function O(){var n,e,r="function"==typeof Symbol?Symbol:{},t=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function c(r,t,o,c){var a=t&&t.prototype instanceof i?t:i,l=Object.create(a.prototype);return S(l,"_invoke",function(r,t,o){var c,i,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:n,a:y,f:y.bind(n,4),d:function(e,r){return c=e,i=0,a=n,p.n=r,u}};function y(r,t){for(i=r,a=t,e=0;!s&&l&&!o&&e3?(o=d===t)&&(a=c[(i=c[4])?5:(i=3,3)],c[4]=c[5]=n):c[0]<=y&&((o=r<2&&yt||t>d)&&(c[4]=r,c[5]=t,p.n=d,i=0))}if(o||r>1)return u;throw s=!0,t}return function(o,f,d){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,d),i=f,a=d;(e=i<2?n:a)||!s;){c||(i?i<3?(i>1&&(p.n=-1),y(i,a)):p.n=a:p.v=a);try{if(l=2,c){if(i||(o="next"),e=c[o]){if(!(e=e.call(c,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=c.return)&&e.call(c),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);c=n}else if((e=(s=p.n<0)?a:r.call(t,p))!==u)break}catch(e){c=n,i=1,a=e}finally{l=1}}return{value:e,done:s}}}(r,o,c),!0),l}var u={};function i(){}function a(){}function l(){}e=Object.getPrototypeOf;var f=[][t]?e(e([][t]())):(S(e={},t,function(){return this}),e),s=l.prototype=i.prototype=Object.create(f);function p(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,l):(n.__proto__=l,S(n,o,"GeneratorFunction")),n.prototype=Object.create(s),n}return a.prototype=l,S(s,"constructor",l),S(l,"constructor",a),a.displayName="GeneratorFunction",S(l,o,"GeneratorFunction"),S(s),S(s,o,"Generator"),S(s,t,function(){return this}),S(s,"toString",function(){return"[object Generator]"}),(O=function(){return{w:c,m:p}})()}function S(n,e,r,t){var o=Object.defineProperty;try{o({},"",{})}catch(n){o=0}S=function(n,e,r,t){function c(e,r){S(n,e,function(n){return this._invoke(e,r,n)})}e?o?o(n,e,{value:r,enumerable:!t,configurable:!t,writable:!t}):n[e]=r:(c("next",0),c("throw",1),c("return",2))},S(n,e,r,t)}function j(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.push.apply(r,t)}return r}function k(n){for(var e=1;en.length)&&(e=n.length);for(var r=0,t=Array(e);rN});var i=t(40366),r=t(88206),l=t(47960),a=t(36242),o=t(46533),u=t(84436),c=t(16263),s=t(38129),b=t(96676),f=t(2975),d=t(83517),y=t(60346),v=t(11446),p={Perception:{polygon:{defaultVisible:!0,currentVisible:!0,vizKey:"polygon"},boundingbox:{defaultVisible:!1,currentVisible:!1,vizKey:"boundingbox"},pointCloud:{defaultVisible:!0,currentVisible:!0,vizKey:"pointCloud"},unknownMovable:{defaultVisible:!0,currentVisible:!0,vizKey:"unknownMovable"},vehicle:{defaultVisible:!0,currentVisible:!0,vizKey:"vehicle"},unknownStationary:{defaultVisible:!0,currentVisible:!0,vizKey:"unknownUnmovable"},pedestrian:{defaultVisible:!0,currentVisible:!0,vizKey:"pedestrian"},unknown:{defaultVisible:!0,currentVisible:!0,vizKey:"unknown"},bicycle:{defaultVisible:!0,currentVisible:!0,vizKey:"bicycle"},cipv:{defaultVisible:!0,currentVisible:!0,vizKey:"cipv"},velocity:{defaultVisible:!0,currentVisible:!0,vizKey:"obstacleVelocity"},heading:{defaultVisible:!0,currentVisible:!0,vizKey:"obstacleHeading"},id:{defaultVisible:!0,currentVisible:!0,vizKey:"obstacleId"},distanceAndSpeed:{defaultVisible:!0,currentVisible:!0,vizKey:"obstacleDistanceAndSpeed"},laneMarker:{defaultVisible:!0,currentVisible:!0,vizKey:"laneMarker"},lidarSensor:{defaultVisible:!0,currentVisible:!0,vizKey:"lidarSensor"},radarSensor:{defaultVisible:!0,currentVisible:!0,vizKey:"radarSensor"},cameraSensor:{defaultVisible:!0,currentVisible:!0,vizKey:"cameraSensor"},v2x:{defaultVisible:!0,currentVisible:!0,vizKey:"v2x"}},Prediction:{priority:{defaultVisible:!1,currentVisible:!1,vizKey:"obstaclePriority"},majorPredictionLine:{defaultVisible:!1,currentVisible:!1,vizKey:"majorPredictionLine"},gaussianInfo:{defaultVisible:!1,currentVisible:!1,vizKey:"gaussianInfo"},minorPredictionLine:{defaultVisible:!1,currentVisible:!1,vizKey:"minorPredictionLine"},interactiveTag:{defaultVisible:!1,currentVisible:!1,vizKey:"obstacleInteractiveTag"}},Routing:{routingLine:{defaultVisible:!1,currentVisible:!1,vizKey:"routingLine"}},Decision:{mainDecision:{defaultVisible:!1,currentVisible:!1,vizKey:"mainDecision"},obstacleDecision:{defaultVisible:!1,currentVisible:!1,vizKey:"obstacleDecision"}},Planning:{planningCar:{defaultVisible:!1,currentVisible:!1,vizKey:"planningCar"},planningTrajectory:{defaultVisible:!1,currentVisible:!1,vizKey:"planningTrajectory"}},Position:{localization:{defaultVisible:!0,currentVisible:!0,vizKey:"localization"},gps:{defaultVisible:!1,currentVisible:!1,vizKey:"gps"},shadow:{defaultVisible:!1,currentVisible:!1,vizKey:"shadow"}},Map:{crosswalk:{defaultVisible:!1,currentVisible:!1,vizKey:"crosswalk"},clearArea:{defaultVisible:!1,currentVisible:!1,vizKey:"clearArea"},junction:{defaultVisible:!1,currentVisible:!1,vizKey:"junction"},pncJunction:{defaultVisible:!1,currentVisible:!1,vizKey:"pncJunction"},lane:{defaultVisible:!1,currentVisible:!1,vizKey:"lane"},road:{defaultVisible:!1,currentVisible:!1,vizKey:"road"},signal:{defaultVisible:!1,currentVisible:!1,vizKey:"signal"},stopSign:{defaultVisible:!1,currentVisible:!1,vizKey:"stopSign"},yieldSign:{defaultVisible:!1,currentVisible:!1,vizKey:"yieldSign"},speedBump:{defaultVisible:!1,currentVisible:!1,vizKey:"speedBump"},parkingSpace:{defaultVisible:!1,currentVisible:!1,vizKey:"parkingSpace"},barrierGate:{defaultVisible:!1,currentVisible:!1,vizKey:"barrierGate"},area:{defaultVisible:!1,currentVisible:!1,vizKey:"area"},parkingSpaceId:{defaultVisible:!1,currentVisible:!1,vizKey:"parkingSpaceId"},laneId:{defaultVisible:!1,currentVisible:!1,vizKey:"laneId"}}},m=function(e){var n={};return Object.keys(e).forEach(function(t){var i=e[t];Object.keys(i).forEach(function(e){var r=i[e];n[t]=n[t]||{},n[t][r.vizKey]=r.currentVisible})}),n},V=new v.DT(v.qK.PointCloudLayerMenu),g=function(){return V.get()||p},h=t(1434);function z(e){return z="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},z(e)}function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function S(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,i=Array(n);te.length)&&(n=e.length);for(var t=0,i=Array(n);tR});var r=n(40366),o=n(47960),a=n(60346),l=n(23218);const i=(0,l.n9)(function(e){return{"panel-components":{display:"flex",flexDirection:"column",rowGap:"16px",justifyContent:"space-between",padding:"16px 16px 20px 24px",width:"100%",height:"100%",overflowX:"auto"},"panel-components-list-item":{display:"flex",justifyContent:"space-between",height:"32px",lineHeight:"32px",fontFamily:"PingFangSC-Regular",color:"#A6B5CC",fontSize:"14px",minWidth:"245px"},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});var s=n(88206);const u=(0,l.n9)(function(e){return{"status-ok":{width:"64px",height:"32px",lineHeight:"32px",paddingLeft:"10px",fontFamily:"PingFangSC-Regular",color:"#1FCC4D",fontSize:"14px",background:"rgba(31,204,77,0.10)",borderRadius:"6px",marginRight:"22px"},"status-fatal":{width:"86px",height:"32px",lineHeight:"32px",paddingLeft:"10px",fontFamily:"PingFangSC-Regular",color:"#F75660",fontSize:"14px",background:"rgba(247,86,96,0.10)",borderRadius:"6px"},"status-warn":{width:"86px",height:"32px",lineHeight:"32px",paddingLeft:"10px",fontFamily:"PingFangSC-Regular",color:"#FF8D26",fontSize:"14px",background:"rgba(255,141,38,0.10)",borderRadius:"6px"},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function c(){var e=u().classes;return r.createElement("div",{className:e["status-ok"]},r.createElement(s.Av,{name:"IcSucceed",style:{fontSize:"16px",marginRight:"6px"}}),"OK")}function f(){var e=u().classes;return r.createElement("div",{className:e["status-fatal"]},r.createElement(s.Av,{name:"IcErrorMessage",style:{fontSize:"16px",marginRight:"6px"}}),"FATAL")}function m(){var e=u().classes;return r.createElement("div",{className:e["status-warn"]},r.createElement(s.Av,{name:"IcWarningMessage",style:{fontSize:"16px",marginRight:"6px"}}),"WARN")}function p(){var e=u().classes;return r.createElement("div",{className:e["status-fatal"]},r.createElement(s.Av,{name:"IcErrorMessage",style:{fontSize:"16px",marginRight:"6px"}}),"ERROR")}var d=function(e){return e.UNKNOWN="UNKNOWN",e.OK="OK",e.WARN="WARN",e.FATAL="FATAL",e.ERROR="ERROR",e}({});function g(e){var t=i().classes,n=(0,r.useMemo)(function(){switch(e.status){case d.OK:return r.createElement(c,null);case d.FATAL:return r.createElement(f,null);case d.WARN:return r.createElement(m,null);case d.ERROR:return r.createElement(p,null);default:return null}},[e.status]);return r.createElement("div",{className:t["panel-components-list-item"]},r.createElement("span",null,e.name),n)}var y=n(46533),v=n(83517),b=n(36140),x=n(27878);function h(e){return h="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},h(e)}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.24"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.038bb72bb66571cb7640.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.038bb72bb66571cb7640.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.038bb72bb66571cb7640.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js b/modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js new file mode 100644 index 00000000000..39021dc5eb0 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.0835bf591445c7c7f06e.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.19"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.0835bf591445c7c7f06e.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js b/modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js new file mode 100644 index 00000000000..6cb73b5350f --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.13d2d6430b2dc0784d15.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.13"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.13d2d6430b2dc0784d15.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js b/modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js new file mode 100644 index 00000000000..fad1d90f758 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.27366325625a5ef2788c.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.22"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.27366325625a5ef2788c.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js b/modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js new file mode 100644 index 00000000000..bc5fee1f22d --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.3616bc0503da8305badc.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.14"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.3616bc0503da8305badc.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js b/modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js new file mode 100644 index 00000000000..d867ae8e7bb --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.4f15a40533b50736afae.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.20"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.4f15a40533b50736afae.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js b/modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js new file mode 100644 index 00000000000..abdbbf777c0 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.77bd4e09d1fa2f61e3e9.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.15"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.77bd4e09d1fa2f61e3e9.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js b/modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js new file mode 100644 index 00000000000..d1e5ca59073 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.7ab6765bea84b8cfa1cc.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.16"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.7ab6765bea84b8cfa1cc.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js b/modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js new file mode 100644 index 00000000000..04562697bd3 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.8f5e7ca5cd9a8c93ac0b.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.25"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.8f5e7ca5cd9a8c93ac0b.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.d22217ad72dabd6fa70f.css b/modules/dreamview_plus/frontend/dist/622.d22217ad72dabd6fa70f.css new file mode 100644 index 00000000000..84f99d8563f --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.d22217ad72dabd6fa70f.css @@ -0,0 +1,1174 @@ +.storybook-component { + display: inline-block; + width: 60px; + height: 25px; + border: 0; + border-radius: 3em; +} +.storybook-component-blue { + color: white; + background-color: #1ea7fd; +} +.storybook-component-red { + color: white; + background-color: rgba(241,36,84,0.33725); +} + +.dreamview-btn { + outline: none; + position: relative; + display: -ms-inline-flexbox; + display: inline-flex; + -ms-flex-align: center; + align-items: center; + -ms-flex-pack: center; + justify-content: center; + white-space: nowrap; + text-align: center; + background-image: none; + background-color: deepskyblue; + color: rgba(0, 0, 0, 0.88); + cursor: pointer; + font-weight: 400; + border: 1px solid transparent; + padding: 4px 15px; + border-radius: 8px; + height: 32px; + -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -ms-touch-action: manipulation; + touch-action: manipulation; + line-height: 1.5; +} +.dreamview-btn-primary { + color: #fff; + background-color: #3288FA; + -webkit-box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1); + box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1); +} +.dreamview-btn-primary:hover { + background-color: #579FF1; +} +.dreamview-btn-primary:active { + background-color: #1252C0; +} +.dreamview-btn-primary.dreamview-btn-dangerous { + background-color: #ff4d4f; +} +.dreamview-btn-large { + font-size: 16px; + height: 40px; + padding: 6px 15px; + border-radius: 8px; +} +.dreamview-btn-small { + font-size: 14px; + height: 24px; + padding: 0px 7px; + border-radius: 4px; +} +.dreamview-btn-default { + color: #fff; + background-color: #282B36; + border: 1px solid #7c8899; + -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02); + box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02); +} +.dreamview-btn-default:hover { + color: #297DEC; + border-color: #519aff; + border: 1px solid #297dec; +} +.dreamview-btn-default:active { + color: #1252C0; + border: 1px solid #1252c0; +} +.dreamview-btn-default.dreamview-btn-dangerous { + color: #ff4d4f; + border-color: #ff4d4f; +} +.dreamview-btn-dashed { + background-color: #ffffff; + border-color: #d9d9d9; + -webkit-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02); + box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02); + border-style: dashed; +} +.dreamview-btn-dashed:hover { + color: #519aff; + border-color: #519aff; +} +.dreamview-btn-dashed.dreamview-btn-dangerous { + color: #ff4d4f; + border-color: #ff4d4f; +} +.dreamview-btn-circle { + padding-left: 0; + padding-right: 0; + border-radius: 50%; +} +.dreamview-btn-round { + border-radius: 40px; + padding-left: 20px; + padding-right: 20px; +} +.dreamview-btn-disabled { + cursor: not-allowed; + border: none; + color: #515761; + background: #383D47; + -webkit-box-shadow: none; + box-shadow: none; +} +.dreamview-btn-disabled:hover { + background: #383D47; +} +.dreamview-btn-link { + background-color: transparent; + color: #1677ff; + text-decoration: none; + vertical-align: middle; +} +.dreamview-btn-link:hover { + color: #519aff; +} +.dreamview-btn-link.dreamview-btn-dangerous { + color: #ff4d4f; +} +.dreamview-btn-text { + background-color: transparent; + border: 1px solid transparent; +} +.dreamview-btn-text:hover { + background-color: #d9d9d9; +} +.dreamview-btn-text.dreamview-btn-dangerous { + color: #ff4d4f; +} +.dreamview-btn-text.dreamview-btn-dangerous:hover { + background-color: #f8dddd; +} + +.dreamview-switch { + -webkit-box-sizing: border-box; + box-sizing: border-box; + margin: 0; + padding: 0; + color: rgba(0, 0, 0, 0.88); + font-size: 14px; + line-height: 16px; + list-style: none; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; + position: relative; + display: inline-block; + min-width: 30px; + height: 16px; + vertical-align: middle; + background: #3F454D; + border: 0; + border-radius: 4px; + cursor: pointer; + -webkit-transition: all 0.2s; + transition: all 0.2s; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.dreamview-switch.dreamview-switch.dreamview-switch-checked { + background: #3288FA; +} +.dreamview-switch.dreamview-switch.dreamview-switch-checked .dreamview-switch-inner { + padding-left: 9px; + padding-right: 24px; +} +.dreamview-switch.dreamview-switch.dreamview-switch-checked .dreamview-switch-inner .dreamview-switch-inner-checked { + margin-left: 0; + margin-right: 0; +} +.dreamview-switch.dreamview-switch.dreamview-switch-checked .dreamview-switch-inner .dreamview-switch-inner-unchecked { + margin-left: calc(100% - 22px + 48px); + margin-right: calc(-100% + 22px - 48px); +} +.dreamview-switch.dreamview-switch.dreamview-switch-checked .dreamview-switch-handle { + left: calc(100% - 14px); +} +.dreamview-switch.dreamview-switch.dreamview-switch-checked .dreamview-switch-handle::before { + background-color: #fff; +} +.dreamview-switch .dreamview-switch-handle { + position: absolute; + top: 2px; + left: 2px; + width: 12px; + height: 12px; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +.dreamview-switch .dreamview-switch-handle::before { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background-color: #BDC3CD; + border-radius: 3px; + -webkit-box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2); + box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2); + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; + content: ""; +} +.dreamview-switch .dreamview-switch-inner { + display: block; + overflow: hidden; + border-radius: 100px; + height: 100%; + padding-left: 24px; + padding-right: 9px; + -webkit-transition: padding-left 0.2s ease-in-out, padding-right 0.2s ease-in-out; + transition: padding-left 0.2s ease-in-out, padding-right 0.2s ease-in-out; +} +.dreamview-switch .dreamview-switch-inner .dreamview-switch-inner-checked { + display: block; + color: #fff; + font-size: 12px; + -webkit-transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out; + transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out; + pointer-events: none; + margin-left: calc(-100% + 22px - 48px); + margin-right: calc(100% - 22px + 48px); +} +.dreamview-switch .dreamview-switch-inner .dreamview-switch-inner-unchecked { + display: block; + color: #fff; + font-size: 12px; + -webkit-transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out; + transition: margin-left 0.2s ease-in-out, margin-right 0.2s ease-in-out; + pointer-events: none; + margin-top: -16px; + margin-left: 0; + margin-right: 0; +} +.dreamview-switch.dreamview-switch-disabled, +.dreamview-switch.dreamview-switch-loading { + cursor: not-allowed; + opacity: 0.65; +} +.dreamview-switch.dreamview-switch-disabled .dreamview-switch-handle::before, +.dreamview-switch.dreamview-switch-loading .dreamview-switch-handle::before { + display: none; +} +.dreamview-switch .dreamview-switch-loading-icon { + color: #BDC3CD; + font-size: 12px; +} + +.dreamview-list-item-item { + position: relative; + color: #A6B5CC; + border-radius: 6px; + padding: 9px 14px 9px 36px; +} +.dreamview-list-item-item:hover:not(.dreamview-list-item-active) { + cursor: pointer; + background-color: rgba(115, 193, 250, 0.08); +} +.dreamview-list-item-item:hover:not(.dreamview-list-item-active) .icon-use { + display: inline-block; +} +.dreamview-list-item-item .icon-use { + position: absolute !important; +} +.dreamview-list-item-item .icon-use { + display: none; + color: #fff; + right: 14px; +} +.dreamview-list-item-item.dreamview-list-item-active { + color: #fff; + background-color: #1971E6; +} +.dreamview-list-item-item.dreamview-list-item-active .icon-use { + display: inline-block; +} + +.dreamview-collapse .dreamview-collapse-item .dreamview-collapse-header { + color: #A6B5CC; + font-family: PingFangSC-Regular; + border-bottom: 1px solid #A6B5CC; +} +.dreamview-collapse .dreamview-collapse-item .dreamview-collapse-content { + color: #A6B5CC; + font-family: PingFangSC-Regular; +} +.dreamview-collapse > .dreamview-collapse-item:last-child > .dreamview-collapse-header { + border-radius: 0; +} + +.storybook-component { + width: 60px; + height: 25px; + border: 0; + border-radius: 3em; +} +.storybook-component-blue { + color: white; + background-color: #1ea7fd; +} +.storybook-component-red { + color: white; + background-color: rgba(241,36,84,0.33725); +} + +.dreamview-check-box-checked .dreamview-check-box-inner { + background-color: #3288FA; + border-color: #3288FA; +} +.dreamview-check-box-wrapper { + font-family: 'PingFangSC-Regular'; + font-size: 14px; + color: #A6B5CC; +} +.dreamview-check-box-wrapper:not(.dreamview-check-box-wrapper-disabled):hover .dreamview-check-box-checked:not(.dreamview-check-box-disabled) .dreamview-check-box-inner { + background-color: #3288FA; + border-color: transparent; +} +.dreamview-check-box .dreamview-check-box-inner { + border-radius: 2px; + background-color: transparent; + border: 1px solid #a6b5cc; +} +.dreamview-check-box.dreamview-check-box-checked .dreamview-check-box-inner { + background-color: #3288FA; + border: 1px solid #3288FA; +} +.dreamview-check-box-wrapper-disabled .dreamview-check-box-inner { + background-color: rgba(238, 238, 238, 0.4); +} + +.dreamview-input-number { + width: 96px; + height: 32px; + color: #FFFFFF; + background: #343C4D; + -webkit-box-shadow: none; + box-shadow: none; + border-color: transparent; +} +.dreamview-input-number .dreamview-input-number-input { + color: #FFFFFF; + caret-color: #3288fa; +} +.dreamview-input-number .dreamview-input-number-input:disabled { + color: #515761; + background-color: #383D47; +} +.dreamview-input-number .dreamview-input-number-focused { + border: 1px solid #3288fa; +} +.dreamview-input-number .dreamview-input-number-handler-wrap { + width: 30px; + background: #343C4D; +} +.dreamview-input-number .dreamview-input-number-handler-wrap .dreamview-input-number-handler:hover { + background: rgba(15, 16, 20, 0.2); +} +.dreamview-input-number .dreamview-input-number-handler-wrap .dreamview-input-number-handler-up { + border-left: 1px solid #A6B5CC; +} +.dreamview-input-number .dreamview-input-number-handler-wrap .dreamview-input-number-handler-up .dreamview-input-number-handler-up-inner { + color: #D9D9D9; +} +.dreamview-input-number .dreamview-input-number-handler-wrap .dreamview-input-number-handler-down { + border-top: 1px solid #A6B5CC; + border-left: 1px solid #989A9C; +} +.dreamview-input-number .dreamview-input-number-handler-wrap .dreamview-input-number-handler-down .dreamview-input-number-handler-down-inner { + color: #D9D9D9; +} + +.dreamview-steps { + height: 80px; + border-radius: 10px; + background: #343C4D; + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + -ms-flex-pack: center; + justify-content: center; +} +.dreamview-steps .dreamview-steps-item { + -ms-flex: none; + flex: none; +} +.dreamview-steps .dreamview-steps-item-container { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; +} +.dreamview-steps .dreamview-steps-item-container .dreamview-steps-item-icon { + height: 40px !important; +} +.dreamview-steps .dreamview-steps-item-container .dreamview-steps-item-icon { + margin-right: 12px; +} +.dreamview-steps .dreamview-steps-item-container .dreamview-steps-item-content { + display: -ms-flexbox; + display: flex; +} +.dreamview-steps .dreamview-steps-item-container .dreamview-steps-item-content::after { + content: '···'; + font-size: 20px; + scale: 2; + display: block; + color: #464C59; + padding: 0px 24px; +} +.dreamview-steps .dreamview-steps-item-finish .dreamview-steps-item-content::after { + color: #3288FA; +} +.dreamview-steps .dreamview-steps-item-active .dreamview-steps-item-title, +.dreamview-steps .dreamview-steps-item-finish .dreamview-steps-item-title { + color: #FFFFFF !important; +} +.dreamview-steps .dreamview-steps-item-active .dreamview-steps-item-title, +.dreamview-steps .dreamview-steps-item-finish .dreamview-steps-item-title { + font-family: PingFangSC-Semibold; + font-size: 20px; + font-weight: 600; +} +.dreamview-steps .dreamview-steps-item-active .dreamview-steps-item-title::after, +.dreamview-steps .dreamview-steps-item-finish .dreamview-steps-item-title::after { + height: 0px; +} +.dreamview-steps .dreamview-steps-item-wait .dreamview-steps-item-title { + color: #5A6270 !important; +} +.dreamview-steps .dreamview-steps-item-wait .dreamview-steps-item-title { + font-family: PingFangSC-Semibold; + font-size: 20px; + font-weight: 600; +} +.dreamview-steps > div:nth-last-child(1) .dreamview-steps-item-content::after { + display: none; +} + +.dreamview-tag { + height: 32px; + line-height: 32px; + padding: 0px 12px; + margin-right: 0px; + color: #FFFFFF; + border: none; + font-family: PingFangSC-Regular; + font-size: 14px; + font-weight: 400; + background: rgba(80, 88, 102, 0.8); + border-radius: 6px; +} + +.dreamview-message { + z-index: 1050; +} +.dreamview-message-notice .dreamview-message-notice-content { + padding: 8px 16px 8px 16px !important; +} +.dreamview-message-notice .dreamview-message-notice-content { + font-family: PingFangSC-Regular; + font-size: 14px; + font-weight: 400; + border-radius: 6px; +} +.dreamview-message-notice .dreamview-message-notice-content .dreamview-message-custom-content > span:nth-of-type(1) { + position: relative; + top: 2px; + margin-right: 8px; +} +.dreamview-message-notice-loading .dreamview-message-notice-content { + background: rgba(50, 136, 250, 0.25) !important; +} +.dreamview-message-notice-loading .dreamview-message-notice-content { + color: #3288FA; + border: 1px solid #3288fa; +} +.dreamview-message-notice-success .dreamview-message-notice-content { + background: rgba(31, 204, 77, 0.25) !important; +} +.dreamview-message-notice-success .dreamview-message-notice-content { + color: #1FCC4D; + border: 1px solid #1fcc4d; +} +.dreamview-message-notice-warning .dreamview-message-notice-content { + background: rgba(255, 141, 38, 0.25) !important; +} +.dreamview-message-notice-warning .dreamview-message-notice-content { + color: #FF8D26; + border: 1px solid #ff8d26; +} +.dreamview-message-notice-error .dreamview-message-notice-content { + background: rgba(255, 77, 88, 0.25) !important; +} +.dreamview-message-notice-error .dreamview-message-notice-content { + color: #FF4D58; + border: 1px solid #f75660; +} +@-webkit-keyframes message-loading-icon-rotate { + from { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes message-loading-icon-rotate { + from { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + to { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.message-loading-icon { + width: 16px; + height: 16px; + display: inline-block; + -webkit-animation: message-loading-icon-rotate 1.5s linear infinite; + animation: message-loading-icon-rotate 1.5s linear infinite; +} + +.dreamview-tree { + background-color: transparent; + height: 100%; +} +.dreamview-tree .dreamview-tree-list .dreamview-tree-treenode.dreamview-tree-treenode-selected { + background-color: #3288FA; +} +.dreamview-tree .dreamview-tree-list .dreamview-tree-treenode .dreamview-tree-switcher { + display: none; +} +.dreamview-tree .dreamview-tree-list .dreamview-tree-treenode .dreamview-tree-node-content-wrapper { + height: 22px; + line-height: 22px; + min-height: 22px; + cursor: pointer; +} +.dreamview-tree .dreamview-tree-list .dreamview-tree-treenode .dreamview-tree-node-content-wrapper:hover { + background-color: transparent; +} +.dreamview-tree .dreamview-tree-list .dreamview-tree-treenode .dreamview-tree-node-content-wrapper .dreamview-tree-title { + font-family: PingFangSC-Medium; + font-size: 14px; + color: #A6B5CC; + line-height: 22px; + height: 22px; +} +.dreamview-tree .dreamview-tree-list .dreamview-tree-treenode .dreamview-tree-node-content-wrapper.dreamview-tree-node-selected { + background-color: #3288FA; +} + +.dreamview-panel-root { + height: 100%; +} + +.dreamview-modal-panel-help .dreamview-modal-header { + margin-bottom: 0; +} + +.dreamview-panel-sub-item { + font-family: 'PingFangSC-Regular'; + font-size: 14px; + padding: 20px 0 20px 0; +} + +.dreamview-select.channel-select.dreamview-select-single .dreamview-select-selector { + height: 28px !important; +} +.dreamview-select.channel-select.dreamview-select-single .dreamview-select-selector .dreamview-select-selection-item { + line-height: 28px; +} +.dreamview-select.channel-select.dreamview-select-single .dreamview-select-selection-placeholder { + line-height: 28px; +} +.dreamview-select.channel-select.dreamview-select-single:not(.dreamview-select-customize-input) .dreamview-select-selector .dreamview-select-selection-search-input { + height: 28px; +} + +/** + * @license + * Copyright 2019 Kevin Verdieck, originally developed at Palantir Technologies, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +.mosaic { + height: 100%; + width: 100%; +} +.mosaic, +.mosaic > * { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} +.mosaic .mosaic-zero-state { + position: absolute; + top: 6px; + right: 6px; + bottom: 6px; + left: 6px; + width: auto; + height: auto; + z-index: 1; +} +.mosaic-root { + position: absolute; + top: 3px; + right: 3px; + bottom: 3px; + left: 3px; +} +.mosaic-split { + position: absolute; + z-index: 1; + -ms-touch-action: none; + touch-action: none; +} +.mosaic-split:hover { + background: black; +} +.mosaic-split .mosaic-split-line { + position: absolute; +} +.mosaic-split.-row { + margin-left: -3px; + width: 6px; + cursor: ew-resize; +} +.mosaic-split.-row .mosaic-split-line { + top: 0; + bottom: 0; + left: 3px; + right: 3px; +} +.mosaic-split.-column { + margin-top: -3px; + height: 6px; + cursor: ns-resize; +} +.mosaic-split.-column .mosaic-split-line { + top: 3px; + bottom: 3px; + left: 0; + right: 0; +} +.mosaic-tile { + position: absolute; + margin: 3px; +} +.mosaic-tile > * { + height: 100%; + width: 100%; +} +.mosaic-drop-target { + position: relative; +} +.mosaic-drop-target.drop-target-hover .drop-target-container { + display: block; +} +.mosaic-drop-target.mosaic > .drop-target-container .drop-target.left { + right: calc(100% - 10px ); +} +.mosaic-drop-target.mosaic > .drop-target-container .drop-target.right { + left: calc(100% - 10px ); +} +.mosaic-drop-target.mosaic > .drop-target-container .drop-target.bottom { + top: calc(100% - 10px ); +} +.mosaic-drop-target.mosaic > .drop-target-container .drop-target.top { + bottom: calc(100% - 10px ); +} +.mosaic-drop-target .drop-target-container { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: none; +} +.mosaic-drop-target .drop-target-container.-dragging { + display: block; +} +.mosaic-drop-target .drop-target-container .drop-target { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: rgba(0, 0, 0, 0.2); + border: 2px solid black; + opacity: 0; + z-index: 5; +} +.mosaic-drop-target .drop-target-container .drop-target.left { + right: calc(100% - 30% ); +} +.mosaic-drop-target .drop-target-container .drop-target.right { + left: calc(100% - 30% ); +} +.mosaic-drop-target .drop-target-container .drop-target.bottom { + top: calc(100% - 30% ); +} +.mosaic-drop-target .drop-target-container .drop-target.top { + bottom: calc(100% - 30% ); +} +.mosaic-drop-target .drop-target-container .drop-target.drop-target-hover { + opacity: 1; +} +.mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.left { + right: calc(100% - 50% ); +} +.mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.right { + left: calc(100% - 50% ); +} +.mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.bottom { + top: calc(100% - 50% ); +} +.mosaic-drop-target .drop-target-container .drop-target.drop-target-hover.top { + bottom: calc(100% - 50% ); +} +.mosaic-window, +.mosaic-preview { + position: relative; + display: -ms-flexbox; + display: flex; + -ms-flex-direction: column; + flex-direction: column; + overflow: hidden; + -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2); + box-shadow: 0 0 1px rgba(0, 0, 0, 0.2); +} +.mosaic-window .mosaic-window-toolbar, +.mosaic-preview .mosaic-window-toolbar { + z-index: 4; + display: -ms-flexbox; + display: flex; + -ms-flex-pack: justify; + justify-content: space-between; + -ms-flex-align: center; + align-items: center; + -ms-flex-negative: 0; + flex-shrink: 0; + height: 30px; + background: white; + -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); +} +.mosaic-window .mosaic-window-toolbar.draggable, +.mosaic-preview .mosaic-window-toolbar.draggable { + cursor: move; +} +.mosaic-window .mosaic-window-title, +.mosaic-preview .mosaic-window-title { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + height: 100%; + padding-left: 15px; + -ms-flex: 1 1; + flex: 1 1; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + min-height: 18px; +} +.mosaic-window .mosaic-window-controls, +.mosaic-preview .mosaic-window-controls { + display: -ms-flexbox; + display: flex; + height: 100%; +} +.mosaic-window .mosaic-window-controls .separator, +.mosaic-preview .mosaic-window-controls .separator { + height: 20px; + border-left: 1px solid black; + margin: 5px 4px; +} +.mosaic-window .mosaic-window-body, +.mosaic-preview .mosaic-window-body { + position: relative; + -ms-flex: 1 1; + flex: 1 1; + height: 0; + background: white; + z-index: 1; + overflow: hidden; +} +.mosaic-window .mosaic-window-additional-actions-bar, +.mosaic-preview .mosaic-window-additional-actions-bar { + position: absolute; + top: 30px; + right: 0; + bottom: auto; + bottom: initial; + left: 0; + height: 0; + overflow: hidden; + background: white; + -ms-flex-pack: end; + justify-content: flex-end; + display: -ms-flexbox; + display: flex; + z-index: 3; +} +.mosaic-window .mosaic-window-additional-actions-bar .bp4-button, +.mosaic-preview .mosaic-window-additional-actions-bar .bp4-button { + margin: 0; +} +.mosaic-window .mosaic-window-additional-actions-bar .bp4-button:after, +.mosaic-preview .mosaic-window-additional-actions-bar .bp4-button:after { + display: none; +} +.mosaic-window .mosaic-window-body-overlay, +.mosaic-preview .mosaic-window-body-overlay { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + opacity: 0; + background: white; + display: none; + z-index: 2; +} +.mosaic-window.additional-controls-open .mosaic-window-additional-actions-bar, +.mosaic-preview.additional-controls-open .mosaic-window-additional-actions-bar { + height: 30px; +} +.mosaic-window.additional-controls-open .mosaic-window-body-overlay, +.mosaic-preview.additional-controls-open .mosaic-window-body-overlay { + display: block; +} +.mosaic-window .mosaic-preview, +.mosaic-preview .mosaic-preview { + height: 100%; + width: 100%; + position: absolute; + z-index: 0; + border: 1px solid black; + max-height: 400px; +} +.mosaic-window .mosaic-preview .mosaic-window-body, +.mosaic-preview .mosaic-preview .mosaic-window-body { + display: -ms-flexbox; + display: flex; + -ms-flex-direction: column; + flex-direction: column; + -ms-flex-align: center; + align-items: center; + -ms-flex-pack: center; + justify-content: center; +} +.mosaic-window .mosaic-preview h4, +.mosaic-preview .mosaic-preview h4 { + margin-bottom: 10px; +} +.mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.close-button:before { + content: 'Close'; +} +.mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.split-button:before { + content: 'Split'; +} +.mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.replace-button:before { + content: 'Replace'; +} +.mosaic:not(.mosaic-blueprint-theme) .mosaic-default-control.expand-button:before { + content: 'Expand'; +} +.mosaic.mosaic-blueprint-theme { + background: #abb3bf; +} +.mosaic.mosaic-blueprint-theme .mosaic-zero-state { + background: #e5e8eb; + border-radius: 2px; + -webkit-box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.15); + box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.15); +} +.mosaic.mosaic-blueprint-theme .mosaic-zero-state .default-zero-state-icon { + font-size: 120px; +} +.mosaic.mosaic-blueprint-theme .mosaic-split:hover { + background: none; +} +.mosaic.mosaic-blueprint-theme .mosaic-split:hover .mosaic-split-line { + -webkit-box-shadow: 0 0 0 1px #4c90f0; + box-shadow: 0 0 0 1px #4c90f0; +} +.mosaic.mosaic-blueprint-theme.mosaic-drop-target .drop-target-container .drop-target, +.mosaic.mosaic-blueprint-theme .mosaic-drop-target .drop-target-container .drop-target { + background: rgba(138, 187, 255, 0.2); + border: 2px solid #4c90f0; + -webkit-transition: opacity 100ms; + transition: opacity 100ms; + border-radius: 2px; +} +.mosaic.mosaic-blueprint-theme .mosaic-window, +.mosaic.mosaic-blueprint-theme .mosaic-preview { + -webkit-box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.15); + box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.15); + border-radius: 2px; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-toolbar, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-toolbar { + -webkit-box-shadow: 0 1px 1px rgba(17, 20, 24, 0.15); + box-shadow: 0 1px 1px rgba(17, 20, 24, 0.15); + border-top-right-radius: 2px; + border-top-left-radius: 2px; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-toolbar.draggable:hover, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-toolbar.draggable:hover { + background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f6f7f9)); + background: linear-gradient(to bottom, #fff, #f6f7f9); +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-toolbar.draggable:hover .mosaic-window-title, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-toolbar.draggable:hover .mosaic-window-title { + color: #111418; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-title, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-title { + font-weight: 600; + color: #404854; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-controls .separator, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-controls .separator { + border-left: 1px solid #dce0e5; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-controls .bp4-button, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-controls .bp4-button, +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-controls .bp4-button:before, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-controls .bp4-button:before { + color: #738091; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .default-preview-icon, +.mosaic.mosaic-blueprint-theme .mosaic-preview .default-preview-icon { + font-size: 72px; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-body, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-body { + border-top-width: 0; + background: #f6f7f9; + border-bottom-right-radius: 2px; + border-bottom-left-radius: 2px; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-additional-actions-bar, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-additional-actions-bar { + -webkit-transition: height 250ms; + transition: height 250ms; + -webkit-box-shadow: 0 1px 1px rgba(17, 20, 24, 0.15); + box-shadow: 0 1px 1px rgba(17, 20, 24, 0.15); +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-additional-actions-bar .bp4-button, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-additional-actions-bar .bp4-button, +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-window-additional-actions-bar .bp4-button:before, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-window-additional-actions-bar .bp4-button:before { + color: #738091; +} +.mosaic.mosaic-blueprint-theme .mosaic-window.additional-controls-open .mosaic-window-toolbar, +.mosaic.mosaic-blueprint-theme .mosaic-preview.additional-controls-open .mosaic-window-toolbar { + -webkit-box-shadow: 0 1px 0 0 0 0 1px rgba(17, 20, 24, 0.15); + box-shadow: 0 1px 0 0 0 0 1px rgba(17, 20, 24, 0.15); +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-preview, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-preview { + border: 1px solid #8f99a8; +} +.mosaic.mosaic-blueprint-theme .mosaic-window .mosaic-preview h4, +.mosaic.mosaic-blueprint-theme .mosaic-preview .mosaic-preview h4 { + color: #404854; +} +.mosaic.mosaic-blueprint-theme.bp4-dark { + background: #252a31; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-zero-state { + background: #383e47; + -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-split:hover .mosaic-split-line { + -webkit-box-shadow: 0 0 0 1px #2d72d2; + box-shadow: 0 0 0 1px #2d72d2; +} +.mosaic.mosaic-blueprint-theme.bp4-dark.mosaic-drop-target .drop-target-container .drop-target, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-drop-target .drop-target-container .drop-target { + background: rgba(33, 93, 176, 0.2); + border-color: #2d72d2; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window-toolbar, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window-additional-actions-bar { + background: #383e47; + -webkit-box-shadow: 0 1px 1px rgba(17, 20, 24, 0.4); + box-shadow: 0 1px 1px rgba(17, 20, 24, 0.4); +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview { + -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-toolbar.draggable:hover, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-toolbar.draggable:hover { + background: -webkit-gradient(linear, left top, left bottom, from(#404854), to(#383e47)); + background: linear-gradient(to bottom, #404854, #383e47); +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-toolbar.draggable:hover .mosaic-window-title, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-toolbar.draggable:hover .mosaic-window-title { + color: #fff; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-title, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-title { + color: #dce0e5; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-controls .separator, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-controls .separator { + border-color: #5f6b7c; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-controls .bp4-button, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-controls .bp4-button, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-controls .bp4-button:before, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-controls .bp4-button:before { + color: #abb3bf; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-body, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-body { + background: #252a31; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-additional-actions-bar .bp4-button, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-additional-actions-bar .bp4-button, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-window-additional-actions-bar .bp4-button:before, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-window-additional-actions-bar .bp4-button:before { + color: #c5cbd3; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window.additional-controls-open .mosaic-window-toolbar, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview.additional-controls-open .mosaic-window-toolbar { + -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); + box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-preview, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-preview { + border-color: #5f6b7c; +} +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-window .mosaic-preview h4, +.mosaic.mosaic-blueprint-theme.bp4-dark .mosaic-preview .mosaic-preview h4 { + color: #edeff2; +} + +.dreamview-full-screen-container { + -webkit-transition: all 0.8s cubic-bezier(0.075, 0.82, 0.165, 1); + transition: all 0.8s cubic-bezier(0.075, 0.82, 0.165, 1); +} + +.panel-container::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + border: 1px solid transparent; + pointer-events: none; + -webkit-transition: border-color 0.3s ease; + transition: border-color 0.3s ease; + z-index: 99; +} +.panel-selected.panel-container::before { + border: 1px solid #3288FA; +} + +.spinner { + -webkit-animation: rotator 1.4s linear infinite; + animation: rotator 1.4s linear infinite; +} + +@-webkit-keyframes rotator { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); + } +} + +@keyframes rotator { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); + } +} + +.path { + stroke-dasharray: 187; + stroke-dashoffset: 0; + -webkit-transform-origin: center; + transform-origin: center; + stroke: #3388fa; + -webkit-animation: dash 1.4s ease-in-out infinite; + animation: dash 1.4s ease-in-out infinite; +} + +@-webkit-keyframes dash { + 0% { + stroke-dashoffset: 187; + } + 50% { + stroke-dashoffset: 46.75; + -webkit-transform: rotate(135deg); + transform: rotate(135deg); + } + 100% { + stroke-dashoffset: 187; + -webkit-transform: rotate(450deg); + transform: rotate(450deg); + } +} + +@keyframes dash { + 0% { + stroke-dashoffset: 187; + } + 50% { + stroke-dashoffset: 46.75; + -webkit-transform: rotate(135deg); + transform: rotate(135deg); + } + 100% { + stroke-dashoffset: 187; + -webkit-transform: rotate(450deg); + transform: rotate(450deg); + } +} + +.ms-track{background:transparent;opacity:0;position:absolute;-webkit-transition:background-color .3s ease-out, border .3s ease-out, opacity .3s ease-out;transition:background-color .3s ease-out, border .3s ease-out, opacity .3s ease-out;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ms-track.ms-track-show{opacity:1}.ms-track.ms-y{border-left:1px solid transparent;height:100%;right:0;top:0;width:16px;width:var(--ms-track-size,16px)}.ms-track.ms-y.ms-active .ms-thumb,.ms-track.ms-y:hover .ms-thumb{width:calc(16px - 2px*2);width:calc(var(--ms-track-size, 16px) - var(--ms-track-gutter, 2px)*2)}.ms-track.ms-y .ms-thumb{right:2px;right:var(--ms-track-gutter,2px);top:0;-webkit-transition:width .3s ease-out;transition:width .3s ease-out;width:6px}.ms-track.ms-y .ms-thumb:hover{width:calc(16px - 2px*2);width:calc(var(--ms-track-size, 16px) - var(--ms-track-gutter, 2px)*2)}.ms-track.ms-y .ms-thumb:after{content:"";height:100%;position:absolute;right:calc(2px*-1);right:calc(var(--ms-track-gutter, 2px)*-1);top:0;width:16px;width:var(--ms-track-size,16px)}.ms-track.ms-x{border-top:1px solid transparent;bottom:0;height:16px;height:var(--ms-track-size,16px);left:0;width:100%}.ms-track.ms-x.ms-active .ms-thumb,.ms-track.ms-x:hover .ms-thumb{height:calc(16px - 2px*2);height:calc(var(--ms-track-size, 16px) - var(--ms-track-gutter, 2px)*2)}.ms-track.ms-x .ms-thumb{bottom:2px;bottom:var(--ms-track-gutter,2px);height:6px;left:0;-webkit-transition:height .3s ease-out;transition:height .3s ease-out}.ms-track.ms-x .ms-thumb:hover{width:calc(16px - 2px*2);width:calc(var(--ms-track-size, 16px) - var(--ms-track-gutter, 2px)*2)}.ms-track.ms-x .ms-thumb:after{bottom:calc(2px*-1);bottom:calc(var(--ms-track-gutter, 2px)*-1);content:"";height:16px;height:var(--ms-track-size,16px);left:0;position:absolute;width:100%}.ms-track.ms-active,.ms-track:hover{background:var(--ms-track-background);border-color:var(--ms-track-border-color);opacity:1}.ms-track.ms-active{z-index:20}.ms-track .ms-thumb{background:var(--ms-thumb-color);border-radius:6px;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ms-container{scrollbar-width:none}.ms-container::-webkit-scrollbar{display:none}.ms-track-box{left:0;position:sticky;top:100%;z-index:20;z-index:var(--ms-z-index,20)}.ms-track-global{position:relative;z-index:20;z-index:var(--ms-z-index,20)}.ms-track-global .ms-track{position:fixed}.ms-theme-light{--ms-track-background:hsla(0,0%,97%,.76);--ms-track-border-color:#dfdfdf;--ms-thumb-color:rgba(0,0,0,.5)}.ms-theme-dark{--ms-track-background:hsla(0,0%,82%,.14);--ms-track-border-color:hsla(0,0%,89%,.32);--ms-thumb-color:hsla(0,0%,100%,.5)} diff --git a/modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js b/modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js new file mode 100644 index 00000000000..2c95c5a3ba4 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.ddab4f36be6edd29874b.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.18"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.ddab4f36be6edd29874b.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js b/modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js new file mode 100644 index 00000000000..bb822fc84e0 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.eba5966361712e02fdc9.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.21"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.eba5966361712e02fdc9.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js b/modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js new file mode 100644 index 00000000000..82da3f9b348 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.eff2a72a7b7b4880ffc4.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.23"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.eff2a72a7b7b4880ffc4.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js b/modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js new file mode 100644 index 00000000000..71d67594812 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js @@ -0,0 +1,2 @@ +/*! For license information please see 622.f21812e2a1f55520a37e.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[622],{47031(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=47031,e.exports=t},26584(e,t,n){"use strict";n.d(t,{A:()=>r});const r=n(88206)._k},27878(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(60556),a=["children"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta,i:()=>c});var r=n(40366),o=["rif"];function a(e){return function(t){var n=t.rif,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rl});const l=(0,n(23218).n9)(function(e){return{"viz-container":{padding:e.tokens.padding.speace0,minWidth:"244px",height:"100%",position:"relative"},"viz-context":{width:"100%",height:"100%"},"routing-editing-context":{width:"100%",height:"100%"},"web-gl":{width:"100%",height:"100%"},"layer-menu-container":{padding:e.tokens.padding.speace0,width:"532px",height:"332px",margin:"-5px -10px",background:e.components.layerMenu.bgColor,borderRadius:"8px"},"layer-menu-header":{lineHeight:"40px",height:"40px",borderBottom:e.components.layerMenu.headBorder,color:e.components.layerMenu.headColor},"layer-menu-header-left":{paddingLeft:"24px",paddingRight:e.tokens.padding.speace2,fontFamily:"PingFangSC-Medium",fontSize:"16px",fontWeight:"500"},"layer-menu-header-right":{float:"right",marginTop:"-46px",marginRight:e.tokens.padding.speace2},"layer-menu-header-reset-btn":{lineHeight:"28px",marginTop:"10px",borderRadius:"6px",border:e.components.layerMenu.headResetBtnBorderColor,padding:"0px 10px",cursor:"pointer",color:e.components.layerMenu.headResetBtnColor},"layer-menu-content":{display:"flex",flexDirection:"row",padding:"12px 0 12px 16px"},"layer-menu-content-left":{borderRight:e.components.layerMenu.headBorder,width:"126px",color:e.components.layerMenu.tabColor},"layer-menu-content-left-li":{paddingLeft:"16px",width:"110px",height:"32px",lineHeight:"32px",cursor:"pointer",marginBottom:"6px",color:e.components.layerMenu.tabColor,fontWeight:"400",fontFamily:" PingFangSC-Regular"},"li-active":{color:"#FFFFFF",background:e.components.layerMenu.activeTabBgColor,borderRadius:"6px"},"layer-menu-content-right":{paddingLeft:e.tokens.padding.speace2,flex:1,overflowY:"auto",height:"268px"},"layer-menu-content-right-li":{"&:nth-of-type(2n + 1)":{minWidth:"150px"},"&:nth-of-type(2n + 2)":{width:"216px"},height:"34px",lineHeight:"34px",display:"inline-block"},"layer-menu-horizontal-line":{height:"1px",background:e.components.layerMenu.headBorderColor,margin:"8px 12px 8px 0"},"layer-menu-content-right-switch":{paddingLeft:e.tokens.padding.speace,paddingRight:e.tokens.padding.speace},"layer-menu-content-right-label":{color:e.components.layerMenu.labelColor,fontWeight:"400",verticalAlign:"middle",fontFamily:" PingFangSC-Regular"},"viz-rend-fps-item":{position:"absolute",width:192,height:32,color:"#A6B5CC",top:34,left:274},"viz-rend-fps-item-hide":{position:"absolute",width:"32px",height:"32px",top:18,left:224},"viz-btn-container":{position:"absolute",bottom:"44px",right:e.tokens.padding.speace2,display:"flex",flexDirection:"column"},"viz-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.boxShadow,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.tokens.colors.fontColor4},"viz-help-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:e.components.panelBase.functionRectBgColor,borderRadius:"6px",marginTop:"12px",fontSize:"16px",color:e.components.panelBase.functionRectColor},"viz-btn-item-flex":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:e.tokens.padding.speace,height:"auto"},"view-menu-item":{height:"32px",lineHeight:"32px",color:e.components.layerMenu.color,cursor:"pointer",paddingLeft:"24px",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"},"view-menu-scale-btn-container":{marginTop:"12px",width:"32px",height:"56px",background:e.components.layerMenu.menuItemBg,borderRadius:"6px",fontSize:"20px",fontWeight:"600",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",boxShadow:e.components.layerMenu.menuItemBoxShadow},"view-menu-btn-item-only":a({cursor:"pointer",width:"32px",height:"32px",background:e.components.layerMenu.menuItemBg,boxShadow:e.components.layerMenu.menuItemBoxShadow,borderRadius:"6px",marginTop:"10px"},e.util.flexCenterCenter),"view-menu-btn-item":{cursor:"pointer"},"view-menu-container":{width:"158px",margin:"-5px -10px",borderRadius:"8px",background:e.components.layerMenu.bgColor},"view-menu-header":{height:"40px",color:e.components.layerMenu.headColor,fontSize:"16px",fontWeight:"500",fontFamily:"PingFangSC-Medium",lineHeight:"40px",paddingLeft:"24px",marginBottom:"8px",borderBottom:e.components.layerMenu.headBorder},"view-menu-active":{background:e.components.layerMenu.activeTabBgColor,color:"white"},"panel-desc-item":{height:"76px",lineHeight:"76px",display:"flex",justifyContent:"center","&:not(:last-of-type)":{borderBottom:"1px solid ".concat(e.tokens.divider.color.light)}},"panel-desc-item-left":{width:"170px"},"panel-desc-item-right":{width:"584px",height:"22px",color:e.tokens.colors.fontColor5,fontWeight:400,fontFamily:"PingFangSC-Regular"},"view-btn-container":{position:"absolute",bottom:"44px",right:"24px"},"view-ope-container":{position:"absolute",top:"25px",right:"24px"}}})},1434(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(88206),o=n(40366),a=n(47960);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tc});var r=n(40366),o=n(88206);const a=(0,n(23218).n9)(function(e){return{"dreamview-nodata-placeholder":{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:e.tokens.colors.fontColor4,backgroundColor:e.tokens.colors.background3},error:{color:e.tokens.colors.error2},info:{color:e.tokens.colors.brand3},warn:{color:e.tokens.colors.warn2}}});function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tN});var r=n(40366),o=n(32159),a=n(18443),i=n(9117),l=n(15076),c=n(47960),u=n(72133),s=n(84436),f=n(1465),m=n(7629),p=n(82765),d=n(18560),v=n(43659);var g=n(32579),h=n(82454);function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(l.current);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}l.current=[]}},[o]),r.createElement("div",{ref:a,style:{display:"none"}})}var w=n(36140),E=n(45260),A=n(73059),O=n.n(A),S=["className"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function R(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nh,iK:()=>S,GB:()=>s});var r=n(40366),o=n(23218);function a(e){return a="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},a(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;tO});var r=n(40366),o=n(18443),a=n(9957),i=n(88206),l=n(20154),c=n(47960);function u(e){return u="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},u(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&x(e)}},O?r.createElement("div",{onClick:_,className:f["mosaic-custom-toolbar-exit-fullscreen"]},r.createElement(i.Av,{name:"IcEitFullScreen"})," Exit FullScreen"):r.createElement("div",{className:f["mosaic-custom-toolbar-operate"]},r.createElement("div",{onClick:function(){R(!0)},className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i.Av,{name:"IcHelpNormal"})),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(i._k,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-popover"],content:G},r.createElement(i.Av,{name:"IcSettingNormal"}))),r.createElement("div",{className:f["mosaic-custom-toolbar-operate-item"]},r.createElement(l.A,{trigger:"hover",rootClassName:f["mosaic-custom-toolbar-icmove"],content:u("pressTips")},r.createElement(i.Av,{name:"IcMoveHover"})))),r.createElement("div",{className:f["mosaic-custom-toolbar-title"]},null===(t=e.panel)||void 0===t?void 0:t.title," ",e.children),r.createElement(i.aF,{width:816,title:null===(n=e.panel)||void 0===n?void 0:n.title,footer:null,open:I,onOk:function(){R(!1)},onCancel:function(){R(!1)},className:"dreamview-modal-panel-help"},r.createElement("div",{style:{width:"100%",height:"100%"}},S,U)))}const O=r.memo(A)},83517(e,t,n){"use strict";n.d(t,{G:()=>o,d:()=>a});var r=n(40366),o=(0,r.createContext)(void 0);function a(){return(0,r.useContext)(o)}},90958(e,t,n){"use strict";n.d(t,{H:()=>r});var r=function(e){return e.Console="console",e.ModuleDelay="moduleDelay",e.VehicleViz="vehicleViz",e.CameraView="cameraView",e.PointCloud="pointCloud",e.DashBoard="dashBoard",e.PncMonitor="pncMonitor",e.Components="components",e.MapCollect="MapCollect",e.Charts="charts",e.TerminalWin="terminalWin",e}({})},93345(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(40366),o=n(36242),a=n(23804);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ns,Ln:()=>u,VY:()=>i,i1:()=>f,l8:()=>c});var r,o,a,i=(o=r=("https:"===window.location.protocol?"wss://":"ws://")+window.location.host+window.location.pathname,(a=r.split("")).length>0&&"/"===a[a.length-1]&&(a.pop(),o=a.join("")),o),l=window.location.origin,c=function(){return"http://"==="".concat(window.location.protocol,"//")?"ws://":"wss://"},u=function(){return window.location.hostname},s={baseURL:i,baseHttpURL:l,mainUrl:"".concat(i,"/websocket"),pluginUrl:"".concat(i,"/plugin")},f=2e3},59707(e,t,n){"use strict";n.d(t,{AY:()=>te.AY,$O:()=>Pt,IK:()=>te.IK,$K:()=>Mt});var r=n(74633),o=n(21285),a=n(75015),i=n(13920),l=n(65091),c=n(47079),u=n(32579),s=n(23110),f=n(8235),m=n(62961),p=n(32159),d=n(15076),v=n(52274),g=n.n(v);function h(e){return h="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},h(e)}function b(e,t){for(var n=0;nthis.length)throw new Error("Index out of range");if(t!==this.length){var n=new A(e);if(0===t)n.next=this.head,this.head&&(this.head.prev=n),this.head=n;else{for(var r=this.head,o=0;o0&&setInterval(function(){return n.cleanup()},o)},t=[{key:"enqueue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.config.debounceTime,o=void 0===r?0:r;if(o>0){var a=this.getMessageId(e),i=Date.now();if(a in this.messageTimestamps&&i-this.messageTimestamps[a]this.maxLen))for(this.logger.warn("Message queue length exceeds ".concat(this.maxLen,"."));this.queue.size>this.maxLen;)this.queue.removeLast();return this}},{key:"dequeue",value:function(){var e,t=this.queue.removeFirst();return t&&(null===(e=this.onDequeue)||void 0===e||e.call(this,t)),t}},{key:"insert",value:function(e,t){return this.queue.insert(e,t),this}},{key:"getMessageId",value:function(e){try{return JSON.stringify(e)}catch(t){return e.toString()}}},{key:"cleanup",value:function(){var e=this,t=this.config.debounceTime,n=void 0===t?0:t,r=Date.now();Object.keys(this.messageTimestamps).forEach(function(t){r-e.messageTimestamps[t]>=n&&delete e.messageTimestamps[t]})}},{key:"setEventListener",value:function(e,t){return"enqueue"===e?this.onEnqueue=t:"dequeue"===e&&(this.onDequeue=t),this}},{key:"isEmpty",value:function(){return this.queue.isEmpty}},{key:"size",get:function(){return this.queue.size}}],t&&P(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function R(e){return R="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},R(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&this.getAvailableWorker();){var e=this.queue.dequeue(),t=this.getAvailableWorker();t&&this.sendTaskToWorker(t,e,e.option)}}},{key:"handleWorkerMessage",value:function(e,t){e.setIdle(!0);var n=t.data,r=n.id,o=n.success,a=n.result,i=n.error,l=this.taskResolvers.get(r);if(l){try{o?l.resolve({success:o,id:r,result:a}):l.reject(new Error(i))}catch(e){this.logger.error(e),l.reject(new Error(e))}this.taskResolvers.delete(r)}}},{key:"adjustWorkerSizeWithPID",value:function(){var e=this.pidController.setpoint-this.queue.size;this.pidController.integral+=e,this.pidController.integral=Math.max(Math.min(this.pidController.integral,1e3),-1e3);var t=e-this.pidController.previousError,n=this.pidController.Kp*e+this.pidController.Ki*this.pidController.integral+this.pidController.Kd*t,r=Math.round(this.pool.length+n),o=Math.min(Math.max(r,this.minWorkerSize),this.maxWorkerSize);this.workerSize=o,this.pidController.previousError=e}},{key:"adjustWorkerSize",value:function(t){var n=this;null!==this.resizeTimeoutId&&(clearTimeout(this.resizeTimeoutId),this.resizeTimeoutId=null);for(var r=function(){var t=n.pool.find(function(e){return e.isIdle});if(!t)return 1;t.terminate(),n.pool=n.pool.filter(function(e){return e!==t}),e.totalWorkerCount-=1};this.pool.length>t&&!r(););for(;this.pool.length6e4){var r=e.queue.dequeue();r?e.sendTaskToWorker(n,r,r.option):n.setIdle(!1)}})}},{key:"terminateIdleWorkers",value:function(){var t=Date.now();this.pool=this.pool.filter(function(n){var r=n.isIdle,o=n.lastUsedTime;return!(r&&t-o>1e4&&(n.terminate(),e.totalWorkerCount-=1,1))})}},{key:"terminateAllWorkers",value:function(){this.pool.forEach(function(e){return e.terminate()}),this.pool=[],e.totalWorkerCount=0}},{key:"visualize",value:function(){var t=this.pool.filter(function(e){return!e.isIdle}).length,n=this.queue.size,r=e.getTotalWorkerCount();this.logger.info("[WorkerPoolManager Status]"),this.logger.info("[Active Workers]/[Current Workers]/[All Workers]:"),this.logger.info(" ".concat(t," / ").concat(this.pool.length," / ").concat(r)),this.logger.info("Queued Tasks: ".concat(n))}},{key:"getWorkerCount",value:function(){return this.pool.length}},{key:"getTaskCount",value:function(){return this.queue.size}}],r=[{key:"getTotalWorkerCount",value:function(){return e.totalWorkerCount}}],n&&B(t.prototype,n),r&&B(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function L(e){return L="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},L(e)}function F(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Le.info("Connecting to ".concat(this.url)),this.connectionStatus$.next(te.AY.CONNECTING),this.socket=(0,Me.K)({url:this.url,openObserver:{next:function(){Le.debug("Connected to ".concat(e.url)),e.connectionStatus$.next(te.AY.CONNECTED)}},closeObserver:{next:function(){Le.debug("Disconnected from ".concat(e.url)),e.connectionStatus$.next(te.AY.DISCONNECTED)}}}),this.socket.pipe((0,Ie.l)(function(e){return e.pipe((0,Re.c)(n),(0,De.s)(t))})).subscribe(function(t){e.receivedMessagesSubject.next(t)},function(e){Le.error(e)}),this.connectionStatus$}},{key:"isConnected",value:function(){return Le.debug("Checking connection status for ".concat(this.url,", status: ").concat(this.connectionStatus$.getValue())),this.connectionStatus$.getValue()>=te.AY.CONNECTED}},{key:"disconnect",value:function(){this.socket?(Le.debug("Disconnecting from ".concat(this.url)),this.socket.complete()):Le.warn("Attempted to disconnect, but socket is not initialized.")}},{key:"sendMessage",value:function(e){this.messageQueue.enqueue(e),this.isConnected()?(Le.debug("Queueing message to ".concat(this.url,", message: ").concat(JSON.stringify(e,null,0))),this.consumeMessageQueue()):Le.debug("Attempted to send message, but socket is not initialized or not connected.")}},{key:"consumeMessageQueue",value:function(){var e=this;requestIdleCallback(function(){for(;!e.messageQueue.isEmpty()&&e.isConnected();){var t=e.messageQueue.dequeue();t&&(Le.debug("Sending message from queue to ".concat(e.url,", message: ").concat(JSON.stringify(t,null,0))),e.socket.next(t))}},{timeout:2e3})}},{key:"receivedMessages$",get:function(){return this.receivedMessagesSubject.asObservable()}}],t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function qe(e){return qe="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},qe(e)}function Ge(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3){var a=n/(r/1e3);e.fpsSubject.next(a),n=0,r=0}t=o})}}])&&ft(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),{highLoadThreshold:30,sampleInterval:1e3});function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;if(!this.has(e)){var o=new Fe(e);return this.set(e,o),o.connect(n,r)}return null===(t=this.get(e))||void 0===t?void 0:t.connectionStatus$}},{key:"set",value:function(e,t){this.webSockets.set(e,t)}},{key:"get",value:function(e){return this.has(e)||this.connect(e),this.webSockets.get(e)}},{key:"getConnection",value:function(e){return this.webSockets.get(e)}},{key:"has",value:function(e){return this.webSockets.has(e)}},{key:"delete",value:function(e){var t=this.getConnection(e);t&&(t.disconnect(),this.webSockets.delete(e))}},{key:"clear",value:function(){this.webSockets.clear()}},{key:"size",get:function(){return this.webSockets.size}}],t&>(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function wt(e){return wt="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},wt(e)}function Et(e,t){if(e){if("string"==typeof e)return At(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:He.$W.mainUrl,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.$W.pluginUrl;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ct(this,"connectionManager",new yt),Ct(this,"childWsManagerQueue",new I({name:"WebSocketManager"})),Ct(this,"protoLoader",new tt.o),Ct(this,"registeInitEvent",new Map),Ct(this,"activeWorkers",{}),Ct(this,"throttleDuration",new r.t(100)),Ct(this,"frameRate",10),Ct(this,"pluginManager",new Ue),Ct(this,"metadata",[]),Ct(this,"metadataSubject",new r.t([])),Ct(this,"initProtoFiles",["modules/common_msgs/basic_msgs/error_code.proto","modules/common_msgs/basic_msgs/header.proto","modules/common_msgs/dreamview_msgs/hmi_status.proto","modules/common_msgs/basic_msgs/geometry.proto","modules/common_msgs/map_msgs/map_id.proto"]),Ct(this,"dataSubjects",new J.A),Ct(this,"responseResolvers",{}),Ct(this,"workerPoolManager",new z({name:"decoderWorkerPool",workerFactory:new ye(function(){return new Pe})})),this.registerPlugin([new $e]),this.mainConnection=new Fe(n),this.pluginConnection=new Fe(o),this.mainConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.MAIN)}),this.pluginConnection.receivedMessages$.subscribe(function(e){return t.handleMessage(e,te.IK.PLUGIN)}),this.connectionManager.set(te.IK.MAIN,this.mainConnection),this.connectionManager.set(te.IK.PLUGIN,this.pluginConnection),this.loadInitProtoFiles(),this.metadataSubject.pipe((0,f.B)(200)).subscribe(function(){t.consumeChildWsManagerQueue();var e={level0:[],level1:[],level2:[]},n=[];t.metadata.forEach(function(t){t.differentForChannels?t.protoPath?(e.level1.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath))):t.channels.forEach(function(r){e.level2.push({dataName:t.dataName,protoPath:r.protoPath,channelName:r.channelName}),n.push("".concat(t.protoPath))}):(e.level0.push({dataName:t.dataName,protoPath:t.protoPath}),n.push("".concat(t.protoPath)))}),n.forEach(function(e){t.protoLoader.loadProto(e).catch(function(e){jt.error(e)})}),t.metadata.length>0&&(t.triggerEvent(Pt.ChannelTotal,e.level0.length+e.level1.length+e.level2.length),e.level0.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level1.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}),e.level2.forEach(function(e){t.protoLoader.loadAndCacheProto(e.protoPath,{dataName:e.dataName,channelName:e.channelName}).catch(function(e){jt.error(e)}).finally(function(){t.triggerEvent(Pt.ChannelChange)})}))}),dt.logicController$.subscribe(function(e){jt.debug("当前处于".concat(e?"高负载":"正常","状态")),e&&t.frameRate>5?t.frameRate-=1:!e&&t.frameRate<10&&(t.frameRate+=1),_e.PW.logData("wsFrameRate",t.frameRate,{useStatistics:{useMax:!0,useMin:!0}}),t.throttleDuration.next(Math.floor(1e3/t.frameRate))})},t=[{key:"initBySocketName",value:function(e){var t=this;this.connectionManager.has(e)||this.connectionManager.get(e).receivedMessages$.subscribe(function(n){return t.handleMessage(n,e)})}},{key:"loadInitProtoFiles",value:function(){var e=this;this.initProtoFiles.forEach(function(t){e.protoLoader.loadProto(t).catch(function(e){jt.error(e)}).finally(function(){e.triggerEvent(Pt.BaseProtoChange)})})}},{key:"registerPlugin",value:function(e){var t=this;e.forEach(function(e){return t.pluginManager.registerPlugin(e)})}},{key:"triggerEvent",value:function(e,t){var n;null===(n=this.registeInitEvent.get(e))||void 0===n||n.forEach(function(e){e(t)})}},{key:"addEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n||(this.registeInitEvent.set(e,[]),n=this.registeInitEvent.get(e)),n.push(t)}},{key:"removeEventListener",value:function(e,t){var n=this.registeInitEvent.get(e);n?this.registeInitEvent.set(e,n.filter(function(e){return e!==t})):this.registeInitEvent.set(e,[])}},{key:"handleMessage",value:function(e,t){var n,r;if(jt.debug("Received message from ".concat(t,", message: ").concat(JSON.stringify(e,null,0))),null!=e&&e.action)if(void 0!==(null==e||null===(n=e.data)||void 0===n||null===(n=n.info)||void 0===n?void 0:n.code))if(0!==(null==e||null===(r=e.data)||void 0===r||null===(r=r.info)||void 0===r?void 0:r.code)&&jt.error("Received error message from ".concat(t,", message: ").concat(JSON.stringify(e.data.info,null,0))),e.action===te.gE.METADATA_MESSAGE_TYPE){var o=Object.values(e.data.info.data.dataHandlerInfo);this.setMetadata(o),this.mainConnection.connectionStatus$.next(te.AY.METADATA)}else if(e.action===te.gE.METADATA_JOIN_TYPE){var a=Object.values(e.data.info.data.dataHandlerInfo),i=this.updateMetadataChannels(this.metadata,"join",a);this.setMetadata(i)}else if(e.action===te.gE.METADATA_LEAVE_TYPE){var l=Object.values(e.data.info.data.dataHandlerInfo),c=this.updateMetadataChannels(this.metadata,"leave",l);this.setMetadata(c)}else e.action===te.gE.RESPONSE_MESSAGE_TYPE&&e&&this.responseResolvers[e.data.requestId]&&(0===e.data.info.code?this.responseResolvers[e.data.requestId].resolver(e):this.responseResolvers[e.data.requestId].reject(e),this.responseResolvers[e.data.requestId].shouldDelete&&delete this.responseResolvers[e.data.requestId]);else jt.error("Received message from ".concat(t,", but code is undefined"));else jt.error("Received message from ".concat(t,", but action is undefined"))}},{key:"updateMetadataChannels",value:function(e,t,n){var r=new Map(e.map(function(e){return[e.dataName,e]}));return n.forEach(function(e){var n=e.dataName,o=e.channels,a=r.get(n);a?a=St({},a):(a={dataName:n,channels:[]},r.set(n,a)),"join"===t?o.forEach(function(e){a.channels.some(function(t){return t.channelName===e.channelName})||(a.channels=[].concat(function(e){return function(e){if(Array.isArray(e))return At(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Et(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a.channels),[e]))}):"leave"===t&&(a.channels=a.channels.filter(function(e){return!o.some(function(t){return e.channelName===t.channelName})})),r.set(n,a)}),Array.from(r.values())}},{key:"connectMain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.mainConnection.connect(e,t)}},{key:"isMainConnected",value:function(){return this.mainConnection.isConnected()}},{key:"connectPlugin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return this.pluginConnection.connect(e,t)}},{key:"isPluginConnected",value:function(){return this.pluginConnection.isConnected()}},{key:"disconnect",value:function(){var e=this;jt.debug("Disconnected from all sockets"),this.mainConnection.disconnect(),this.pluginConnection.disconnect(),Object.entries(this.activeWorkers).forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Et(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0];n[1].disconnect(),(0,o.H)(e.dataSubjects.get({name:r})).subscribe(function(e){e&&e.complete()})})}},{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){(0,d.isEqual)(this.metadata,e)?jt.debug("Metadata is not changed"):(this.metadata=e,this.metadataSubject.next(e),et.l.getStoreManager("DreamviewPlus").then(function(t){return t.setItem("metadata",e)},function(e){return jt.error(e)}).then(function(){return jt.debug("metadata is saved to indexedDB")}))}},{key:"metadata$",get:function(){return this.metadataSubject.asObservable().pipe((0,f.B)(100))}},{key:"connectChildSocket",value:function(e){var t=this,n=this.metadata.find(function(t){return t.dataName===e});n?(this.activeWorkers[e]||(this.activeWorkers[e]=new ve(e,"".concat(He.$W.baseURL,"/").concat(n.websocketInfo.websocketName)).connect()),this.activeWorkers[e].socketMessage$.pipe((0,m.n)(function(){return(0,a.O)(t.throttleDuration.value)})).subscribe(function(n){if((0,te.K)(n,"SOCKET_MESSAGE")){var r=n.payload.data;t.workerPoolManager.dispatchTask({type:"SOCKET_STREAM_MESSAGE",payload:n.payload,transferList:[r.buffer]},{callback:function(){_e.kn.mark("dataDeserializeStart-".concat(e))}}).then(function(n){var r;n.success&&(_e.kn.mark("dataDeserializeEnd-".concat(e)),_e.kn.measure("dataDeserialize-".concat(e),"dataDeserializeStart-".concat(e),"dataDeserializeEnd-".concat(e)),null===(r=t.dataSubjects.getByExactKey({name:e}))||void 0===r||r.next(n.result))},function(e){jt.error(e)})}})):jt.error("Cannot find metadata for ".concat(e))}},{key:"sendSubscriptionMessage",value:function(e,t,n,r){var o;if(this.mainConnection.isConnected()){var a=this.metadata.find(function(e){return e.dataName===t});if(a){var i=St(St(St({websocketName:a.websocketInfo.websocketName},(0,d.isNil)(n)?{}:{channelName:n}),(0,d.isNil)(null==r?void 0:r.param)?{}:{param:r.param}),{},{dataFrequencyMs:null!==(o=null==r?void 0:r.dataFrequencyMs)&&void 0!==o?o:100});this.mainConnection.sendMessage({action:e,type:e,data:{name:e,source:"dreamview",info:i,sourceType:"websocktSubscribe",targetType:"module",requestId:e}})}else jt.error("Cannot find metadata for ".concat(t))}else jt.error("Main socket is not connected")}},{key:"initChildSocket",value:function(e){void 0===this.activeWorkers[e]&&this.childWsManagerQueue.enqueue(e),this.consumeChildWsManagerQueue()}},{key:"consumeChildWsManagerQueue",value:function(){var e=this;requestIdleCallback(function(){for(var t=e.childWsManagerQueue.size,n=function(){var n=e.childWsManagerQueue.dequeue();e.metadata.find(function(e){return e.dataName===n})&&void 0===e.activeWorkers[n]?(jt.debug("Connecting to ".concat(n)),e.connectChildSocket(n)):e.childWsManagerQueue.enqueue(n),t-=1};!e.childWsManagerQueue.isEmpty()&&t>0;)n()},{timeout:He.i1})}},{key:"subscribeToData",value:function(e,t){var n=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&(this.dataSubjects.set({name:e},new Z(e)),this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,null,t));var r=this.dataSubjects.getByExactKey({name:e}),o=this.pluginManager.getPluginsForDataName(e),a=this.pluginManager.getPluginsForInflowDataName(e);return r.pipe((0,i.M)(function(e){a.forEach(function(t){var r;return null===(r=t.handleInflow)||void 0===r?void 0:r.call(t,null==e?void 0:e.data,n.dataSubjects,n)})}),(0,l.T)(function(e){return o.reduce(function(e,t){return t.handleSubscribeData(e)},null==e?void 0:e.data)}),(0,c.j)(function(){var o=r.count;r.completed||0===o&&setTimeout(function(){0===r.count&&(n.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,null,t),n.dataSubjects.delete({name:e},function(e){return e.complete()}))},300)}))}},{key:"subscribeToDataWithChannel",value:function(e,t,n){var r=this;this.initChildSocket(e),void 0===this.dataSubjects.getByExactKey({name:e})&&this.dataSubjects.set({name:e},new Z(e)),void 0===this.dataSubjects.getByExactKey({name:e,channel:t})&&(this.sendSubscriptionMessage(te.Wb.SUBSCRIBE_MESSAGE_TYPE,e,t,n),this.dataSubjects.set({name:e,channel:t},new Z(e,t)));var o=this.dataSubjects.getByExactKey({name:e}),a=this.dataSubjects.getByExactKey({name:e,channel:t});return o.pipe((0,u.p)(function(e){return(null==e?void 0:e.channelName)===t})).subscribe(function(e){return a.next(e.data)}),a.pipe((0,c.j)(function(){var o=a.count;a.completed||(0===o&&setTimeout(function(){0===a.count&&(r.sendSubscriptionMessage(te.Wb.UNSUBSCRIBE_MESSAGE_TYPE,e,t,n),r.dataSubjects.deleteByExactKey({name:e,channel:t},function(e){return e.complete()}))},300),r.dataSubjects.countIf(function(t){return t.name===e}))}))}},{key:"subscribeToDataWithChannelFuzzy",value:function(e){var t=this.dataSubjects.get({name:e});return null==t?void 0:t.filter(function(e){return void 0!==e.channel})[0]}},{key:"request",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type);return"noResponse"===r?(this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),Promise.resolve(null)):new Promise(function(o,a){t.responseResolvers[r]={resolver:o,reject:a,shouldDelete:!0},t.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n)})}},{key:"requestStream",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(e.type),o=new s.B;return this.responseResolvers[r]={resolver:function(e){o.next(e)},reject:function(e){o.error(e)},shouldDelete:!1},this.sendMessage(St(St({},e),{},{data:St(St({},e.data),{},{requestId:r}),action:te.Wb.REQUEST_MESSAGE_TYPE}),n),o.asObservable().pipe((0,c.j)(function(){delete t.responseResolvers[r]}))}},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.IK.MAIN;this.connectionManager.get(t).sendMessage(St({},e))}}],t&&xt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),Mt=new _t},4611(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(15076),o=n(81812);function a(e){return a="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},a(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0});return(0,r.isNil)(t)?null:{type:t,id:e[t][0]}}},{key:"getOffsetPosition",value:function(e){if("polygon"in e){var t=e.polygon.point;return(0,r.isArray)(t)?t[0]:t}if("centralCurve"in e){var n=e.centralCurve.segment;if((0,r.isArray)(n))return n[0].startPosition}if("stopLine"in e){var o,a=e.stopLine;if((0,r.isArray)(a))return null===(o=a[0])||void 0===o||null===(o=o.segment[0])||void 0===o?void 0:o.startPosition}var i;return"position"in e&&(0,r.isArray)(e.position)?null===(i=e.position[0])||void 0===i||null===(i=i.segment[0])||void 0===i?void 0:i.startPosition:{x:0,y:0,z:0}}}],(t=[{key:"updateMapElement",value:function(e){var t=this;(0,r.isEqual)(this.mapHeader,e.header)||(this.mapHeader=e.header,this.clear()),Object.keys(e).filter(function(e){return"header"!==e}).forEach(function(n){var o=e[n];(0,r.isArray)(o)&&o.length>0&&o.forEach(function(e){t.mapElementCache.set({type:n,id:e.id.id},e)})})}},{key:"getMapElement",value:function(e){var t=this,n={},o={},a=Date.now();return Object.keys(e).forEach(function(i){var l=e[i];(0,r.isArray)(l)&&l.length>0&&(n[i]=l.map(function(e){var n=t.mapElementCache.getByExactKey({type:i,id:e});if(!(0,r.isNil)(n))return n;var l=t.mapRequestCache.getByExactKey({type:i,id:e});return((0,r.isNil)(l)||a-l>=3e3)&&(o[i]||(o[i]=[]),o[i].push(e),t.mapRequestCache.set({type:i,id:e},a)),null}).filter(function(e){return null!==e}))}),[n,o]}},{key:"getAllMapElements",value:function(){var e={header:this.mapHeader};return this.mapElementCache.getAllEntries().forEach(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),o=n[0],a=n[1];if(!(0,r.isNil)(a)){var l=o.type;e[l]||(e[l]=[]),e[l].push(a)}}),e}},{key:"getMapElementById",value:function(e){return this.mapElementCache.getByExactKey(e)}},{key:"clear",value:function(){this.mapElementCache.clear(),this.mapRequestCache.clear()}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},26020(e,t,n){"use strict";n.d(t,{AY:()=>r,IK:()=>o,K:()=>l,Wb:()=>a,gE:()=>i});var r=function(e){return e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED",e[e.METADATA=3]="METADATA",e}({}),o=function(e){return e.MAIN="websocket",e.PLUGIN="plugin",e.SIMULATION="/plugins/sim/sim_websocket",e}({}),a=function(e){return e.REQUEST_MESSAGE_TYPE="request",e.SUBSCRIBE_MESSAGE_TYPE="subscribe",e.UNSUBSCRIBE_MESSAGE_TYPE="unsubscribe",e}({}),i=function(e){return e.METADATA_MESSAGE_TYPE="metadata",e.METADATA_JOIN_TYPE="join",e.METADATA_LEAVE_TYPE="leave",e.RESPONSE_MESSAGE_TYPE="response",e.STREAM_MESSAGE_TYPE="stream",e}({});function l(e,t){return e.type===t}},46533(e,t,n){"use strict";n.d(t,{At:()=>l,D5:()=>s,KK:()=>u,aY:()=>o,aw:()=>c,gm:()=>i,lW:()=>r,lt:()=>a,n3:()=>f});var r=function(e){return e.StartRecordPackets="StartDataRecorder",e.GetInitData="GetInitData",e.StopRecordPackets="StopDataRecorder",e.SaveRecordPackets="SaveDataRecorder",e.DeleteRecordPackets="DeleteDataRecorder",e.ResetRecordProgress="ResetRecordProgress",e.StartPlayRecorder="StartPlayRecorder",e.StartPlayRtkRecorder="StartPlayRtkRecorder",e.PlayRecorderAction="PlayRecorderAction",e.HMIAction="HMIAction",e.SimHMIAction="SimHMIAction",e.Dump="Dump",e.Reset="Reset",e.GetDataHandlerConf="GetDataHandlerConf",e.TriggerPncMonitor="TriggerPncMonitor",e.GetDefaultRoutings="GetDefaultRoutings",e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.CheckMapCollectStatus="CheckMapCollectStatus",e.StartRecordMapData="StartRecordMapData",e.StopRecordMapData="StopRecordMapData",e.StartMapCreator="StartMapCreator",e.BreakMapCreator="BreakMapCreator",e.ExportMapFile="ExportMapFile",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e.DeleteDefaultRouting="DeleteDefaultRouting",e.SaveDefaultRouting="SaveDefaultRouting",e.GetStartPoint="GetStartPoint",e.SetStartPoint="SetStartPoint",e.CheckCycleRouting="CheckCycleRouting",e.CheckRoutingPoint="CheckRoutingPoint",e.SendRoutingRequest="SendRoutingRequest",e.ResetSimControl="Reset",e.SendDefaultCycleRoutingRequest="SendDefaultCycleRoutingRequest",e.SendParkingRoutingRequest="SendParkingRoutingRequest",e.GetMapElementIds="GetMapElementIds",e.GetMapElementsByIds="GetMapElementsByIds",e.AddObjectStore="AddOrModifyObjectToDB",e.DeleteObjectStore="DeleteObjectToDB",e.PutObjectStore="AddOrModifyObjectToDB",e.GetObjectStore="GetObjectFromDB",e.GetTuplesObjectStore="GetTuplesWithTypeFromDB",e.StartTerminal="StartTerminal",e.RequestRoutePath="RequestRoutePath",e.SendIndoorLocalizationInitPointRequest="SendIndoorLocalizationInitPointRequest",e.GetMapStartPoint="GetMapStartPoint",e.CheckIndoorLocalizationInitPointStatus="CheckIndoorLocalizationInitPointStatus",e}({}),o=function(e){return e.SendScenarioSimulationRequest="SendScenarioSimulationRequest",e.StopScenarioSimulation="StopScenarioSimulation",e.ResetScenarioSimulation="ResetScenarioSimulation",e}({}),a=function(e){return e.SIM_WORLD="simworld",e.CAMERA="camera",e.HMI_STATUS="hmistatus",e.SIM_HMI_STATUS="simhmistatus",e.POINT_CLOUD="pointcloud",e.Map="map",e.Obstacle="obstacle",e.Cyber="cyber",e}({}),i=function(e){return e.DownloadRecord="DownloadRecord",e.CheckCertStatus="CheckCertStatus",e.GetRecordsList="GetRecordsList",e.GetAccountInfo="GetAccountInfo",e.GetVehicleInfo="GetVehicleInfo",e.ResetVehicleConfig="ResetVehicleConfig",e.RefreshVehicleConfig="RefreshVehicleConfig",e.UploadVehicleConfig="UploadVehicleConfig",e.GetV2xInfo="GetV2xInfo",e.RefreshV2xConf="RefreshV2xConf",e.UploadV2xConf="UploadV2xConf",e.ResetV2xConfig="ResetV2xConf",e.GetDynamicModelList="GetDynamicModelList",e.DownloadDynamicModel="DownloadDynamicModel",e.GetScenarioSetList="GetScenarioSetList",e.DownloadScenarioSet="DownloadScenarioSet",e.DownloadHDMap="DownloadMap",e.GetMapList="GetMapList",e}({}),l=function(e){return e.StopRecord="STOP_RECORD",e.StartAutoDrive="ENTER_AUTO_MODE",e.LOAD_DYNAMIC_MODELS="LOAD_DYNAMIC_MODELS",e.ChangeScenariosSet="CHANGE_SCENARIO_SET",e.ChangeScenarios="CHANGE_SCENARIO",e.ChangeMode="CHANGE_MODE",e.ChangeMap="CHANGE_MAP",e.ChangeVehicle="CHANGE_VEHICLE",e.ChangeDynamic="CHANGE_DYNAMIC_MODEL",e.LoadRecords="LOAD_RECORDS",e.LoadRecord="LOAD_RECORD",e.LoadScenarios="LOAD_SCENARIOS",e.LoadRTKRecords="LOAD_RTK_RECORDS",e.LoadMaps="LOAD_MAPS",e.ChangeRecord="CHANGE_RECORD",e.ChangeRTKRecord="CHANGE_RTK_RECORD",e.DeleteRecord="DELETE_RECORD",e.DeleteHDMap="DELETE_MAP",e.DeleteVehicle="DELETE_VEHICLE_CONF",e.DeleteV2X="DELETE_V2X_CONF",e.DeleteScenarios="DELETE_SCENARIO_SET",e.DeleteDynamic="DELETE_DYNAMIC_MODEL",e.ChangeOperation="CHANGE_OPERATION",e.StartModule="START_MODULE",e.StopModule="STOP_MODULE",e.SetupMode="SETUP_MODE",e.ResetMode="RESET_MODE",e.DISENGAGE="DISENGAGE",e}({}),c=function(e){return e.LOAD_SCENARIOS="LOAD_SCENARIOS",e.CHANGE_SCENARIO="CHANGE_SCENARIO",e}({}),u=function(e){return e.DOWNLOADED="downloaded",e.Fail="FAIL",e.NOTDOWNLOAD="notDownloaded",e.DOWNLOADING="downloading",e.TOBEUPDATE="toBeUpdated",e}({}),s=function(e){return e.DEFAULT_ROUTING="defaultRouting",e}({}),f=function(e){return e.CHART="chart",e}({})},84436(e,t,n){"use strict";n.d(t,{A:()=>u});var r=n(40366),o=n(56310),a=n(91363),i=n(1465);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr,u:()=>o});var r=function(e){return e.MainConnectedEvent="main:connection",e.PluginConnectedEvent="plugin:connection",e}({}),o=function(e){return e.SimControlRoute="simcontrol:route",e}({})},1465(e,t,n){"use strict";n.d(t,{VB:()=>c.V,ZT:()=>m,_k:()=>p,ml:()=>d,u1:()=>c.u});var r=n(40366),o=n(18390),a=n(82454),i=n(32579),l=n(35665),c=n(91363);function u(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&d(t,r)},removeSubscribe:r,publishOnce:function(e){n(e),setTimeout(function(){r()},0)},clearSubscribe:function(){t.observed&&t.unsubscribe()}})}},[]),g=function(e){return m.current.get(e)},h=(0,r.useMemo)(function(){return(0,a.R)(document,"keydown")},[]),b=(0,r.useMemo)(function(){return(0,a.R)(document,"keyup")},[]),y=(0,r.useMemo)(function(){return(0,a.R)(document,"click")},[]),w=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseover")},[]),E=(0,r.useMemo)(function(){return(0,a.R)(document,"mouseout")},[]),A=(0,r.useMemo)(function(){return(0,a.R)(document,"scroll")},[]);function O(e){return function(t,n,r){var o=new Array(n.length).fill(!1);n.forEach(function(n,a){e.pipe((0,i.p)(function(e){if(e instanceof KeyboardEvent){var t,o=n.toLowerCase(),a=null===(t=e.key)||void 0===t?void 0:t.toLowerCase();return r?e[r]&&a===o:a===o}return!1})).subscribe(function(e){o[a]=!0,o.reduce(function(e,t){return e&&t},!0)?(t(e),o=o.fill(!1)):e.preventDefault()})})}}var S=(0,r.useCallback)(function(e,t,n){var r;null===(r=h.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[h]),x=(0,r.useCallback)(function(e,t,n){var r;null===(r=b.pipe((0,i.p)(function(e,r){var o,a=t.toLowerCase(),i=null===(o=e.key)||void 0===o?void 0:o.toLocaleLowerCase();return n?e[n]&&i===a:i===a})))||void 0===r||r.subscribe(e)},[b]),C=function(e){return function(t){e.subscribe(t)}},k=function(e,t,n){for(var r=(0,a.R)(e,t),o=arguments.length,i=new Array(o>3?o-3:0),l=3;l0){var c,s=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(i);try{for(s.s();!(c=s.n()).done;){var f=c.value;r.pipe(f).subscribe(n)}}catch(e){s.e(e)}finally{s.f()}}else r.subscribe(n);return r},j=(0,r.useMemo)(function(){return{EE:s,keydown:{observableEvent:h,setFilterKey:S,setMultiPressedKey:O(h)},keyup:{observableEvent:b,setFilterKey:x,setMultiPressedKey:O(b)},click:{observableEvent:y,getSubscribedEvent:C(y)},mouseover:{observableEvent:w,getSubscribedEvent:C(w)},mouseout:{observableEvent:E,getSubscribedEvent:C(E)},scrollEvent:{observableEvent:A,getSubscribedEvent:C(A)},customizeSubs:{reigisterCustomizeEvent:v,getCustomizeEvent:g},dragEvent:{registerDragEvent:k}}},[s,y,h,b,E,w,v,A,S,x]);return r.createElement(f.Provider,{value:j},c)}function p(){return(0,r.useContext)(f)}function d(){return(0,r.useContext)(f).EE}},36242(e,t,n){"use strict";n.d(t,{CA:()=>p,fh:()=>f,UI:()=>m,D8:()=>d,T_:()=>re,m7:()=>ce,lp:()=>s,Vs:()=>u,jE:()=>te,ev:()=>G,BG:()=>U,iz:()=>z,dJ:()=>L,zH:()=>q,Xu:()=>F,_W:()=>W,Xg:()=>Y,yZ:()=>k,Us:()=>V,l1:()=>X,yB:()=>N,Vz:()=>oe,qZ:()=>ie});var r=n(40366),o=n(24169),a=n.n(o),i=n(29946),l=n(47127),c=function(e){return e.TOGGLE_MODULE="TOGGLE_MODULE",e.TOGGLE_CODRIVER_FLAG="TOGGLE_CODRIVER_FLAG",e.TOGGLE_MUTE_FLAG="TOGGLE_MUTE_FLAG",e.UPDATE_STATUS="UPDATE_STATUS",e.UPDATE="UPDATE",e.UPDATE_VEHICLE_PARAM="UPDATE_VEHICLE_PARAM",e.UPDATE_DATA_COLLECTION_PROGRESS="UPDATE_DATA_COLLECTION_PROGRESS",e.UPDATE_PREPROCESS_PROGRESS="UPDATE_PREPROCESS_PROGRESS",e.CHANGE_TRANSLATION="CHANGE_TRANSLATION",e.CHANGE_INTRINSIC="CHANGE_INTRINSIC",e.CHANGE_MODE="CHANGE_MODE",e.CHANGE_OPERATE="CHANGE_OPERATE",e.CHANGE_RECORDER="CHANGE_RECORDER",e.CHANGE_RTK_RECORDER="CHANGE_RTK_RECORDER",e.CHANGE_DYNAMIC="CHANGE_DYNAMIC",e.CHANGE_SCENARIOS="CHANGE_SCENARIOS",e.CHANGE_MAP="CHANGE_MAP",e.CHANGE_VEHICLE="CHANGE_VEHICLE",e}({}),u=function(e){return e.OK="OK",e.UNKNOWN="UNKNOWN",e}({}),s=function(e){return e.NOT_LOAD="NOT_LOAD",e.LOADING="LOADING",e.LOADED="LOADED",e}({}),f=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),m=function(e){return e.FATAL="FATAL",e.OK="OK",e}({}),p=function(e){return e.NONE="none",e.DEFAULT="Default",e.PERCEPTION="Perception",e.PNC="Pnc",e.VEHICLE_TEST="Vehicle Test",e.MAP_COLLECT="Map Collect",e.MAP_EDITOR="Map Editor",e.CAMERA_CALIBRATION="Camera Calibration",e.LiDAR_CALIBRATION="Lidar Calibration",e.DYNAMICS_CALIBRATION="Dynamics Calibration",e.CANBUS_DEBUG="Canbus Debug",e}({}),d=function(e){return e.None="None",e.PLAY_RECORDER="Record",e.SIM_CONTROL="Sim_Control",e.SCENARIO="Scenario_Sim",e.AUTO_DRIVE="Auto_Drive",e.WAYPOINT_FOLLOW="Waypoint_Follow",e}({}),v=n(79164),g=n.n(v),h=n(79464),b=n.n(h),y=n(25116),w=n.n(y),E=n(61998),A=n.n(E);function O(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||x(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,D(f,"constructor",u),D(u,"constructor",c),c.displayName="GeneratorFunction",D(u,o,"GeneratorFunction"),D(f),D(f,o,"Generator"),D(f,r,function(){return this}),D(f,"toString",function(){return"[object Generator]"}),(R=function(){return{w:a,m}})()}function D(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}D=function(e,t,n,r){function a(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},D(e,t,n,r)}function H(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function B(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){H(a,r,o,i,l,"next",e)}function l(e){H(a,r,o,i,l,"throw",e)}i(void 0)})}}var T=_.A.getInstance("HmiActions"),N=function(e){return{type:c.UPDATE_STATUS,payload:e}},z=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeMode",{state:a,payload:t}),r.n=1,e.changeSetupMode(t);case 1:n&&n(t);case 2:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},L=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeOperate",{state:o,payload:t}),n.n=1,e.changeOperation(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_OPERATE,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},F=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRecorder",{state:o,payload:t}),n.n=1,e.changeRecord(t);case 1:return n.n=2,e.resetSimWorld();case 2:r({type:c.CHANGE_RECORDER,payload:t});case 3:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},q=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeRTKRecorder",{state:o,payload:t}),n.n=1,e.changeRTKRecord(t);case 1:r({type:c.CHANGE_RTK_RECORDER,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},G=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeDynamic",{state:o,payload:t}),n.n=1,e.changeDynamicModel(t);case 1:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},W=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){var i;return R().w(function(r){for(;;)switch(r.n){case 0:return T.debug("changeScenarios",{state:a,payload:n}),r.n=1,e.changeScenarios(n.scenarioId,n.scenariosSetId);case 1:if(!(i=r.v)){r.n=2;break}return r.n=2,t.changeMap(i.currentScenarioMap).then(function(t){t.isOk||(0,M.iU)({type:"error",content:"Auto-switching map failed",key:"MODE_SETTING_SCENARIO_CHANGE_ERROR"}),e.resetScenario()});case 2:o({type:c.CHANGE_SCENARIOS,payload:n});case 3:return r.a(2)}},r)}));return function(e,t){return r.apply(this,arguments)}}()},U=function(e,t,n){return(0,I.lQ)(),function(){var r=B(R().m(function r(o,a){return R().w(function(r){for(;;)switch(r.p=r.n){case 0:return T.debug("changeMap",{state:a,mapId:t}),r.p=1,(0,M.iU)({type:"loading",content:n("mapLoading"),key:"MODE_SETTING_MAP_CHANGE_LOADING"}),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!0}}),r.n=2,e.changeMap(t);case 2:M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}}),r.n=4;break;case 3:r.p=3,r.v,M.iU.destory("MODE_SETTING_MAP_CHANGE_LOADING"),o({type:c.CHANGE_MAP,payload:{mapSetId:t,mapDisableState:!1}});case 4:return r.a(2)}},r,null,[[1,3]])}));return function(e,t){return r.apply(this,arguments)}}()},Y=function(e,t){return(0,I.lQ)(),function(){var n=B(R().m(function n(r,o){return R().w(function(n){for(;;)switch(n.n){case 0:return T.debug("changeMap",{state:o,payload:t}),n.n=1,e.changeVehicle(t);case 1:r({type:c.CHANGE_VEHICLE,payload:t});case 2:return n.a(2)}},n)}));return function(e,t){return n.apply(this,arguments)}}()},V=function(e){return{type:c.CHANGE_MODE,payload:e}},X=function(e){return{type:c.CHANGE_OPERATE,payload:e}};function K(e){return K="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},K(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nS(t,1)[0]?1:-1}))}else if("modulesLock"===e){var i;m.modulesLock=new Map(Object.entries(null!==(i=p.modulesLock)&&void 0!==i?i:[]).sort(function(e,t){return S(e,1)[0]>S(t,1)[0]?1:-1}))}else b()(t)||b()(n)?m[e]=(n||[]).sort(function(e,t){return e>t?1:-1}):m[e]=p[e]}),g()(m.prevStatus,p);break;case c.TOGGLE_MODULE:s=t.payload,console.log("module",s);break;case c.CHANGE_MODE:!function(e,t){e.currentMode=t}(n,t.payload);break;case c.CHANGE_OPERATE:!function(e,t){e.currentOperation=t}(n,t.payload);break;case c.CHANGE_RECORDER:u=t.payload,console.log("recorderId",u);break;case c.CHANGE_RTK_RECORDER:l=t.payload,console.log("recorderId",l);break;case c.CHANGE_SCENARIOS:i=t.payload,console.log("scenario",i);break;case c.CHANGE_MAP:o=t.payload,console.log("map",o),n.envResourcesHDMapDisable=t.payload.mapDisableState;break;case c.CHANGE_VEHICLE:r=t.payload,console.log("vehicle",r)}var r,o,i,l,u,s,f,m,p,d,v})}}),re=ne.StoreProvider,oe=ne.useStore,ae=(ne.StoreContext,r.createContext(null));function ie(){var e=(0,r.useContext)(ae);if(!e)throw new Error("useStore must be used within a StoreProvider");return e}var le=Object.keys(P).filter(function(e){return!["currentRecordStatus","prevStatus"].includes(e)});function ce(e){var t,n,o,i=e.keys,l=void 0===i?le:i,c=$(oe(),2),u=c[0],s=c[1],f=$((0,r.useState)(l),1)[0],m=$((0,r.useState)(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})}),2),p=m[0],d=m[1],v=(0,r.useRef)(!0),g=f.map(function(e){return u[e]});t=function(){v.current?v.current=!1:d(function(){return f.reduce(function(e,t){return Z(Z({},e),{},J({},t,u[t]))},{})})},n=g,o=(0,r.useRef)(null),(0,r.useEffect)(function(){a()(o.current,n)||t(),o.current=n},n);var h=(0,r.useMemo)(function(){return[p,s]},[p,s]);return r.createElement(ae.Provider,{value:h},e.children)}},26460(e,t,n){"use strict";n.d(t,{$1:()=>l,IS:()=>o,Iq:()=>a,kl:()=>r,mp:()=>i});var r=function(e){return e.UPDATE_MENU="UPDATE_MENU",e.UPDATA_CERT_STATUS="UPDATA_CERT_STATUS",e.UPDATE_ENVIORMENT_MANAGER="UPDATE_ENVIORMENT_MANAGER",e.UPDATE_ADS_MANAGER="UPDATE_ADS_MANAGER",e}({}),o=function(e){return e[e.MODE_SETTING=0]="MODE_SETTING",e[e.ADD_PANEL=1]="ADD_PANEL",e[e.PROFILE_MANAGEER=2]="PROFILE_MANAGEER",e[e.HIDDEN=3]="HIDDEN",e}({}),a=function(e){return e[e.UNKNOW=0]="UNKNOW",e[e.SUCCESS=1]="SUCCESS",e[e.FAIL=2]="FAIL",e}({}),i=function(e){return e.MAP="MAP",e.SCENARIO="SCENARIO",e.RECORD="RECORD",e}({}),l=function(e){return e.VEHICLE="VEHICLE",e.V2X="V2X",e.DYNAMIC="DYNAMIC",e}({})},23804(e,t,n){"use strict";n.d(t,{$1:()=>a.$1,Iq:()=>a.Iq,mp:()=>a.mp,IS:()=>a.IS,G1:()=>u,wj:()=>l,ch:()=>s});var r=n(29946),o=n(47127),a=n(26460),i={activeMenu:a.IS.HIDDEN,certStatus:a.Iq.UNKNOW,activeEnviormentResourceTab:a.mp.RECORD,activeAdsResourceTab:a.$1.VEHICLE},l={isCertSuccess:function(e){return e===a.Iq.SUCCESS},isCertUnknow:function(e){return e===a.Iq.UNKNOW}},c=r.$7.createStoreProvider({initialState:i,reducer:function(e,t){return(0,o.jM)(e,function(e){switch(t.type){case a.kl.UPDATE_MENU:e.activeMenu=t.payload;break;case a.kl.UPDATA_CERT_STATUS:e.certStatus=t.payload;break;case a.kl.UPDATE_ENVIORMENT_MANAGER:e.activeEnviormentResourceTab=t.payload;break;case a.kl.UPDATE_ADS_MANAGER:e.activeAdsResourceTab=t.payload}})}}),u=c.StoreProvider,s=c.useStore},37859(e,t,n){"use strict";n.d(t,{H:()=>ae,c:()=>oe});var r=n(40366),o=n(47960),a=n(88206),i=n(60346),l=function(e){var t=function(e){function t(t){return r.createElement(e,t)}return t.displayName="LazyPanel",t}(e);function n(e){var n=(0,r.useMemo)(function(){return(0,i.A)({PanelComponent:t,panelId:e.panelId})},[]);return r.createElement(n,e)}return r.memo(n)},c=n(9957),u=n(90958),s=n(51075);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var e,t,n=u.get(),r=null===(e=y[0])||void 0===e?void 0:e.value,o=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=b(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(y);try{for(o.s();!(t=o.n()).done;)if(n===t.value.value){r=n;break}}catch(e){o.e(e)}finally{o.f()}m(r),w({name:p.dataName,channel:r,needChannel:!0})}else m(void 0)},[y]),r.createElement(d.A,{value:f,options:y,onChange:function(t,n){m(t),a({name:e.name,channel:t,needChannel:!0}),u.set(t)}})}const E=r.memo(w);var A=n(35314);function O(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("descriptionTitle")),r.createElement(A.G5,null,e("dashBoardDesc")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("dashBoardDescription")))}var S=r.memo(O);function x(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("cameraViewDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,e("cameraViewAbilityDesc")))}var C=r.memo(x);function k(){var e=(0,o.Bd)("panels").t;return r.createElement(r.Fragment,null,r.createElement(A.iK,null,e("panelHelpDesc")),r.createElement(A.G5,null,e("pointCloudDescription")),r.createElement(A.iK,null,e("panelHelpAbilityDesc")),r.createElement(A.GB,null,r.createElement("div",null,e("pointCloudAbilityDescOne")),r.createElement("div",null,e("pointCloudAbilityDescTwo")),r.createElement("div",null,e("pointCloudAbilityDescThree"))))}function j(e){return j="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},j(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(z(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,z(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,z(f,"constructor",u),z(u,"constructor",c),c.displayName="GeneratorFunction",z(u,o,"GeneratorFunction"),z(f),z(f,o,"Generator"),z(f,r,function(){return this}),z(f,"toString",function(){return"[object Generator]"}),(N=function(){return{w:a,m}})()}function z(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}z=function(e,t,n,r){function a(t,n){z(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},z(e,t,n,r)}function L(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function F(e,t){return q.apply(this,arguments)}function q(){var e;return e=N().m(function e(t,r){var o,a;return N().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.I("default");case 1:if(o=window[t]){e.n=2;break}throw new Error("Container not found for scope ".concat(t));case 2:return e.n=3,o.init(n.S.default);case 3:return e.n=4,o.get(r);case 4:return a=e.v,e.a(2,a())}},e)}),q=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){L(a,r,o,i,l,"next",e)}function l(e){L(a,r,o,i,l,"throw",e)}i(void 0)})},q.apply(this,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,u=Object.create(c.prototype);return U(u,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(U(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,U(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,U(f,"constructor",u),U(u,"constructor",c),c.displayName="GeneratorFunction",U(u,o,"GeneratorFunction"),U(f),U(f,o,"Generator"),U(f,r,function(){return this}),U(f,"toString",function(){return"[object Generator]"}),(W=function(){return{w:a,m}})()}function U(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}U=function(e,t,n,r){function a(t,n){U(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},U(e,t,n,r)}function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return X(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ni,RK:()=>o,Ug:()=>l,ji:()=>a,pZ:()=>r});var r="ADD_SELECTED_PANEL_ID",o="DELETE_SELECTED_PANEL_ID",a="ADD_KEY_HANDLER",i="ADD_GLOABLE_KEY_HANDLER",l="REMOVE_KEY_HANDLER"},82765(e,t,n){"use strict";n.d(t,{SI:()=>o,eU:()=>i,v1:()=>l,zH:()=>a});var r=n(74246),o=function(e){return{type:r.pZ,payload:e}},a=function(e){return{type:r.ji,payload:e}},i=function(e){return{type:r.Ug,payload:e}},l=function(e){return{type:r.Kc,payload:e}}},7629(e,t,n){"use strict";n.d(t,{F:()=>f,h:()=>m});var r=n(29946),o=n(47127),a=n(74246);function i(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.globalKeyhandlers.add(o)}}catch(e){r.e(e)}finally{r.f()}}(e,t.payload);break;case a.Ug:!function(e,t){var n=e.keyHandlerMap;if(n.has(t.panelId)){var r=n.get(t.panelId),o=t.keyHandlers.map(function(e){var t;return(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join()}),a=r.filter(function(e){var t,n=(null!==(t=null==e?void 0:e.functionalKey)&&void 0!==t?t:"")+e.keys.join();return!o.includes(n)});n.set(t.panelId,a)}}(e,t.payload)}})}}),f=s.StoreProvider,m=s.useStore},43659(e,t,n){"use strict";n.d(t,{E:()=>u,T:()=>c});var r=n(40366),o=n(35665),a=n(18443);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);no,dY:()=>l,q6:()=>r,t7:()=>i,vv:()=>a});var r="UPDATE",o="ADD_PANEL_FROM_OUTSIDE",a="REFRESH_PANEL",i="RESET_LAYOUT",l="EXPAND_MODE_LAYOUT_RELATION"},42019(e,t,n){"use strict";n.d(t,{LX:()=>i,Yg:()=>a,cz:()=>l,yo:()=>o});var r=n(42427),o=function(e){return{type:r.q6,payload:e}},a=function(e){return{type:r.vv,payload:e}},i=function(e){return{type:r.EI,payload:e}},l=function(e){return{type:r.t7,payload:e}}},51987(e,t,n){"use strict";n.d(t,{JQ:()=>I,Yg:()=>j.Yg,r6:()=>H,rB:()=>D,bj:()=>R});var r=n(29946),o=n(47127),a=n(25073),i=n.n(a),l=n(10613),c=n.n(l),u=n(52274),s=n.n(u),f=n(90958),m=n(11446),p=n(9957),d=n(42427),v=n(36242);function g(e){return g="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},g(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nu,N:()=>c});var r=n(40366),o=n(23218),a=n(11446);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);noe,J9:()=>ae,p_:()=>ue,Y2:()=>ce,Jw:()=>ie,Wc:()=>le,Gf:()=>se});var r=n(40366),o=n(29946),a=n(59707),i=n(1465),l=function(e){return e.UPDATE_METADATA="UPDATE_METADATA",e}({}),c=n(47127),u=n(32159),s=n(35071),f=n(15979),m=n(88224),p=n(88946),d=n(46533);function v(e){return v="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},v(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).useCache,t=void 0!==e&&e;return this.request({data:{info:t?"1":"",name:"GetSubscriberList"}})}},{key:"updateLiscence",value:function(){return this.request({data:{info:"",name:"CheckCertificateStatus"}})}},{key:"getSubscribeAccountInfo",value:function(){return this.request({data:{info:"",name:"GetSubscriberInfo"}})}},{key:"getCloudDeviceList",value:function(){return this.request({data:{info:JSON.stringify({page_number:1,page_size:100}),name:"GetSubscriberDevicesList"}})}},{key:"changeSubscribe",value:function(e){return this.request({data:{info:e,name:"GetSubscriberToken"}})}},{key:"getAccountInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetAccountInfo}})}},{key:"getVehicleInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetVehicleInfo}})}},{key:"resetVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetVehicleConfig}})}},{key:"refreshVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshVehicleConfig}})}},{key:"uploadVehicleConfig",value:function(e){return this.request({data:{info:e,name:d.gm.UploadVehicleConfig}})}},{key:"getV2xInfo",value:function(){return this.request({data:{info:"",name:d.gm.GetV2xInfo}})}},{key:"refreshV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.RefreshV2xConf}})}},{key:"uploadV2xConf",value:function(e){return this.request({data:{info:e,name:d.gm.UploadV2xConf}})}},{key:"resetV2xConfig",value:function(e){return this.request({data:{info:e,name:d.gm.ResetV2xConfig}})}},{key:"getDynamicModelList",value:function(){return this.request({data:{info:"",name:d.gm.GetDynamicModelList}})}},{key:"downloadDynamicModel",value:function(e){return this.requestStream({data:{info:e,name:d.gm.DownloadDynamicModel}})}},{key:"getScenarioSetList",value:function(){return this.request({data:{info:"",name:d.gm.GetScenarioSetList}})}},{key:"downloadScenarioSet",value:function(e,t,n){return this.requestStream({data:{info:JSON.stringify({scenarioSetId:e,is_classic:t}),name:d.gm.DownloadScenarioSet,requestId:n}})}},{key:"downloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"refreshDownloadHDMap",value:function(e,t){return this.requestStream({data:{info:e,name:d.gm.DownloadHDMap,requestId:t}})}},{key:"getHDMapList",value:function(){return this.request({data:{info:"",name:d.gm.GetMapList}})}}],t&&j(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function I(e){return I="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},I(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(F(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,F(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,F(f,"constructor",u),F(u,"constructor",c),c.displayName="GeneratorFunction",F(u,o,"GeneratorFunction"),F(f),F(f,o,"Generator"),F(f,r,function(){return this}),F(f,"toString",function(){return"[object Generator]"}),(L=function(){return{w:a,m}})()}function F(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,n,r){function a(t,n){F(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},F(e,t,n,r)}function q(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){q(a,r,o,i,l,"next",e)}function l(e){q(a,r,o,i,l,"throw",e)}i(void 0)})}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);no}),n(8644),n(41972);var r=n(11446);function o(e){var t=new r.DT(e);return{loadSync:function(){return t.get()},saveSync:function(e){return t.set(e)}}}new r.DT(r.qK.DV)},29946(e,t,n){"use strict";n.d(t,{$7:()=>r});var r={};n.r(r),n.d(r,{createStoreProvider:()=>E});var o=n(74633),a=n(47127),i=n(32159);function l(e){return l="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},l(e)}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var c=r&&r.prototype instanceof l?r:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=l.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,u(p,"constructor",f),u(f,"constructor",s),s.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(c=function(){return{w:a,m:d}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function s(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;ns});var u=function(){return e=function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="fullScreenHooks",r=new Map,(n=c(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r},t=[{key:"addHook",value:function(e,t){this.fullScreenHooks.has(e)||this.fullScreenHooks.set(e,t)}},{key:"getHook",value:function(e){return this.fullScreenHooks.get(e)}},{key:"handleFullScreenBeforeHook",value:(n=o().m(function e(t){var n,r;return o().w(function(e){for(;;)switch(e.n){case 0:if(null!=(n=t())){e.n=1;break}return e.a(2,!0);case 1:if(!(n instanceof Boolean)){e.n=2;break}return e.a(2,n);case 2:if(!(n instanceof Promise)){e.n=4;break}return r=Boolean,e.n=3,n;case 3:return e.a(2,r(e.v));case 4:return e.a(2,Boolean(n))}},e)}),r=function(){var e=this,t=arguments;return new Promise(function(r,o){var a=n.apply(e,t);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})},function(e){return r.apply(this,arguments)})}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r}(),s=new u},81812(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;ng});var l=a(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.children=new Map,this.values=new Set});function c(e){return c="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},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nn.length))return t.values.values().next().value}},{key:"delete",value:function(e,t){var n=this.root;return!!Object.entries(e).sort().every(function(e){var t=m(e,2),r=t[0],o=t[1],a="".concat(r,":").concat(o);return!!n.children.has(a)&&(n=n.children.get(a),!0)})&&(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),!0)}},{key:"deleteByExactKey",value:function(e,t){for(var n=this.root,r=Object.entries(e).sort(),o=0;o0||(n.values.forEach(function(e){return t&&t(e)}),this.size-=n.values.size,n.values.clear(),0))}},{key:"count",value:function(){return this.size}},{key:"getAllEntries",value:function(){var e=[];return this.traverse(function(t,n){e.push([t,n])}),e}},{key:"countIf",value:function(e){var t=0;return this.traverse(function(n,r){e(n,r)&&(t+=1)}),t}},{key:"traverse",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.from(n.children.entries()).forEach(function(n){var o=m(n,2),a=o[0],i=o[1],l=m(a.split(":"),2),c=l[0],u=l[1],p=s(s({},r),{},f({},c,u));i.values.forEach(function(t){return e(p,t)}),t.traverse(e,i,p)})}},{key:"clear",value:function(){this.root=new l,this.size=0}}],t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},95250(e,t,n){"use strict";n.d(t,{o:()=>h});var r=n(45720),o=n(32159),a=n(46270);function i(e){return i="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},i(e)}function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof u?r:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,r,o){var a,l,c,u=0,s=o||[],f=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,c=e,m.n=n,i}};function p(n,r){for(l=n,c=r,t=0;!f&&u&&!o&&t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),s}var i={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(c(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,c(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,c(p,"constructor",f),c(f,"constructor",s),s.displayName="GeneratorFunction",c(f,o,"GeneratorFunction"),c(p),c(p,o,"Generator"),c(p,r,function(){return this}),c(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:d}})()}function c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}c=function(e,t,n,r){function a(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},c(e,t,n,r)}function u(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){u(a,r,o,i,l,"next",e)}function l(e){u(a,r,o,i,l,"throw",e)}i(void 0)})}}function f(e,t){for(var n=0;n3?(o=d===r)&&(l=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),i=s,l=d;(t=i<2?e:l)||!f;){a||(i?i<3?(i>1&&(m.n=-1),p(i,l)):m.n=l:m.v=l);try{if(u=2,a){if(i||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,i<2&&(i=0)}else 1===i&&(t=a.return)&&t.call(a),i<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=e}else if((t=(f=m.n<0)?l:n.call(r,m))!==c)break}catch(t){a=e,i=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,i),!0),s}var c={};function u(){}function s(){}function f(){}t=Object.getPrototypeOf;var m=[][r]?t(t([][r]())):(a(t={},r,function(){return this}),t),p=f.prototype=u.prototype=Object.create(m);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,a(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,a(p,"constructor",f),a(f,"constructor",s),s.displayName="GeneratorFunction",a(f,i,"GeneratorFunction"),a(p),a(p,i,"Generator"),a(p,r,function(){return this}),a(p,"toString",function(){return"[object Generator]"}),(o=function(){return{w:l,m:d}})()}function a(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}a=function(e,t,n,r){function i(t,n){a(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},a(e,t,n,r)}function i(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,c,"next",e)}function c(e){i(a,r,o,l,c,"throw",e)}l(void 0)})}}function c(e,t){for(var n=0;nA});var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.db=t,this.storeName=n},t=[{key:"setItem",value:(a=l(o().m(function e(t,n,r){var a,i;return o().w(function(e){for(;;)if(0===e.n)return a=this.db.transaction(this.storeName,"readwrite"),i=a.objectStore(this.storeName),e.a(2,new Promise(function(e,o){var a=i.put({key:t,value:n,time:Date.now(),timeout:r});a.onsuccess=function(){return e()},a.onerror=function(){return o(a.error)}}))},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"getItem",value:(r=l(o().m(function e(t){var n,r;return o().w(function(e){for(;;)if(0===e.n)return n=this.db.transaction(this.storeName,"readonly"),r=n.objectStore(this.storeName),e.a(2,new Promise(function(e,n){var o=r.get(t);o.onsuccess=function(){var t=o.result;t&&(!t.timeout||Date.now()-t.time3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,p(f,"constructor",u),p(u,"constructor",c),c.displayName="GeneratorFunction",p(u,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:a,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function a(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},p(e,t,n,r)}function d(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,l,"next",e)}function l(e){d(a,r,o,i,l,"throw",e)}i(void 0)})}}function g(e,t){for(var n=0;ns,bH:()=>c,y$:()=>u});var r=n(52274),o=n.n(r),a=n(10613),i=n.n(a),l=n(97665),c=function(e){return e.replace(/!.*$/,"")},u=function(e){var t=e.replace(/!.*$/,"");return"".concat(t,"!").concat(o().generate())},s=function(e,t,n,r){var o,a,c=0===t.length?e:i()(e,t);return n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.LEFT?(o=r,a=c):(o=c,a=r),{first:o,second:a,direction:n===l.MosaicDropTargetPosition.TOP||n===l.MosaicDropTargetPosition.BOTTOM?"column":"row"}}},43158(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(40366),o=n(9827),a=n(83345);function i(e){return i="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},i(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;tr});var r=function(){return null}},11446(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t){for(var n=0;nd,DT:()=>c,Mj:()=>m,Vc:()=>p});var c=a(function e(t,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"defaultVersion",n(3085).rE),i(this,"ifTimeExpire",function(e){return!!e&&Date.now()>new Date(e).getTime()}),i(this,"set",function(e,t){localStorage.setItem(o.storageKey,JSON.stringify({timeout:null==t?void 0:t.timeout,version:o.version,value:e}))}),i(this,"get",function(e){var t=localStorage.getItem(o.storageKey);if(t)try{var n=JSON.parse(t)||{},r=n.timeout,a=n.version;return o.ifTimeExpire(r)||o.version!==a?e:n.value}catch(t){return e}return e}),i(this,"remove",function(){localStorage.removeItem(o.storageKey)}),this.storageKey=t,this.version=r||this.defaultVersion}),u=n(40366);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nP,n9:()=>R,By:()=>I,wR:()=>_});var r=n(22188),o=n(40366);const a={flex:function(){return{display:"flex",flexDirection:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"row",justifyContent:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"center",alignItems:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"center"}},flexCenterCenter:{display:"flex",justifyContent:"center",alignItems:"center"},func:{textReactive:function(e,t){return{"&:hover":{color:e},"&:active":{color:t}}}},textEllipsis:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},textEllipsis2:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-WebkitLineClamp":"2","-WebkitBoxOrient":"vertical"},scrollX:{"overflow-x":"hidden","&:hover":{"overflow-x":"auto"}},scrollY:{"overflow-y":"hidden","&:hover":{"overflow-y":"auto"}},scroll:{overflow:"hidden","&:hover":{overflow:"auto"}},scrollXI:{"overflow-x":"hidden !important","&:hover":{"overflow-x":"auto !important"}},scrollYI:{"overflow-y":"hidden !important","&:hover":{"overflow-y":"auto !important"}},scrollI:{overflow:"hidden !important","&:hover":{overflow:"auto !important"}}};var i={brand1:"#044CB9",brand2:"#055FE7",brand3:"#347EED",brand4:"#CFE5FC",brand5:"#E6EFFC",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CC2B36",error2:"#F53145",error3:"#FF5E69",error4:"#FCEDEF",errorTransparent:"rgba(255, 77, 88, 0.25)",warn1:"#CC5A04",warn2:"#FF6F00",warn3:"#FF8D37",warn4:"#FFF1E5",warnTransparent:"rgba(255,141,38,0.25)",success1:"#009072",success2:"#00B48F",success3:"#33C3A5",success4:"#DFFBF2",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C79E07",yellow2:"#F0C60C",yellow3:"#F3D736",yellow4:"#FDF9E6",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"#F5F6F8",transparent2:"rgba(0,0,0,0.45)",transparent3:"rgba(200,201,204,0.6)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#FFFFFF",background2:"#FFFFFF",background3:"#F5F7FA",fontColor1:"#C8CACD",fontColor2:"#C8CACD",fontColor3:"#A0A3A7",fontColor4:"#6E7277",fontColor5:"#232A33",fontColor6:"#232A33",divider1:"#DBDDE0",divider2:"#DBDDE0",divider3:"#EEEEEE"},l={iconReactive:{main:i.fontColor1,hover:i.fontColor3,active:i.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:i.brand2,mainActive:i.brand1,mainDisabled:"#8c8c8c"},color:{primary:i.brand3,success:i.success2,warn:i.warn2,error:i.error2,black:i.fontColor5,white:"white",main:"#282F3C",mainLight:i.fontColor6,mainStrong:i.fontColor5,colorInBrand:"white",colorInBackground:i.fontColor5,colorInBackgroundHover:i.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'},c={button:{},select:{color:"".concat(i.fontColor6," !important"),colorHover:"".concat(i.fontColor6," !important"),bgColor:i.background2,bgColorHover:i.background2,border:"1px solid ".concat(i.divider2," !important"),borderHover:"1px solid ".concat(i.divider2," !important"),borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6) !important",iconColor:i.fontColor2,optionColor:i.fontColor6,optionBgColor:i.background2,optionSelectColor:i.brand3,optionSelectBgColor:i.transparent1,optionSelectHoverBgColor:i.transparent1},sourceItem:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,activeBgColor:i.brand4,activeColor:l.color.colorInBackground,activeIconColor:i.brand2,bgColor:i.transparent,bgColorHover:i.transparent1,disabledColor:"#A6B5CC"},tab:{color:l.color.colorInBackground,colorHover:l.color.colorInBackgroundHover,bgColor:i.background3,tabItemBgColor:"#F7F9FC",boxShadow:"none",activeBgColor:i.brand2,activeColor:l.color.colorInBrand,activeColorHover:l.color.colorInBrand,bgColorHover:i.background3,bgColorInBackground:"white",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},carViz:{bgColor:"#F5F7FA",textColor:"#232A33",gridColor:"black",colorMapping:{YELLOW:"#daa520",WHITE:"blue",CORAL:"#ff7f50",RED:"red",GREEN:"#006400",BLUE:"#0AA7CF",PURE_WHITE:"#3131e4",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"blue",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#F0C60C",BICYCLE:"#30BCD9",VEHICLE:"#33C01A",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#BA5AEE",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#BA5AEE"},decisionMarkerColorMapping:{STOP:"#F53145",FOLLOW:"#148609",YIELD:"#BA5AEE",OVERTAKE:"#0AA7CF"},pointCloudHeightColorMapping:{.5:{r:0,g:0,b:0},1:{r:200,g:0,b:0},1.5:{r:255,g:0,b:0},2:{r:51,g:192,b:26},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:{bgColor:i.background1,color:i.fontColor5,hoverColor:i.transparent1},reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:{contentColor:i.fontColor5,headColor:i.fontColor5,closeIconColor:i.fontColor3,backgroundColor:i.background2,divider:i.divider2,closeBtnColor:i.fontColor5,closeBtnHoverColor:i.brand3,closeBtnBorderColor:i.divider1,closeBtnBorderHoverColor:i.brand3},input:{color:i.fontColor5,bgColor:"white",bgColorHover:"white",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid #E6E6E8",borderInGray:"1px solid ".concat(i.transparent),boxShadowHover:"0px 2px 5px 0px rgba(200,201,204,0.6)"},lightButton:{background:"#E6F0FF",backgroundHover:"#EDF4FF",backgroundActive:"#CCE0FF",backgroundDisabled:"#EBEDF0",color:"#055FE7",colorHover:"#347EED",colorActive:"#044CB9",colorDisabled:"#C8CACD"},pncMonitor:{chartTitleBgColor:"#fff",chartBgColor:"#fff",chartTitleColor:"#232A33",titleBorder:"1px solid ".concat(i.divider2),toolTipColor:i.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(i.divider2),chartEditingBgColor:"#fff",chartEditingColorPickerBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerActiveBorder:"1px solid ".concat(i.divider2),chartEditingColorPickerBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",deleteBtnBgColor:i.background1,pickerBgColor:i.background1},dashBoard:{bgColor:"white",cardBgColor:"#F2F4F7",color:i.fontColor5,lightFontColor:"#6E7277",progressBgColor:"#DDE3EB"},settingModal:{titleColor:"white",cardBgColor:i.background3,tabColor:i.fontColor5,tabActiveColor:"white",tabActiveBgColor:"#055FE7",tabBgHoverColor:i.transparent},bottomBar:{bgColor:i.background1,boxShadow:"0px -10px 16px 0px rgba(12,14,27,0.1)",border:"none",color:i.fontColor4,progressBgColor:"#E1E6EC",progressColorActiveColor:{backgroundColor:"#055FE7",backgroundImage:"none"}},setupPage:{tabBgColor:"#fff",tabBorder:"1px solid #D8D8D8",tabActiveBgColor:i.transparent,tabColor:i.fontColor6,tabActiveColor:i.brand2,fontColor:i.fontColor5,backgroundColor:"#F5F7FA",backgroundImage:"none",headNameColor:i.fontColor5,hadeNameNoLoginColor:i.fontColor6,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"white",guideColor:"".concat(i.fontColor6," !important"),guideTitleColor:"".concat(i.fontColor5," !important"),guideStepColor:i.fontColor5,guideStepTotalColor:i.fontColor4,border:"1px solid #DBDDE0 !important",guideButtonColor:"".concat(i.transparent," !important"),guideBackColor:i.fontColor5,guideBackBgColor:"#fff",guideBackBorderColor:"1px solid #DBDDE0"},addPanel:{bgColor:"#fff",coverImgBgColor:"#F5F7FA",titleColor:i.fontColor6,contentColor:i.fontColor4,maskColor:"rgba(255,255,255,0.65)",boxShadowHover:"0px 2px 15px 0px rgba(99,116,168,0.13)",boxShadow:"0px 0px 6px 2px rgba(0,21,51,0.03)",border:"1px solid #fff"},pageLoading:{bgColor:i.background2,color:i.fontColor6},meneDrawer:{backgroundColor:"#F5F7FA",tabColor:i.fontColor5,tabActiveColor:"#055FE7 !important",tabBackgroundColor:"white",tabActiveBackgroundColor:"white",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:i.fontColor6,headBgColor:"#fff",headBorderColor:"1px solid #DBDDE0",bodyBgColor:"#fff",borderBottom:"1px solid #EEEEEE",tdHoverColor:"#F5F6F8",activeBgColor:i.brand4},layerMenu:{bgColor:"#fff",headColor:i.fontColor5,headBorderColor:"#DBDDE0",headBorder:"1px solid #DBDDE0",headResetBtnColor:i.fontColor5,headResetBtnBorderColor:"1px solid #dbdde0",activeTabBgColor:i.brand2,tabColor:i.fontColor4,labelColor:i.fontColor5,color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)",menuItemBg:"white",menuItemBoxShadow:"0px 2px 5px 0px rgba(200,201,204,0.6)",menuItemColor:i.fontColor5,menuItemHoverColor:i.fontColor5},menu:{themeBtnColor:i.fontColor6,themeBtnBackground:"#fff",themeBtnBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)",themeHoverColor:i.brand3},panelConsole:{iconFontSize:"16px"},panelBase:{subTextColor:i.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:i.fontColor4},routingEditing:{color:i.fontColor6,hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"transparent",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},u={brand1:"#1252C0",brand2:"#1971E6",brand3:"#3288FA",brand4:"#579FF1",brand5:"rgba(50,136,250,0.25)",brandTransparent:"rgba(50,136,250,0.25)",error1:"#CB2B40",error2:"#F75660",error3:"#F97A7E",error4:"rgba(255,77,88,0.25)",errorTransparent:"rgba(255,77,88,0.25)",warn1:"#D25F13",warn2:"#FF8D26",warn3:"#FFAB57",warn4:"rgba(255,141,38,0.25)",warnTransparent:"rgba(255,141,38,0.25)",success1:"#20A335",success2:"#1FCC4D",success3:"#69D971",success4:"rgba(31,204,77,0.25)",successTransparent:"rgba(31,204,77,0.25)",yellow1:"#C7A218",yellow2:"#F3D631",yellow3:"#F6E55D",yellow4:"rgba(243,214,49,0.25)",yellowTransparent:"rgba(243,214,49,0.25)",transparent:"transparent",transparent1:"rgba(115,193,250,0.08)",transparent2:"rgba(0,0,0,0.65)",transparent3:"rgba(80,88,102,0.8)",backgroundMask:"rgba(255,255,255,0.65)",backgroundHover:"rgba(115,193,250,0.08)",background1:"#1A1D24",background2:"#343C4D",background3:"#0F1014",fontColor1:"#717A8C",fontColor2:"#4D505A",fontColor3:"#717A8C",fontColor4:"#808B9D",fontColor5:"#FFFFFF",fontColor6:"#A6B5CC",divider1:"#383C4D",divider2:"#383B45",divider3:"#252833"},s={iconReactive:{main:u.fontColor1,hover:u.fontColor3,active:u.fontColor4,mainDisabled:"#8c8c8c"},reactive:{mainHover:u.fontColor5,mainActive:"#5D6573",mainDisabled:"#40454D"},color:{primary:u.brand3,success:u.success2,warn:u.warn2,error:u.error2,black:u.fontColor5,white:"white",main:u.fontColor4,mainLight:u.fontColor6,mainStrong:u.fontColor5,colorInBrand:"white",colorInBackground:u.fontColor5,colorInBackgroundHover:u.fontColor5},size:{sm:"12px",regular:"14px",large:"16px",huge:"18px"},weight:{light:300,regular:400,medium:500,semibold:700},lineHeight:{dense:1.4,regular:1.5714,sparse:1.8},fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'};const f={color:"".concat(u.fontColor6," !important"),colorHover:"".concat(u.fontColor6," !important"),bgColor:"#282D38",bgColorHover:"rgba(115, 193, 250, 0.16)",border:"none !important",borderHover:"none !important",borderRadius:"4px",boxShadow:"none !important",boxShadowHover:"none !important",iconColor:u.fontColor6,optionColor:u.fontColor6,optionBgColor:"#282D38",optionSelectColor:u.brand3,optionSelectBgColor:u.transparent1,optionSelectHoverBgColor:u.transparent1},m={color:u.fontColor6,colorHover:u.fontColor6,activeBgColor:u.brand2,activeColor:s.color.colorInBackground,activeIconColor:"white",bgColor:u.transparent,bgColorHover:u.transparent1,disabledColor:"#4d505a"},p={color:"#A6B5CC",colorHover:"#A6B5CC",bgColor:"#282B36",tabItemBgColor:"#282B36",boxShadow:"none",activeBgColor:u.brand2,activeColor:"white",activeColorHover:"white",bgColorHover:"#282B36",bgColorInBackground:"#282B36",boxShadowInBackground:"0 0 16px 0 rgba(12,14,27,0.1)"},d={bgColor:"#353947",color:u.fontColor6,hoverColor:u.transparent1},v={contentColor:u.fontColor4,headColor:u.fontColor4,closeIconColor:u.fontColor4,backgroundColor:"#282D38",divider:u.divider2,closeBtnColor:u.fontColor4,closeBtnHoverColor:u.brand3,closeBtnBorderColor:u.divider1,closeBtnBorderHoverColor:u.brand3},g={color:"white",bgColor:"#343C4D",bgColorHover:"#343C4D",borderRadius:"4px",boxShadow:"none",borderInWhite:"1px solid ".concat(u.transparent),borderInGray:"1px solid ".concat(u.transparent),boxShadowHover:"none"},h={background:"#282B36",backgroundHover:"#353946",backgroundActive:"#252830",backgroundDisabled:"#EBEDF0",color:u.fontColor6,colorHover:u.fontColor5,colorActive:u.fontColor6,colorDisabled:"#C8CACD"},b={chartTitleBgColor:"#282D38",chartTitleColor:"white",chartBgColor:"#282D38",titleBorder:"1px solid ".concat(u.divider2),toolTipColor:u.fontColor5,chartColors:["#3288FA","#33C01A","#FF6F00","#6461FF","#F0C60C","#A639EA","#F53145"],chartLineBorder:"1px solid ".concat(u.divider2),chartEditingBgColor:"#232731",chartEditingColorPickerBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerActiveBorder:"1px solid ".concat(u.transparent),chartEditingColorPickerBoxShadow:"none",deleteBtnBgColor:"#343C4D",pickerBgColor:"#343C4D"},y={bgColor:u.background1,cardBgColor:"#282B36",color:u.fontColor6,lightFontColor:"#808B9D",progressBgColor:"#343947"},w={titleColor:"white",cardBgColor:"#181a1f",tabColor:u.fontColor4,tabActiveColor:"white",tabActiveBgColor:"#3288fa",tabBgHoverColor:"rgba(26, 29, 36, 0.5)"},E={bgColor:u.background1,boxShadow:"none",border:"1px solid rgb(37, 40, 51)",color:u.fontColor4,progressBgColor:"#343947",progressColorActiveColor:{backgroundImage:"linear-gradient(270deg, rgb(85, 156, 250) 1%, rgb(50, 136, 250) 100%)",backgroundColor:"transparent"}},A=n.p+"assets/0cfea8a47806a82b1402.png";var O={button:{},select:f,sourceItem:m,tab:p,carViz:{bgColor:"#0F1014",textColor:"#ffea00",gridColor:"#ffffff",colorMapping:{YELLOW:"#daa520",WHITE:"#cccccc",CORAL:"#ff7f50",RED:"#ff6666",GREEN:"#006400",BLUE:"#30a5ff",PURE_WHITE:"#ffffff",DEFAULT:"#c0c0c0",MIDWAY:"#ff7f50",END:"#ffdab9",PULLOVER:"#006aff"},obstacleColorMapping:{PEDESTRIAN:"#ffea00",BICYCLE:"#00dceb",VEHICLE:"#00ff3c",VIRTUAL:"#800000",CIPV:"#ff9966",DEFAULT:"#ff00fc",TRAFFICCONE:"#e1601c",UNKNOWN:"#a020f0",UNKNOWN_MOVABLE:"#da70d6",UNKNOWN_UNMOVABLE:"#ff00ff"},decisionMarkerColorMapping:{STOP:"#ff3030",FOLLOW:"#1ad061",YIELD:"#ff30f7",OVERTAKE:"#30a5ff"},pointCloudHeightColorMapping:{.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}}},operatePopover:d,reactivePopover:{bgColor:"white",color:"#232A33",boxShadow:"0px 2px 30px 0px rgba(200,201,204,0.6)"},modal:v,input:g,lightButton:h,pncMonitor:b,dashBoard:y,settingModal:w,bottomBar:E,setupPage:{tabBgColor:"#282B36",tabBorder:"1px solid #383C4D",tabActiveBgColor:"".concat(u.transparent),tabColor:u.fontColor6,tabActiveColor:u.brand3,fontColor:u.fontColor6,backgroundColor:"#F5F7FA",backgroundImage:"url(".concat(A,")"),headNameColor:u.fontColor5,hadeNameNoLoginColor:u.brand3,buttonBgColor:"#055FE7",buttonBgHoverColor:"#579FF1",buttonBgActiveColor:"#1252C0",guideBgColor:"#282b36",guideColor:"".concat(u.fontColor6," !important"),guideTitleColor:"".concat(u.fontColor5," !important"),guideStepColor:u.fontColor5,guideStepTotalColor:u.fontColor4,border:"1px solid ".concat(u.divider1," !important"),guideButtonColor:"".concat(u.transparent," !important"),guideBackColor:"#fff",guideBackBgColor:"#282b36",guideBackBorderColor:"1px solid rgb(124, 136, 153)"},addPanel:{bgColor:"#282b36",coverImgBgColor:"#181A1F",titleColor:u.fontColor6,contentColor:u.fontColor4,maskColor:"rgba(15, 16, 20, 0.7)",boxShadowHover:"none",boxShadow:"none",border:"1px solid #2e313c"},pageLoading:{bgColor:u.background2,color:u.fontColor5},meneDrawer:{backgroundColor:"#16181e",tabColor:u.fontColor6,tabActiveColor:"#055FE7",tabBackgroundColor:"#242933",tabActiveBackgroundColor:"#242933",tabBoxShadow:"0 0 16px 0 rgba(12,14,27,0.1)"},table:{color:u.fontColor6,headBgColor:u.background1,headBorderColor:"none",bodyBgColor:"#282b36",borderBottom:"1px solid ".concat(u.divider2),tdHoverColor:"rgba(115,193,250,0.08)",activeBgColor:u.brand2},layerMenu:{bgColor:"#282b36",headColor:u.fontColor5,headBorderColor:u.divider2,headBorder:"1px solid ".concat(u.divider2),headResetBtnColor:u.fontColor6,headResetBtnBorderColor:"1px solid #7c8899",activeTabBgColor:u.brand2,tabColor:u.fontColor4,labelColor:u.fontColor6,color:u.fontColor6,boxShadow:"none",menuItemBg:u.background2,menuItemBoxShadow:"none",menuItemColor:"none",menuItemHoverColor:"none"},menu:{themeBtnColor:u.fontColor6,themeBtnBackground:u.brand3,themeBtnBoxShadow:"none",themeHoverColor:u.yellow1},panelConsole:{iconFontSize:"12px"},panelBase:{subTextColor:u.fontColor4,functionRectBgColor:"#EDF0F5",functionRectColor:u.fontColor4},routingEditing:{color:"#fff",hoverColor:"#3288FA",activeColor:"#1252C0",backgroundColor:"transparent",backgroundHoverColor:"transparent",backgroundActiveColor:"#1252C0",border:"1px solid rgba(124,136,153,1)",borderHover:"1px solid #3288FA",borderActive:"1px solid #1252C0"}},S=function(e,t,n){return{fontSize:t,fontWeight:n,fontFamily:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"PingFangSC-Regular",lineHeight:e.lineHeight.regular}},x=function(e,t){return{colors:e,font:t,padding:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},margin:{speace0:"0",speace:"8px",speace2:"16px",speace3:"24px"},backgroundColor:{main:e.background1,mainLight:e.background2,mainStrong:e.background3,transparent:"transparent"},zIndex:{app:2e3,drawer:1200,modal:1300,tooltip:1500},shadow:{level1:{top:"0px -10px 16px 0px rgba(12,14,27,0.1)",left:"-10px 0px 16px 0px rgba(12,14,27,0.1)",right:"10px 0px 16px 0px rgba(12,14,27,0.1)",bottom:"0px 10px 16px 0px rgba(12,14,27,0.1)"}},divider:{color:{regular:e.divider1,light:e.divider2,strong:e.divider3},width:{sm:1,regular:1,large:2}},border:{width:"1px",borderRadius:{sm:4,regular:6,large:8,huge:10}},typography:{title:S(t,t.size.large,t.weight.medium),title1:S(t,t.size.huge,t.weight.medium),content:S(t,t.size.regular,t.weight.regular),sideText:S(t,t.size.sm,t.weight.regular)},transitions:{easeIn:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 1, 1)")},easeInOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.2, 1)")},easeOut:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.0, 0, 0.2, 1)")},sharp:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all"," 0.25s cubic-bezier(0.4, 0, 0.6, 1)")},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}}}},C={tokens:x(i,l),components:c,util:a},k={tokens:x(u,s),components:O,util:a},j=o.createContext({theme:"light",tokens:C});function P(e){var t=e.theme,n=void 0===t?"light":t,r=(0,o.useMemo)(function(){return{theme:n,tokens:{light:C,drak:k}[n]}},[n]);return o.createElement(j.Provider,{value:r},e.children)}function _(){return o.useContext(j)}var M=(0,r.Q2)({useTheme:function(){return o.useContext(j).tokens}}).makeStyles,I=M,R=M()},20154(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(40366),o=n(80682),a=n(23218),i=n(45260),l=["prefixCls","rootClassName"];function c(e){return c="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},c(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;tio,Sc:()=>Ia,sk:()=>Wa,lV:()=>La,Av:()=>Rr,pd:()=>Ur,YI:()=>Xa,Ti:()=>Oo,aF:()=>Ro,_k:()=>go,AM:()=>Do.A,ke:()=>xa,sx:()=>Ba,l6:()=>Vo,tK:()=>Ea,dO:()=>ea,t5:()=>wi,tU:()=>la,iU:()=>pi,XE:()=>ki});var r=n(40366),o=n(97465),a=n.n(o),i=n(63172);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?e=setTimeout(function(){e=null,R(!0)},_.delay):R(_.loading),function(){e&&(clearTimeout(e),e=null)}},[_]);var D=(0,r.createRef)(),H=(0,Kr.K4)(t,D),B=f||"middle",T=(0,Qr.A)(x,["navigate"]),N=Xr()(C,to(to(to(to(to(to(to(to({},"".concat(C,"-").concat(s),"default"!==s&&s),"".concat(C,"-").concat(l),l),"".concat(C,"-").concat(B),B),"".concat(C,"-loading"),I),"".concat(C,"-block"),y),"".concat(C,"-dangerous"),!!c),"".concat(C,"-rtl"),"rtl"===S),"".concat(C,"-disabled"),P),d,v),z=I?r.createElement(Rr,{name:"IcLoading",spin:!0}):void 0,L=h&&!I?r.createElement(Jr,{prefixCls:C,className:null==w?void 0:w.icon,style:null==m?void 0:m.icon},h):z,F=function(t){var n=e.onClick;I||P?t.preventDefault():null==n||n(t)};return void 0!==T.href?r.createElement("a",eo({},T,{className:N,onClick:F,ref:H}),L,g):r.createElement("button",eo({},x,{type:A,className:N,onClick:F,disabled:P,ref:H}),L,g)},io=(0,r.forwardRef)(ao);io.propTypes={type:a().oneOf(["default","primary","link"]),size:a().oneOf(["small","middle","large"]),onClick:a().func},io.defaultProps={type:"primary",size:"middle",onClick:function(){console.log("clicked")},children:"点击",shape:"default",loading:!1,disabled:!1,danger:!1},io.displayName="Button";var lo=n(80682),co=["prefixCls","rootClassName"];function uo(e){return uo="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},uo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg":{position:"absolute",top:"4px"}},"& .dreamview-modal-confirm-btns":{marginTop:"24px",display:"flex",justifyContent:"center","& > button":{width:"72px",height:"40px"},"& > button:nth-child(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-child(1):hover":{color:"#3288FA",border:"1px solid #3288FA"},"& > button:nth-child(1):active":{color:"#1252C0",border:"1px solid #1252C0"},"& > button:nth-child(2)":{padding:"4px 12px 4px 12px !important"}}}}}})});function Ro(e){var t=e.prefixCls,n=e.children,o=e.rootClassName,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n.dreamview-tabs-nav::before":{border:"none"}},"& .dreamview-tabs-nav .dreamview-tabs-nav-list":{display:"inline-flex",flex:"none",background:e.components.tab.bgColor,borderRadius:"6px"},".dreamview-tabs-tab":{padding:"5px 16px",minWidth:"106px",justifyContent:"center",margin:"0 !important",backgroundColor:e.components.tab.tabItemBgColor,color:e.components.tab.color,fontFamily:"PingFangSC-Regular",fontWeight:400,borderRadius:"6px"},".dreamview-tabs-ink-bar":{display:"none"},".dreamview-tabs-tab.dreamview-tabs-tab-active .dreamview-tabs-tab-btn":{color:e.components.tab.activeColor},".dreamview-tabs-tab.dreamview-tabs-tab-active ":{backgroundColor:e.components.tab.activeBgColor,borderRadius:"6px"}}),"in-gray",{".dreamview-tabs-tab":{background:e.components.tab.bgColorInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-list":{boxShadow:e.components.tab.boxShadowInBackground},".dreamview-tabs-nav .dreamview-tabs-nav-wrap":{overflow:"visible"}})});function la(e){var t=e.children,n=e.prefixCls,o=e.className,a=e.inGray,i=void 0!==a&&a,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);no});var r="dreamview",o=function(e,t){return t||(e?"".concat(r,"-").concat(e):r)}},71601(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>Ds});var r=n(40366),o=n(52087),a=n(7390),i=n(51987),l=n(83345);function c(e){var t=e.providers,n=e.children,o=t.reduceRight(function(e,t){return r.cloneElement(t,void 0,e)},n);return r.createElement(r.Fragment,null,o)}var u=n(37859),s=n(29946),f=n(47127),m=n(42201),p=s.$7.createStoreProvider({initialState:{num1:0,num2:0},reducer:function(e,t){return(0,f.jM)(e,function(e){switch(t.type){case"INCREMENT":e.num1+=1;break;case"DECREMENT":e.num1-=1;break;case"INCREMENTNUMBER":e.num2+=t.payload}})},persistor:(0,m.ok)("pageLayoutStore")}),d=p.StoreProvider,v=(p.useStore,n(36242)),g=n(76212),h=n(84436),b=n(11446),y=n(93345),w=n(23804),E=n(52274),A=n.n(E);function O(e){return O="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},O(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n p":se(se({},e.tokens.typography.title),{},{color:e.tokens.colors.fontColor6,marginBottom:e.tokens.margin.speace})},checkboxitem:{display:"flex",alignItems:"center"},checkbox:{height:"16px",marginRight:e.tokens.margin.speace,".rc-checkbox-input":{width:"16px",height:"16px"},"&:not(.rc-checkbox-checked) .rc-checkbox-input":{background:"transparent"}},logo:{height:"90px",marginLeft:"-18px",display:"block",marginTop:"-34px",marginBottom:"-18px"},about:se(se({},e.tokens.typography.content),{},{color:e.tokens.colors.fontColor4}),aboutitem:{marginBottom:e.tokens.margin.speace},blod:{fontWeight:500,color:e.tokens.colors.fontColor5,marginBottom:"6px"},divider:{height:"1px",background:e.tokens.colors.divider2,margin:"".concat(e.tokens.margin.speace2," 0")},"device-table":{table:{width:"100%",borderCollapse:"separate",borderSpacing:0},".rc-table-thead":{backgroundColor:"#323642",height:"36px",fontFamily:"PingFangSC-Medium",fontSize:"14px",color:"#A6B5CC",whiteSpace:"nowrap",textAlign:"left",th:{padding:"0 20px","&:first-of-type":{textIndent:"22px"}}},".rc-table-tbody":{td:{backgroundColor:"#181A1F",padding:"0 20px",height:"36px",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:400,borderBottom:"1px solid #292C33"}}},"device-product":{display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400},"device-tag":{color:"#3288FA",fontFamily:"PingFangSC-Regular",fontSize:"12px",fontWeight:400,padding:"0 4px",height:"20px",lineHeight:"20px",background:"rgba(50,136,250,0.25)",borderRadius:"4px",marginRight:"4px","&:last-of-type":{marginRight:0}},"float-left":{float:"left"},"device-flex":{overflow:"hidden",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",lineHeight:"22px",fontWeight:400,marginBottom:"6px","& > div":{float:"left"}},"device-label":{minWidth:"86px"},"device-value":{overflow:"hidden"},"not-login":{textAlign:"center",img:{display:"block",width:"160px",height:"100px",margin:"67px auto 0"},p:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",textAlign:"center",fontWeight:"400"},div:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#808B9D",textAlign:"center",fontWeight:400,marginTop:"6px"}},"account-flex":{display:"flex",color:"#808B9D",marginBottom:"16px",".dreamview-radio-wrapper":{color:"#808B9D"}}}});var pe=n(73546),de=(0,L.n9)(function(){return{"setting-modal-alert":{minHeight:"28px",background:"rgba(255,141,38,0.25)",borderRadius:"4px",width:"100%",display:"flex",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#FF8D26",alignItems:"flex-start",fontWeight:400,marginBottom:"8px",".anticon":{marginLeft:"21px",marginTop:"7px"}},"setting-modal-text":{marginLeft:"7px",lineHeight:"20px",marginTop:"4px",marginBottom:"4px",flex:1}}});function ve(e){var t=de().classes;return r.createElement("div",{className:t["setting-modal-alert"]},r.createElement(pe.A,null),r.createElement("div",{className:t["setting-modal-text"]},e.text))}const ge=n.p+"assets/1f376ecb9d0cfff86415.png";function he(e){return he="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},he(e)}function be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ye(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ye(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{display:"flex",justifyContent:"right"},"& .dreamview-tabs-tab-active":{fontWeight:"600",fontFamily:"PingFangSC-Semibold"},"& .dreamview-tabs-ink-bar":{position:"absolute",display:"block"}}}},"& .dreamview-tabs-content":{position:"static"}},"enter-this-mode":{position:"absolute",left:"0px",bottom:"0px"},"enter-this-mode-btn":{width:"204px",height:"40px",color:"FFFFFF",borderRadius:"6px",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular","&.dreamview-btn-disabled":{background:e.tokens.colors.divider2,color:"rgba(255,255,255,0.7)"}},"welcome-guide-login-content-text":He(He({},e.tokens.typography.content),{},{fontSize:"16px",color:n.fontColor,margin:"16px 0px 10px 0px"}),"welcome-guide-login-content-image":{width:"100%",height:"357px",borderRadius:"6px",backgroundSize:"cover"}}});function Ne(){var e=(0,H.XE)("welcome_guide_logov2");return Te({welcomeGuideLogo:e})}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Xe(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Xe(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Xe(f,"constructor",u),Xe(u,"constructor",c),c.displayName="GeneratorFunction",Xe(u,o,"GeneratorFunction"),Xe(f),Xe(f,o,"Generator"),Xe(f,r,function(){return this}),Xe(f,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:a,m}})()}function Xe(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Xe=function(e,t,n,r){function a(t,n){Xe(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Xe(e,t,n,r)}function Ke(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Qe(e){var t=e.data.info.code;50008!==t&&35004!==t&&(0,H.iU)({type:"error",content:e.data.info.message})}var Ze=function(e){return{type:"INIT_USER_INFO",payload:e}},Je=function(e){return(0,ie.noop)(),function(){var t,n=(t=Ve().m(function t(n){var r;return Ve().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.getSubscribeAccountInfo();case 1:r=t.v,n({type:Ge.CHANGE_ACCOUNT,payload:r}),t.n=3;break;case 2:t.p=2,Qe(t.v);case 3:return t.a(2)}},t,null,[[0,2]])}),function(){var e=this,n=arguments;return new Promise(function(r,o){var a=t.apply(e,n);function i(e){Ke(a,r,o,i,l,"next",e)}function l(e){Ke(a,r,o,i,l,"throw",e)}i(void 0)})});return function(e){return n.apply(this,arguments)}}()};function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div":{flex:1},span:{color:e.tokens.colors.brand3,cursor:"pointer"},img:{width:"80px",height:"80px"}}}});var Tt=n(51075),Nt=n(45260),zt=["enabled","className"];function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=d===r)&&(c=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>d)&&(a[4]=n,a[5]=r,m.n=d,l=0))}if(o||n>1)return i;throw f=!0,r}return function(o,s,d){if(u>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,d),l=s,c=d;(t=l<2?e:c)||!f;){a||(l?l<3?(l>1&&(m.n=-1),p(l,c)):m.n=c:m.v=c);try{if(u=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),l<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(f=m.n<0)?c:n.call(r,m))!==i)break}catch(t){a=e,l=1,c=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(Wt(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(s);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Wt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=u,Wt(f,"constructor",u),Wt(u,"constructor",c),c.displayName="GeneratorFunction",Wt(u,o,"GeneratorFunction"),Wt(f),Wt(f,o,"Generator"),Wt(f,r,function(){return this}),Wt(f,"toString",function(){return"[object Generator]"}),(Gt=function(){return{w:a,m}})()}function Wt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Wt=function(e,t,n,r){function a(t,n){Wt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Wt(e,t,n,r)}function Ut(e,t,n,r,o,a,i){try{var l=e[a](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function Yt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){Ut(a,r,o,i,l,"next",e)}function l(e){Ut(a,r,o,i,l,"throw",e)}i(void 0)})}}function Vt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n label":{display:"flex",alignItems:"center"}},"modules-switch-text":sr(sr({flex:1,marginLeft:e.tokens.margin.speace,fontSize:e.tokens.font.size.regular},e.util.textEllipsis),{},{whiteSpace:"nowrap"}),resource:{marginBottom:"20px"}}});var pr=(0,L.n9)(function(e){return{"current-resource-item":{height:"32px",fontSize:e.tokens.font.size.regular,lineHeight:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",backgroundColor:e.components.sourceItem.activeBgColor,color:e.components.sourceItem.activeColor,marginBottom:e.tokens.margin.speace,padding:"12px","& .anticon":{color:e.components.sourceItem.activeIconColor,fontSize:e.tokens.font.size.large},"&:last-of-type":{marginBottom:"20px"}},name:sr({},e.util.textEllipsis),empty:{textAlign:"center",color:e.tokens.colors.fontColor4,marginBottom:"20px",fontSize:e.tokens.font.size.regular,img:{display:"block",margin:"0 auto"}}}}),dr=(0,L.n9)(function(){return{"guide-container":{margin:"-6px -16px 0",padding:"6px 16px 0"}}});const vr=(0,L.n9)(function(){return{"mode-setting-divider":{height:0}}});function gr(){var e=vr().classes;return r.createElement("div",{className:e["mode-setting-divider"]})}const hr=r.memo(gr);function br(e){return br="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},br(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t span":{color:e.components.sourceItem.activeColor}},"source-list-name":wr(wr(wr({},e.util.textEllipsis),e.tokens.typography.content),{},{lineHeight:"32px",width:"250px",whiteSpace:"nowrap"}),"source-list-operate":{display:"none",fontSize:e.tokens.font.size.large},"source-list-title":{height:"40px",display:"flex",alignItems:"center"},"source-list-title-icon-expand":{transform:"rotateZ(0)"},"source-list-title-icon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor6,marginRight:"6px",transition:e.tokens.transitions.easeInOut(),transform:"rotateZ(-90deg)"},"source-list-title-text":wr(wr({cursor:"pointer",width:"250px"},e.util.textEllipsis),{},{whiteSpace:"nowrap",color:e.tokens.colors.fontColor6,"&:hover":{color:e.tokens.font.reactive.mainHover}}),"source-list-close":{height:0,overflowY:"hidden",transition:e.tokens.transitions.easeInOut(),"& > div":{margin:"0 14px"}},"source-list-expand":{height:"".concat(null==t?void 0:t.height,"px")},empty:{textAlign:"center",color:e.tokens.colors.fontColor4,img:{display:"block",margin:"0 auto",width:"160px"}},"empty-msg":{"& > span":{color:e.tokens.colors.brand3,cursor:"pointer"}}}});function Or(){return r.createElement("svg",{className:"spinner",width:"1em",height:"1em",viewBox:"0 0 66 66"},r.createElement("circle",{fill:"none",strokeWidth:"6",strokeLinecap:"round",stroke:"#2D3140",cx:"33",cy:"33",r:"30"}),r.createElement("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"}))}function Sr(e){return Sr="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},Sr(e)}function xr(e,t,n){return(t=function(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nt.id?1:-1})},[n.maps]);return r.createElement(jr,{activeId:n.currentMap,onChange:c,items:u,type:"HDMap"})}var to=r.memo(eo);function no(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)(),a=o.isMainConnected,i=o.mainApi,l=(0,r.useCallback)(function(e){a&&n((0,v.Xg)(i,e))},[a]),c=(0,r.useMemo)(function(){return t.vehicles.map(function(e){return{id:e,label:e,content:e}})},[t.vehicles]);return r.createElement(jr,{activeId:t.currentVehicle,onChange:l,items:c})}var ro=r.memo(no);function oo(){var e=Br((0,v.qZ)(),2),t=e[0],n=e[1],o=(0,h.A)().mainApi,a=(0,r.useMemo)(function(){return t.dynamicModels.map(function(e){return{id:e,label:e,content:e}}).sort(function(e,t){return e.id.localeCompare(t.id)})},[t.dynamicModels]),i=(0,r.useCallback)(function(e){n((0,v.ev)(o,e))},[]);return r.createElement(jr,{activeId:t.currentDynamicModel,onChange:i,items:a})}var ao=r.memo(oo);function io(){var e=mr(zr).classes,t=(0,F.Bd)("modeSettings").t,n=Br((0,w.ch)(),2),o=n[0].activeEnviormentResourceTab,a=n[1],i=Br((0,v.qZ)(),1)[0],l=(0,r.useMemo)(function(){return Hr(Hr(Hr(Hr(Hr(Hr({},v.D8.PLAY_RECORDER,[{key:w.mp.RECORD,label:t("records"),children:r.createElement(Kr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SIM_CONTROL,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.SCENARIO,[{key:w.mp.SCENARIO,label:t("scenario"),children:r.createElement($r,null)}]),v.D8.AUTO_DRIVE,[{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.WAYPOINT_FOLLOW,[{key:w.mp.RECORD,label:t("RTKRecords"),children:r.createElement(Zr,null)},{key:w.mp.MAP,label:t("HDMap"),children:r.createElement(to,null)}]),v.D8.None,[])[i.currentOperation]},[t,i.currentOperation]),c=(0,r.useCallback)(function(e){a(N(e))},[]);if((0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===o})&&a(N(l[0].key))},[o,l]),!l)return null;var u=r.createElement(H.tU,{activeKey:o,rootClassName:e.resource,items:l,onChange:c});return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:u,title:t("enviormentResources")}),r.createElement(hr,null))}var lo=r.memo(io);function co(){var e=mr(zr).classes,t=Br((0,w.ch)(),2),n=t[0].activeAdsResourceTab,o=t[1],a=(0,F.Bd)("modeSettings").t,i=Br((0,y.A)(),1)[0].isDynamicalModelsShow,l=(0,r.useMemo)(function(){return[{key:w.$1.VEHICLE,label:a("vehicle"),children:r.createElement(ro,null)},i&&{key:w.$1.DYNAMIC,label:a("dynamic"),children:r.createElement(ao,null)}].filter(Boolean)},[a,i]);(0,r.useEffect)(function(){l&&!l.some(function(e){return e.key===n})&&o(z(l[0].key))},[l]);var c=(0,r.useCallback)(function(e){o(z(e))},[]),u=r.createElement(H.tU,{onChange:c,activeKey:n,rootClassName:e.resource,items:l});return r.createElement(lr,{expendChild:u,title:a("adsResources")})}var uo=r.memo(co);function so(){var e=Br((0,v.qZ)(),1)[0],t=pr().classes,n=(0,F.Bd)("modeSettings").t,o=(0,H.XE)("ic_default_page_no_data"),a=(0,r.useMemo)(function(){return["currentRecordId","currentScenarioName","currentMap","currentVehicle","currentDynamicModel","currentRtkRecordId"].map(function(t){return e[t]}).filter(Boolean)},[e]),i=a.length?r.createElement(r.Fragment,null,a.map(function(e){return r.createElement("div",{title:e,className:t["current-resource-item"],key:e},r.createElement("span",{className:t.name},e),r.createElement(H.Av,{name:"IcSucceed",className:"",onPointerOverCapture:void 0,onPointerOutCapture:void 0}))})):r.createElement("div",{className:t.empty},r.createElement("img",{alt:"resource_empty",src:o}),r.createElement("div",null,n("empty")));return r.createElement(r.Fragment,null,r.createElement(lr,{expendChild:i,title:n("currentResource")}),r.createElement(hr,null))}var fo=r.memo(so);function mo(e){var t=dr().classes;return r.createElement("div",{className:t["guide-container"],id:e.id},e.children)}function po(){var e,t=Br((0,v.qZ)(),1)[0],n=Br((0,y.A)(),2)[1].bottomBarHeightString,o=(0,r.useMemo)(function(){return{height:"calc(100vh - 78px - ".concat(n,")")}},[n]),a=mr(o).classes,i=(0,F.Bd)("modeSettings").t;return r.createElement("div",{className:a["mode-setting"]},r.createElement(Dn,{title:i("modeSettings")}),r.createElement(tn.A,{className:a["mode-setting-container"]},r.createElement(mo,{id:"guide-modesettings-mode"},r.createElement(Fr,null)),(null===(e=t.modules)||void 0===e?void 0:e.size)>0&&r.createElement(mo,{id:"guide-modesettings-modules"},r.createElement(Vr,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-operations"},r.createElement(Gr,null)),t.currentOperation!==v.D8.None&&r.createElement(fo,null),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-variable"},r.createElement(lo,null)),t.currentOperation!==v.D8.None&&r.createElement(mo,{id:"guide-modesettings-fixed"},r.createElement(uo,null))))}const vo=r.memo(po);function go(e){return go="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},go(e)}function ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bo(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ra(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ra((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerRecords").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getRecordsList()},format:sa,tabKey:ko.Records}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ia({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ua,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const ma=r.memo(fa);function pa(e){return pa="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},pa(e)}function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=pa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ga(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ha(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ga(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,public:r.public,category:r.category,is_classic:r.is_classic,type:wa(r,m),id:n}})},tabKey:ko.Scenarios}),b=g.data,y=g.setOriginData,w=g.refreshList;(0,r.useEffect)(function(){w()},[null==s||null===(e=s.subscriber)||void 0===e?void 0:e.subscriberId]);var E=ga((0,r.useState)(Ea.ALL),2),A=E[0],O=E[1],S=(0,r.useMemo)(function(){return A===Ea.ALL?b:A===Ea.SYSTEM?b.filter(function(e){return"public"===e.category}):A===Ea.TEAM?b.filter(function(e){return"subscriber"===e.category&&e.public}):b.filter(function(e){return!("public"===e.category)}).filter(function(e){return!("subscriber"===e.category&&e.public)})},[b,A]),x=(0,r.useCallback)(function(e){return i?l.deleteScenarioSet(e).then(function(){w(),d()}):Promise.reject()},[i,d]),C=(0,r.useCallback)(function(e){y(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=100,d()):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;t span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ca(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ka(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ka(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t,n=_a(e,2),r=(n[0],n[1]);return{percentage:r.percentage,status:r.status,name:r.vin,type:"".concat(null==r||null===(t=r.vtype[0])||void 0===t?void 0:t.toUpperCase()).concat(r.vtype.slice(1).replace(/_([a-z])/g,function(e,t){return" ".concat(t.toUpperCase())})),id:r.vehicle_id}})};function Da(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.mainApi,a=e.isMainConnected,i=_a((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerVehicle").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getVehicleInfo()},format:Ra,tabKey:ko.Vehicle}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadVehicleConfig(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return a?o.deleteVehicleConfig(e).then(function(){m()}):Promise.reject()},[a]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(Ia,{onUpload:a,status:e.status,onReset:t,onDelete:i,onRefresh:n,id:e.id,type:e.type,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ha=r.memo(Da),Ba=(0,L.n9)(function(e){return{"source-operate":{display:"flex","& > span":{marginRight:"32px",cursor:"pointer","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}},"& .anticon":{display:"block",fontSize:e.tokens.font.size.large}},retry:{"& .anticon":{paddingTop:"1px",fontSize:"".concat(e.tokens.font.size.regular," !important")}},"source-operate-icon":{fontSize:e.tokens.font.size.large,cursor:"pointer",marginRight:"32px"},disabled:{display:"flex","& > span":{cursor:"not-allowed",color:e.tokens.font.reactive.mainDisabled}},font18:{"& .anticon":{fontSize:"18px"}}}});function Ta(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Na(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Na(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Na(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Fa(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.obu_in,type:r.type,id:n,deleteName:r.vehicle_name}})};function Wa(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=e.isMainConnected,a=e.mainApi,i=Fa((0,v.qZ)(),1)[0],l=null==i?void 0:i.currentVehicle,c=(0,F.Bd)("profileManagerV2X").t,u=Zo(),s=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getV2xInfo()},format:Ga,tabKey:ko.V2X}),f=s.data,m=s.refreshList,p=(0,r.useCallback)(function(e){return t?n.resetV2xConfig(e).then(function(){m()}):Promise.reject()},[t]),d=(0,r.useCallback)(function(e){return t?n.refreshV2xConf(e).then(function(){m()}):Promise.reject()},[t]),g=(0,r.useCallback)(function(e){return t?n.uploadV2xConf(e).then(function(){m()}):Promise.reject()},[t]),b=(0,r.useCallback)(function(e){return o?a.deleteV2XConfig(e).then(function(){m()}):Promise.reject()},[o]),y=(0,r.useMemo)(function(){return function(e,t,n,o,a,i){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(La,{onUpload:a,status:e.status,name:e.deleteName,onReset:t,onRefresh:n,onDelete:i,id:e.id,currentActiveId:o})}}]}(c,p,d,l,g,b)},[c,p,d,l,g,b]);return r.createElement(ta,null,r.createElement(Io,{scroll:{y:u},rowKey:"id",columns:y,data:f}))}const Ua=r.memo(Wa);function Ya(e){return Ya="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},Ya(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=Ya(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ya(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ya(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=Ka(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function ei(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=Ka((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentDynamicModel,i=(0,F.Bd)("profileManagerDynamical").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getDynamicModelList()},format:$a,tabKey:ko.Dynamical}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr.name?1:-1}).map(function(e){var t=ri(e,2),n=t[0],r=t[1];return{percentage:r.percentage,status:r.status,name:r.name,type:"Official",id:n}})};function fi(){var e=(0,h.A)(),t=e.isPluginConnected,n=e.pluginApi,o=ri((0,v.qZ)(),1)[0],a=null==o?void 0:o.currentRecordId,i=(0,F.Bd)("profileManagerHDMap").t,l=Zo(),c=Qo({apiConnected:t,api:function(){return null==n?void 0:n.getHDMapList()},format:si,tabKey:ko.HDMap}),u=c.data,s=c.setOriginData,f=c.refreshList,m=(0,r.useCallback)(function(e){s(function(t){var n=t[e.resource_id],r=Math.floor(e.percentage);return e.status===Mr.KK.Fail?n.status=Mr.KK.Fail:"downloaded"===e.status?(n.status=Mr.KK.DOWNLOADED,n.percentage=r):(n.status=Mr.KK.DOWNLOADING,n.percentage=r),ii({},t)})},[]),p=(0,r.useMemo)(function(){return u.findIndex(function(e){return e.name===a})+1},[u,a]),d=Eo(p).classes,g=(0,r.useMemo)(function(){return function(e,t,n,o){return[{title:e("titleName"),dataIndex:"name",key:"name",render:function(e){return r.createElement(qo,{name:e})}},{title:e("titleType"),dataIndex:"type",width:250,key:"type"},{title:e("titleState"),dataIndex:"status",key:"status",width:240,render:function(e,t){return r.createElement(Ho,{percentage:"".concat(t.percentage,"%"),status:e})}},{title:e("titleOperate"),key:"address",width:200,render:function(e){return r.createElement(ui,{refreshList:t,status:e.status,recordId:e.id,recordName:e.name,onUpdateDownloadProgress:n,currentRecordId:o})}}]}(i,f,m,a)},[i,f,m,a]);return r.createElement(ta,null,r.createElement(Io,{className:d["table-active"],scroll:{y:l},rowKey:"id",columns:g,data:u}))}const mi=r.memo(fi);var pi=function(e){return[{label:e("records"),key:ko.Records,children:r.createElement(ma,null)},{label:e("scenarios"),key:ko.Scenarios,children:r.createElement(Oa,null)},{label:e("HDMap"),key:ko.HDMap,children:r.createElement(mi,null)},{label:e("vehicle"),key:ko.Vehicle,children:r.createElement(Ha,null)},{label:e("V2X"),key:ko.V2X,children:r.createElement(Ua,null)},{label:e("dynamical"),key:ko.Dynamical,children:r.createElement(ti,null)}]};function di(){var e=wo().classes,t=(0,F.Bd)("profileManagerFilter").t,n=(0,F.Bd)("profileManager").t,o=Co(),a=o.filter,i=o.setFilter,l=o.activeTab,c=o.setTab,u=(0,r.useMemo)(function(){return{options:(e=t,[{label:e("all"),value:"all"},{label:e("downloading"),value:Mr.KK.DOWNLOADING},{label:e("downloadSuccess"),value:Mr.KK.DOWNLOADED},{label:e("downloadFail"),value:Mr.KK.Fail},{label:e("tobedownload"),value:Mr.KK.TOBEUPDATE}]),tabs:pi(n)};var e},[t,n]),s=u.options,f=u.tabs;return r.createElement("div",null,r.createElement(Dn,{border:!1,title:n("title")}),r.createElement("div",{className:e["profile-manager-container"]},r.createElement("div",{className:e["profile-manager-tab-container"]},r.createElement("div",{className:e["profile-manager-tab-select"]},n("state"),":",r.createElement(H.l6,{onChange:function(e){i({downLoadStatus:e})},value:a.downLoadStatus,options:s})),r.createElement(H.tU,{onChange:c,activeKey:l,rootClassName:e["profile-manager-tab"],items:f}))))}var vi=r.memo(di);function gi(){return r.createElement(jo,null,r.createElement(vi,null))}const hi=r.memo(gi),bi=(0,L.By)()(function(e,t){return{"dv-layout-menudrawer-item":{position:"relative",height:"100%"},hidden:{position:"absolute",zIndex:"-1"},"dv-layout-menudrawer":{width:t.width,background:t.backgroundColor||e.tokens.backgroundColor.main,color:e.tokens.font.color.mainLight},"dv-layout-menudrawer-border":{borderRight:"1px solid ".concat(e.tokens.colors.divider3)}}});function yi(e){return yi="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},yi(e)}function wi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ei(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n360&&(e-=360),f.current&&(f.current.style="background: linear-gradient(".concat(e,"deg, #8dd0ff,#3288FA)"))},17)}return function(){clearInterval(m.current)}},[o]),c?o===fu.DISABLE?r.createElement(H.AM,{trigger:"hover",content:c.disabledMsg},r.createElement("div",{className:l(i["btn-container"],i["btn-disabled"])},r.createElement("span",null,u),r.createElement("span",null,c.text))):o===fu.RUNNING?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-doing"]),id:"guide-auto-drive-bar"},r.createElement("div",{ref:f,className:l(du({},i["btn-border"],!gu))}),r.createElement("div",{className:i["btn-ripple"]}),r.createElement("span",null,u),r.createElement("span",null,c.text),r.createElement("div",{className:i["btn-running-image"]})):o===fu.START?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-reactive"],i["btn-start"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):o===fu.STOP?r.createElement("div",{onClick:s,className:l(i["btn-container"],i["btn-stop"]),id:"guide-auto-drive-bar"},r.createElement("span",null,u),r.createElement("span",null,c.text)):null:null}var bu=r.memo(hu);function yu(e){return yu="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},yu(e)}function wu(e,t,n){return(t=function(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eu(e){var t=e.routingInfo,n=cu(),o=n.classes,a=n.cx,i=(0,F.Bd)("bottomBar").t,l=Sc(t),c=l.routingInfo.errorMessage?fu.DISABLE:fu.START,u=l.routingInfo.errorMessage?fu.DISABLE:fu.STOP;return r.createElement("div",{className:a(o["record-controlbar-container"],wu({},o.disabled,!!l.routingInfo.errorMessage))},r.createElement("div",{id:"guide-simulation-record",className:"ic-play-container"},r.createElement(bu,{behavior:wu(wu({},fu.DISABLE,{text:i("Start"),disabledMsg:l.routingInfo.errorMessage}),fu.START,{text:i("Start"),clickHandler:l.send}),status:c}),"    ",r.createElement(bu,{behavior:wu(wu({},fu.STOP,{text:i("Stop"),clickHandler:l.stop}),fu.DISABLE,{text:i("Stop"),icon:r.createElement(H.Av,{name:"IcOverUsable"}),disabledMsg:l.routingInfo.errorMessage}),status:u})),r.createElement("div",{className:o["flex-center"]},r.createElement(eu,null),r.createElement(Tc,{disabled:!1}),r.createElement(Fc,{disabled:!1})))}const Au=r.memo(Eu),Ou=(0,L.n9)(function(e){return{"flex-center":{display:"flex"},disabled:{color:"#40454D","& .anticon":{color:"#383d47",cursor:"not-allowed"},"& .progress-pointer":{display:"none"}},"record-controlbar-container":{height:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 ".concat(e.tokens.padding.speace3),color:e.tokens.colors.fontColor4,"& .ic-play-container":{height:"40px",display:"flex",justifyContent:"center",alignItems:"center"},"& .anticon":{fontSize:e.tokens.font.size.large,color:e.tokens.colors.fontColor5},"& .record-start-record-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column",marginRight:"28px","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-btn-text":{fontSize:e.tokens.font.size.sm},"& .record-reset-btn":{cursor:"pointer",display:"flex",alignItems:"center",flexDirection:"column","&:hover":{color:e.tokens.font.reactive.mainHover,"& .anticon":{color:e.tokens.font.reactive.mainHover}},"&:active":{color:e.tokens.font.reactive.mainActive,"& .anticon":{color:e.tokens.font.reactive.mainActive}}},"& .record-download-reset-text":{fontSize:e.tokens.font.size.sm}},"operate-success":{"& .dreamview-popover-inner,& .dreamview-popover-arrow::before, & .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::before":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(31,204,77,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:e.tokens.colors.success2}},"operate-failed":{"& .dreamview-popover-inner, & .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-arrow::after":{background:"rgba(255,77,88,0.25)"},"& .dreamview-popover-content .dreamview-popover-inner .dreamview-popover-inner-content":{color:"#FF4D58"}}}});function Su(e){return Su="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},Su(e)}function xu(e,t,n){return(t=function(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ku(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ku(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div > div":{color:e.components.setupPage.guideColor},"& > div:nth-of-type(2)":{"& > button":{outline:"none",backgroundColor:"transparent !important",padding:"0px !important",borderRadius:"0px !important","& > button":{marginLeft:"19px",boxShadow:"0px 0px 0px transparent !important"}},"& > div":{"& > button":{padding:"0px !important",paddingTop:"12px !important"}}}}}};(Object.getOwnPropertyDescriptor(vs,"name")||{}).writable||Object.defineProperty(vs,"name",{value:"default",configurable:!0});const gs={"::-webkit-scrollbar":{display:"none"},".ms-track.ms-active, .ms-track:hover":{background:"transparent !important",borderColor:"transparent !important",opacity:1},".ms-track.ms-y.ms-active .ms-thumb, .ms-track.ms-y:hover .ms-thumb, .ms-track.ms-y .ms-thumb":{width:"4px"},".ms-track.ms-x .ms-thumb, .ms-track.ms-x.ms-active .ms-thumb, .ms-track.ms-x:hover .ms-thumb":{height:"4px"},".ms-track .ms-thumb":{backgroundColor:"#3D434E"}};function hs(e){return hs="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},hs(e)}function bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t label::after":{content:'":"',position:"relative",display:"block",marginBlock:0,marginInlineStart:"2px",marginInlineEnd:"8px"}},vs(e)),gs)},[e]);return r.createElement(su.kH,{styles:t})}const As=r.memo(Es);var Os=n(59707),Ss=n(72133);function xs(e){return xs="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},xs(e)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=100&&(r!==P.DONE?(r=P.FAIL,n="Websocket Connect Failed",t=99):t=100),r===P.FAIL&&clearInterval(o),e({status:r,progress:t,message:n})},100);return Os.$K.mainConnection.connectionStatus$.subscribe(function(e){e===Os.AY.CONNECTED&&(r=P.LOADING,t=Math.max(t,66),n="Receiving Metadata..."),e===Os.AY.CONNECTING&&(r=P.LOADING,n="Websocket Connecting..."),e===Os.AY.DISCONNECTED&&(r=P.FAIL,n="Websocket Connect Failed"),e===Os.AY.METADATA&&(t=100,n="Metadata Receive Successful!",r=P.DONE)}),function(){clearInterval(o)}},[])}(),(0,r.useEffect)(function(){var e=document.createElement("div");e.style.display="none",e.id="dreamviewVersion",e.innerHTML=Z.rE,document.body.appendChild(e)},[]),r.createElement(r.Fragment,null)}function Is(){var e=[r.createElement(I,{key:"AppInitProvider"}),r.createElement(_t.ZT,{key:"EventHandlersProvider"}),r.createElement(Qn.Q,{key:"WebSocketManagerProvider"}),r.createElement(Ue,{key:"UserInfoStoreProvider"}),r.createElement(u.H,{key:"PanelCatalogProvider"}),r.createElement(i.JQ,{key:"PanelLayoutStoreProvider"}),r.createElement(w.G1,{key:"MenuStoreProvider"}),r.createElement(v.T_,{key:"HmiStoreProvider"}),r.createElement(v.m7,{key:"PickHmiStoreProvider"}),r.createElement(Ht.F,{key:"PanelInfoStoreProvider"})];return r.createElement(l.N,null,r.createElement(o.Q,{backend:a.t2},r.createElement(As,null),r.createElement(c,{providers:e},r.createElement(Ms,null),r.createElement(ds,null))))}window.dreamviewVersion=Z.rE,n(99359);var Rs=n(40366);function Ds(){return Rs.createElement(Is,null)}q.A.getInstance("../../../dreamview-web/src/Root.tsx")},3085(e){"use strict";e.exports={rE:"5.0.17"}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/622.f21812e2a1f55520a37e.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/628.e7fba4fe2852c5efb57f.js b/modules/dreamview_plus/frontend/dist/628.e7fba4fe2852c5efb57f.js new file mode 100644 index 00000000000..969ed01dbd3 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/628.e7fba4fe2852c5efb57f.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[628],{42756(){},75100(e){var t;self,t=()=>(()=>{"use strict";var e={};return(()=>{var t=e;function i(e,t,i){return e.addEventListener(t,i),{dispose:()=>{i&&e.removeEventListener(t,i)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.AttachAddon=void 0,t.AttachAddon=class{constructor(e,t){this._disposables=[],this._socket=e,this._socket.binaryType="arraybuffer",this._bidirectional=!(t&&!1===t.bidirectional)}activate(e){this._disposables.push(i(this._socket,"message",t=>{const i=t.data;e.write("string"==typeof i?i:new Uint8Array(i))})),this._bidirectional&&(this._disposables.push(e.onData(e=>this._sendData(e))),this._disposables.push(e.onBinary(e=>this._sendBinary(e)))),this._disposables.push(i(this._socket,"close",()=>this.dispose())),this._disposables.push(i(this._socket,"error",()=>this.dispose()))}dispose(){for(const e of this._disposables)e.dispose()}_sendData(e){this._checkOpenSocket()&&this._socket.send(e)}_sendBinary(e){if(!this._checkOpenSocket())return;const t=new Uint8Array(e.length);for(let i=0;i(()=>{"use strict";var e,t={};return e=t,Object.defineProperty(e,"__esModule",{value:!0}),e.FitAddon=void 0,e.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core,t=e._renderService.dimensions;if(0===t.css.cell.width||0===t.css.cell.height)return;const i=0===this._terminal.options.scrollback?0:e.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(r.getPropertyValue("height")),n=Math.max(0,parseInt(r.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),a=s-(parseInt(o.getPropertyValue("padding-top"))+parseInt(o.getPropertyValue("padding-bottom"))),h=n-(parseInt(o.getPropertyValue("padding-right"))+parseInt(o.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(h/t.css.cell.width)),rows:Math.max(1,Math.floor(a/t.css.cell.height))}}},t})(),e.exports=t()},62804(e){var t;self,t=()=>(()=>{"use strict";var e={6:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=class{constructor(e,t,i,r={}){this._terminal=e,this._regex=t,this._handler=i,this._options=r}provideLinks(e,t){const r=i.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(r))}_addCallbacks(e){return e.map(e=>(e.leave=this._options.leave,e.hover=(t,i)=>{if(this._options.hover){const{range:r}=e;this._options.hover(t,i,r)}},e))}};class i{static computeLink(e,t,r,s){const n=new RegExp(t.source,(t.flags||"")+"g"),[o,a]=i._getWindowedLineStrings(e-1,r),h=o.join("");let c;const l=[];for(;c=n.exec(h);){const t=c[0];try{const e=new URL(t),i=decodeURI(e.toString());if(t!==i&&t+"/"!==i)continue}catch(e){continue}const[n,o]=i._mapStrIdx(r,a,0,c.index),[h,d]=i._mapStrIdx(r,n,o,t.length);if(-1===n||-1===o||-1===h||-1===d)continue;const f={start:{x:o+1,y:n+1},end:{x:d,y:h+1}};l.push({range:f,text:t,activate:s})}return l}static _getWindowedLineStrings(e,t){let i,r=e,s=e,n=0,o="";const a=[];if(i=t.buffer.active.getLine(e)){const e=i.translateToString(!0);if(i.isWrapped&&" "!==e[0]){for(n=0;(i=t.buffer.active.getLine(--r))&&n<2048&&(o=i.translateToString(!0),n+=o.length,a.push(o),i.isWrapped&&-1===o.indexOf(" ")););a.reverse()}for(a.push(e),n=0;(i=t.buffer.active.getLine(++s))&&i.isWrapped&&n<2048&&(o=i.translateToString(!0),n+=o.length,a.push(o),-1===o.indexOf(" ")););}return[a,r]}static _mapStrIdx(e,t,i,r){const s=e.buffer.active,n=s.getNullCell();let o=i;for(;r;){const e=s.getLine(t);if(!e)return[-1,-1];for(let i=o;i{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;const t=i(6),s=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function n(e,t){const i=window.open();if(i){try{i.opener=null}catch(e){}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=class{constructor(e=n,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;const i=this._options,r=i.urlRegex||s;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,r,this._handler,i))}dispose(){var e;null===(e=this._linkProvider)||void 0===e||e.dispose()}}})(),r})(),e.exports=t()},29210(e,t){!function(e){"use strict";var t={foreground:"#a5a2a2",background:"#090300",cursor:"#a5a2a2",black:"#090300",brightBlack:"#5c5855",red:"#db2d20",brightRed:"#e8bbd0",green:"#01a252",brightGreen:"#3a3432",yellow:"#fded02",brightYellow:"#4a4543",blue:"#01a0e4",brightBlue:"#807d7c",magenta:"#a16a94",brightMagenta:"#d6d5d4",cyan:"#b5e4f4",brightCyan:"#cdab53",white:"#a5a2a2",brightWhite:"#f7f7f7"},i={foreground:"#f8dcc0",background:"#1f1d45",cursor:"#efbf38",black:"#050404",brightBlack:"#4e7cbf",red:"#bd0013",brightRed:"#fc5f5a",green:"#4ab118",brightGreen:"#9eff6e",yellow:"#e7741e",brightYellow:"#efc11a",blue:"#0f4ac6",brightBlue:"#1997c6",magenta:"#665993",brightMagenta:"#9b5953",cyan:"#70a598",brightCyan:"#c8faf4",white:"#f8dcc0",brightWhite:"#f6f5fb"},r={foreground:"#d0d0d0",background:"#212121",cursor:"#d0d0d0",black:"#151515",brightBlack:"#505050",red:"#ac4142",brightRed:"#ac4142",green:"#7e8e50",brightGreen:"#7e8e50",yellow:"#e5b567",brightYellow:"#e5b567",blue:"#6c99bb",brightBlue:"#6c99bb",magenta:"#9f4e85",brightMagenta:"#9f4e85",cyan:"#7dd6cf",brightCyan:"#7dd6cf",white:"#d0d0d0",brightWhite:"#f5f5f5"},s={foreground:"#637d75",background:"#0f1610",cursor:"#73fa91",black:"#112616",brightBlack:"#3c4812",red:"#7f2b27",brightRed:"#e08009",green:"#2f7e25",brightGreen:"#18e000",yellow:"#717f24",brightYellow:"#bde000",blue:"#2f6a7f",brightBlue:"#00aae0",magenta:"#47587f",brightMagenta:"#0058e0",cyan:"#327f77",brightCyan:"#00e0c4",white:"#647d75",brightWhite:"#73fa91"},n={foreground:"#fffaf4",background:"#0e1019",cursor:"#ff0018",black:"#232323",brightBlack:"#444444",red:"#ff000f",brightRed:"#ff2740",green:"#8ce10b",brightGreen:"#abe15b",yellow:"#ffb900",brightYellow:"#ffd242",blue:"#008df8",brightBlue:"#0092ff",magenta:"#6d43a6",brightMagenta:"#9a5feb",cyan:"#00d8eb",brightCyan:"#67fff0",white:"#ffffff",brightWhite:"#ffffff"},o={foreground:"#ddeedd",background:"#1c1c1c",cursor:"#e2bbef",black:"#3d352a",brightBlack:"#554444",red:"#cd5c5c",brightRed:"#cc5533",green:"#86af80",brightGreen:"#88aa22",yellow:"#e8ae5b",brightYellow:"#ffa75d",blue:"#6495ed",brightBlue:"#87ceeb",magenta:"#deb887",brightMagenta:"#996600",cyan:"#b0c4de",brightCyan:"#b0c4de",white:"#bbaa99",brightWhite:"#ddccbb"},a={foreground:"#979db4",background:"#202746",cursor:"#979db4",black:"#202746",brightBlack:"#6b7394",red:"#c94922",brightRed:"#c76b29",green:"#ac9739",brightGreen:"#293256",yellow:"#c08b30",brightYellow:"#5e6687",blue:"#3d8fd1",brightBlue:"#898ea4",magenta:"#6679cc",brightMagenta:"#dfe2f1",cyan:"#22a2c9",brightCyan:"#9c637a",white:"#979db4",brightWhite:"#f5f7ff"},h={foreground:"#c5c8c6",background:"#161719",cursor:"#d0d0d0",black:"#000000",brightBlack:"#000000",red:"#fd5ff1",brightRed:"#fd5ff1",green:"#87c38a",brightGreen:"#94fa36",yellow:"#ffd7b1",brightYellow:"#f5ffa8",blue:"#85befd",brightBlue:"#96cbfe",magenta:"#b9b6fc",brightMagenta:"#b9b6fc",cyan:"#85befd",brightCyan:"#85befd",white:"#e0e0e0",brightWhite:"#e0e0e0"},c={foreground:"#6f6f6f",background:"#1b1d1e",cursor:"#fcef0c",black:"#1b1d1e",brightBlack:"#505354",red:"#e6dc44",brightRed:"#fff78e",green:"#c8be46",brightGreen:"#fff27d",yellow:"#f4fd22",brightYellow:"#feed6c",blue:"#737174",brightBlue:"#919495",magenta:"#747271",brightMagenta:"#9a9a9d",cyan:"#62605f",brightCyan:"#a3a3a6",white:"#c6c5bf",brightWhite:"#dadbd6"},l={foreground:"#968c83",background:"#20111b",cursor:"#968c83",black:"#20111b",brightBlack:"#5e5252",red:"#be100e",brightRed:"#be100e",green:"#858162",brightGreen:"#858162",yellow:"#eaa549",brightYellow:"#eaa549",blue:"#426a79",brightBlue:"#426a79",magenta:"#97522c",brightMagenta:"#97522c",cyan:"#989a9c",brightCyan:"#989a9c",white:"#968c83",brightWhite:"#d5ccba"},d={foreground:"#e0dbb7",background:"#2a1f1d",cursor:"#573d26",black:"#573d26",brightBlack:"#9b6c4a",red:"#be2d26",brightRed:"#e84627",green:"#6ba18a",brightGreen:"#95d8ba",yellow:"#e99d2a",brightYellow:"#d0d150",blue:"#5a86ad",brightBlue:"#b8d3ed",magenta:"#ac80a6",brightMagenta:"#d19ecb",cyan:"#74a6ad",brightCyan:"#93cfd7",white:"#e0dbb7",brightWhite:"#fff9d5"},f={foreground:"#d9e6f2",background:"#0d1926",cursor:"#d9e6f2",black:"#000000",brightBlack:"#262626",red:"#b87a7a",brightRed:"#dbbdbd",green:"#7ab87a",brightGreen:"#bddbbd",yellow:"#b8b87a",brightYellow:"#dbdbbd",blue:"#7a7ab8",brightBlue:"#bdbddb",magenta:"#b87ab8",brightMagenta:"#dbbddb",cyan:"#7ab8b8",brightCyan:"#bddbdb",white:"#d9d9d9",brightWhite:"#ffffff"},u={foreground:"#ffff4e",background:"#0000a4",cursor:"#ffa560",black:"#4f4f4f",brightBlack:"#7c7c7c",red:"#ff6c60",brightRed:"#ffb6b0",green:"#a8ff60",brightGreen:"#ceffac",yellow:"#ffffb6",brightYellow:"#ffffcc",blue:"#96cbfe",brightBlue:"#b5dcff",magenta:"#ff73fd",brightMagenta:"#ff9cfe",cyan:"#c6c5fe",brightCyan:"#dfdffe",white:"#eeeeee",brightWhite:"#ffffff"},g={foreground:"#b3c9d7",background:"#191919",cursor:"#f34b00",black:"#191919",brightBlack:"#191919",red:"#ff355b",brightRed:"#ff355b",green:"#b7e876",brightGreen:"#b7e876",yellow:"#ffc251",brightYellow:"#ffc251",blue:"#76d4ff",brightBlue:"#76d5ff",magenta:"#ba76e7",brightMagenta:"#ba76e7",cyan:"#6cbfb5",brightCyan:"#6cbfb5",white:"#c2c8d7",brightWhite:"#c2c8d7"},_={foreground:"#e6e1dc",background:"#2b2b2b",cursor:"#ffffff",black:"#000000",brightBlack:"#323232",red:"#da4939",brightRed:"#ff7b6b",green:"#519f50",brightGreen:"#83d182",yellow:"#ffd24a",brightYellow:"#ffff7c",blue:"#6d9cbe",brightBlue:"#9fcef0",magenta:"#d0d0ff",brightMagenta:"#ffffff",cyan:"#6e9cbe",brightCyan:"#a0cef0",white:"#ffffff",brightWhite:"#ffffff"},b={foreground:"#d6dbe5",background:"#131313",cursor:"#b9b9b9",black:"#1f1f1f",brightBlack:"#d6dbe5",red:"#f81118",brightRed:"#de352e",green:"#2dc55e",brightGreen:"#1dd361",yellow:"#ecba0f",brightYellow:"#f3bd09",blue:"#2a84d2",brightBlue:"#1081d6",magenta:"#4e5ab7",brightMagenta:"#5350b9",cyan:"#1081d6",brightCyan:"#0f7ddb",white:"#d6dbe5",brightWhite:"#ffffff"},p={foreground:"#7869c4",background:"#40318d",cursor:"#7869c4",black:"#090300",brightBlack:"#000000",red:"#883932",brightRed:"#883932",green:"#55a049",brightGreen:"#55a049",yellow:"#bfce72",brightYellow:"#bfce72",blue:"#40318d",brightBlue:"#40318d",magenta:"#8b3f96",brightMagenta:"#8b3f96",cyan:"#67b6bd",brightCyan:"#67b6bd",white:"#ffffff",brightWhite:"#f7f7f7"},v={foreground:"#d2d8d9",background:"#2b2d2e",cursor:"#708284",black:"#7d8b8f",brightBlack:"#888888",red:"#b23a52",brightRed:"#f24840",green:"#789b6a",brightGreen:"#80c470",yellow:"#b9ac4a",brightYellow:"#ffeb62",blue:"#2a7fac",brightBlue:"#4196ff",magenta:"#bd4f5a",brightMagenta:"#fc5275",cyan:"#44a799",brightCyan:"#53cdbd",white:"#d2d8d9",brightWhite:"#d2d8d9"},m={foreground:"#d9e6f2",background:"#29262f",cursor:"#d9e6f2",black:"#000000",brightBlack:"#323232",red:"#c37372",brightRed:"#dbaaaa",green:"#72c373",brightGreen:"#aadbaa",yellow:"#c2c372",brightYellow:"#dadbaa",blue:"#7372c3",brightBlue:"#aaaadb",magenta:"#c372c2",brightMagenta:"#dbaada",cyan:"#72c2c3",brightCyan:"#aadadb",white:"#d9d9d9",brightWhite:"#ffffff"},S={foreground:"#aea47a",background:"#191c27",cursor:"#92805b",black:"#181818",brightBlack:"#555555",red:"#810009",brightRed:"#ac3835",green:"#48513b",brightGreen:"#a6a75d",yellow:"#cc8b3f",brightYellow:"#dcdf7c",blue:"#576d8c",brightBlue:"#3097c6",magenta:"#724d7c",brightMagenta:"#d33061",cyan:"#5c4f4b",brightCyan:"#f3dbb2",white:"#aea47f",brightWhite:"#f4f4f4"},y={foreground:"#ffffff",background:"#132738",cursor:"#f0cc09",black:"#000000",brightBlack:"#555555",red:"#ff0000",brightRed:"#f40e17",green:"#38de21",brightGreen:"#3bd01d",yellow:"#ffe50a",brightYellow:"#edc809",blue:"#1460d2",brightBlue:"#5555ff",magenta:"#ff005d",brightMagenta:"#ff55ff",cyan:"#00bbbb",brightCyan:"#6ae3fa",white:"#bbbbbb",brightWhite:"#ffffff"},w={foreground:"#8ff586",background:"#142838",cursor:"#c4206f",black:"#142631",brightBlack:"#fff688",red:"#ff2320",brightRed:"#d4312e",green:"#3ba5ff",brightGreen:"#8ff586",yellow:"#e9e75c",brightYellow:"#e9f06d",blue:"#8ff586",brightBlue:"#3c7dd2",magenta:"#781aa0",brightMagenta:"#8230a7",cyan:"#8ff586",brightCyan:"#6cbc67",white:"#ba46b2",brightWhite:"#8ff586"},C={foreground:"#68525a",background:"#150707",cursor:"#68525a",black:"#2b1b1d",brightBlack:"#3d2b2e",red:"#91002b",brightRed:"#c5255d",green:"#579524",brightGreen:"#8dff57",yellow:"#ab311b",brightYellow:"#c8381d",blue:"#8c87b0",brightBlue:"#cfc9ff",magenta:"#692f50",brightMagenta:"#fc6cba",cyan:"#e8a866",brightCyan:"#ffceaf",white:"#68525a",brightWhite:"#b0949d"},k={foreground:"#ffffff",background:"#000000",cursor:"#bbbbbb",black:"#000000",brightBlack:"#555555",red:"#ff5555",brightRed:"#ff5555",green:"#55ff55",brightGreen:"#55ff55",yellow:"#ffff55",brightYellow:"#ffff55",blue:"#5555ff",brightBlue:"#5555ff",magenta:"#ff55ff",brightMagenta:"#ff55ff",cyan:"#55ffff",brightCyan:"#55ffff",white:"#bbbbbb",brightWhite:"#ffffff"},E={foreground:"#bababa",background:"#222324",cursor:"#bbbbbb",black:"#000000",brightBlack:"#000000",red:"#e8341c",brightRed:"#e05a4f",green:"#68c256",brightGreen:"#77b869",yellow:"#f2d42c",brightYellow:"#efd64b",blue:"#1c98e8",brightBlue:"#387cd3",magenta:"#8e69c9",brightMagenta:"#957bbe",cyan:"#1c98e8",brightCyan:"#3d97e2",white:"#bababa",brightWhite:"#bababa"},R={foreground:"#ffffff",background:"#333333",cursor:"#00ff00",black:"#4d4d4d",brightBlack:"#555555",red:"#ff2b2b",brightRed:"#ff5555",green:"#98fb98",brightGreen:"#55ff55",yellow:"#f0e68c",brightYellow:"#ffff55",blue:"#cd853f",brightBlue:"#87ceff",magenta:"#ffdead",brightMagenta:"#ff55ff",cyan:"#ffa0a0",brightCyan:"#ffd700",white:"#f5deb3",brightWhite:"#ffffff"},B={foreground:"#b9bcba",background:"#1f1f1f",cursor:"#f83e19",black:"#3a3d43",brightBlack:"#888987",red:"#be3f48",brightRed:"#fb001f",green:"#879a3b",brightGreen:"#0f722f",yellow:"#c5a635",brightYellow:"#c47033",blue:"#4f76a1",brightBlue:"#186de3",magenta:"#855c8d",brightMagenta:"#fb0067",cyan:"#578fa4",brightCyan:"#2e706d",white:"#b9bcba",brightWhite:"#fdffb9"},L={foreground:"#ebebeb",background:"#262c35",cursor:"#d9002f",black:"#191919",brightBlack:"#191919",red:"#bf091d",brightRed:"#bf091d",green:"#3d9751",brightGreen:"#3d9751",yellow:"#f6bb34",brightYellow:"#f6bb34",blue:"#17b2e0",brightBlue:"#17b2e0",magenta:"#7830b0",brightMagenta:"#7830b0",cyan:"#8bd2ed",brightCyan:"#8bd2ed",white:"#ffffff",brightWhite:"#ffffff"},D={foreground:"#f8f8f2",background:"#1e1f29",cursor:"#bbbbbb",black:"#000000",brightBlack:"#555555",red:"#ff5555",brightRed:"#ff5555",green:"#50fa7b",brightGreen:"#50fa7b",yellow:"#f1fa8c",brightYellow:"#f1fa8c",blue:"#bd93f9",brightBlue:"#bd93f9",magenta:"#ff79c6",brightMagenta:"#ff79c6",cyan:"#8be9fd",brightCyan:"#8be9fd",white:"#bbbbbb",brightWhite:"#ffffff"},A={foreground:"#b7a1ff",background:"#1f1d27",cursor:"#ff9839",black:"#1f1d27",brightBlack:"#353147",red:"#d9393e",brightRed:"#d9393e",green:"#2dcd73",brightGreen:"#2dcd73",yellow:"#d9b76e",brightYellow:"#d9b76e",blue:"#ffc284",brightBlue:"#ffc284",magenta:"#de8d40",brightMagenta:"#de8d40",cyan:"#2488ff",brightCyan:"#2488ff",white:"#b7a1ff",brightWhite:"#eae5ff"},x={foreground:"#00a595",background:"#000000",cursor:"#bbbbbb",black:"#000000",brightBlack:"#555555",red:"#9f0000",brightRed:"#ff0000",green:"#008b00",brightGreen:"#00ee00",yellow:"#ffd000",brightYellow:"#ffff00",blue:"#0081ff",brightBlue:"#0000ff",magenta:"#bc00ca",brightMagenta:"#ff00ff",cyan:"#008b8b",brightCyan:"#00cdcd",white:"#bbbbbb",brightWhite:"#ffffff"},M={foreground:"#e5c7a9",background:"#292520",cursor:"#f6f7ec",black:"#121418",brightBlack:"#675f54",red:"#c94234",brightRed:"#ff645a",green:"#85c54c",brightGreen:"#98e036",yellow:"#f5ae2e",brightYellow:"#e0d561",blue:"#1398b9",brightBlue:"#5fdaff",magenta:"#d0633d",brightMagenta:"#ff9269",cyan:"#509552",brightCyan:"#84f088",white:"#e5c6aa",brightWhite:"#f6f7ec"},T={foreground:"#807a74",background:"#22211d",cursor:"#facb80",black:"#3c3c30",brightBlack:"#555445",red:"#98290f",brightRed:"#e0502a",green:"#479a43",brightGreen:"#61e070",yellow:"#7f7111",brightYellow:"#d69927",blue:"#497f7d",brightBlue:"#79d9d9",magenta:"#7f4e2f",brightMagenta:"#cd7c54",cyan:"#387f58",brightCyan:"#59d599",white:"#807974",brightWhite:"#fff1e9"},O={foreground:"#efefef",background:"#181818",cursor:"#bbbbbb",black:"#242424",brightBlack:"#4b4b4b",red:"#d71c15",brightRed:"#fc1c18",green:"#5aa513",brightGreen:"#6bc219",yellow:"#fdb40c",brightYellow:"#fec80e",blue:"#063b8c",brightBlue:"#0955ff",magenta:"#e40038",brightMagenta:"#fb0050",cyan:"#2595e1",brightCyan:"#3ea8fc",white:"#efefef",brightWhite:"#8c00ec"},P={foreground:"#ffffff",background:"#323232",cursor:"#d6d6d6",black:"#353535",brightBlack:"#535353",red:"#d25252",brightRed:"#f00c0c",green:"#a5c261",brightGreen:"#c2e075",yellow:"#ffc66d",brightYellow:"#e1e48b",blue:"#6c99bb",brightBlue:"#8ab7d9",magenta:"#d197d9",brightMagenta:"#efb5f7",cyan:"#bed6ff",brightCyan:"#dcf4ff",white:"#eeeeec",brightWhite:"#ffffff"},I={foreground:"#b8a898",background:"#2a211c",cursor:"#ffffff",black:"#000000",brightBlack:"#555753",red:"#cc0000",brightRed:"#ef2929",green:"#1a921c",brightGreen:"#9aff87",yellow:"#f0e53a",brightYellow:"#fffb5c",blue:"#0066ff",brightBlue:"#43a8ed",magenta:"#c5656b",brightMagenta:"#ff818a",cyan:"#06989a",brightCyan:"#34e2e2",white:"#d3d7cf",brightWhite:"#eeeeec"},H={foreground:"#dbdae0",background:"#292f33",cursor:"#d4605a",black:"#292f33",brightBlack:"#092028",red:"#cb1e2d",brightRed:"#d4605a",green:"#edb8ac",brightGreen:"#d4605a",yellow:"#b7ab9b",brightYellow:"#a86671",blue:"#2e78c2",brightBlue:"#7c85c4",magenta:"#c0236f",brightMagenta:"#5c5db2",cyan:"#309186",brightCyan:"#819090",white:"#eae3ce",brightWhite:"#fcf4df"},W={foreground:"#7c8fa4",background:"#0e1011",cursor:"#708284",black:"#002831",brightBlack:"#001e27",red:"#e63853",brightRed:"#e1003f",green:"#5eb83c",brightGreen:"#1d9000",yellow:"#a57706",brightYellow:"#cd9409",blue:"#359ddf",brightBlue:"#006fc0",magenta:"#d75cff",brightMagenta:"#a200da",cyan:"#4b73a2",brightCyan:"#005794",white:"#dcdcdc",brightWhite:"#e2e2e2"},F={foreground:"#9ba2b2",background:"#1e2027",cursor:"#f6f7ec",black:"#585f6d",brightBlack:"#585f6d",red:"#d95360",brightRed:"#d95360",green:"#5ab977",brightGreen:"#5ab977",yellow:"#dfb563",brightYellow:"#dfb563",blue:"#4d89c4",brightBlue:"#4c89c5",magenta:"#d55119",brightMagenta:"#d55119",cyan:"#44a8b6",brightCyan:"#44a8b6",white:"#e6e5ff",brightWhite:"#e6e5ff"},N={foreground:"#ecf0fe",background:"#232537",cursor:"#fecd5e",black:"#03073c",brightBlack:"#6c5b30",red:"#c6004a",brightRed:"#da4b8a",green:"#acf157",brightGreen:"#dbffa9",yellow:"#fecd5e",brightYellow:"#fee6a9",blue:"#525fb8",brightBlue:"#b2befa",magenta:"#986f82",brightMagenta:"#fda5cd",cyan:"#968763",brightCyan:"#a5bd86",white:"#ecf0fc",brightWhite:"#f6ffec"},U={foreground:"#2cc55d",background:"#002240",cursor:"#e5be0c",black:"#222d3f",brightBlack:"#212c3c",red:"#a82320",brightRed:"#d4312e",green:"#32a548",brightGreen:"#2d9440",yellow:"#e58d11",brightYellow:"#e5be0c",blue:"#3167ac",brightBlue:"#3c7dd2",magenta:"#781aa0",brightMagenta:"#8230a7",cyan:"#2c9370",brightCyan:"#35b387",white:"#b0b6ba",brightWhite:"#e7eced"},j={foreground:"#b8dbef",background:"#1d1f21",cursor:"#708284",black:"#1d1d19",brightBlack:"#1d1d19",red:"#f18339",brightRed:"#d22a24",green:"#9fd364",brightGreen:"#a7d42c",yellow:"#f4ef6d",brightYellow:"#ff8949",blue:"#5096be",brightBlue:"#61b9d0",magenta:"#695abc",brightMagenta:"#695abc",cyan:"#d63865",brightCyan:"#d63865",white:"#ffffff",brightWhite:"#ffffff"},G={foreground:"#dbd1b9",background:"#0e0d15",cursor:"#bbbbbb",black:"#08002e",brightBlack:"#331e4d",red:"#64002c",brightRed:"#d02063",green:"#5d731a",brightGreen:"#b4ce59",yellow:"#cd751c",brightYellow:"#fac357",blue:"#1d6da1",brightBlue:"#40a4cf",magenta:"#b7077e",brightMagenta:"#f12aae",cyan:"#42a38c",brightCyan:"#62caa8",white:"#f3e0b8",brightWhite:"#fff5db"},$={foreground:"#e2d8cd",background:"#051519",cursor:"#9e9ecb",black:"#333333",brightBlack:"#3d3d3d",red:"#f8818e",brightRed:"#fb3d66",green:"#92d3a2",brightGreen:"#6bb48d",yellow:"#1a8e63",brightYellow:"#30c85a",blue:"#8ed0ce",brightBlue:"#39a7a2",magenta:"#5e468c",brightMagenta:"#7e62b3",cyan:"#31658c",brightCyan:"#6096bf",white:"#e2d8cd",brightWhite:"#e2d8cd"},z={foreground:"#adadad",background:"#1b1c1d",cursor:"#cdcdcd",black:"#242526",brightBlack:"#5fac6d",red:"#f8511b",brightRed:"#f74319",green:"#565747",brightGreen:"#74ec4c",yellow:"#fa771d",brightYellow:"#fdc325",blue:"#2c70b7",brightBlue:"#3393ca",magenta:"#f02e4f",brightMagenta:"#e75e4f",cyan:"#3ca1a6",brightCyan:"#4fbce6",white:"#adadad",brightWhite:"#8c735b"},Y={foreground:"#dec165",background:"#251200",cursor:"#e5591c",black:"#000000",brightBlack:"#7f6a55",red:"#d6262b",brightRed:"#e55a1c",green:"#919c00",brightGreen:"#bfc65a",yellow:"#be8a13",brightYellow:"#ffcb1b",blue:"#4699a3",brightBlue:"#7cc9cf",magenta:"#8d4331",brightMagenta:"#d26349",cyan:"#da8213",brightCyan:"#e6a96b",white:"#ddc265",brightWhite:"#ffeaa3"},q={foreground:"#ffffff",background:"#1d2837",cursor:"#bbbbbb",black:"#000000",brightBlack:"#555555",red:"#f9555f",brightRed:"#fa8c8f",green:"#21b089",brightGreen:"#35bb9a",yellow:"#fef02a",brightYellow:"#ffff55",blue:"#589df6",brightBlue:"#589df6",magenta:"#944d95",brightMagenta:"#e75699",cyan:"#1f9ee7",brightCyan:"#3979bc",white:"#bbbbbb",brightWhite:"#ffffff"},K={foreground:"#3e3e3e",background:"#f4f4f4",cursor:"#3f3f3f",black:"#3e3e3e",brightBlack:"#666666",red:"#970b16",brightRed:"#de0000",green:"#07962a",brightGreen:"#87d5a2",yellow:"#f8eec7",brightYellow:"#f1d007",blue:"#003e8a",brightBlue:"#2e6cba",magenta:"#e94691",brightMagenta:"#ffa29f",cyan:"#89d1ec",brightCyan:"#1cfafe",white:"#ffffff",brightWhite:"#ffffff"},V={foreground:"#ffffff",background:"#0c1115",cursor:"#6c6c6c",black:"#2e343c",brightBlack:"#404a55",red:"#bd0f2f",brightRed:"#bd0f2f",green:"#35a770",brightGreen:"#49e998",yellow:"#fb9435",brightYellow:"#fddf6e",blue:"#1f5872",brightBlue:"#2a8bc1",magenta:"#bd2523",brightMagenta:"#ea4727",cyan:"#778397",brightCyan:"#a0b6d3",white:"#ffffff",brightWhite:"#ffffff"},X={foreground:"#9f9fa1",background:"#171423",cursor:"#a288f7",black:"#2d283f",brightBlack:"#59516a",red:"#ed2261",brightRed:"#f0729a",green:"#1fa91b",brightGreen:"#53aa5e",yellow:"#8ddc20",brightYellow:"#b2dc87",blue:"#487df4",brightBlue:"#a9bcec",magenta:"#8d35c9",brightMagenta:"#ad81c2",cyan:"#3bdeed",brightCyan:"#9de3eb",white:"#9e9ea0",brightWhite:"#a288f7"},J={foreground:"#fff0a5",background:"#13773d",cursor:"#8c2800",black:"#000000",brightBlack:"#555555",red:"#bb0000",brightRed:"#bb0000",green:"#00bb00",brightGreen:"#00bb00",yellow:"#e7b000",brightYellow:"#e7b000",blue:"#0000a3",brightBlue:"#0000bb",magenta:"#950062",brightMagenta:"#ff55ff",cyan:"#00bbbb",brightCyan:"#55ffff",white:"#bbbbbb",brightWhite:"#ffffff"},Z={foreground:"#e6d4a3",background:"#1e1e1e",cursor:"#bbbbbb",black:"#161819",brightBlack:"#7f7061",red:"#f73028",brightRed:"#be0f17",green:"#aab01e",brightGreen:"#868715",yellow:"#f7b125",brightYellow:"#cc881a",blue:"#719586",brightBlue:"#377375",magenta:"#c77089",brightMagenta:"#a04b73",cyan:"#7db669",brightCyan:"#578e57",white:"#faefbb",brightWhite:"#e6d4a3"},Q={foreground:"#a0a0a0",background:"#121212",cursor:"#bbbbbb",black:"#1b1d1e",brightBlack:"#505354",red:"#f92672",brightRed:"#ff669d",green:"#a6e22e",brightGreen:"#beed5f",yellow:"#fd971f",brightYellow:"#e6db74",blue:"#66d9ef",brightBlue:"#66d9ef",magenta:"#9e6ffe",brightMagenta:"#9e6ffe",cyan:"#5e7175",brightCyan:"#a3babf",white:"#ccccc6",brightWhite:"#f8f8f2"},ee={foreground:"#a8a49d",background:"#010101",cursor:"#a8a49d",black:"#010101",brightBlack:"#726e6a",red:"#f8b63f",brightRed:"#f8b63f",green:"#7fb5e1",brightGreen:"#7fb5e1",yellow:"#d6da25",brightYellow:"#d6da25",blue:"#489e48",brightBlue:"#489e48",magenta:"#b296c6",brightMagenta:"#b296c6",cyan:"#f5bfd7",brightCyan:"#f5bfd7",white:"#a8a49d",brightWhite:"#fefbea"},te={foreground:"#ededed",background:"#222225",cursor:"#e0d9b9",black:"#000000",brightBlack:"#5d504a",red:"#d00e18",brightRed:"#f07e18",green:"#138034",brightGreen:"#b1d130",yellow:"#ffcb3e",brightYellow:"#fff120",blue:"#006bb3",brightBlue:"#4fc2fd",magenta:"#6b2775",brightMagenta:"#de0071",cyan:"#384564",brightCyan:"#5d504a",white:"#ededed",brightWhite:"#ffffff"},ie={foreground:"#84c138",background:"#100b05",cursor:"#23ff18",black:"#000000",brightBlack:"#666666",red:"#b6214a",brightRed:"#e50000",green:"#00a600",brightGreen:"#86a93e",yellow:"#bfbf00",brightYellow:"#e5e500",blue:"#246eb2",brightBlue:"#0000ff",magenta:"#b200b2",brightMagenta:"#e500e5",cyan:"#00a6b2",brightCyan:"#00e5e5",white:"#bfbfbf",brightWhite:"#e5e5e5"},re={foreground:"#00ff00",background:"#000000",cursor:"#23ff18",black:"#000000",brightBlack:"#666666",red:"#990000",brightRed:"#e50000",green:"#00a600",brightGreen:"#00d900",yellow:"#999900",brightYellow:"#e5e500",blue:"#0000b2",brightBlue:"#0000ff",magenta:"#b200b2",brightMagenta:"#e500e5",cyan:"#00a6b2",brightCyan:"#00e5e5",white:"#bfbfbf",brightWhite:"#e5e5e5"},se={foreground:"#dbdbdb",background:"#000000",cursor:"#bbbbbb",black:"#575757",brightBlack:"#262626",red:"#ff1b00",brightRed:"#d51d00",green:"#a5e055",brightGreen:"#a5df55",yellow:"#fbe74a",brightYellow:"#fbe84a",blue:"#496487",brightBlue:"#89beff",magenta:"#fd5ff1",brightMagenta:"#c001c1",cyan:"#86e9fe",brightCyan:"#86eafe",white:"#cbcccb",brightWhite:"#dbdbdb"},ne={foreground:"#b7bcba",background:"#161719",cursor:"#b7bcba",black:"#2a2e33",brightBlack:"#1d1f22",red:"#b84d51",brightRed:"#8d2e32",green:"#b3bf5a",brightGreen:"#798431",yellow:"#e4b55e",brightYellow:"#e58a50",blue:"#6e90b0",brightBlue:"#4b6b88",magenta:"#a17eac",brightMagenta:"#6e5079",cyan:"#7fbfb4",brightCyan:"#4d7b74",white:"#b5b9b6",brightWhite:"#5a626a"},oe={foreground:"#d9efd3",background:"#3a3d3f",cursor:"#42ff58",black:"#1f1f1f",brightBlack:"#032710",red:"#fb002a",brightRed:"#a7ff3f",green:"#339c24",brightGreen:"#9fff6d",yellow:"#659b25",brightYellow:"#d2ff6d",blue:"#149b45",brightBlue:"#72ffb5",magenta:"#53b82c",brightMagenta:"#50ff3e",cyan:"#2cb868",brightCyan:"#22ff71",white:"#e0ffef",brightWhite:"#daefd0"},ae={foreground:"#ffcb83",background:"#262626",cursor:"#fc531d",black:"#000000",brightBlack:"#6a4f2a",red:"#c13900",brightRed:"#ff8c68",green:"#a4a900",brightGreen:"#f6ff40",yellow:"#caaf00",brightYellow:"#ffe36e",blue:"#bd6d00",brightBlue:"#ffbe55",magenta:"#fc5e00",brightMagenta:"#fc874f",cyan:"#f79500",brightCyan:"#c69752",white:"#ffc88a",brightWhite:"#fafaff"},he={foreground:"#f1f1f1",background:"#000000",cursor:"#808080",black:"#4f4f4f",brightBlack:"#7b7b7b",red:"#fa6c60",brightRed:"#fcb6b0",green:"#a8ff60",brightGreen:"#cfffab",yellow:"#fffeb7",brightYellow:"#ffffcc",blue:"#96cafe",brightBlue:"#b5dcff",magenta:"#fa73fd",brightMagenta:"#fb9cfe",cyan:"#c6c5fe",brightCyan:"#e0e0fe",white:"#efedef",brightWhite:"#ffffff"},ce={foreground:"#ffcc2f",background:"#2c1d16",cursor:"#23ff18",black:"#2c1d16",brightBlack:"#666666",red:"#ef5734",brightRed:"#e50000",green:"#2baf2b",brightGreen:"#86a93e",yellow:"#bebf00",brightYellow:"#e5e500",blue:"#246eb2",brightBlue:"#0000ff",magenta:"#d05ec1",brightMagenta:"#e500e5",cyan:"#00acee",brightCyan:"#00e5e5",white:"#bfbfbf",brightWhite:"#e5e5e5"},le={foreground:"#f7f6ec",background:"#1e1e1e",cursor:"#edcf4f",black:"#343935",brightBlack:"#595b59",red:"#cf3f61",brightRed:"#d18fa6",green:"#7bb75b",brightGreen:"#767f2c",yellow:"#e9b32a",brightYellow:"#78592f",blue:"#4c9ad4",brightBlue:"#135979",magenta:"#a57fc4",brightMagenta:"#604291",cyan:"#389aad",brightCyan:"#76bbca",white:"#fafaf6",brightWhite:"#b2b5ae"},de={foreground:"#dedede",background:"#121212",cursor:"#ffa560",black:"#929292",brightBlack:"#bdbdbd",red:"#e27373",brightRed:"#ffa1a1",green:"#94b979",brightGreen:"#bddeab",yellow:"#ffba7b",brightYellow:"#ffdca0",blue:"#97bedc",brightBlue:"#b1d8f6",magenta:"#e1c0fa",brightMagenta:"#fbdaff",cyan:"#00988e",brightCyan:"#1ab2a8",white:"#dedede",brightWhite:"#ffffff"},fe={foreground:"#adadad",background:"#202020",cursor:"#ffffff",black:"#000000",brightBlack:"#555555",red:"#fa5355",brightRed:"#fb7172",green:"#126e00",brightGreen:"#67ff4f",yellow:"#c2c300",brightYellow:"#ffff00",blue:"#4581eb",brightBlue:"#6d9df1",magenta:"#fa54ff",brightMagenta:"#fb82ff",cyan:"#33c2c1",brightCyan:"#60d3d1",white:"#adadad",brightWhite:"#eeeeee"},ue={foreground:"#f7f7f7",background:"#0e100a",cursor:"#9fda9c",black:"#4d4d4d",brightBlack:"#5a5a5a",red:"#c70031",brightRed:"#f01578",green:"#29cf13",brightGreen:"#6ce05c",yellow:"#d8e30e",brightYellow:"#f3f79e",blue:"#3449d1",brightBlue:"#97a4f7",magenta:"#8400ff",brightMagenta:"#c495f0",cyan:"#0798ab",brightCyan:"#68f2e0",white:"#e2d1e3",brightWhite:"#ffffff"},ge={foreground:"#959595",background:"#222222",cursor:"#424242",black:"#2b2b2b",brightBlack:"#454747",red:"#d45a60",brightRed:"#d3232f",green:"#afba67",brightGreen:"#aabb39",yellow:"#e5d289",brightYellow:"#e5be39",blue:"#a0bad6",brightBlue:"#6699d6",magenta:"#c092d6",brightMagenta:"#ab53d6",cyan:"#91bfb7",brightCyan:"#5fc0ae",white:"#3c3d3d",brightWhite:"#c1c2c2"},_e={foreground:"#736e7d",background:"#050014",cursor:"#8c91fa",black:"#230046",brightBlack:"#372d46",red:"#7d1625",brightRed:"#e05167",green:"#337e6f",brightGreen:"#52e0c4",yellow:"#7f6f49",brightYellow:"#e0c386",blue:"#4f4a7f",brightBlue:"#8e87e0",magenta:"#5a3f7f",brightMagenta:"#a776e0",cyan:"#58777f",brightCyan:"#9ad4e0",white:"#736e7d",brightWhite:"#8c91fa"},be={foreground:"#afc2c2",background:"#303030",cursor:"#ffffff",black:"#000000",brightBlack:"#000000",red:"#ff3030",brightRed:"#ff3030",green:"#559a70",brightGreen:"#559a70",yellow:"#ccac00",brightYellow:"#ccac00",blue:"#0099cc",brightBlue:"#0099cc",magenta:"#cc69c8",brightMagenta:"#cc69c8",cyan:"#7ac4cc",brightCyan:"#7ac4cc",white:"#bccccc",brightWhite:"#bccccc"},pe={foreground:"#afc2c2",background:"#000000",cursor:"#ffffff",black:"#000000",brightBlack:"#000000",red:"#ff3030",brightRed:"#ff3030",green:"#559a70",brightGreen:"#559a70",yellow:"#ccac00",brightYellow:"#ccac00",blue:"#0099cc",brightBlue:"#0099cc",magenta:"#cc69c8",brightMagenta:"#cc69c8",cyan:"#7ac4cc",brightCyan:"#7ac4cc",white:"#bccccc",brightWhite:"#bccccc"},ve={foreground:"#afc2c2",background:"#000000",cursor:"#ffffff",black:"#bccccd",brightBlack:"#ffffff",red:"#ff3030",brightRed:"#ff3030",green:"#559a70",brightGreen:"#559a70",yellow:"#ccac00",brightYellow:"#ccac00",blue:"#0099cc",brightBlue:"#0099cc",magenta:"#cc69c8",brightMagenta:"#cc69c8",cyan:"#7ac4cc",brightCyan:"#7ac4cc",white:"#000000",brightWhite:"#000000"},me={foreground:"#000000",background:"#fef49c",cursor:"#7f7f7f",black:"#000000",brightBlack:"#666666",red:"#cc0000",brightRed:"#e50000",green:"#00a600",brightGreen:"#00d900",yellow:"#999900",brightYellow:"#e5e500",blue:"#0000b2",brightBlue:"#0000ff",magenta:"#b200b2",brightMagenta:"#e500e5",cyan:"#00a6b2",brightCyan:"#00e5e5",white:"#cccccc",brightWhite:"#e5e5e5"},Se={foreground:"#232322",background:"#eaeaea",cursor:"#16afca",black:"#212121",brightBlack:"#424242",red:"#b7141f",brightRed:"#e83b3f",green:"#457b24",brightGreen:"#7aba3a",yellow:"#f6981e",brightYellow:"#ffea2e",blue:"#134eb2",brightBlue:"#54a4f3",magenta:"#560088",brightMagenta:"#aa4dbc",cyan:"#0e717c",brightCyan:"#26bbd1",white:"#efefef",brightWhite:"#d9d9d9"},ye={foreground:"#e5e5e5",background:"#232322",cursor:"#16afca",black:"#212121",brightBlack:"#424242",red:"#b7141f",brightRed:"#e83b3f",green:"#457b24",brightGreen:"#7aba3a",yellow:"#f6981e",brightYellow:"#ffea2e",blue:"#134eb2",brightBlue:"#54a4f3",magenta:"#560088",brightMagenta:"#aa4dbc",cyan:"#0e717c",brightCyan:"#26bbd1",white:"#efefef",brightWhite:"#d9d9d9"},we={foreground:"#bbbbbb",background:"#000000",cursor:"#bbbbbb",black:"#000000",brightBlack:"#555555",red:"#e52222",brightRed:"#ff5555",green:"#a6e32d",brightGreen:"#55ff55",yellow:"#fc951e",brightYellow:"#ffff55",blue:"#c48dff",brightBlue:"#5555ff",magenta:"#fa2573",brightMagenta:"#ff55ff",cyan:"#67d9f0",brightCyan:"#55ffff",white:"#f2f2f2",brightWhite:"#ffffff"},Ce={foreground:"#cac296",background:"#1d1908",cursor:"#d3ba30",black:"#000000",brightBlack:"#5e5219",red:"#b64c00",brightRed:"#ff9149",green:"#7c8b16",brightGreen:"#b2ca3b",yellow:"#d3bd26",brightYellow:"#ffe54a",blue:"#616bb0",brightBlue:"#acb8ff",magenta:"#8c5a90",brightMagenta:"#ffa0ff",cyan:"#916c25",brightCyan:"#ffbc51",white:"#cac29a",brightWhite:"#fed698"},ke={foreground:"#e1e1e0",background:"#2d3743",cursor:"#000000",black:"#000000",brightBlack:"#555555",red:"#ff4242",brightRed:"#ff3242",green:"#74af68",brightGreen:"#74cd68",yellow:"#ffad29",brightYellow:"#ffb929",blue:"#338f86",brightBlue:"#23d7d7",magenta:"#9414e6",brightMagenta:"#ff37ff",cyan:"#23d7d7",brightCyan:"#00ede1",white:"#e1e1e0",brightWhite:"#ffffff"},Ee={foreground:"#bbbbbb",background:"#121212",cursor:"#bbbbbb",black:"#121212",brightBlack:"#555555",red:"#fa2573",brightRed:"#f6669d",green:"#98e123",brightGreen:"#b1e05f",yellow:"#dfd460",brightYellow:"#fff26d",blue:"#1080d0",brightBlue:"#00afff",magenta:"#8700ff",brightMagenta:"#af87ff",cyan:"#43a8d0",brightCyan:"#51ceff",white:"#bbbbbb",brightWhite:"#ffffff"},Re={foreground:"#f7d66a",background:"#120b0d",cursor:"#c46c32",black:"#351b0e",brightBlack:"#874228",red:"#9b291c",brightRed:"#ff4331",green:"#636232",brightGreen:"#b4b264",yellow:"#c36e28",brightYellow:"#ff9566",blue:"#515c5d",brightBlue:"#9eb2b4",magenta:"#9b1d29",brightMagenta:"#ff5b6a",cyan:"#588056",brightCyan:"#8acd8f",white:"#f7d75c",brightWhite:"#ffe598"},Be={foreground:"#c4c5b5",background:"#1a1a1a",cursor:"#f6f7ec",black:"#1a1a1a",brightBlack:"#625e4c",red:"#f4005f",brightRed:"#f4005f",green:"#98e024",brightGreen:"#98e024",yellow:"#fa8419",brightYellow:"#e0d561",blue:"#9d65ff",brightBlue:"#9d65ff",magenta:"#f4005f",brightMagenta:"#f4005f",cyan:"#58d1eb",brightCyan:"#58d1eb",white:"#c4c5b5",brightWhite:"#f6f6ef"},Le={foreground:"#f9f9f9",background:"#121212",cursor:"#fb0007",black:"#121212",brightBlack:"#838383",red:"#fa2934",brightRed:"#f6669d",green:"#98e123",brightGreen:"#b1e05f",yellow:"#fff30a",brightYellow:"#fff26d",blue:"#0443ff",brightBlue:"#0443ff",magenta:"#f800f8",brightMagenta:"#f200f6",cyan:"#01b6ed",brightCyan:"#51ceff",white:"#ffffff",brightWhite:"#ffffff"},De={foreground:"#a0a0a0",background:"#222222",cursor:"#aa9175",black:"#383838",brightBlack:"#474747",red:"#a95551",brightRed:"#a97775",green:"#666666",brightGreen:"#8c8c8c",yellow:"#a98051",brightYellow:"#a99175",blue:"#657d3e",brightBlue:"#98bd5e",magenta:"#767676",brightMagenta:"#a3a3a3",cyan:"#c9c9c9",brightCyan:"#dcdcdc",white:"#d0b8a3",brightWhite:"#d8c8bb"},Ae={foreground:"#ffffff",background:"#271f19",cursor:"#ffffff",black:"#000000",brightBlack:"#000000",red:"#800000",brightRed:"#800000",green:"#61ce3c",brightGreen:"#61ce3c",yellow:"#fbde2d",brightYellow:"#fbde2d",blue:"#253b76",brightBlue:"#253b76",magenta:"#ff0080",brightMagenta:"#ff0080",cyan:"#8da6ce",brightCyan:"#8da6ce",white:"#f8f8f8",brightWhite:"#f8f8f8"},xe={foreground:"#e6e8ef",background:"#1c1e22",cursor:"#f6f7ec",black:"#23252b",brightBlack:"#23252b",red:"#b54036",brightRed:"#b54036",green:"#5ab977",brightGreen:"#5ab977",yellow:"#deb566",brightYellow:"#deb566",blue:"#6a7c93",brightBlue:"#6a7c93",magenta:"#a4799d",brightMagenta:"#a4799d",cyan:"#3f94a8",brightCyan:"#3f94a8",white:"#e6e8ef",brightWhite:"#ebedf2"},Me={foreground:"#bbbbbb",background:"#000000",cursor:"#bbbbbb",black:"#4c4c4c",brightBlack:"#555555",red:"#bb0000",brightRed:"#ff5555",green:"#5fde8f",brightGreen:"#55ff55",yellow:"#f3f167",brightYellow:"#ffff55",blue:"#276bd8",brightBlue:"#5555ff",magenta:"#bb00bb",brightMagenta:"#ff55ff",cyan:"#00dadf",brightCyan:"#55ffff",white:"#bbbbbb",brightWhite:"#ffffff"},Te={foreground:"#bbbbbb",background:"#171717",cursor:"#bbbbbb",black:"#4c4c4c",brightBlack:"#555555",red:"#bb0000",brightRed:"#ff5555",green:"#04f623",brightGreen:"#7df71d",yellow:"#f3f167",brightYellow:"#ffff55",blue:"#64d0f0",brightBlue:"#62cbe8",magenta:"#ce6fdb",brightMagenta:"#ff9bf5",cyan:"#00dadf",brightCyan:"#00ccd8",white:"#bbbbbb",brightWhite:"#ffffff"},Oe={foreground:"#3b2322",background:"#dfdbc3",cursor:"#73635a",black:"#000000",brightBlack:"#808080",red:"#cc0000",brightRed:"#cc0000",green:"#009600",brightGreen:"#009600",yellow:"#d06b00",brightYellow:"#d06b00",blue:"#0000cc",brightBlue:"#0000cc",magenta:"#cc00cc",brightMagenta:"#cc00cc",cyan:"#0087cc",brightCyan:"#0087cc",white:"#cccccc",brightWhite:"#ffffff"},Pe={foreground:"#cdcdcd",background:"#283033",cursor:"#c0cad0",black:"#000000",brightBlack:"#555555",red:"#a60001",brightRed:"#ff0003",green:"#00bb00",brightGreen:"#93c863",yellow:"#fecd22",brightYellow:"#fef874",blue:"#3a9bdb",brightBlue:"#a1d7ff",magenta:"#bb00bb",brightMagenta:"#ff55ff",cyan:"#00bbbb",brightCyan:"#55ffff",white:"#bbbbbb",brightWhite:"#ffffff"},Ie={foreground:"#ffffff",background:"#224fbc",cursor:"#7f7f7f",black:"#000000",brightBlack:"#666666",red:"#990000",brightRed:"#e50000",green:"#00a600",brightGreen:"#00d900",yellow:"#999900",brightYellow:"#e5e500",blue:"#0000b2",brightBlue:"#0000ff",magenta:"#b200b2",brightMagenta:"#e500e5",cyan:"#00a6b2",brightCyan:"#00e5e5",white:"#bfbfbf",brightWhite:"#e5e5e5"},He={foreground:"#c2c8d7",background:"#1c262b",cursor:"#b3b8c3",black:"#000000",brightBlack:"#777777",red:"#ee2b2a",brightRed:"#dc5c60",green:"#40a33f",brightGreen:"#70be71",yellow:"#ffea2e",brightYellow:"#fff163",blue:"#1e80f0",brightBlue:"#54a4f3",magenta:"#8800a0",brightMagenta:"#aa4dbc",cyan:"#16afca",brightCyan:"#42c7da",white:"#a4a4a4",brightWhite:"#ffffff"},We={foreground:"#8a8dae",background:"#222125",cursor:"#5b6ea7",black:"#000000",brightBlack:"#5b3725",red:"#ac2e31",brightRed:"#ff3d48",green:"#31ac61",brightGreen:"#3bff99",yellow:"#ac4300",brightYellow:"#ff5e1e",blue:"#2d57ac",brightBlue:"#4488ff",magenta:"#b08528",brightMagenta:"#ffc21d",cyan:"#1fa6ac",brightCyan:"#1ffaff",white:"#8a8eac",brightWhite:"#5b6ea7"},Fe={foreground:"#dcdfe4",background:"#282c34",cursor:"#a3b3cc",black:"#282c34",brightBlack:"#282c34",red:"#e06c75",brightRed:"#e06c75",green:"#98c379",brightGreen:"#98c379",yellow:"#e5c07b",brightYellow:"#e5c07b",blue:"#61afef",brightBlue:"#61afef",magenta:"#c678dd",brightMagenta:"#c678dd",cyan:"#56b6c2",brightCyan:"#56b6c2",white:"#dcdfe4",brightWhite:"#dcdfe4"},Ne={foreground:"#383a42",background:"#fafafa",cursor:"#bfceff",black:"#383a42",brightBlack:"#4f525e",red:"#e45649",brightRed:"#e06c75",green:"#50a14f",brightGreen:"#98c379",yellow:"#c18401",brightYellow:"#e5c07b",blue:"#0184bc",brightBlue:"#61afef",magenta:"#a626a4",brightMagenta:"#c678dd",cyan:"#0997b3",brightCyan:"#56b6c2",white:"#fafafa",brightWhite:"#ffffff"},Ue={foreground:"#e1e1e1",background:"#141e43",cursor:"#43d58e",black:"#000000",brightBlack:"#3f5648",red:"#ff4242",brightRed:"#ff3242",green:"#74af68",brightGreen:"#74cd68",yellow:"#ffad29",brightYellow:"#ffb929",blue:"#338f86",brightBlue:"#23d7d7",magenta:"#9414e6",brightMagenta:"#ff37ff",cyan:"#23d7d7",brightCyan:"#00ede1",white:"#e2e2e2",brightWhite:"#ffffff"},je={foreground:"#a39e9b",background:"#2f1e2e",cursor:"#a39e9b",black:"#2f1e2e",brightBlack:"#776e71",red:"#ef6155",brightRed:"#ef6155",green:"#48b685",brightGreen:"#48b685",yellow:"#fec418",brightYellow:"#fec418",blue:"#06b6ef",brightBlue:"#06b6ef",magenta:"#815ba4",brightMagenta:"#815ba4",cyan:"#5bc4bf",brightCyan:"#5bc4bf",white:"#a39e9b",brightWhite:"#e7e9db"},Ge={foreground:"#a39e9b",background:"#2f1e2e",cursor:"#a39e9b",black:"#2f1e2e",brightBlack:"#776e71",red:"#ef6155",brightRed:"#ef6155",green:"#48b685",brightGreen:"#48b685",yellow:"#fec418",brightYellow:"#fec418",blue:"#06b6ef",brightBlue:"#06b6ef",magenta:"#815ba4",brightMagenta:"#815ba4",cyan:"#5bc4bf",brightCyan:"#5bc4bf",white:"#a39e9b",brightWhite:"#e7e9db"},$e={foreground:"#f2f2f2",background:"#000000",cursor:"#4d4d4d",black:"#2a2a2a",brightBlack:"#666666",red:"#ff0000",brightRed:"#ff0080",green:"#79ff0f",brightGreen:"#66ff66",yellow:"#e7bf00",brightYellow:"#f3d64e",blue:"#396bd7",brightBlue:"#709aed",magenta:"#b449be",brightMagenta:"#db67e6",cyan:"#66ccff",brightCyan:"#7adff2",white:"#bbbbbb",brightWhite:"#ffffff"},ze={foreground:"#f1f1f1",background:"#212121",cursor:"#20bbfc",black:"#212121",brightBlack:"#424242",red:"#c30771",brightRed:"#fb007a",green:"#10a778",brightGreen:"#5fd7af",yellow:"#a89c14",brightYellow:"#f3e430",blue:"#008ec4",brightBlue:"#20bbfc",magenta:"#523c79",brightMagenta:"#6855de",cyan:"#20a5ba",brightCyan:"#4fb8cc",white:"#d9d9d9",brightWhite:"#f1f1f1"},Ye={foreground:"#424242",background:"#f1f1f1",cursor:"#20bbfc",black:"#212121",brightBlack:"#424242",red:"#c30771",brightRed:"#fb007a",green:"#10a778",brightGreen:"#5fd7af",yellow:"#a89c14",brightYellow:"#f3e430",blue:"#008ec4",brightBlue:"#20bbfc",magenta:"#523c79",brightMagenta:"#6855de",cyan:"#20a5ba",brightCyan:"#4fb8cc",white:"#d9d9d9",brightWhite:"#f1f1f1"},qe={foreground:"#414141",background:"#ffffff",cursor:"#5e77c8",black:"#414141",brightBlack:"#3f3f3f",red:"#b23771",brightRed:"#db3365",green:"#66781e",brightGreen:"#829429",yellow:"#cd6f34",brightYellow:"#cd6f34",blue:"#3c5ea8",brightBlue:"#3c5ea8",magenta:"#a454b2",brightMagenta:"#a454b2",cyan:"#66781e",brightCyan:"#829429",white:"#ffffff",brightWhite:"#f2f2f2"},Ke={foreground:"#d0d0d0",background:"#1c1c1c",cursor:"#e4c9af",black:"#2f2e2d",brightBlack:"#4a4845",red:"#a36666",brightRed:"#d78787",green:"#90a57d",brightGreen:"#afbea2",yellow:"#d7af87",brightYellow:"#e4c9af",blue:"#7fa5bd",brightBlue:"#a1bdce",magenta:"#c79ec4",brightMagenta:"#d7beda",cyan:"#8adbb4",brightCyan:"#b1e7dd",white:"#d0d0d0",brightWhite:"#efefef"},Ve={foreground:"#f2f2f2",background:"#000000",cursor:"#4d4d4d",black:"#000000",brightBlack:"#666666",red:"#990000",brightRed:"#e50000",green:"#00a600",brightGreen:"#00d900",yellow:"#999900",brightYellow:"#e5e500",blue:"#2009db",brightBlue:"#0000ff",magenta:"#b200b2",brightMagenta:"#e500e5",cyan:"#00a6b2",brightCyan:"#00e5e5",white:"#bfbfbf",brightWhite:"#e5e5e5"},Xe={foreground:"#ffffff",background:"#762423",cursor:"#ffffff",black:"#000000",brightBlack:"#262626",red:"#d62e4e",brightRed:"#e02553",green:"#71be6b",brightGreen:"#aff08c",yellow:"#beb86b",brightYellow:"#dfddb7",blue:"#489bee",brightBlue:"#65aaf1",magenta:"#e979d7",brightMagenta:"#ddb7df",cyan:"#6bbeb8",brightCyan:"#b7dfdd",white:"#d6d6d6",brightWhite:"#ffffff"},Je={foreground:"#d7c9a7",background:"#7a251e",cursor:"#ffffff",black:"#000000",brightBlack:"#555555",red:"#ff3f00",brightRed:"#bb0000",green:"#00bb00",brightGreen:"#00bb00",yellow:"#e7b000",brightYellow:"#e7b000",blue:"#0072ff",brightBlue:"#0072ae",magenta:"#bb00bb",brightMagenta:"#ff55ff",cyan:"#00bbbb",brightCyan:"#55ffff",white:"#bbbbbb",brightWhite:"#ffffff"},Ze={foreground:"#ffffff",background:"#2b2b2b",cursor:"#7f7f7f",black:"#000000",brightBlack:"#666666",red:"#cdaf95",brightRed:"#eecbad",green:"#a8ff60",brightGreen:"#bcee68",yellow:"#bfbb1f",brightYellow:"#e5e500",blue:"#75a5b0",brightBlue:"#86bdc9",magenta:"#ff73fd",brightMagenta:"#e500e5",cyan:"#5a647e",brightCyan:"#8c9bc4",white:"#bfbfbf",brightWhite:"#e5e5e5"},Qe={foreground:"#514968",background:"#100815",cursor:"#524966",black:"#241f2b",brightBlack:"#312d3d",red:"#91284c",brightRed:"#d5356c",green:"#23801c",brightGreen:"#2cd946",yellow:"#b49d27",brightYellow:"#fde83b",blue:"#6580b0",brightBlue:"#90baf9",magenta:"#674d96",brightMagenta:"#a479e3",cyan:"#8aaabe",brightCyan:"#acd4eb",white:"#524966",brightWhite:"#9e8cbd"},et={foreground:"#ececec",background:"#2c3941",cursor:"#ececec",black:"#2c3941",brightBlack:"#5d7079",red:"#865f5b",brightRed:"#865f5b",green:"#66907d",brightGreen:"#66907d",yellow:"#b1a990",brightYellow:"#b1a990",blue:"#6a8e95",brightBlue:"#6a8e95",magenta:"#b18a73",brightMagenta:"#b18a73",cyan:"#88b2ac",brightCyan:"#88b2ac",white:"#ececec",brightWhite:"#ececec"},tt={foreground:"#deb88d",background:"#09141b",cursor:"#fca02f",black:"#17384c",brightBlack:"#434b53",red:"#d15123",brightRed:"#d48678",green:"#027c9b",brightGreen:"#628d98",yellow:"#fca02f",brightYellow:"#fdd39f",blue:"#1e4950",brightBlue:"#1bbcdd",magenta:"#68d4f1",brightMagenta:"#bbe3ee",cyan:"#50a3b5",brightCyan:"#87acb4",white:"#deb88d",brightWhite:"#fee4ce"},it={foreground:"#d4e7d4",background:"#243435",cursor:"#57647a",black:"#757575",brightBlack:"#8a8a8a",red:"#825d4d",brightRed:"#cf937a",green:"#728c62",brightGreen:"#98d9aa",yellow:"#ada16d",brightYellow:"#fae79d",blue:"#4d7b82",brightBlue:"#7ac3cf",magenta:"#8a7267",brightMagenta:"#d6b2a1",cyan:"#729494",brightCyan:"#ade0e0",white:"#e0e0e0",brightWhite:"#e0e0e0"},rt={foreground:"#cacecd",background:"#111213",cursor:"#e3bf21",black:"#323232",brightBlack:"#323232",red:"#c22832",brightRed:"#c22832",green:"#8ec43d",brightGreen:"#8ec43d",yellow:"#e0c64f",brightYellow:"#e0c64f",blue:"#43a5d5",brightBlue:"#43a5d5",magenta:"#8b57b5",brightMagenta:"#8b57b5",cyan:"#8ec43d",brightCyan:"#8ec43d",white:"#eeeeee",brightWhite:"#ffffff"},st={foreground:"#405555",background:"#001015",cursor:"#4afcd6",black:"#012026",brightBlack:"#384451",red:"#b2302d",brightRed:"#ff4242",green:"#00a941",brightGreen:"#2aea5e",yellow:"#5e8baa",brightYellow:"#8ed4fd",blue:"#449a86",brightBlue:"#61d5ba",magenta:"#00599d",brightMagenta:"#1298ff",cyan:"#5d7e19",brightCyan:"#98d028",white:"#405555",brightWhite:"#58fbd6"},nt={foreground:"#35b1d2",background:"#222222",cursor:"#87d3c4",black:"#222222",brightBlack:"#ffffff",red:"#e2a8bf",brightRed:"#ffcdd9",green:"#81d778",brightGreen:"#beffa8",yellow:"#c4c9c0",brightYellow:"#d0ccca",blue:"#264b49",brightBlue:"#7ab0d2",magenta:"#a481d3",brightMagenta:"#c5a7d9",cyan:"#15ab9c",brightCyan:"#8cdfe0",white:"#02c5e0",brightWhite:"#e0e0e0"},ot={foreground:"#f7f7f7",background:"#1b1b1b",cursor:"#bbbbbb",black:"#000000",brightBlack:"#7a7a7a",red:"#b84131",brightRed:"#d6837c",green:"#7da900",brightGreen:"#c4f137",yellow:"#c4a500",brightYellow:"#fee14d",blue:"#62a3c4",brightBlue:"#8dcff0",magenta:"#ba8acc",brightMagenta:"#f79aff",cyan:"#207383",brightCyan:"#6ad9cf",white:"#a1a1a1",brightWhite:"#f7f7f7"},at={foreground:"#99a3a2",background:"#242626",cursor:"#d2e0de",black:"#000000",brightBlack:"#666c6c",red:"#a2686a",brightRed:"#dd5c60",green:"#9aa56a",brightGreen:"#bfdf55",yellow:"#a3906a",brightYellow:"#deb360",blue:"#6b8fa3",brightBlue:"#62b1df",magenta:"#6a71a3",brightMagenta:"#606edf",cyan:"#6ba58f",brightCyan:"#64e39c",white:"#99a3a2",brightWhite:"#d2e0de"},ht={foreground:"#d2d8d9",background:"#3d3f41",cursor:"#708284",black:"#25292a",brightBlack:"#25292a",red:"#f24840",brightRed:"#f24840",green:"#629655",brightGreen:"#629655",yellow:"#b68800",brightYellow:"#b68800",blue:"#2075c7",brightBlue:"#2075c7",magenta:"#797fd4",brightMagenta:"#797fd4",cyan:"#15968d",brightCyan:"#15968d",white:"#d2d8d9",brightWhite:"#d2d8d9"},ct={foreground:"#708284",background:"#001e27",cursor:"#708284",black:"#002831",brightBlack:"#001e27",red:"#d11c24",brightRed:"#bd3613",green:"#738a05",brightGreen:"#475b62",yellow:"#a57706",brightYellow:"#536870",blue:"#2176c7",brightBlue:"#708284",magenta:"#c61c6f",brightMagenta:"#5956ba",cyan:"#259286",brightCyan:"#819090",white:"#eae3cb",brightWhite:"#fcf4dc"},lt={foreground:"#708284",background:"#001e27",cursor:"#708284",black:"#002831",brightBlack:"#475b62",red:"#d11c24",brightRed:"#bd3613",green:"#738a05",brightGreen:"#475b62",yellow:"#a57706",brightYellow:"#536870",blue:"#2176c7",brightBlue:"#708284",magenta:"#c61c6f",brightMagenta:"#5956ba",cyan:"#259286",brightCyan:"#819090",white:"#eae3cb",brightWhite:"#fcf4dc"},dt={foreground:"#9cc2c3",background:"#001e27",cursor:"#f34b00",black:"#002831",brightBlack:"#006488",red:"#d11c24",brightRed:"#f5163b",green:"#6cbe6c",brightGreen:"#51ef84",yellow:"#a57706",brightYellow:"#b27e28",blue:"#2176c7",brightBlue:"#178ec8",magenta:"#c61c6f",brightMagenta:"#e24d8e",cyan:"#259286",brightCyan:"#00b39e",white:"#eae3cb",brightWhite:"#fcf4dc"},ft={foreground:"#536870",background:"#fcf4dc",cursor:"#536870",black:"#002831",brightBlack:"#001e27",red:"#d11c24",brightRed:"#bd3613",green:"#738a05",brightGreen:"#475b62",yellow:"#a57706",brightYellow:"#536870",blue:"#2176c7",brightBlue:"#708284",magenta:"#c61c6f",brightMagenta:"#5956ba",cyan:"#259286",brightCyan:"#819090",white:"#eae3cb",brightWhite:"#fcf4dc"},ut={foreground:"#b3b8c3",background:"#20242d",cursor:"#b3b8c3",black:"#000000",brightBlack:"#000000",red:"#b04b57",brightRed:"#b04b57",green:"#87b379",brightGreen:"#87b379",yellow:"#e5c179",brightYellow:"#e5c179",blue:"#7d8fa4",brightBlue:"#7d8fa4",magenta:"#a47996",brightMagenta:"#a47996",cyan:"#85a7a5",brightCyan:"#85a7a5",white:"#b3b8c3",brightWhite:"#ffffff"},gt={foreground:"#bdbaae",background:"#222222",cursor:"#bbbbbb",black:"#15171c",brightBlack:"#555555",red:"#ec5f67",brightRed:"#ff6973",green:"#81a764",brightGreen:"#93d493",yellow:"#fec254",brightYellow:"#ffd256",blue:"#5486c0",brightBlue:"#4d84d1",magenta:"#bf83c1",brightMagenta:"#ff55ff",cyan:"#57c2c1",brightCyan:"#83e9e4",white:"#efece7",brightWhite:"#ffffff"},_t={foreground:"#c9c6bc",background:"#222222",cursor:"#bbbbbb",black:"#15171c",brightBlack:"#555555",red:"#b24a56",brightRed:"#ec5f67",green:"#92b477",brightGreen:"#89e986",yellow:"#c6735a",brightYellow:"#fec254",blue:"#7c8fa5",brightBlue:"#5486c0",magenta:"#a5789e",brightMagenta:"#bf83c1",cyan:"#80cdcb",brightCyan:"#58c2c1",white:"#b3b8c3",brightWhite:"#ffffff"},bt={foreground:"#ecf0c1",background:"#0a1e24",cursor:"#708284",black:"#6e5346",brightBlack:"#684c31",red:"#e35b00",brightRed:"#ff8a3a",green:"#5cab96",brightGreen:"#aecab8",yellow:"#e3cd7b",brightYellow:"#ffc878",blue:"#0f548b",brightBlue:"#67a0ce",magenta:"#e35b00",brightMagenta:"#ff8a3a",cyan:"#06afc7",brightCyan:"#83a7b4",white:"#f0f1ce",brightWhite:"#fefff1"},pt={foreground:"#e3e3e3",background:"#1b1d1e",cursor:"#2c3fff",black:"#1b1d1e",brightBlack:"#505354",red:"#e60813",brightRed:"#ff0325",green:"#e22928",brightGreen:"#ff3338",yellow:"#e24756",brightYellow:"#fe3a35",blue:"#2c3fff",brightBlue:"#1d50ff",magenta:"#2435db",brightMagenta:"#747cff",cyan:"#3256ff",brightCyan:"#6184ff",white:"#fffef6",brightWhite:"#fffff9"},vt={foreground:"#4d4d4c",background:"#ffffff",cursor:"#4d4d4c",black:"#000000",brightBlack:"#000000",red:"#ff4d83",brightRed:"#ff0021",green:"#1f8c3b",brightGreen:"#1fc231",yellow:"#1fc95b",brightYellow:"#d5b807",blue:"#1dd3ee",brightBlue:"#15a9fd",magenta:"#8959a8",brightMagenta:"#8959a8",cyan:"#3e999f",brightCyan:"#3e999f",white:"#ffffff",brightWhite:"#ffffff"},mt={foreground:"#acacab",background:"#1a1a1a",cursor:"#fcfbcc",black:"#050505",brightBlack:"#141414",red:"#e9897c",brightRed:"#f99286",green:"#b6377d",brightGreen:"#c3f786",yellow:"#ecebbe",brightYellow:"#fcfbcc",blue:"#a9cdeb",brightBlue:"#b6defb",magenta:"#75507b",brightMagenta:"#ad7fa8",cyan:"#c9caec",brightCyan:"#d7d9fc",white:"#f2f2f2",brightWhite:"#e2e2e2"},St={foreground:"#c9c9c9",background:"#1a1818",cursor:"#ffffff",black:"#302b2a",brightBlack:"#4d4e48",red:"#a7463d",brightRed:"#aa000c",green:"#587744",brightGreen:"#128c21",yellow:"#9d602a",brightYellow:"#fc6a21",blue:"#485b98",brightBlue:"#7999f7",magenta:"#864651",brightMagenta:"#fd8aa1",cyan:"#9c814f",brightCyan:"#fad484",white:"#c9c9c9",brightWhite:"#ffffff"},yt={foreground:"#ffffff",background:"#000000",cursor:"#dc322f",black:"#000000",brightBlack:"#1b1d21",red:"#dc322f",brightRed:"#dc322f",green:"#56db3a",brightGreen:"#56db3a",yellow:"#ff8400",brightYellow:"#ff8400",blue:"#0084d4",brightBlue:"#0084d4",magenta:"#b729d9",brightMagenta:"#b729d9",cyan:"#ccccff",brightCyan:"#ccccff",white:"#ffffff",brightWhite:"#ffffff"},wt={foreground:"#d0d0d0",background:"#262626",cursor:"#e4c9af",black:"#1c1c1c",brightBlack:"#1c1c1c",red:"#d68686",brightRed:"#d68686",green:"#aed686",brightGreen:"#aed686",yellow:"#d7af87",brightYellow:"#e4c9af",blue:"#86aed6",brightBlue:"#86aed6",magenta:"#d6aed6",brightMagenta:"#d6aed6",cyan:"#8adbb4",brightCyan:"#b1e7dd",white:"#d0d0d0",brightWhite:"#efefef"},Ct={foreground:"#000000",background:"#ffffff",cursor:"#7f7f7f",black:"#000000",brightBlack:"#666666",red:"#990000",brightRed:"#e50000",green:"#00a600",brightGreen:"#00d900",yellow:"#999900",brightYellow:"#e5e500",blue:"#0000b2",brightBlue:"#0000ff",magenta:"#b200b2",brightMagenta:"#e500e5",cyan:"#00a6b2",brightCyan:"#00e5e5",white:"#bfbfbf",brightWhite:"#e5e5e5"},kt={foreground:"#f8f8f8",background:"#1b1d1e",cursor:"#fc971f",black:"#1b1d1e",brightBlack:"#505354",red:"#f92672",brightRed:"#ff5995",green:"#4df840",brightGreen:"#b6e354",yellow:"#f4fd22",brightYellow:"#feed6c",blue:"#2757d6",brightBlue:"#3f78ff",magenta:"#8c54fe",brightMagenta:"#9e6ffe",cyan:"#38c8b5",brightCyan:"#23cfd5",white:"#ccccc6",brightWhite:"#f8f8f2"},Et={foreground:"#b5b5b5",background:"#1b1d1e",cursor:"#16b61b",black:"#1b1d1e",brightBlack:"#505354",red:"#269d1b",brightRed:"#8dff2a",green:"#13ce30",brightGreen:"#48ff77",yellow:"#63e457",brightYellow:"#3afe16",blue:"#2525f5",brightBlue:"#506b95",magenta:"#641f74",brightMagenta:"#72589d",cyan:"#378ca9",brightCyan:"#4085a6",white:"#d9d8d1",brightWhite:"#e5e6e1"},Rt={foreground:"#4d4d4c",background:"#ffffff",cursor:"#4d4d4c",black:"#000000",brightBlack:"#000000",red:"#c82829",brightRed:"#c82829",green:"#718c00",brightGreen:"#718c00",yellow:"#eab700",brightYellow:"#eab700",blue:"#4271ae",brightBlue:"#4271ae",magenta:"#8959a8",brightMagenta:"#8959a8",cyan:"#3e999f",brightCyan:"#3e999f",white:"#ffffff",brightWhite:"#ffffff"},Bt={foreground:"#c5c8c6",background:"#1d1f21",cursor:"#c5c8c6",black:"#000000",brightBlack:"#000000",red:"#cc6666",brightRed:"#cc6666",green:"#b5bd68",brightGreen:"#b5bd68",yellow:"#f0c674",brightYellow:"#f0c674",blue:"#81a2be",brightBlue:"#81a2be",magenta:"#b294bb",brightMagenta:"#b294bb",cyan:"#8abeb7",brightCyan:"#8abeb7",white:"#ffffff",brightWhite:"#ffffff"},Lt={foreground:"#ffffff",background:"#002451",cursor:"#ffffff",black:"#000000",brightBlack:"#000000",red:"#ff9da4",brightRed:"#ff9da4",green:"#d1f1a9",brightGreen:"#d1f1a9",yellow:"#ffeead",brightYellow:"#ffeead",blue:"#bbdaff",brightBlue:"#bbdaff",magenta:"#ebbbff",brightMagenta:"#ebbbff",cyan:"#99ffff",brightCyan:"#99ffff",white:"#ffffff",brightWhite:"#ffffff"},Dt={foreground:"#eaeaea",background:"#000000",cursor:"#eaeaea",black:"#000000",brightBlack:"#000000",red:"#d54e53",brightRed:"#d54e53",green:"#b9ca4a",brightGreen:"#b9ca4a",yellow:"#e7c547",brightYellow:"#e7c547",blue:"#7aa6da",brightBlue:"#7aa6da",magenta:"#c397d8",brightMagenta:"#c397d8",cyan:"#70c0b1",brightCyan:"#70c0b1",white:"#ffffff",brightWhite:"#ffffff"},At={foreground:"#cccccc",background:"#2d2d2d",cursor:"#cccccc",black:"#000000",brightBlack:"#000000",red:"#f2777a",brightRed:"#f2777a",green:"#99cc99",brightGreen:"#99cc99",yellow:"#ffcc66",brightYellow:"#ffcc66",blue:"#6699cc",brightBlue:"#6699cc",magenta:"#cc99cc",brightMagenta:"#cc99cc",cyan:"#66cccc",brightCyan:"#66cccc",white:"#ffffff",brightWhite:"#ffffff"},xt={foreground:"#31d07b",background:"#24364b",cursor:"#d5d5d5",black:"#2c3f58",brightBlack:"#336889",red:"#be2d26",brightRed:"#dd5944",green:"#1a9172",brightGreen:"#31d07b",yellow:"#db8e27",brightYellow:"#e7d84b",blue:"#325d96",brightBlue:"#34a6da",magenta:"#8a5edc",brightMagenta:"#ae6bdc",cyan:"#35a08f",brightCyan:"#42c3ae",white:"#23d183",brightWhite:"#d5d5d5"},Mt={foreground:"#786b53",background:"#191919",cursor:"#fac814",black:"#321300",brightBlack:"#433626",red:"#b2270e",brightRed:"#ed5d20",green:"#44a900",brightGreen:"#55f238",yellow:"#aa820c",brightYellow:"#f2b732",blue:"#58859a",brightBlue:"#85cfed",magenta:"#97363d",brightMagenta:"#e14c5a",cyan:"#b25a1e",brightCyan:"#f07d14",white:"#786b53",brightWhite:"#ffc800"},Tt={foreground:"#eeeeec",background:"#300a24",cursor:"#bbbbbb",black:"#2e3436",brightBlack:"#555753",red:"#cc0000",brightRed:"#ef2929",green:"#4e9a06",brightGreen:"#8ae234",yellow:"#c4a000",brightYellow:"#fce94f",blue:"#3465a4",brightBlue:"#729fcf",magenta:"#75507b",brightMagenta:"#ad7fa8",cyan:"#06989a",brightCyan:"#34e2e2",white:"#d3d7cf",brightWhite:"#eeeeec"},Ot={foreground:"#ffffff",background:"#011116",cursor:"#4afcd6",black:"#022026",brightBlack:"#384451",red:"#b2302d",brightRed:"#ff4242",green:"#00a941",brightGreen:"#2aea5e",yellow:"#59819c",brightYellow:"#8ed4fd",blue:"#459a86",brightBlue:"#61d5ba",magenta:"#00599d",brightMagenta:"#1298ff",cyan:"#5d7e19",brightCyan:"#98d028",white:"#405555",brightWhite:"#58fbd6"},Pt={foreground:"#877a9b",background:"#1b1b23",cursor:"#a063eb",black:"#000000",brightBlack:"#5d3225",red:"#b0425b",brightRed:"#ff6388",green:"#37a415",brightGreen:"#29e620",yellow:"#ad5c42",brightYellow:"#f08161",blue:"#564d9b",brightBlue:"#867aed",magenta:"#6c3ca1",brightMagenta:"#a05eee",cyan:"#808080",brightCyan:"#eaeaea",white:"#87799c",brightWhite:"#bfa3ff"},It={foreground:"#dcdccc",background:"#25234f",cursor:"#ff5555",black:"#25234f",brightBlack:"#709080",red:"#705050",brightRed:"#dca3a3",green:"#60b48a",brightGreen:"#60b48a",yellow:"#dfaf8f",brightYellow:"#f0dfaf",blue:"#5555ff",brightBlue:"#5555ff",magenta:"#f08cc3",brightMagenta:"#ec93d3",cyan:"#8cd0d3",brightCyan:"#93e0e3",white:"#709080",brightWhite:"#ffffff"},Ht={foreground:"#ffffff",background:"#000000",cursor:"#ffffff",black:"#878787",brightBlack:"#555555",red:"#ff6600",brightRed:"#ff0000",green:"#ccff04",brightGreen:"#00ff00",yellow:"#ffcc00",brightYellow:"#ffff00",blue:"#44b4cc",brightBlue:"#0000ff",magenta:"#9933cc",brightMagenta:"#ff00ff",cyan:"#44b4cc",brightCyan:"#00ffff",white:"#f5f5f5",brightWhite:"#e5e5e5"},Wt={foreground:"#708284",background:"#1c1d1f",cursor:"#708284",black:"#56595c",brightBlack:"#45484b",red:"#c94c22",brightRed:"#bd3613",green:"#85981c",brightGreen:"#738a04",yellow:"#b4881d",brightYellow:"#a57705",blue:"#2e8bce",brightBlue:"#2176c7",magenta:"#d13a82",brightMagenta:"#c61c6f",cyan:"#32a198",brightCyan:"#259286",white:"#c9c6bd",brightWhite:"#c9c6bd"},Ft={foreground:"#536870",background:"#fcf4dc",cursor:"#536870",black:"#56595c",brightBlack:"#45484b",red:"#c94c22",brightRed:"#bd3613",green:"#85981c",brightGreen:"#738a04",yellow:"#b4881d",brightYellow:"#a57705",blue:"#2e8bce",brightBlue:"#2176c7",magenta:"#d13a82",brightMagenta:"#c61c6f",cyan:"#32a198",brightCyan:"#259286",white:"#d3d0c9",brightWhite:"#c9c6bd"},Nt={foreground:"#afdab6",background:"#404040",cursor:"#30ff24",black:"#000000",brightBlack:"#fefcfc",red:"#e24346",brightRed:"#e97071",green:"#39b13a",brightGreen:"#9cc090",yellow:"#dae145",brightYellow:"#ddda7a",blue:"#4261c5",brightBlue:"#7b91d6",magenta:"#f920fb",brightMagenta:"#f674ba",cyan:"#2abbd4",brightCyan:"#5ed1e5",white:"#d0b8a3",brightWhite:"#d8c8bb"},Ut={foreground:"#b3b3b3",background:"#000000",cursor:"#53ae71",black:"#000000",brightBlack:"#555555",red:"#cc5555",brightRed:"#ff5555",green:"#55cc55",brightGreen:"#55ff55",yellow:"#cdcd55",brightYellow:"#ffff55",blue:"#5555cc",brightBlue:"#5555ff",magenta:"#cc55cc",brightMagenta:"#ff55ff",cyan:"#7acaca",brightCyan:"#55ffff",white:"#cccccc",brightWhite:"#ffffff"},jt={foreground:"#dafaff",background:"#1f1726",cursor:"#dd00ff",black:"#000507",brightBlack:"#009cc9",red:"#d94085",brightRed:"#da6bac",green:"#2ab250",brightGreen:"#f4dca5",yellow:"#ffd16f",brightYellow:"#eac066",blue:"#883cdc",brightBlue:"#308cba",magenta:"#ececec",brightMagenta:"#ae636b",cyan:"#c1b8b7",brightCyan:"#ff919d",white:"#fff8de",brightWhite:"#e4838d"},Gt={foreground:"#dedacf",background:"#171717",cursor:"#bbbbbb",black:"#000000",brightBlack:"#313131",red:"#ff615a",brightRed:"#f58c80",green:"#b1e969",brightGreen:"#ddf88f",yellow:"#ebd99c",brightYellow:"#eee5b2",blue:"#5da9f6",brightBlue:"#a5c7ff",magenta:"#e86aff",brightMagenta:"#ddaaff",cyan:"#82fff7",brightCyan:"#b7fff9",white:"#dedacf",brightWhite:"#ffffff"},$t={foreground:"#999993",background:"#101010",cursor:"#9e9ecb",black:"#333333",brightBlack:"#3d3d3d",red:"#8c4665",brightRed:"#bf4d80",green:"#287373",brightGreen:"#53a6a6",yellow:"#7c7c99",brightYellow:"#9e9ecb",blue:"#395573",brightBlue:"#477ab3",magenta:"#5e468c",brightMagenta:"#7e62b3",cyan:"#31658c",brightCyan:"#6096bf",white:"#899ca1",brightWhite:"#c0c0c0"},zt={foreground:"#dcdccc",background:"#3f3f3f",cursor:"#73635a",black:"#4d4d4d",brightBlack:"#709080",red:"#705050",brightRed:"#dca3a3",green:"#60b48a",brightGreen:"#c3bf9f",yellow:"#f0dfaf",brightYellow:"#e0cf9f",blue:"#506070",brightBlue:"#94bff3",magenta:"#dc8cc3",brightMagenta:"#ec93d3",cyan:"#8cd0d3",brightCyan:"#93e0e3",white:"#dcdccc",brightWhite:"#ffffff"},Yt={foreground:"#e6e1cf",background:"#0f1419",cursor:"#f29718",black:"#000000",brightBlack:"#323232",red:"#ff3333",brightRed:"#ff6565",green:"#b8cc52",brightGreen:"#eafe84",yellow:"#e7c547",brightYellow:"#fff779",blue:"#36a3d9",brightBlue:"#68d5ff",magenta:"#f07178",brightMagenta:"#ffa3aa",cyan:"#95e6cb",brightCyan:"#c7fffd",white:"#ffffff",brightWhite:"#ffffff"},qt={foreground:"#cdcdcd",background:"#000000",cursor:"#d0d0d0",black:"#000000",brightBlack:"#535353",red:"#d11600",brightRed:"#f4152c",green:"#37c32c",brightGreen:"#01ea10",yellow:"#e3c421",brightYellow:"#ffee1d",blue:"#5c6bfd",brightBlue:"#8cb0f8",magenta:"#dd5be5",brightMagenta:"#e056f5",cyan:"#6eb4f2",brightCyan:"#67ecff",white:"#e0e0e0",brightWhite:"#f4f4f4"},Kt={foreground:"#ffffff",background:"#323232",cursor:"#d6d6d6",black:"#323232",brightBlack:"#535353",red:"#d25252",brightRed:"#f07070",green:"#7fe173",brightGreen:"#9dff91",yellow:"#ffc66d",brightYellow:"#ffe48b",blue:"#4099ff",brightBlue:"#5eb7f7",magenta:"#f680ff",brightMagenta:"#ff9dff",cyan:"#bed6ff",brightCyan:"#dcf4ff",white:"#eeeeec",brightWhite:"#ffffff"},Vt={Night_3024:t,AdventureTime:i,Afterglow:r,AlienBlood:s,Argonaut:n,Arthur:o,AtelierSulphurpool:a,Atom:h,Batman:c,Belafonte_Night:l,BirdsOfParadise:d,Blazer:f,Borland:u,Bright_Lights:g,Broadcast:_,Brogrammer:b,C64:p,Chalk:v,Chalkboard:m,Ciapre:S,Cobalt2:y,Cobalt_Neon:w,CrayonPonyFish:C,Dark_Pastel:k,Darkside:E,Desert:R,DimmedMonokai:B,DotGov:L,Dracula:D,Duotone_Dark:A,ENCOM:x,Earthsong:M,Elemental:T,Elementary:O,Espresso:P,Espresso_Libre:I,Fideloper:H,FirefoxDev:W,Firewatch:F,FishTank:N,Flat:U,Flatland:j,Floraverse:G,ForestBlue:$,FrontEndDelight:z,FunForrest:Y,Galaxy:q,Github:K,Glacier:V,Grape:X,Grass:J,Gruvbox_Dark:Z,Hardcore:Q,Harper:ee,Highway:te,Hipster_Green:ie,Homebrew:re,Hurtado:se,Hybrid:ne,IC_Green_PPL:oe,IC_Orange_PPL:ae,IR_Black:he,Jackie_Brown:ce,Japanesque:le,Jellybeans:de,JetBrains_Darcula:fe,Kibble:ue,Later_This_Evening:ge,Lavandula:_e,LiquidCarbon:be,LiquidCarbonTransparent:pe,LiquidCarbonTransparentInverse:ve,Man_Page:me,Material:Se,MaterialDark:ye,Mathias:we,Medallion:Ce,Misterioso:ke,Molokai:Ee,MonaLisa:Re,Monokai_Soda:Be,Monokai_Vivid:Le,N0tch2k:De,Neopolitan:Ae,Neutron:xe,NightLion_v1:Me,NightLion_v2:Te,Novel:Oe,Obsidian:Pe,Ocean:Ie,OceanicMaterial:He,Ollie:We,OneHalfDark:Fe,OneHalfLight:Ne,Pandora:Ue,Paraiso_Dark:je,Parasio_Dark:Ge,PaulMillr:$e,PencilDark:ze,PencilLight:Ye,Piatto_Light:qe,Pnevma:Ke,Pro:Ve,Red_Alert:Xe,Red_Sands:Je,Rippedcasts:Ze,Royal:Qe,Ryuuko:et,SeaShells:tt,Seafoam_Pastel:it,Seti:rt,Shaman:st,Slate:nt,Smyck:ot,SoftServer:at,Solarized_Darcula:ht,Solarized_Dark:ct,Solarized_Dark_Patched:lt,Solarized_Dark_Higher_Contrast:dt,Solarized_Light:ft,SpaceGray:ut,SpaceGray_Eighties:gt,SpaceGray_Eighties_Dull:_t,Spacedust:bt,Spiderman:pt,Spring:vt,Square:mt,Sundried:St,Symfonic:yt,Teerb:wt,Terminal_Basic:Ct,Thayer_Bright:kt,The_Hulk:Et,Tomorrow:Rt,Tomorrow_Night:Bt,Tomorrow_Night_Blue:Lt,Tomorrow_Night_Bright:Dt,Tomorrow_Night_Eighties:At,ToyChest:xt,Treehouse:Mt,Ubuntu:Tt,UnderTheSea:Ot,Urple:Pt,Vaughn:It,VibrantInk:Ht,Violet_Dark:Wt,Violet_Light:Ft,WarmNeon:Nt,Wez:Ut,WildCherry:jt,Wombat:Gt,Wryan:$t,Zenburn:zt,ayu:Yt,deep:qt,idleToes:Kt};e.AdventureTime=i,e.Afterglow=r,e.AlienBlood=s,e.Argonaut=n,e.Arthur=o,e.AtelierSulphurpool=a,e.Atom=h,e.Batman=c,e.Belafonte_Night=l,e.BirdsOfParadise=d,e.Blazer=f,e.Borland=u,e.Bright_Lights=g,e.Broadcast=_,e.Brogrammer=b,e.C64=p,e.Chalk=v,e.Chalkboard=m,e.Ciapre=S,e.Cobalt2=y,e.Cobalt_Neon=w,e.CrayonPonyFish=C,e.Dark_Pastel=k,e.Darkside=E,e.Desert=R,e.DimmedMonokai=B,e.DotGov=L,e.Dracula=D,e.Duotone_Dark=A,e.ENCOM=x,e.Earthsong=M,e.Elemental=T,e.Elementary=O,e.Espresso=P,e.Espresso_Libre=I,e.Fideloper=H,e.FirefoxDev=W,e.Firewatch=F,e.FishTank=N,e.Flat=U,e.Flatland=j,e.Floraverse=G,e.ForestBlue=$,e.FrontEndDelight=z,e.FunForrest=Y,e.Galaxy=q,e.Github=K,e.Glacier=V,e.Grape=X,e.Grass=J,e.Gruvbox_Dark=Z,e.Hardcore=Q,e.Harper=ee,e.Highway=te,e.Hipster_Green=ie,e.Homebrew=re,e.Hurtado=se,e.Hybrid=ne,e.IC_Green_PPL=oe,e.IC_Orange_PPL=ae,e.IR_Black=he,e.Jackie_Brown=ce,e.Japanesque=le,e.Jellybeans=de,e.JetBrains_Darcula=fe,e.Kibble=ue,e.Later_This_Evening=ge,e.Lavandula=_e,e.LiquidCarbon=be,e.LiquidCarbonTransparent=pe,e.LiquidCarbonTransparentInverse=ve,e.Man_Page=me,e.Material=Se,e.MaterialDark=ye,e.Mathias=we,e.Medallion=Ce,e.Misterioso=ke,e.Molokai=Ee,e.MonaLisa=Re,e.Monokai_Soda=Be,e.Monokai_Vivid=Le,e.N0tch2k=De,e.Neopolitan=Ae,e.Neutron=xe,e.NightLion_v1=Me,e.NightLion_v2=Te,e.Night_3024=t,e.Novel=Oe,e.Obsidian=Pe,e.Ocean=Ie,e.OceanicMaterial=He,e.Ollie=We,e.OneHalfDark=Fe,e.OneHalfLight=Ne,e.Pandora=Ue,e.Paraiso_Dark=je,e.Parasio_Dark=Ge,e.PaulMillr=$e,e.PencilDark=ze,e.PencilLight=Ye,e.Piatto_Light=qe,e.Pnevma=Ke,e.Pro=Ve,e.Red_Alert=Xe,e.Red_Sands=Je,e.Rippedcasts=Ze,e.Royal=Qe,e.Ryuuko=et,e.SeaShells=tt,e.Seafoam_Pastel=it,e.Seti=rt,e.Shaman=st,e.Slate=nt,e.Smyck=ot,e.SoftServer=at,e.Solarized_Darcula=ht,e.Solarized_Dark=ct,e.Solarized_Dark_Higher_Contrast=dt,e.Solarized_Dark_Patched=lt,e.Solarized_Light=ft,e.SpaceGray=ut,e.SpaceGray_Eighties=gt,e.SpaceGray_Eighties_Dull=_t,e.Spacedust=bt,e.Spiderman=pt,e.Spring=vt,e.Square=mt,e.Sundried=St,e.Symfonic=yt,e.Teerb=wt,e.Terminal_Basic=Ct,e.Thayer_Bright=kt,e.The_Hulk=Et,e.Tomorrow=Rt,e.Tomorrow_Night=Bt,e.Tomorrow_Night_Blue=Lt,e.Tomorrow_Night_Bright=Dt,e.Tomorrow_Night_Eighties=At,e.ToyChest=xt,e.Treehouse=Mt,e.Ubuntu=Tt,e.UnderTheSea=Ot,e.Urple=Pt,e.Vaughn=It,e.VibrantInk=Ht,e.Violet_Dark=Wt,e.Violet_Light=Ft,e.WarmNeon=Nt,e.Wez=Ut,e.WildCherry=jt,e.Wombat=Gt,e.Wryan=$t,e.Zenburn=zt,e.ayu=Yt,e.deep=qt,e.default=Vt,e.idleToes=Kt,Object.defineProperty(e,"__esModule",{value:!0})}(t)},58788(e){var t;self,t=()=>(()=>{"use strict";var e={4567:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const n=i(9042),o=i(6114),a=i(9924),h=i(844),c=i(5596),l=i(4725),d=i(3656);let f=t.AccessibilityManager=class extends h.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let e=0;ethis._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new a.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(e=>this._handleResize(e.rows))),this.register(this._terminal.onRender(e=>this._refreshRows(e.start,e.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(e=>this._handleChar(e))),this.register(this._terminal.onLineFeed(()=>this._handleChar("\n"))),this.register(this._terminal.onA11yTab(e=>this._handleTab(e))),this.register(this._terminal.onKey(e=>this._handleKey(e.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new c.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,d.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,h.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=n.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.remove()}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const i=this._terminal.buffer,r=i.lines.length.toString();for(let s=e;s<=t;s++){const e=i.translateBufferLineToString(i.ydisp+s,!0),t=(i.ydisp+s+1).toString(),n=this._rowElements[s];n&&(0===e.length?n.innerText=" ":n.textContent=e,n.setAttribute("aria-posinset",t),n.setAttribute("aria-setsize",r))}this._announceCharacters()}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){const i=e.target,r=this._rowElements[0===t?1:this._rowElements.length-2];if(i.getAttribute("aria-posinset")===(0===t?"1":`${this._terminal.buffer.lines.length}`))return;if(e.relatedTarget!==r)return;let s,n;if(0===t?(s=i,n=this._rowElements.pop(),this._rowContainer.removeChild(n)):(s=this._rowElements.shift(),n=i,this._rowContainer.removeChild(s)),s.removeEventListener("focus",this._topBoundaryFocusListener),n.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){const e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement("afterbegin",e)}else{const e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let e=this._rowContainer.children.length;ee;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{function i(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"[200~"+e+"[201~":e}function s(e,t,s,n){e=r(e=i(e),s.decPrivateModes.bracketedPasteMode&&!0!==n.rawOptions.ignoreBracketedPasteMode),s.triggerDataEvent(e,!0),t.value=""}function n(e,t,i){const r=i.getBoundingClientRect(),s=e.clientX-r.left-10,n=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${s}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=r,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,r){e.stopPropagation(),e.clipboardData&&s(e.clipboardData.getData("text/plain"),t,i,r)},t.paste=s,t.moveTextAreaUnderMouseCursor=n,t.rightClickHandler=function(e,t,i,r,s){n(e,t,i),s&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const r=i(1505);t.ColorContrastCache=class{constructor(){this._color=new r.TwoKeyMap,this._css=new r.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,r){e.addEventListener(t,i,r);let s=!1;return{dispose:()=>{s||(s=!0,e.removeEventListener(t,i,r))}}}},6465:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;const n=i(3656),o=i(8460),a=i(844),h=i(2585);let c=t.Linkifier2=class extends a.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new o.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,a.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const t=this._linkProviders.indexOf(e);-1!==t&&this._linkProviders.splice(t,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;const i=e.composedPath();for(let e=0;e{null==e||e.forEach(e=>{e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let s=!1;for(const[i,n]of this._linkProviders.entries())t?(null===(r=this._activeProviderReplies)||void 0===r?void 0:r.get(i))&&(s=this._checkLinkProviderResult(i,e,s)):n.provideLinks(e.y,t=>{var r,n;if(this._isMouseOut)return;const o=null==t?void 0:t.map(e=>({link:e}));null===(r=this._activeProviderReplies)||void 0===r||r.set(i,o),s=this._checkLinkProviderResult(i,e,s),(null===(n=this._activeProviderReplies)||void 0===n?void 0:n.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){const i=new Set;for(let r=0;re?this._bufferService.cols:r.link.range.end.x;for(let e=n;e<=o;e++){if(i.has(e)){s.splice(t--,1);break}i.add(e)}}}}_checkLinkProviderResult(e,t,i){var r;if(!this._activeProviderReplies)return i;const s=this._activeProviderReplies.get(e);let n=!1;for(let t=0;tthis._linkAtPosition(e.link,t));e&&(i=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let e=0;ethis._linkAtPosition(e.link,t));if(s){i=!0,this._handleNewLink(s);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.pointerCursor},set:e=>{var t,i;(null===(t=this._currentLink)||void 0===t?void 0:t.state)&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&(null===(i=this._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.underline},set:t=>{var i,r,s;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(null===(s=null===(r=this._currentLink)||void 0===r?void 0:r.state)||void 0===s?void 0:s.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e=>{if(!this._currentLink)return;const t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(t,i),this._lastMouseEvent&&this._element)){const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}})))}_linkHover(e,t,i){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){const i=e.range,r=this._bufferService.buffer.ydisp,s=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-r-1,i.end.x,i.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(s)}_linkLeave(e,t,i){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,r=e.range.end.y*this._bufferService.cols+e.range.end.x,s=t.y*this._bufferService.cols+t.x;return i<=s&&s<=r}_positionFromMouseEvent(e,t,i){const r=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,r,s){return{x1:e,y1:t,x2:i,y2:r,cols:this._bufferService.cols,fg:s}}};t.Linkifier2=c=r([s(0,h.IBufferService)],c)},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const n=i(511),o=i(2585);let a=t.OscLinkProvider=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){var i;const r=this._bufferService.buffer.lines.get(e-1);if(!r)return void t(void 0);const s=[],o=this._optionsService.rawOptions.linkHandler,a=new n.CellData,c=r.getTrimmedLength();let l=-1,d=-1,f=!1;for(let t=0;to?o.activate(e,t,i):h(0,t),hover:(e,t)=>{var r;return null===(r=null==o?void 0:o.hover)||void 0===r?void 0:r.call(o,e,t,i)},leave:(e,t)=>{var r;return null===(r=null==o?void 0:o.leave)||void 0===r?void 0:r.call(o,e,t,i)}})}f=!1,a.hasExtendedAttrs()&&a.extended.urlId?(d=t,l=a.extended.urlId):(d=-1,l=-1)}}t(s)}};function h(e,t){if(confirm(`Do you want to navigate to ${t}?\n\nWARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch(e){}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}t.OscLinkProvider=a=r([s(0,o.IBufferService),s(1,o.IOptionsService),s(2,o.IOscLinkService)],a)},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;const r=i(844);class s extends r.Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,r.toDisposable)(()=>{this.clearListener()}))}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=s},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const r=i(3614),s=i(3656),n=i(6465),o=i(9042),a=i(3730),h=i(1680),c=i(3107),l=i(5744),d=i(2950),f=i(1296),u=i(428),g=i(4269),_=i(5114),b=i(8934),p=i(3230),v=i(9312),m=i(4725),S=i(6731),y=i(8055),w=i(8969),C=i(8460),k=i(844),E=i(6114),R=i(8437),B=i(2584),L=i(7399),D=i(5941),A=i(9074),x=i(2585),M=i(5435),T=i(4567),O="undefined"!=typeof window?window.document:null;class P extends w.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(e={}){super(e),this.browser=E,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new k.MutableDisposable),this._onCursorMove=this.register(new C.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new C.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new C.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new C.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new C.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new C.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new C.EventEmitter),this._onBlur=this.register(new C.EventEmitter),this._onA11yCharEmitter=this.register(new C.EventEmitter),this._onA11yTabEmitter=this.register(new C.EventEmitter),this._onWillOpen=this.register(new C.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(n.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(a.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(A.DecorationService),this._instantiationService.setService(x.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((e,t)=>this.refresh(e,t))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(e=>this._reportWindowsOptions(e))),this.register(this._inputHandler.onColor(e=>this._handleColorEvent(e))),this.register((0,C.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,C.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,C.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,C.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(e=>this._afterResize(e.cols,e.rows))),this.register((0,k.toDisposable)(()=>{var e,t;this._customKeyEventHandler=void 0,null===(t=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(this.element)}))}_handleColorEvent(e){if(this._themeService)for(const t of e){let e,i="";switch(t.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+t.index}switch(t.type){case 0:const r=y.color.toColorRGB("ansi"===e?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${B.C0.ESC}]${i};${(0,D.toRgbString)(r)}${B.C1_ESCAPED.ST}`);break;case 1:if("ansi"===e)this._themeService.modifyColors(e=>e.ansi[t.index]=y.rgba.toColor(...t.color));else{const i=e;this._themeService.modifyColors(e=>e[i]=y.rgba.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(T.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(B.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(B.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;const i=Math.min(this.buffer.x,this.cols-1),r=this._renderService.dimensions.css.cell.height,s=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*s,o=this.buffer.y*this._renderService.dimensions.css.cell.height,a=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=o+"px",this.textarea.style.width=n+"px",this.textarea.style.height=r+"px",this.textarea.style.lineHeight=r+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,s.addDisposableDomListener)(this.element,"copy",e=>{this.hasSelection()&&(0,r.copyHandler)(e,this._selectionService)}));const e=e=>(0,r.handlePasteEvent)(e,this.textarea,this.coreService,this.optionsService);this.register((0,s.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,s.addDisposableDomListener)(this.element,"paste",e)),E.isFirefox?this.register((0,s.addDisposableDomListener)(this.element,"mousedown",e=>{2===e.button&&(0,r.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,s.addDisposableDomListener)(this.element,"contextmenu",e=>{(0,r.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),E.isLinux&&this.register((0,s.addDisposableDomListener)(this.element,"auxclick",e=>{1===e.button&&(0,r.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,s.addDisposableDomListener)(this.textarea,"keyup",e=>this._keyUp(e),!0)),this.register((0,s.addDisposableDomListener)(this.textarea,"keydown",e=>this._keyDown(e),!0)),this.register((0,s.addDisposableDomListener)(this.textarea,"keypress",e=>this._keyPress(e),!0)),this.register((0,s.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,s.addDisposableDomListener)(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this.register((0,s.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,s.addDisposableDomListener)(this.textarea,"input",e=>this._inputEvent(e),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){var t;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);const i=O.createDocumentFragment();this._viewportElement=O.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=O.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=O.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=O.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this.textarea=O.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.promptLabel),E.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(_.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(m.ICoreBrowserService,this._coreBrowserService),this.register((0,s.addDisposableDomListener)(this.textarea,"focus",e=>this._handleTextAreaFocus(e))),this.register((0,s.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(u.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(m.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(S.ThemeService),this._instantiationService.setService(m.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(g.CharacterJoinerService),this._instantiationService.setService(m.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(p.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(m.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(e=>this._onRender.fire(e))),this.onResize(e=>this._renderService.resize(e.cols,e.rows)),this._compositionView=O.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(d.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(i);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(b.MouseService),this._instantiationService.setService(m.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(v.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(m.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,s.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(c.BufferDecorationRenderer,this.screenElement)),this.register((0,s.addDisposableDomListener)(this.element,"mousedown",e=>this._selectionService.handleMouseDown(e))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(T.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",e=>this._handleScreenReaderModeOptionChange(e))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(l.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(l.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(f.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const e=this,t=this.element;function i(t){const i=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!i)return!1;let r,s;switch(t.overrideType||t.type){case"mousemove":s=32,void 0===t.buttons?(r=3,void 0!==t.button&&(r=t.button<3?t.button:3)):r=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":s=0,r=t.button<3?t.button:3;break;case"mousedown":s=1,r=t.button<3?t.button:3;break;case"wheel":if(0===e.viewport.getLinesScrolled(t))return!1;s=t.deltaY<0?0:1,r=4;break;default:return!1}return!(void 0===s||void 0===r||r>4)&&e.coreMouseService.triggerMouseEvent({col:i.col,row:i.row,x:i.x,y:i.y,button:r,action:s,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}const r={mouseup:null,wheel:null,mousedrag:null,mousemove:null},n={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.removeEventListener("mousemove",r.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange(e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?r.mousemove||(t.addEventListener("mousemove",n.mousemove),r.mousemove=n.mousemove):(t.removeEventListener("mousemove",r.mousemove),r.mousemove=null),16&e?r.wheel||(t.addEventListener("wheel",n.wheel,{passive:!1}),r.wheel=n.wheel):(t.removeEventListener("wheel",r.wheel),r.wheel=null),2&e?r.mouseup||(t.addEventListener("mouseup",n.mouseup),r.mouseup=n.mouseup):(this._document.removeEventListener("mouseup",r.mouseup),t.removeEventListener("mouseup",r.mouseup),r.mouseup=null),4&e?r.mousedrag||(r.mousedrag=n.mousedrag):(this._document.removeEventListener("mousemove",r.mousedrag),r.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,s.addDisposableDomListener)(t,"mousedown",e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),r.mouseup&&this._document.addEventListener("mouseup",r.mouseup),r.mousedrag&&this._document.addEventListener("mousemove",r.mousedrag),this.cancel(e)})),this.register((0,s.addDisposableDomListener)(t,"wheel",e=>{if(!r.wheel){if(!this.buffer.hasScrollback){const t=this.viewport.getLinesScrolled(e);if(0===t)return;const i=B.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let r="";for(let e=0;e{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(e),this.cancel(e)},{passive:!0})),this.register((0,s.addDisposableDomListener)(t,"touchmove",e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(e)?void 0:this.cancel(e)},{passive:!1}))}refresh(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)}updateCursorStyle(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){var r;1===i?(super.scrollLines(e,t,i),this.refresh(0,this.rows-1)):null===(r=this.viewport)||void 0===r||r.scrollLines(e)}paste(e){(0,r.paste)(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}selectAll(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}selectLines(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);const i=(0,L.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===i.type||2===i.type){const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(i.key!==B.C0.ETX&&i.key!==B.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(e,t){const i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i,r;null===(i=this._charSizeService)||void 0===i||i.measure(),null===(r=this.viewport)||void 0===r||r.syncScrollArea(!0)}clear(){var e;if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;const r=Date.now();if(r-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=r,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=r-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},t)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}},1680:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const n=i(3656),o=i(4725),a=i(8460),h=i(844),c=i(2585);let l=t.Viewport=class extends h.Disposable{constructor(e,t,i,r,s,o,h,c){super(),this._viewportElement=e,this._scrollArea=t,this._bufferService=i,this._optionsService=r,this._charSizeService=s,this._renderService=o,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new a.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(e=>this._renderDimensions=e)),this._handleThemeChange(c.colors),this.register(c.onChangeColors(e=>this._handleThemeChange(e))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}_handleScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){const i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&i0&&(r=e),s=""}}return{bufferElements:n,cursorElement:r}}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){const i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(e){this._lastTouchY=e.touches[0].pageY}handleTouchMove(e){const t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}};t.Viewport=l=r([s(2,c.IBufferService),s(3,c.IOptionsService),s(4,o.ICharSizeService),s(5,o.IRenderService),s(6,o.ICoreBrowserService),s(7,o.IThemeService)],l)},3107:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const n=i(3656),o=i(4725),a=i(844),h=i(2585);let c=t.BufferDecorationRenderer=class extends a.Disposable{constructor(e,t,i,r){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=r,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(e=>this._removeDecoration(e))),this.register((0,a.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var t,i;const r=document.createElement("div");r.classList.add("xterm-decoration"),r.classList.toggle("xterm-decoration-top-layer","top"===(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.layer)),r.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,r.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",r.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",r.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const s=null!==(i=e.options.x)&&void 0!==i?i:0;return s&&s>this._bufferService.cols&&(r.style.display="none"),this._refreshXPosition(e,r),r}_refreshStyle(e){const t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i),e.onDispose(()=>{this._decorationElements.delete(e),i.remove()})),i.style.top=t*this._renderService.dimensions.css.cell.height+"px",i.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){var i;if(!t)return;const r=null!==(i=e.options.x)&&void 0!==i?i:0;"right"===(e.options.anchor||"left")?t.style.right=r?r*this._renderService.dimensions.css.cell.width+"px":"":t.style.left=r?r*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}};t.BufferDecorationRenderer=c=r([s(1,h.IBufferService),s(2,h.IDecorationService),s(3,o.IRenderService)],c)},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const n=i(5871),o=i(3656),a=i(4725),h=i(844),c=i(2585),l={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0};let u=t.OverviewRulerRenderer=class extends h.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(e,t,i,r,s,o,a){var c;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=r,this._renderService=s,this._optionsService=o,this._coreBrowseService=a,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(c=this._viewportElement.parentElement)||void 0===c||c.insertBefore(this._canvas,this._viewportElement);const l=this._canvas.getContext("2d");if(!l)throw new Error("Ctx cannot be null");this._ctx=l,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,h.toDisposable)(()=>{var e;null===(e=this._canvas)||void 0===e||e.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,o.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);d.full=this._canvas.width,d.left=e,d.center=t,d.right=e,this._refreshDrawHeightConstants(),f.full=0,f.left=0,f.center=d.left,f.right=d.left+d.center}_refreshDrawHeightConstants(){l.full=Math.round(2*this._coreBrowseService.dpr);const e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);l.left=t,l.center=t,l.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const e of this._decorationService.decorations)this._colorZoneStore.addDecoration(e);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const t of e)"full"===t.position&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(f[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-l[e.position||"full"]/2),d[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+l[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};t.OverviewRulerRenderer=u=r([s(2,c.IBufferService),s(3,c.IDecorationService),s(4,a.IRenderService),s(5,c.IOptionsService),s(6,a.ICoreBrowserService)],u)},2950:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const n=i(4725),o=i(2585),a=i(2584);let h=t.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(e,t,i,r,s,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=r,this._coreService=s,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let t;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}},0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.lengththis.updateCompositionElements(!0),0)}}};t.CompositionHelper=h=r([s(2,o.IBufferService),s(3,o.IOptionsService),s(4,o.ICoreService),s(5,n.IRenderService)],h)},9806:(e,t)=>{function i(e,t,i){const r=i.getBoundingClientRect(),s=e.getComputedStyle(i),n=parseInt(s.getPropertyValue("padding-left")),o=parseInt(s.getPropertyValue("padding-top"));return[t.clientX-r.left-n,t.clientY-r.top-o]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,r,s,n,o,a,h,c){if(!o)return;const l=i(e,t,r);return l?(l[0]=Math.ceil((l[0]+(c?a/2:0))/a),l[1]=Math.ceil(l[1]/h),l[0]=Math.min(Math.max(l[0],1),s+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),n),l):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const r=i(2584);function s(e,t,i,r){const s=e-n(e,i),a=t-n(t,i),l=Math.abs(s-a)-function(e,t,i){let r=0;const s=e-n(e,i),a=t-n(t,i);for(let n=0;n=0&&et?"A":"B"}function a(e,t,i,r,s,n){let o=e,a=t,h="";for(;o!==i||a!==r;)o+=s?1:-1,s&&o>n.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!s&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),o=n.cols-1,e=o,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function h(e,t){const i=t?"O":"[";return r.C0.ESC+i+e}function c(e,t){e=Math.floor(e);let i="";for(let r=0;r0?r-n(r,o):t;const f=r,u=function(e,t,i,r,o,a){let h;return h=s(i,r,o,a).length>0?r-n(r,o):t,e=i&&he?"D":"C",c(Math.abs(o-e),h(d,r));d=l>t?"D":"C";const f=Math.abs(l-t);return c(function(e,t){return t.cols-e}(l>t?e:o,i)+(f-1)*i.cols+1+((l>t?o:e)-1),h(d,r))}},1296:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const n=i(3787),o=i(2550),a=i(2223),h=i(6171),c=i(4725),l=i(8055),d=i(8460),f=i(844),u=i(2585),g="xterm-dom-renderer-owner-",_="xterm-rows",b="xterm-fg-",p="xterm-bg-",v="xterm-focus",m="xterm-selection";let S=1,y=t.DomRenderer=class extends f.Disposable{constructor(e,t,i,r,s,a,c,l,u,b){super(),this._element=e,this._screenElement=t,this._viewportElement=i,this._linkifier2=r,this._charSizeService=a,this._optionsService=c,this._bufferService=l,this._coreBrowserService=u,this._themeService=b,this._terminalClass=S++,this._rowElements=[],this.onRequestRedraw=this.register(new d.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(_),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(m),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,h.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(e=>this._injectCss(e))),this._injectCss(this._themeService.colors),this._rowFactory=s.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(g+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(e=>this._handleLinkHover(e))),this.register(this._linkifier2.onHideLinkUnderline(e=>this._handleLinkLeave(e))),this.register((0,f.toDisposable)(()=>{this._element.classList.remove(g+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new o.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const e of this._rowElements)e.style.width=`${this.dimensions.css.canvas.width}px`,e.style.height=`${this.dimensions.css.cell.height}px`,e.style.lineHeight=`${this.dimensions.css.cell.height}px`,e.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const t=`${this._terminalSelector} .${_} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${_} { color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${_} .xterm-dim { color: ${l.color.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css}; } 50% { background-color: inherit;`+` color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${_}.${v} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${_}.${v} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-block {`+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css};}`+`${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-outline {`+` outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}`+`${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-bar {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}`+`${this._terminalSelector} .${_} .xterm-cursor.xterm-cursor-underline {`+` border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${m} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${m} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${m} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(const[i,r]of e.ansi.entries())t+=`${this._terminalSelector} .${b}${i} { color: ${r.css}; }${this._terminalSelector} .${b}${i}.xterm-dim { color: ${l.color.multiplyOpacity(r,.5).css}; }${this._terminalSelector} .${p}${i} { background-color: ${r.css}; }`;t+=`${this._terminalSelector} .${b}${a.INVERTED_DEFAULT_COLOR} { color: ${l.color.opaque(e.background).css}; }${this._terminalSelector} .${b}${a.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${l.color.multiplyOpacity(l.color.opaque(e.background),.5).css}; }${this._terminalSelector} .${p}${a.INVERTED_DEFAULT_COLOR} { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){const e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let e=this._rowElements.length;e<=t;e++){const e=document.createElement("div");this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(v)}handleFocus(){this._rowContainer.classList.add(v),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,i){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t)return;const r=e[1]-this._bufferService.buffer.ydisp,s=t[1]-this._bufferService.buffer.ydisp,n=Math.max(r,0),o=Math.min(s,this._bufferService.rows-1);if(n>=this._bufferService.rows||o<0)return;const a=document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,i?t[0]:e[0],i?e[0]:t[0],o-n+1))}else{const i=r===n?e[0]:0,h=n===s?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(n,i,h));const c=o-n-1;if(a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,c)),n!==o){const e=s===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,i,r=1){const s=document.createElement("div");return s.style.height=r*this.dimensions.css.cell.height+"px",s.style.top=e*this.dimensions.css.cell.height+"px",s.style.left=t*this.dimensions.css.cell.width+"px",s.style.width=this.dimensions.css.cell.width*(i-t)+"px",s}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const e of this._rowElements)e.replaceChildren()}renderRows(e,t){const i=this._bufferService.buffer,r=i.ybase+i.y,s=Math.min(i.x,this._bufferService.cols-1),n=this._optionsService.rawOptions.cursorBlink,o=this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let h=e;h<=t;h++){const e=h+i.ydisp,t=this._rowElements[h],c=i.lines.get(e);if(!t||!c)break;t.replaceChildren(...this._rowFactory.createRow(c,e,e===r,o,a,s,n,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${g}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,r,s,n){i<0&&(e=0),r<0&&(t=0);const o=this._bufferService.rows-1;i=Math.max(Math.min(i,o),0),r=Math.max(Math.min(r,o),0),s=Math.min(s,this._bufferService.cols);const a=this._bufferService.buffer,h=a.ybase+a.y,c=Math.min(a.x,s-1),l=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,f=this._optionsService.rawOptions.cursorInactiveStyle;for(let o=i;o<=r;++o){const u=o+a.ydisp,g=this._rowElements[o],_=a.lines.get(u);if(!g||!_)break;g.replaceChildren(...this._rowFactory.createRow(_,u,u===h,d,f,c,l,this.dimensions.css.cell.width,this._widthCache,n?o===i?e:0:-1,n?(o===r?t:s)-1:-1))}}};t.DomRenderer=y=r([s(4,u.IInstantiationService),s(5,c.ICharSizeService),s(6,u.IOptionsService),s(7,u.IBufferService),s(8,c.ICoreBrowserService),s(9,c.IThemeService)],y)},3787:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=void 0;const n=i(2223),o=i(643),a=i(511),h=i(2585),c=i(8055),l=i(4725),d=i(4269),f=i(6171),u=i(3734);let g=t.DomRendererRowFactory=class{constructor(e,t,i,r,s,n,o){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=r,this._coreService=s,this._decorationService=n,this._themeService=o,this._workCell=new a.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,r,s,a,h,l,f,g,b){const p=[],v=this._characterJoinerService.getJoinedCharacters(t),m=this._themeService.colors;let S,y=e.getNoBgTrimmedLength();i&&y0&&T===v[0][0]){O=!0;const t=v.shift();I=new d.JoinedCellData(this._workCell,e.translateToString(!0,t[0],t[1]),t[1]-t[0]),P=t[1]-1,y=I.getWidth()}const H=this._isCellInSelection(T,t),W=i&&T===a,F=M&&T>=g&&T<=b;let N=!1;this._decorationService.forEachDecorationAtCell(T,t,void 0,e=>{N=!0});let U=I.getChars()||o.WHITESPACE_CELL_CHAR;if(" "===U&&(I.isUnderline()||I.isOverline())&&(U=" "),A=y*l-f.get(U,I.isBold(),I.isItalic()),S){if(w&&(H&&D||!H&&!D&&I.bg===k)&&(H&&D&&m.selectionForeground||I.fg===E)&&I.extended.ext===R&&F===B&&A===L&&!W&&!O&&!N){C+=U,w++;continue}w&&(S.textContent=C),S=this._document.createElement("span"),w=0,C=""}else S=this._document.createElement("span");if(k=I.bg,E=I.fg,R=I.extended.ext,B=F,L=A,D=H,O&&a>=T&&a<=P&&(a=T),!this._coreService.isCursorHidden&&W)if(x.push("xterm-cursor"),this._coreBrowserService.isFocused)h&&x.push("xterm-cursor-blink"),x.push("bar"===r?"xterm-cursor-bar":"underline"===r?"xterm-cursor-underline":"xterm-cursor-block");else if(s)switch(s){case"outline":x.push("xterm-cursor-outline");break;case"block":x.push("xterm-cursor-block");break;case"bar":x.push("xterm-cursor-bar");break;case"underline":x.push("xterm-cursor-underline")}if(I.isBold()&&x.push("xterm-bold"),I.isItalic()&&x.push("xterm-italic"),I.isDim()&&x.push("xterm-dim"),C=I.isInvisible()?o.WHITESPACE_CELL_CHAR:I.getChars()||o.WHITESPACE_CELL_CHAR,I.isUnderline()&&(x.push(`xterm-underline-${I.extended.underlineStyle}`)," "===C&&(C=" "),!I.isUnderlineColorDefault()))if(I.isUnderlineColorRGB())S.style.textDecorationColor=`rgb(${u.AttributeData.toColorRGB(I.getUnderlineColor()).join(",")})`;else{let e=I.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&I.isBold()&&e<8&&(e+=8),S.style.textDecorationColor=m.ansi[e].css}I.isOverline()&&(x.push("xterm-overline")," "===C&&(C=" ")),I.isStrikethrough()&&x.push("xterm-strikethrough"),F&&(S.style.textDecoration="underline");let j=I.getFgColor(),G=I.getFgColorMode(),$=I.getBgColor(),z=I.getBgColorMode();const Y=!!I.isInverse();if(Y){const e=j;j=$,$=e;const t=G;G=z,z=t}let q,K,V,X=!1;switch(this._decorationService.forEachDecorationAtCell(T,t,void 0,e=>{"top"!==e.options.layer&&X||(e.backgroundColorRGB&&(z=50331648,$=e.backgroundColorRGB.rgba>>8&16777215,q=e.backgroundColorRGB),e.foregroundColorRGB&&(G=50331648,j=e.foregroundColorRGB.rgba>>8&16777215,K=e.foregroundColorRGB),X="top"===e.options.layer)}),!X&&H&&(q=this._coreBrowserService.isFocused?m.selectionBackgroundOpaque:m.selectionInactiveBackgroundOpaque,$=q.rgba>>8&16777215,z=50331648,X=!0,m.selectionForeground&&(G=50331648,j=m.selectionForeground.rgba>>8&16777215,K=m.selectionForeground)),X&&x.push("xterm-decoration-top"),z){case 16777216:case 33554432:V=m.ansi[$],x.push(`xterm-bg-${$}`);break;case 50331648:V=c.rgba.toColor($>>16,$>>8&255,255&$),this._addStyle(S,`background-color:#${_(($>>>0).toString(16),"0",6)}`);break;default:Y?(V=m.foreground,x.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):V=m.background}switch(q||I.isDim()&&(q=c.color.multiplyOpacity(V,.5)),G){case 16777216:case 33554432:I.isBold()&&j<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(j+=8),this._applyMinimumContrast(S,V,m.ansi[j],I,q,void 0)||x.push(`xterm-fg-${j}`);break;case 50331648:const e=c.rgba.toColor(j>>16&255,j>>8&255,255&j);this._applyMinimumContrast(S,V,e,I,q,K)||this._addStyle(S,`color:#${_(j.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(S,V,m.foreground,I,q,void 0)||Y&&x.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}x.length&&(S.className=x.join(" "),x.length=0),W||O||N?S.textContent=C:w++,A!==this.defaultSpacing&&(S.style.letterSpacing=`${A}px`),p.push(S),T=P}return S&&w&&(S.textContent=C),p}_applyMinimumContrast(e,t,i,r,s,n){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,f.excludeFromContrastRatioDemands)(r.getCode()))return!1;const o=this._getContrastCache(r);let a;if(s||n||(a=o.getColor(t.rgba,i.rgba)),void 0===a){const e=this._optionsService.rawOptions.minimumContrastRatio/(r.isDim()?2:1);a=c.color.ensureContrastRatio(s||t,n||i,e),o.setColor((s||t).rgba,(n||i).rgba,null!=a?a:null)}return!!a&&(this._addStyle(e,`color:${a.css}`),!0)}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){const i=this._selectionStart,r=this._selectionEnd;return!(!i||!r)&&(this._columnSelectMode?i[0]<=r[0]?e>=i[0]&&t>=i[1]&&e=i[1]&&e>=r[0]&&t<=r[1]:t>i[1]&&t=i[0]&&e=i[0])}};function _(e,t,i){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthCache=void 0,t.WidthCache=class{constructor(e){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const t=e.createElement("span"),i=e.createElement("span");i.style.fontWeight="bold";const r=e.createElement("span");r.style.fontStyle="italic";const s=e.createElement("span");s.style.fontWeight="bold",s.style.fontStyle="italic",this._measureElements=[t,i,r,s],this._container.appendChild(t),this._container.appendChild(i),this._container.appendChild(r),this._container.appendChild(s),e.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,i,r){e===this._font&&t===this._fontSize&&i===this._weight&&r===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=r,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${r}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${r}`,this.clear())}get(e,t,i){let r=0;if(!t&&!i&&1===e.length&&(r=e.charCodeAt(0))<256)return-9999!==this._flat[r]?this._flat[r]:this._flat[r]=this._measure(e,0);let s=e;t&&(s+="B"),i&&(s+="I");let n=this._holey.get(s);if(void 0===n){let r=0;t&&(r|=1),i&&(r|=2),n=this._measure(e,r),this._holey.set(s,n)}return n}_measure(e,t){const i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}}},2223:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const r=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=r.isFirefox||r.isLegacyEdge?"bottom":"ideographic"},6171:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const n=i(2585),o=i(8460),a=i(844);let h=t.CharSizeService=class extends a.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this.register(new o.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new c(e,t,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};t.CharSizeService=h=r([s(2,n.IOptionsService)],h);class c{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const e={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return 0!==e.width&&0!==e.height&&(this._result.width=e.width/32,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;const n=i(3734),o=i(643),a=i(511),h=i(2585);class c extends n.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=c;let l=t.CharacterJoinerService=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){const t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t1){const e=this._getJoinedRanges(r,a,n,t,s);for(let t=0;t1){const e=this._getJoinedRanges(r,a,n,t,s);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const n=i(4725),o=i(9806);let a=t.MouseService=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,r,s){return(0,o.getCoords)(window,e,t,i,r,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,s)}getMouseReportCoords(e,t){const i=(0,o.getCoordsRelativeToElement)(window,e,t);if(this._charSizeService.hasValidSize)return i[0]=Math.min(Math.max(i[0],0),this._renderService.dimensions.css.canvas.width-1),i[1]=Math.min(Math.max(i[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};t.MouseService=a=r([s(0,n.IRenderService),s(1,n.ICharSizeService)],a)},3230:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const n=i(3656),o=i(6193),a=i(5596),h=i(4725),c=i(8460),l=i(844),d=i(7226),f=i(2585);let u=t.RenderService=class extends l.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(e,t,i,r,s,h,f,u){if(super(),this._rowCount=e,this._charSizeService=r,this._renderer=this.register(new l.MutableDisposable),this._pausedResizeTask=new d.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new c.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new c.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new c.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new c.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new o.RenderDebouncer(f.window,(e,t)=>this._renderRows(e,t)),this.register(this._renderDebouncer),this._screenDprMonitor=new a.ScreenDprMonitor(f.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(h.onResize(()=>this._fullRefresh())),this.register(h.buffers.onBufferActivate(()=>{var e;return null===(e=this._renderer.value)||void 0===e?void 0:e.clear()})),this.register(i.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(s.onDecorationRegistered(()=>this._fullRefresh())),this.register(s.onDecorationRemoved(()=>this._fullRefresh())),this.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(h.cols,h.rows),this._fullRefresh()})),this.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(h.buffer.y,h.buffer.y,!0))),this.register((0,n.addDisposableDomListener)(f.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(u.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in f.window){const e=new f.window.IntersectionObserver(e=>this._handleIntersectionChange(e[e.length-1]),{threshold:0});e.observe(t),this.register({dispose:()=>e.disconnect()})}}_handleIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.value&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&(null===(t=(e=this._renderer.value).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCharSizeChanged()}handleBlur(){var e;null===(e=this._renderer.value)||void 0===e||e.handleBlur()}handleFocus(){var e;null===(e=this._renderer.value)||void 0===e||e.handleFocus()}handleSelectionChanged(e,t,i){var r;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,null===(r=this._renderer.value)||void 0===r||r.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCursorMove()}clear(){var e;null===(e=this._renderer.value)||void 0===e||e.clear()}};t.RenderService=u=r([s(2,f.IOptionsService),s(3,h.ICharSizeService),s(4,f.IDecorationService),s(5,f.IBufferService),s(6,h.ICoreBrowserService),s(7,h.IThemeService)],u)},9312:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const n=i(9806),o=i(9504),a=i(456),h=i(4725),c=i(8460),l=i(844),d=i(6114),f=i(4841),u=i(511),g=i(2585),_=String.fromCharCode(160),b=new RegExp(_,"g");let p=t.SelectionService=class extends l.Disposable{constructor(e,t,i,r,s,n,o,h,d){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=r,this._coreService=s,this._mouseService=n,this._optionsService=o,this._renderService=h,this._coreBrowserService=d,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new u.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new c.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new c.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new c.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new c.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(e=>this._handleTrim(e)),this.register(this._bufferService.buffers.onBufferActivate(e=>this._handleBufferActivate(e))),this.enable(),this._model=new a.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,l.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";const i=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";const s=e[0]e.replace(b," ")).join(d.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),d.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){const t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!!(i&&r&&t)&&this._areCoordsInSelection(t,i,r)}isCellInSelection(e,t){const i=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!(!i||!r)&&this._areCoordsInSelection([e,t],i,r)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]}_selectWordAtCursor(e,t){var i,r;const s=null===(r=null===(i=this._linkifier.currentLink)||void 0===i?void 0:i.link)||void 0===r?void 0:r.range;if(s)return this._model.selectionStart=[s.start.x-1,s.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(s,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const n=this._getMouseBufferCoords(e);return!!n&&(this._selectWordAt(n,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){const t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];const i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),t/=50,t/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return d.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){const t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(d.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;const t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const i=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,o.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(e=>this._handleTrim(e))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let r=0;t>=r;r++){const s=e.loadCell(r,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:s>1&&t!==r&&(i+=s-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,r=!0){if(e[0]>=this._bufferService.cols)return;const s=this._bufferService.buffer,n=s.lines.get(e[1]);if(!n)return;const o=s.translateBufferLineToString(e[1],!1);let a=this._convertViewportColToCharacterIndex(n,e[0]),h=a;const c=e[0]-a;let l=0,d=0,f=0,u=0;if(" "===o.charAt(a)){for(;a>0&&" "===o.charAt(a-1);)a--;for(;h1&&(u+=r-1,h+=r-1);t>0&&a>0&&!this._isCharWordSeparator(n.loadCell(t-1,this._workCell));){n.loadCell(t-1,this._workCell);const e=this._workCell.getChars().length;0===this._workCell.getWidth()?(l++,t--):e>1&&(f+=e-1,a-=e-1),a--,t--}for(;i1&&(u+=e-1,h+=e-1),h++,i++}}h++;let g=a+c-l+f,_=Math.min(this._bufferService.cols,h-a+l+d-f-u);if(t||""!==o.slice(a,h).trim()){if(i&&0===g&&32!==n.getCodePoint(0)){const t=s.lines.get(e[1]-1);if(t&&n.isWrapped&&32!==t.getCodePoint(this._bufferService.cols-1)){const t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){const e=this._bufferService.cols-t.start;g-=e,_+=e}}}if(r&&g+_===this._bufferService.cols&&32!==n.getCodePoint(this._bufferService.cols-1)){const t=s.lines.get(e[1]+1);if((null==t?void 0:t.isWrapped)&&32!==t.getCodePoint(0)){const t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(_+=t.length)}}return{start:g,length:_}}}_selectWordAt(e,t){const i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){const t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){const t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(i,this._bufferService.cols)}};t.SelectionService=p=r([s(3,g.IBufferService),s(4,g.ICoreService),s(5,h.IMouseService),s(6,g.IOptionsService),s(7,h.IRenderService),s(8,h.ICoreBrowserService)],p)},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;const r=i(8343);t.ICharSizeService=(0,r.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,r.createDecorator)("CoreBrowserService"),t.IMouseService=(0,r.createDecorator)("MouseService"),t.IRenderService=(0,r.createDecorator)("RenderService"),t.ISelectionService=(0,r.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,r.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,r.createDecorator)("ThemeService")},6731:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;const n=i(7239),o=i(8055),a=i(8460),h=i(844),c=i(2585),l=o.css.toColor("#ffffff"),d=o.css.toColor("#000000"),f=o.css.toColor("#ffffff"),u=o.css.toColor("#000000"),g={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const e=[o.css.toColor("#2e3436"),o.css.toColor("#cc0000"),o.css.toColor("#4e9a06"),o.css.toColor("#c4a000"),o.css.toColor("#3465a4"),o.css.toColor("#75507b"),o.css.toColor("#06989a"),o.css.toColor("#d3d7cf"),o.css.toColor("#555753"),o.css.toColor("#ef2929"),o.css.toColor("#8ae234"),o.css.toColor("#fce94f"),o.css.toColor("#729fcf"),o.css.toColor("#ad7fa8"),o.css.toColor("#34e2e2"),o.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){const r=t[i/36%6|0],s=t[i/6%6|0],n=t[i%6];e.push({css:o.channels.toCss(r,s,n),rgba:o.channels.toRgba(r,s,n)})}for(let t=0;t<24;t++){const i=8+10*t;e.push({css:o.channels.toCss(i,i,i),rgba:o.channels.toRgba(i,i,i)})}return e})());let _=t.ThemeService=class extends h.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new a.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:l,background:d,cursor:f,cursorAccent:u,selectionForeground:void 0,selectionBackgroundTransparent:g,selectionBackgroundOpaque:o.color.blend(d,g),selectionInactiveBackgroundTransparent:g,selectionInactiveBackgroundOpaque:o.color.blend(d,g),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(e={}){const i=this._colors;if(i.foreground=b(e.foreground,l),i.background=b(e.background,d),i.cursor=b(e.cursor,f),i.cursorAccent=b(e.cursorAccent,u),i.selectionBackgroundTransparent=b(e.selectionBackground,g),i.selectionBackgroundOpaque=o.color.blend(i.background,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundTransparent=b(e.selectionInactiveBackground,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundOpaque=o.color.blend(i.background,i.selectionInactiveBackgroundTransparent),i.selectionForeground=e.selectionForeground?b(e.selectionForeground,o.NULL_COLOR):void 0,i.selectionForeground===o.NULL_COLOR&&(i.selectionForeground=void 0),o.color.isOpaque(i.selectionBackgroundTransparent)){const e=.3;i.selectionBackgroundTransparent=o.color.opacity(i.selectionBackgroundTransparent,e)}if(o.color.isOpaque(i.selectionInactiveBackgroundTransparent)){const e=.3;i.selectionInactiveBackgroundTransparent=o.color.opacity(i.selectionInactiveBackgroundTransparent,e)}if(i.ansi=t.DEFAULT_ANSI_COLORS.slice(),i.ansi[0]=b(e.black,t.DEFAULT_ANSI_COLORS[0]),i.ansi[1]=b(e.red,t.DEFAULT_ANSI_COLORS[1]),i.ansi[2]=b(e.green,t.DEFAULT_ANSI_COLORS[2]),i.ansi[3]=b(e.yellow,t.DEFAULT_ANSI_COLORS[3]),i.ansi[4]=b(e.blue,t.DEFAULT_ANSI_COLORS[4]),i.ansi[5]=b(e.magenta,t.DEFAULT_ANSI_COLORS[5]),i.ansi[6]=b(e.cyan,t.DEFAULT_ANSI_COLORS[6]),i.ansi[7]=b(e.white,t.DEFAULT_ANSI_COLORS[7]),i.ansi[8]=b(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),i.ansi[9]=b(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),i.ansi[10]=b(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),i.ansi[11]=b(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),i.ansi[12]=b(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),i.ansi[13]=b(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),i.ansi[14]=b(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),i.ansi[15]=b(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){const r=Math.min(i.ansi.length-16,e.extendedAnsi.length);for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const r=i(8460),s=i(844);class n extends s.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new r.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new r.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new r.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;const t=new Array(e);for(let i=0;ithis._length)for(let t=this._length;t=e;t--)this._array[this._getCyclicIndex(t+i.length)]=this._array[this._getCyclicIndex(t)];for(let t=0;tthis._maxLength){const e=this._length+i.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(let r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));const r=e+t+i-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;const r=Array.isArray(t)?[]:{};for(const s in t)r[s]=i<=1?t[s]:t[s]&&e(t[s],i-1);return r}},8055:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const r=i(6114);let s=0,n=0,o=0,a=0;var h,c,l,d,f;function u(e){const t=e.toString(16);return t.length<2?"0"+t:t}function g(e,t){return e>>0}}(h||(t.channels=h={})),function(e){function t(e,t){return a=Math.round(255*t),[s,n,o]=f.toChannels(e.rgba),{css:h.toCss(s,n,o,a),rgba:h.toRgba(s,n,o,a)}}e.blend=function(e,t){if(a=(255&t.rgba)/255,1===a)return{css:t.css,rgba:t.rgba};const i=t.rgba>>24&255,r=t.rgba>>16&255,c=t.rgba>>8&255,l=e.rgba>>24&255,d=e.rgba>>16&255,f=e.rgba>>8&255;return s=l+Math.round((i-l)*a),n=d+Math.round((r-d)*a),o=f+Math.round((c-f)*a),{css:h.toCss(s,n,o),rgba:h.toRgba(s,n,o)}},e.isOpaque=function(e){return!(255&~e.rgba)},e.ensureContrastRatio=function(e,t,i){const r=f.ensureContrastRatio(e.rgba,t.rgba,i);if(r)return f.toColor(r>>24&255,r>>16&255,r>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[s,n,o]=f.toChannels(t),{css:h.toCss(s,n,o),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return a=255&e.rgba,t(e,a*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(c||(t.color=c={})),function(e){let t,i;if(!r.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const r=e.getContext("2d",{willReadFrequently:!0});r&&(t=r,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return s=parseInt(e.slice(1,2).repeat(2),16),n=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),f.toColor(s,n,o);case 5:return s=parseInt(e.slice(1,2).repeat(2),16),n=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),a=parseInt(e.slice(4,5).repeat(2),16),f.toColor(s,n,o,a);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return s=parseInt(r[1]),n=parseInt(r[2]),o=parseInt(r[3]),a=Math.round(255*(void 0===r[5]?1:parseFloat(r[5]))),f.toColor(s,n,o,a);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[s,n,o,a]=t.getImageData(0,0,1,1).data,255!==a)throw new Error("css.toColor: Unsupported css format");return{rgba:h.toRgba(s,n,o,a),css:e}}}(l||(t.css=l={})),function(e){function t(e,t,i){const r=e/255,s=t/255,n=i/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(d||(t.rgb=d={})),function(e){function t(e,t,i){const r=e>>24&255,s=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,c=g(d.relativeLuminance2(o,a,h),d.relativeLuminance2(r,s,n));for(;c0||a>0||h>0);)o-=Math.max(0,Math.ceil(.1*o)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),c=g(d.relativeLuminance2(o,a,h),d.relativeLuminance2(r,s,n));return(o<<24|a<<16|h<<8|255)>>>0}function i(e,t,i){const r=e>>24&255,s=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,c=g(d.relativeLuminance2(o,a,h),d.relativeLuminance2(r,s,n));for(;c>>0}e.ensureContrastRatio=function(e,r,s){const n=d.relativeLuminance(e>>8),o=d.relativeLuminance(r>>8);if(g(n,o)>8));if(ag(n,d.relativeLuminance(t>>8))?o:t}return o}const a=i(e,r,s),h=g(n,d.relativeLuminance(a>>8));if(hg(n,d.relativeLuminance(i>>8))?a:i}return a}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,r){return{css:h.toCss(e,t,i,r),rgba:h.toRgba(e,t,i,r)}}}(f||(t.rgba=f={})),t.toPaddedHex=u,t.contrastRatio=g},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const r=i(844),s=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),c=i(6975),l=i(8460),d=i(1753),f=i(1480),u=i(7994),g=i(9282),_=i(5435),b=i(5981),p=i(2660);let v=!1;class m extends r.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new l.EventEmitter),this._onScroll.event(e=>{var t;null===(t=this._onScrollApi)||void 0===t||t.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}constructor(e){super(),this._windowsWrappingHeuristics=this.register(new r.MutableDisposable),this._onBinary=this.register(new l.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new l.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new l.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new l.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new h.OptionsService(e)),this._instantiationService.setService(s.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(s.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(o.LogService)),this._instantiationService.setService(s.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(c.CoreService)),this._instantiationService.setService(s.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(d.CoreMouseService)),this._instantiationService.setService(s.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(f.UnicodeService)),this._instantiationService.setService(s.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(u.CharsetService),this._instantiationService.setService(s.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(p.OscLinkService),this._instantiationService.setService(s.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new _.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,l.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,l.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,l.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,l.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new b.WriteBuffer((e,t)=>this._inputHandler.parse(e,t))),this.register((0,l.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=s.LogLevelEnum.WARN&&!v&&(this._logService.warn("writeSync is unreliable and will be removed soon."),v=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){const t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1;const t=this.optionsService.rawOptions.windowsPty;t&&void 0!==t.buildNumber&&void 0!==t.buildNumber?e=!!("conpty"===t.backend&&t.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const e=[];e.push(this.onLineFeed(g.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>((0,g.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,r.toDisposable)(()=>{for(const t of e)t.dispose()})}}}t.CoreTerminal=m},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e))}},5435:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const n=i(2584),o=i(7116),a=i(2015),h=i(844),c=i(482),l=i(8437),d=i(8460),f=i(643),u=i(511),g=i(3734),_=i(2585),b=i(6242),p=i(6351),v=i(5941),m={"(":0,")":1,"*":2,"+":3,"-":1,".":2},S=131072;function y(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var w;!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(w||(t.WindowsOptionsReportType=w={}));let C=0;class k extends h.Disposable{getAttrData(){return this._curAttrData}constructor(e,t,i,r,s,h,f,g,_=new a.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=r,this._optionsService=s,this._oscLinkService=h,this._coreMouseService=f,this._unicodeService=g,this._parser=_,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new c.StringToUtf32,this._utf8Decoder=new c.Utf8ToUtf32,this._workCell=new u.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new d.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new d.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new d.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new d.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new d.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new d.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new d.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new d.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new d.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new d.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new d.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new d.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new E(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._parser.setCsiHandlerFallback((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})}),this._parser.setEscHandlerFallback(e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})}),this._parser.setExecuteHandlerFallback(e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})}),this._parser.setOscHandlerFallback((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})}),this._parser.setDcsHandlerFallback((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})}),this._parser.setPrintHandler((e,t,i)=>this.print(e,t,i)),this._parser.registerCsiHandler({final:"@"},e=>this.insertChars(e)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},e=>this.scrollLeft(e)),this._parser.registerCsiHandler({final:"A"},e=>this.cursorUp(e)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},e=>this.scrollRight(e)),this._parser.registerCsiHandler({final:"B"},e=>this.cursorDown(e)),this._parser.registerCsiHandler({final:"C"},e=>this.cursorForward(e)),this._parser.registerCsiHandler({final:"D"},e=>this.cursorBackward(e)),this._parser.registerCsiHandler({final:"E"},e=>this.cursorNextLine(e)),this._parser.registerCsiHandler({final:"F"},e=>this.cursorPrecedingLine(e)),this._parser.registerCsiHandler({final:"G"},e=>this.cursorCharAbsolute(e)),this._parser.registerCsiHandler({final:"H"},e=>this.cursorPosition(e)),this._parser.registerCsiHandler({final:"I"},e=>this.cursorForwardTab(e)),this._parser.registerCsiHandler({final:"J"},e=>this.eraseInDisplay(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},e=>this.eraseInDisplay(e,!0)),this._parser.registerCsiHandler({final:"K"},e=>this.eraseInLine(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},e=>this.eraseInLine(e,!0)),this._parser.registerCsiHandler({final:"L"},e=>this.insertLines(e)),this._parser.registerCsiHandler({final:"M"},e=>this.deleteLines(e)),this._parser.registerCsiHandler({final:"P"},e=>this.deleteChars(e)),this._parser.registerCsiHandler({final:"S"},e=>this.scrollUp(e)),this._parser.registerCsiHandler({final:"T"},e=>this.scrollDown(e)),this._parser.registerCsiHandler({final:"X"},e=>this.eraseChars(e)),this._parser.registerCsiHandler({final:"Z"},e=>this.cursorBackwardTab(e)),this._parser.registerCsiHandler({final:"`"},e=>this.charPosAbsolute(e)),this._parser.registerCsiHandler({final:"a"},e=>this.hPositionRelative(e)),this._parser.registerCsiHandler({final:"b"},e=>this.repeatPrecedingCharacter(e)),this._parser.registerCsiHandler({final:"c"},e=>this.sendDeviceAttributesPrimary(e)),this._parser.registerCsiHandler({prefix:">",final:"c"},e=>this.sendDeviceAttributesSecondary(e)),this._parser.registerCsiHandler({final:"d"},e=>this.linePosAbsolute(e)),this._parser.registerCsiHandler({final:"e"},e=>this.vPositionRelative(e)),this._parser.registerCsiHandler({final:"f"},e=>this.hVPosition(e)),this._parser.registerCsiHandler({final:"g"},e=>this.tabClear(e)),this._parser.registerCsiHandler({final:"h"},e=>this.setMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"h"},e=>this.setModePrivate(e)),this._parser.registerCsiHandler({final:"l"},e=>this.resetMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"l"},e=>this.resetModePrivate(e)),this._parser.registerCsiHandler({final:"m"},e=>this.charAttributes(e)),this._parser.registerCsiHandler({final:"n"},e=>this.deviceStatus(e)),this._parser.registerCsiHandler({prefix:"?",final:"n"},e=>this.deviceStatusPrivate(e)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},e=>this.softReset(e)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},e=>this.setCursorStyle(e)),this._parser.registerCsiHandler({final:"r"},e=>this.setScrollRegion(e)),this._parser.registerCsiHandler({final:"s"},e=>this.saveCursor(e)),this._parser.registerCsiHandler({final:"t"},e=>this.windowOptions(e)),this._parser.registerCsiHandler({final:"u"},e=>this.restoreCursor(e)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},e=>this.insertColumns(e)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},e=>this.deleteColumns(e)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},e=>this.selectProtected(e)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},e=>this.requestMode(e,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},e=>this.requestMode(e,!1)),this._parser.setExecuteHandler(n.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(n.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(n.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(n.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(n.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(n.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(n.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(n.C1.IND,()=>this.index()),this._parser.setExecuteHandler(n.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(n.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new b.OscHandler(e=>(this.setTitle(e),this.setIconName(e),!0))),this._parser.registerOscHandler(1,new b.OscHandler(e=>this.setIconName(e))),this._parser.registerOscHandler(2,new b.OscHandler(e=>this.setTitle(e))),this._parser.registerOscHandler(4,new b.OscHandler(e=>this.setOrReportIndexedColor(e))),this._parser.registerOscHandler(8,new b.OscHandler(e=>this.setHyperlink(e))),this._parser.registerOscHandler(10,new b.OscHandler(e=>this.setOrReportFgColor(e))),this._parser.registerOscHandler(11,new b.OscHandler(e=>this.setOrReportBgColor(e))),this._parser.registerOscHandler(12,new b.OscHandler(e=>this.setOrReportCursorColor(e))),this._parser.registerOscHandler(104,new b.OscHandler(e=>this.restoreIndexedColor(e))),this._parser.registerOscHandler(110,new b.OscHandler(e=>this.restoreFgColor(e))),this._parser.registerOscHandler(111,new b.OscHandler(e=>this.restoreBgColor(e))),this._parser.registerOscHandler(112,new b.OscHandler(e=>this.restoreCursorColor(e))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const e in o.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:e},()=>this.selectCharset("("+e)),this._parser.registerEscHandler({intermediates:")",final:e},()=>this.selectCharset(")"+e)),this._parser.registerEscHandler({intermediates:"*",final:e},()=>this.selectCharset("*"+e)),this._parser.registerEscHandler({intermediates:"+",final:e},()=>this.selectCharset("+"+e)),this._parser.registerEscHandler({intermediates:"-",final:e},()=>this.selectCharset("-"+e)),this._parser.registerEscHandler({intermediates:".",final:e},()=>this.selectCharset("."+e)),this._parser.registerEscHandler({intermediates:"/",final:e},()=>this.selectCharset("/"+e));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(e=>(this._logService.error("Parsing error: ",e),e)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new p.DcsHandler((e,t)=>this.requestStatusString(e,t)))}_preserveStack(e,t,i,r){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=r}_logSlowResolvingAsync(e){this._logService.logLevel<=_.LogLevelEnum.WARN&&Promise.race([e,new Promise((e,t)=>setTimeout(()=>t("#SLOW_TIMEOUT"),5e3))]).catch(e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,r=this._activeBuffer.x,s=this._activeBuffer.y,n=0;const o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;r=this._parseStack.cursorStartX,s=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>S&&(n=this._parseStack.position+S)}if(this._logService.logLevel<=_.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?` "${e}"`:` "${Array.prototype.map.call(e,e=>String.fromCharCode(e)).join("")}"`),"string"==typeof e?e.split("").map(e=>e.charCodeAt(0)):e),this._parseBuffer.lengthS)for(let t=n;t0&&2===u.getWidth(this._activeBuffer.x-1)&&u.setCellFromCodePoint(this._activeBuffer.x-1,0,1,d.fg,d.bg,d.extended);for(let g=t;g=a)if(h){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),u=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===s)continue;if(l&&(u.insertCells(this._activeBuffer.x,s,this._activeBuffer.getNullCell(d),d),2===u.getWidth(a-1)&&u.setCellFromCodePoint(a-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),u.setCellFromCodePoint(this._activeBuffer.x++,r,s,d.fg,d.bg,d.extended),s>0)for(;--s;)u.setCellFromCodePoint(this._activeBuffer.x++,0,0,d.fg,d.bg,d.extended)}else u.getWidth(this._activeBuffer.x-1)?u.addCodepointToCell(this._activeBuffer.x-1,r):u.addCodepointToCell(this._activeBuffer.x-2,r)}i-t>0&&(u.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===u.getWidth(this._activeBuffer.x)&&!u.hasContent(this._activeBuffer.x)&&u.setCellFromCodePoint(this._activeBuffer.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,e=>!y(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new p.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new b.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){const t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){const t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){const t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){const t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,r=!1,s=!1){const n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),s),r&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i&&(i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1)}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(e){for(let t=0;te?1:2,u=e.params[0];return g=u,_=t?2===u?4:4===u?f(o.modes.insertMode):12===u?3:20===u?f(d.convertEol):0:1===u?f(i.applicationCursorKeys):3===u?d.windowOptions.setWinLines?80===h?2:132===h?1:0:0:6===u?f(i.origin):7===u?f(i.wraparound):8===u?3:9===u?f("X10"===r):12===u?f(d.cursorBlink):25===u?f(!o.isCursorHidden):45===u?f(i.reverseWraparound):66===u?f(i.applicationKeypad):67===u?4:1e3===u?f("VT200"===r):1002===u?f("DRAG"===r):1003===u?f("ANY"===r):1004===u?f(i.sendFocus):1005===u?4:1006===u?f("SGR"===s):1015===u?4:1016===u?f("SGR_PIXELS"===s):1048===u?1:47===u||1047===u||1049===u?f(c===l):2004===u?f(i.bracketedPasteMode):0,o.triggerDataEvent(`${n.C0.ESC}[${t?"":"?"}${g};${_}$y`),!0;var g,_}_updateAttrColor(e,t,i,r,s){return 2===t?(e|=50331648,e&=-16777216,e|=g.AttributeData.fromColorRGB([i,r,s])):5===t&&(e&=-50331904,e|=33554432|255&i),e}_extractColor(e,t,i){const r=[0,0,-1,0,0,0];let s=0,n=0;do{if(r[n+s]=e.params[t+n],e.hasSubParams(t+n)){const i=e.getSubParams(t+n);let o=0;do{5===r[1]&&(s=1),r[n+o+1+s]=i[o]}while(++o=2||2===r[1]&&n+s>=5)break;r[1]&&(s=1)}while(++n+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=l.DEFAULT_ATTR_DATA.fg,e.bg=l.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;const t=e.length;let i;const r=this._curAttrData;for(let s=0;s=30&&i<=37?(r.fg&=-50331904,r.fg|=16777216|i-30):i>=40&&i<=47?(r.bg&=-50331904,r.bg|=16777216|i-40):i>=90&&i<=97?(r.fg&=-50331904,r.fg|=16777224|i-90):i>=100&&i<=107?(r.bg&=-50331904,r.bg|=16777224|i-100):0===i?this._processSGR0(r):1===i?r.fg|=134217728:3===i?r.bg|=67108864:4===i?(r.fg|=268435456,this._processUnderline(e.hasSubParams(s)?e.getSubParams(s)[0]:1,r)):5===i?r.fg|=536870912:7===i?r.fg|=67108864:8===i?r.fg|=1073741824:9===i?r.fg|=2147483648:2===i?r.bg|=134217728:21===i?this._processUnderline(2,r):22===i?(r.fg&=-134217729,r.bg&=-134217729):23===i?r.bg&=-67108865:24===i?(r.fg&=-268435457,this._processUnderline(0,r)):25===i?r.fg&=-536870913:27===i?r.fg&=-67108865:28===i?r.fg&=-1073741825:29===i?r.fg&=2147483647:39===i?(r.fg&=-67108864,r.fg|=16777215&l.DEFAULT_ATTR_DATA.fg):49===i?(r.bg&=-67108864,r.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?s+=this._extractColor(e,s,r):53===i?r.bg|=1073741824:55===i?r.bg&=-1073741825:59===i?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):100===i?(r.fg&=-67108864,r.fg|=16777215&l.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){const t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const i=t%2==1;return this._optionsService.options.cursorBlink=i,!0}setScrollRegion(e){const t=e.params[0]||1;let i;return(e.length<2||(i=e.params[1])>this._bufferService.rows||0===i)&&(i=this._bufferService.rows),i>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(!y(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;const t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(w.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(w.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;i.length>1;){const e=i.shift(),r=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(R(i))if("?"===r)t.push({type:0,index:i});else{const e=(0,v.parseColor)(r);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){const t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();const i=e.split(":");let r;const s=i.findIndex(e=>e.startsWith("id="));return-1!==s&&(r=i[s].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:r,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){const i=e.split(";");for(let e=0;e=this._specialColors.length);++e,++t)if("?"===i[e])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{const r=(0,v.parseColor)(i[e]);r&&this._onColor.fire([{type:1,index:this._specialColors[t],color:r}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;const t=[],i=e.split(";");for(let e=0;e=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){const e=new u.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t(this._coreService.triggerDataEvent(`${n.C0.ESC}${e}${n.C0.ESC}\\`),!0))('"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[r.cursorStyle]-(r.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}t.InputHandler=k;let E=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){ethis.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(C=e,e=t,t=C),ethis.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function R(e){return 0<=e&&e<256}E=r([s(0,_.IBufferService)],E)},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}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}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,r,s,n){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(r,s,n)}get(e,t,i,r){var s;return null===(s=this._data.get(e,t))||void 0===s?void 0:s.get(i,r)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const i=t.isNode?"node":navigator.userAgent,r=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(r),t.isIpad="iPad"===r,t.isIphone="iPhone"===r,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(r),t.isLinux=r.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e)),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0===this._array.length)return!1;const t=this._getKey(e);if(void 0===t)return!1;if(i=this._search(t),-1===i)return!1;if(this._getKey(this._array[i])!==t)return!1;do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{yield this._array[i]}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{t(this._array[i])}while(++i=t;){let r=t+i>>1;const s=this._getKey(this._array[r]);if(s>e)i=r-1;else{if(!(s0&&this._getKey(this._array[r-1])===e;)r--;return r}t=r+1}}return t}}},7226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const r=i(6114);class s{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._is)return r-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(r-t))}ms`),void this._start();r=s}this.clear()}}class n extends s{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!r.isNode&&"requestIdleCallback"in window?class extends s{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const r=i(643);t.updateWindowsModeWrappedState=function(e){const t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=null==t?void 0:t.get(e.cols-1),s=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);s&&i&&(s.isWrapped=i[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&i[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new r}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return!(50331648&~this.fg)}isBgRGB(){return!(50331648&~this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return!(50331648&this.fg)}isBgDefault(){return!(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?!(50331648&~this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?!(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class r{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new r(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=r},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;const r=i(6349),s=i(7226),n=i(3734),o=i(8437),a=i(4634),h=i(511),c=i(643),l=i(4863),d=i(7116);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=d.DEFAULT_CHARSET,this.markers=[],this._nullCell=h.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new s.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(e){if(0===this.lines.length){void 0===e&&(e=o.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){const i=this.getNullCell(o.DEFAULT_ATTR_DATA);let r=0;const s=this._getCorrectBufferLength(t);if(s>this.lines.maxLength&&(this.lines.maxLength=s),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+n+1?(this.ybase--,n++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,i)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(s0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=s}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),n&&(this.y+=n),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let t=0;t.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition100)return!0;return e}get _isReflowEnabled(){const e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){const i=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(i.length>0){const r=(0,a.reflowLargerCreateNewLayout)(this.lines,i);(0,a.reflowLargerApplyNewLayout)(this.lines,r.layout),this._reflowLargerAdjustViewport(e,t,r.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){const r=this.getNullCell(o.DEFAULT_ATTR_DATA);let s=i;for(;s-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;n--){let h=this.lines.get(n);if(!h||!h.isWrapped&&h.getTrimmedLength()<=e)continue;const c=[h];for(;h.isWrapped&&n>0;)h=this.lines.get(--n),c.unshift(h);const l=this.ybase+this.y;if(l>=n&&l0&&(r.push({start:n+c.length+s,newLines:_}),s+=_.length),c.push(..._);let b=f.length-1,p=f[b];0===p&&(b--,p=f[b]);let v=c.length-u-1,m=d;for(;v>=0;){const e=Math.min(m,p);if(void 0===c[b])break;if(c[b].copyCellsFrom(c[v],m-e,p-e,e,!0),p-=e,0===p&&(b--,p=f[b]),m-=e,0===m){v--;const e=Math.max(v,0);m=(0,a.getWrappedLineTrimmedLength)(c,e,this._cols)}}for(let t=0;t0;)0===this.ybase?this.y0){const e=[],t=[];for(let e=0;e=0;c--)if(a&&a.start>n+h){for(let e=a.newLines.length-1;e>=0;e--)this.lines.set(c--,a.newLines[e]);c++,e.push({index:n+1,amount:a.newLines.length}),h+=a.newLines.length,a=r[++o]}else this.lines.set(c,t[n--]);let c=0;for(let t=e.length-1;t>=0;t--)e[t].index+=c,this.lines.onInsertEmitter.fire(e[t]),c+=e[t].amount;const l=Math.max(0,i+s-this.lines.maxLength);l>0&&this.lines.onTrimEmitter.fire(l)}}translateBufferLineToString(e,t,i=0,r){const s=this.lines.get(e);return s?s.translateToString(t,i,r):""}getWrappedRangeForLine(e){let t=e,i=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t{t.line-=e,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(e=>{t.line>=e.index&&(t.line+=e.amount)})),t.register(this.lines.onDelete(e=>{t.line>=e.index&&t.linee.index&&(t.line-=e.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const r=i(3734),s=i(511),n=i(643),o=i(482);t.DEFAULT_ATTR_DATA=Object.freeze(new r.AttributeData);let a=0;class h{constructor(e,t,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const r=t||s.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let t=0;t>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[n.CHAR_DATA_ATTR_INDEX],t[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,o.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return a=3*e,t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,r,s,n){268435456&s&&(this._extendedAttrs[e]=n),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=r,this._data[3*e+2]=s}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,o.stringFromCodePoint)(t):(2097151&i?(this._combined[e]=(0,o.stringFromCodePoint)(2097151&i)+(0,o.stringFromCodePoint)(t),i&=-2097152,i|=2097152):i=t|1<<22,this._data[3*e+0]=i)}insertCells(e,t,i,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new r.ExtendedAttrs),t=0;--i)this.setCell(e+t+i,this.loadCell(e+i,r));for(let r=0;rthis.length){if(this._data.buffer.byteLength>=4*i)this._data=new Uint32Array(this._data.buffer,0,i);else{const e=new Uint32Array(i);e.set(this._data),this._data=e}for(let i=this.length;i=e&&delete this._combined[r]}const r=Object.keys(this._extendedAttrs);for(let t=0;t=e&&delete this._extendedAttrs[i]}}return this.length=e,4*i*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,i,r,s){const n=e._data;if(s)for(let s=r-1;s>=0;s--){for(let e=0;e<3;e++)this._data[3*(i+s)+e]=n[3*(t+s)+e];268435456&n[3*(t+s)+2]&&(this._extendedAttrs[i+s]=e._extendedAttrs[t+s])}else for(let s=0;s=t&&(this._combined[s-t+i]=e._combined[s])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let r="";for(;t>22||1}return r}}t.BufferLine=h},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function i(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();const r=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),s=2===e[t+1].getWidth(0);return r&&s?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,r,s,n){const o=[];for(let a=0;a=a&&s0&&(e>d||0===l[e].getTrimmedLength());e--)_++;_>0&&(o.push(a+l.length-_),o.push(_)),a+=l.length-1}return o},t.reflowLargerCreateNewLayout=function(e,t){const i=[];let r=0,s=t[r],n=0;for(let o=0;oi(e,s,t)).reduce((e,t)=>e+t);let o=0,a=0,h=0;for(;hc&&(o-=c,a++);const l=2===e[a].getWidth(o-1);l&&o--;const d=l?r-1:r;s.push(d),h+=d}return s},t.getWrappedLineTrimmedLength=i},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const r=i(8460),s=i(844),n=i(9092);class o extends s.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new r.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const r=i(482),s=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,r.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[s.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[s.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[s.CHAR_DATA_CHAR_INDEX].length){const i=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const r=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(i-55296)+r-56320+65536|e[s.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[s.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[s.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[s.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const r=i(8460),s=i(844);class n{get id(){return this._id}constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new r.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,s.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=n,n._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var i,r,s;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(i||(t.C0=i={})),function(e){e.PAD="€",e.HOP="",e.BPH="‚",e.NBH="ƒ",e.IND="„",e.NEL="…",e.SSA="†",e.ESA="‡",e.HTS="ˆ",e.HTJ="‰",e.VTS="Š",e.PLD="‹",e.PLU="Œ",e.RI="",e.SS2="Ž",e.SS3="",e.DCS="",e.PU1="‘",e.PU2="’",e.STS="“",e.CCH="”",e.MW="•",e.SPA="–",e.EPA="—",e.SOS="˜",e.SGCI="™",e.SCI="š",e.CSI="›",e.ST="œ",e.OSC="",e.PM="ž",e.APC="Ÿ"}(r||(t.C1=r={})),function(e){e.ST=`${i.ESC}\\`}(s||(t.C1_ESCAPED=s={}))},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const r=i(2584),s={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,n){const o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B");break;case 8:if(e.altKey){o.key=r.C0.ESC+r.C0.DEL;break}o.key=r.C0.DEL;break;case 9:if(e.shiftKey){o.key=r.C0.ESC+"[Z";break}o.key=r.C0.HT,o.cancel=!0;break;case 13:o.key=e.altKey?r.C0.ESC+r.C0.CR:r.C0.CR,o.cancel=!0;break;case 27:o.key=r.C0.ESC,e.altKey&&(o.key=r.C0.ESC+r.C0.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;a?(o.key=r.C0.ESC+"[1;"+(a+1)+"D",o.key===r.C0.ESC+"[1;3D"&&(o.key=r.C0.ESC+(i?"b":"[1;5D"))):o.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(o.key=r.C0.ESC+"[1;"+(a+1)+"C",o.key===r.C0.ESC+"[1;3C"&&(o.key=r.C0.ESC+(i?"f":"[1;5C"))):o.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(o.key=r.C0.ESC+"[1;"+(a+1)+"A",i||o.key!==r.C0.ESC+"[1;3A"||(o.key=r.C0.ESC+"[1;5A")):o.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(o.key=r.C0.ESC+"[1;"+(a+1)+"B",i||o.key!==r.C0.ESC+"[1;3B"||(o.key=r.C0.ESC+"[1;5B")):o.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=r.C0.ESC+"[2~");break;case 46:o.key=a?r.C0.ESC+"[3;"+(a+1)+"~":r.C0.ESC+"[3~";break;case 36:o.key=a?r.C0.ESC+"[1;"+(a+1)+"H":t?r.C0.ESC+"OH":r.C0.ESC+"[H";break;case 35:o.key=a?r.C0.ESC+"[1;"+(a+1)+"F":t?r.C0.ESC+"OF":r.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=r.C0.ESC+"[5;"+(a+1)+"~":o.key=r.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=r.C0.ESC+"[6;"+(a+1)+"~":o.key=r.C0.ESC+"[6~";break;case 112:o.key=a?r.C0.ESC+"[1;"+(a+1)+"P":r.C0.ESC+"OP";break;case 113:o.key=a?r.C0.ESC+"[1;"+(a+1)+"Q":r.C0.ESC+"OQ";break;case 114:o.key=a?r.C0.ESC+"[1;"+(a+1)+"R":r.C0.ESC+"OR";break;case 115:o.key=a?r.C0.ESC+"[1;"+(a+1)+"S":r.C0.ESC+"OS";break;case 116:o.key=a?r.C0.ESC+"[15;"+(a+1)+"~":r.C0.ESC+"[15~";break;case 117:o.key=a?r.C0.ESC+"[17;"+(a+1)+"~":r.C0.ESC+"[17~";break;case 118:o.key=a?r.C0.ESC+"[18;"+(a+1)+"~":r.C0.ESC+"[18~";break;case 119:o.key=a?r.C0.ESC+"[19;"+(a+1)+"~":r.C0.ESC+"[19~";break;case 120:o.key=a?r.C0.ESC+"[20;"+(a+1)+"~":r.C0.ESC+"[20~";break;case 121:o.key=a?r.C0.ESC+"[21;"+(a+1)+"~":r.C0.ESC+"[21~";break;case 122:o.key=a?r.C0.ESC+"[23;"+(a+1)+"~":r.C0.ESC+"[23~";break;case 123:o.key=a?r.C0.ESC+"[24;"+(a+1)+"~":r.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!n||!e.altKey||e.metaKey)!i||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?o.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(o.key=r.C0.US),"@"===e.key&&(o.key=r.C0.NUL)):65===e.keyCode&&(o.type=1);else{const t=s[e.keyCode],i=null==t?void 0:t[e.shiftKey?1:0];if(i)o.key=r.C0.ESC+i;else if(e.keyCode>=65&&e.keyCode<=90){const t=e.ctrlKey?e.keyCode-64:e.keyCode+32;let i=String.fromCharCode(t);e.shiftKey&&(i=i.toUpperCase()),o.key=r.C0.ESC+i}else if(32===e.keyCode)o.key=r.C0.ESC+(e.ctrlKey?r.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),o.key=r.C0.ESC+t,o.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=r.C0.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=r.C0.DEL:219===e.keyCode?o.key=r.C0.ESC:220===e.keyCode?o.key=r.C0.FS:221===e.keyCode&&(o.key=r.C0.GS)}return o}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let r="";for(let s=t;s65535?(t-=65536,r+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let r=0,s=0;if(this._interim){const i=e.charCodeAt(s++);56320<=i&&i<=57343?t[r++]=1024*(this._interim-55296)+i-56320+65536:(t[r++]=this._interim,t[r++]=i),this._interim=0}for(let n=s;n=i)return this._interim=s,r;const o=e.charCodeAt(n);56320<=o&&o<=57343?t[r++]=1024*(s-55296)+o-56320+65536:(t[r++]=s,t[r++]=o)}else 65279!==s&&(t[r++]=s)}return r}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let r,s,n,o,a=0,h=0,c=0;if(this.interim[0]){let r=!1,s=this.interim[0];s&=192==(224&s)?31:224==(240&s)?15:7;let n,o=0;for(;(n=63&this.interim[++o])&&o<4;)s<<=6,s|=n;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,l=h-o;for(;c=i)return 0;if(n=e[c++],128!=(192&n)){c--,r=!0;break}this.interim[o++]=n,s<<=6,s|=63&n}r||(2===h?s<128?c--:t[a++]=s:3===h?s<2048||s>=55296&&s<=57343||65279===s||(t[a++]=s):s<65536||s>1114111||(t[a++]=s)),this.interim.fill(0)}const l=i-4;let d=c;for(;d=i)return this.interim[0]=r,a;if(s=e[d++],128!=(192&s)){d--;continue}if(h=(31&r)<<6|63&s,h<128){d--;continue}t[a++]=h}else if(224==(240&r)){if(d>=i)return this.interim[0]=r,a;if(s=e[d++],128!=(192&s)){d--;continue}if(d>=i)return this.interim[0]=r,this.interim[1]=s,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(15&r)<<12|(63&s)<<6|63&n,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&r)){if(d>=i)return this.interim[0]=r,a;if(s=e[d++],128!=(192&s)){d--;continue}if(d>=i)return this.interim[0]=r,this.interim[1]=s,a;if(n=e[d++],128!=(192&n)){d--;continue}if(d>=i)return this.interim[0]=r,this.interim[1]=s,this.interim[2]=n,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(7&r)<<18|(63&s)<<12|(63&n)<<6|63&o,h<65536||h>1114111)continue;t[a++]=h}}return a}}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const i=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],r=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let s;t.UnicodeV6=class{constructor(){if(this.version="6",!s){s=new Uint8Array(65536),s.fill(1),s[0]=0,s.fill(0,1,32),s.fill(0,127,160),s.fill(2,4352,4448),s[9001]=2,s[9002]=2,s.fill(2,11904,42192),s[12351]=1,s.fill(2,44032,55204),s.fill(2,63744,64256),s.fill(2,65040,65050),s.fill(2,65072,65136),s.fill(2,65280,65377),s.fill(2,65504,65511);for(let e=0;et[s][1])return!1;for(;s>=r;)if(i=r+s>>1,e>t[i][1])r=i+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const r=i(8460),s=i(844);class n extends s.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new r.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],r=this._action(e,t);if(r){const e=e=>Date.now()-i>=12?setTimeout(()=>this._innerWrite(0,e)):this._innerWrite(i,e);return void r.catch(e=>(queueMicrotask(()=>{throw e}),Promise.resolve(!1))).then(e)}const s=this._callbacks[this._bufferOffset];if(s&&s(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=n},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const i=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,r=/^[\da-f]+$/;function s(e,t){const i=e.toString(16),r=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return r;case 12:return(r+r).slice(0,3);default:return r+r}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const e=i.exec(t);if(e){const t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),r.exec(t)&&[3,6,9,12].includes(t.length))){const e=t.length/3,i=[0,0,0];for(let r=0;r<3;++r){const s=parseInt(t.slice(e*r,e*r+e),16);i[r]=1===e?s<<4:2===e?s:3===e?s>>4:s>>8}return i}},t.toRgbString=function(e,t=16){const[i,r,n]=e;return`rgb:${s(i,t)}/${s(r,t)}/${s(n,t)}`}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const r=i(482),s=i(8742),n=i(5770),o=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(e,t,i){if(this._active.length)for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,i);else this._handlerFb(this._ident,"PUT",(0,r.utf32ToString)(e,t,i))}unhook(e,t=!0){if(this._active.length){let i=!1,r=this._active.length-1,s=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,i=t,s=this._stack.fallThrough,this._stack.paused=!1),!s&&!1===i){for(;r>=0&&(i=this._active[r].unhook(e),!0!==i);r--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,i;r--}for(;r>=0;r--)if(i=this._active[r].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,i}else this._handlerFb(this._ident,"UNHOOK",e);this._active=o,this._ident=0}};const a=new s.Params;a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then(e=>(this._params=a,this._data="",this._hitLimit=!1,e));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const r=i(844),s=i(8742),n=i(6242),o=i(6351);class a{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,r){this.table[t<<8|e]=i<<4|r}addMany(e,t,i,r){for(let s=0;st),i=(e,i)=>t.slice(e,i),r=i(32,127),s=i(0,24);s.push(25),s.push.apply(s,i(28,32));const n=i(0,14);let o;for(o in e.setDefault(1,0),e.addMany(r,0,2,0),n)e.addMany([24,26,153,154],o,3,0),e.addMany(i(128,144),o,3,0),e.addMany(i(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(s,0,3,0),e.addMany(s,1,3,1),e.add(127,1,0,1),e.addMany(s,8,0,8),e.addMany(s,3,3,3),e.add(127,3,0,3),e.addMany(s,4,3,4),e.add(127,4,0,4),e.addMany(s,6,3,6),e.addMany(s,5,3,5),e.add(127,5,0,5),e.addMany(s,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(r,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(i(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(r,7,0,7),e.addMany(s,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(i(64,127),3,7,0),e.addMany(i(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(i(48,60),4,8,4),e.addMany(i(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(i(32,64),6,0,6),e.add(127,6,0,6),e.addMany(i(64,127),6,0,0),e.addMany(i(32,48),3,9,5),e.addMany(i(32,48),5,9,5),e.addMany(i(48,64),5,0,6),e.addMany(i(64,127),5,7,0),e.addMany(i(32,48),4,9,5),e.addMany(i(32,48),1,9,2),e.addMany(i(32,48),2,9,2),e.addMany(i(48,127),2,10,0),e.addMany(i(48,80),1,10,0),e.addMany(i(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(i(96,127),1,10,0),e.add(80,1,11,9),e.addMany(s,9,0,9),e.add(127,9,0,9),e.addMany(i(28,32),9,0,9),e.addMany(i(32,48),9,9,12),e.addMany(i(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(s,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(s,10,0,10),e.add(127,10,0,10),e.addMany(i(28,32),10,0,10),e.addMany(i(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(i(32,48),10,9,12),e.addMany(s,12,0,12),e.add(127,12,0,12),e.addMany(i(28,32),12,0,12),e.addMany(i(32,48),12,9,12),e.addMany(i(48,64),12,0,11),e.addMany(i(64,127),12,12,13),e.addMany(i(64,127),10,12,13),e.addMany(i(64,127),9,12,13),e.addMany(s,13,13,13),e.addMany(r,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(h,0,2,0),e.add(h,8,5,8),e.add(h,6,0,6),e.add(h,11,0,11),e.add(h,13,13,13),e}();class c extends r.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new s.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,r.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new o.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=e.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let t=0;tr||r>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=r}}if(1!==e.final.length)throw new Error("final must be a single byte");const r=e.final.charCodeAt(0);if(t[0]>r||r>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=r,i}identToString(e){const t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){const i=this._identifier(e,[48,126]);void 0===this._escHandlers[i]&&(this._escHandlers[i]=[]);const r=this._escHandlers[i];return r.push(t),{dispose:()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){const i=this._identifier(e);void 0===this._csiHandlers[i]&&(this._csiHandlers[i]=[]);const r=this._csiHandlers[i];return r.push(t),{dispose:()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,r,s){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=r,this._parseStack.chunkPos=s}parse(e,t,i){let r,s=0,n=0,o=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(void 0===i||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const t=this._parseStack.handlers;let n=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===i&&n>-1)for(;n>=0&&(r=t[n](this._params),!0!==r);n--)if(r instanceof Promise)return this._parseStack.handlerPos=n,r;this._parseStack.handlers=[];break;case 4:if(!1===i&&n>-1)for(;n>=0&&(r=t[n](),!0!==r);n--)if(r instanceof Promise)return this._parseStack.handlerPos=n,r;this._parseStack.handlers=[];break;case 6:if(s=e[this._parseStack.chunkPos],r=this._dcsParser.unhook(24!==s&&26!==s,i),r)return r;27===s&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(s=e[this._parseStack.chunkPos],r=this._oscParser.end(24!==s&&26!==s,i),r)return r;27===s&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let i=o;i>4){case 2:for(let r=i+1;;++r){if(r>=t||(s=e[r])<32||s>126&&s=t||(s=e[r])<32||s>126&&s=t||(s=e[r])<32||s>126&&s=t||(s=e[r])<32||s>126&&s=0&&(r=o[a](this._params),!0!==r);a--)if(r instanceof Promise)return this._preserveStack(3,o,a,n,i),r;a<0&&this._csiHandlerFb(this._collect<<8|s,this._params),this.precedingCodepoint=0;break;case 8:do{switch(s){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(s-48)}}while(++i47&&s<60);i--;break;case 9:this._collect<<=8,this._collect|=s;break;case 10:const c=this._escHandlers[this._collect<<8|s];let l=c?c.length-1:-1;for(;l>=0&&(r=c[l](),!0!==r);l--)if(r instanceof Promise)return this._preserveStack(4,c,l,n,i),r;l<0&&this._escHandlerFb(this._collect<<8|s),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|s,this._params);break;case 13:for(let r=i+1;;++r)if(r>=t||24===(s=e[r])||26===s||27===s||s>127&&s=t||(s=e[r])<32||s>127&&s{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const r=i(5770),s=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(e,t,i){if(this._active.length)for(let r=this._active.length-1;r>=0;r--)this._active[r].put(e,t,i);else this._handlerFb(this._id,"PUT",(0,s.utf32ToString)(e,t,i))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,i)}}end(e,t=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let i=!1,r=this._active.length-1,s=!1;if(this._stack.paused&&(r=this._stack.loopPosition-1,i=t,s=this._stack.fallThrough,this._stack.paused=!1),!s&&!1===i){for(;r>=0&&(i=this._active[r].end(e),!0!==i);r--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!1,i;r--}for(;r>=0;r--)if(i=this._active[r].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=r,this._stack.fallThrough=!0,i}else this._handlerFb(this._id,"END",e);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,s.utf32ToString)(e,t,i),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then(e=>(this._data="",this._hitLimit=!1,e));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const i=2147483647;class r{static fromArray(e){const t=new r;if(!e.length)return t;for(let i=Array.isArray(e[0])?1:0;i256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const e=new r(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){const e=[];for(let t=0;t>8,r=255&this._subParamsIdx[t];r-i>0&&e.push(Array.prototype.slice.call(this._subParams,i,r))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>i?i:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>i?i:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){const t=this._subParamsIdx[e]>>8,i=255&this._subParamsIdx[e];return i-t>0?this._subParams.subarray(t,i):null}getSubParamsAll(){const e={};for(let t=0;t>8,r=255&this._subParamsIdx[t];r-i>0&&(e[t]=this._subParams.slice(i,r))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const r=this._digitIsSub?this._subParams:this.params,s=r[t-1];r[t-1]=~s?Math.min(10*s+e,i):e}}t.Params=r},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const r=i(3785),s=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){const t=this._buffer.lines.get(e);if(t)return new r.BufferLineApiView(t)}getNullCell(){return new s.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const r=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new r.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const r=i(8771),s=i(8460),n=i(844);class o extends n.Disposable{constructor(e){super(),this._core=e,this._onBufferChange=this.register(new s.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new r.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new r.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,e=>t(e.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(e,i)=>t(e,i.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const n=i(8460),o=i(844),a=i(5295),h=i(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let c=t.BufferService=class extends o.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new a.BufferSet(e,this))}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){const i=this.buffer;let r;r=this._cachedBlankLine,r&&r.length===this.cols&&r.getFg(0)===e.fg&&r.getBg(0)===e.bg||(r=i.getBlankLine(e,t),this._cachedBlankLine=r),r.isWrapped=t;const s=i.ybase+i.scrollTop,n=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;n===i.lines.length-1?e?i.lines.recycle().copyFrom(r):i.lines.push(r.clone()):i.lines.splice(n+1,0,r.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=n-s+1;i.lines.shiftElements(s+1,e-1,-1),i.lines.set(n,r.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){const r=this.buffer;if(e<0){if(0===r.ydisp)return;this.isUserScrolling=!0}else e+r.ydisp>=r.ybase&&(this.isUserScrolling=!1);const s=r.ydisp;r.ydisp=Math.max(Math.min(r.ydisp+e,r.ybase),0),s!==r.ydisp&&(t||this._onScroll.fire(r.ydisp))}};t.BufferService=c=r([s(0,h.IOptionsService)],c)},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const n=i(2585),o=i(8460),a=i(844),h={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function c(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const l=String.fromCharCode,d={DEFAULT:e=>{const t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`${l(t[0])}${l(t[1])}${l(t[2])}`},SGR:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.x};${e.y}${t}`}};let f=t.CoreMouseService=class extends a.Disposable{constructor(e,t){super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new o.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const e of Object.keys(h))this.addProtocol(e,h[e]);for(const e of Object.keys(d))this.addEncoding(e,d[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;const t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};t.CoreMouseService=f=r([s(0,n.IBufferService),s(1,n.ICoreService)],f)},6975:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const n=i(1439),o=i(8460),a=i(844),h=i(2585),c=Object.freeze({insertMode:!1}),l=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let d=t.CoreService=class extends a.Disposable{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new o.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new o.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(c),this.decPrivateModes=(0,n.clone)(l)}reset(){this.modes=(0,n.clone)(c),this.decPrivateModes=(0,n.clone)(l)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;const i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onBinary.fire(e))}};t.CoreService=d=r([s(0,h.IBufferService),s(1,h.ILogService),s(2,h.IOptionsService)],d)},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const r=i(8055),s=i(8460),n=i(844),o=i(6106);let a=0,h=0;class c extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new o.SortedList(e=>null==e?void 0:e.marker.line),this._onDecorationRegistered=this.register(new s.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new s.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(e){if(e.marker.isDisposed)return;const t=new l(e);if(t){const e=t.marker.onDispose(()=>t.dispose());t.onDispose(()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())}),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var r,s,n;let o=0,a=0;for(const h of this._decorations.getKeyIterator(t))o=null!==(r=h.options.x)&&void 0!==r?r:0,a=o+(null!==(s=h.options.width)&&void 0!==s?s:1),e>=o&&e{var s,n,o;a=null!==(s=t.options.x)&&void 0!==s?s:0,h=a+(null!==(n=t.options.width)&&void 0!==n?n:1),e>=a&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const r=i(2585),s=i(8343);class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(const[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=n,t.InstantiationService=class{constructor(){this._services=new n,this._services.set(r.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,s.getServiceDependencies)(e).sort((e,t)=>e.index-t.index),r=[];for(const t of i){const i=this._services.get(t.id);if(!i)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);r.push(i)}const n=i.length>0?i[0].index:t.length;if(t.length!==n)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${n+1} conflicts with ${t.length} static arguments`);return new e(...[...t,...r])}}},7866:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;const n=i(844),o=i(2585),a={trace:o.LogLevelEnum.TRACE,debug:o.LogLevelEnum.DEBUG,info:o.LogLevelEnum.INFO,warn:o.LogLevelEnum.WARN,error:o.LogLevelEnum.ERROR,off:o.LogLevelEnum.OFF};let h,c=t.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=o.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),h=this}_updateLogLevel(){this._logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;tJSON.stringify(e)).join(", ")})`);const t=r.apply(this,e);return h.trace(`GlyphRenderer#${r.name} return`,t),t}}},7302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;const r=i(8460),s=i(844),n=i(6114);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const o=["normal","bold","100","200","300","400","500","600","700","800","900"];class a extends s.Disposable{constructor(e){super(),this._onOptionChange=this.register(new r.EventEmitter),this.onOptionChange=this._onOptionChange.event;const i=Object.assign({},t.DEFAULT_OPTIONS);for(const t in e)if(t in i)try{const r=e[t];i[t]=this._sanitizeAndValidateOption(t,r)}catch(e){console.error(e)}this.rawOptions=i,this.options=Object.assign({},i),this._setupOptions()}onSpecificOptionChange(e,t){return this.onOptionChange(i=>{i===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(i=>{-1!==e.indexOf(i)&&t()})}_setupOptions(){const e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);return this.rawOptions[e]},i=(e,i)=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);i=this._sanitizeAndValidateOption(e,i),this.rawOptions[e]!==i&&(this.rawOptions[e]=i,this._onOptionChange.fire(e))};for(const t in this.rawOptions){const r={get:e.bind(this,t),set:i.bind(this,t)};Object.defineProperty(this.options,t,r)}}_sanitizeAndValidateOption(e,i){switch(e){case"cursorStyle":if(i||(i=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(i))throw new Error(`"${i}" is not a valid value for ${e}`);break;case"wordSeparator":i||(i=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof i&&1<=i&&i<=1e3)break;i=o.includes(i)?i:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(`${e} cannot be less than 1, value: ${i}`);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(`${e} cannot be less than 0, value: ${i}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${i}`);break;case"rows":case"cols":if(!i&&0!==i)throw new Error(`${e} must be numeric, value: ${i}`);break;case"windowsPty":i=null!=i?i:{}}return i}}t.OptionsService=a},2660:function(e,t,i){var r=this&&this.__decorate||function(e,t,i,r){var s,n=arguments.length,o=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},s=this&&this.__param||function(e,t){return function(i,r){t(i,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;const n=i(2585);let o=t.OscLinkService=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){const t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),r={data:e,id:this._nextId++,lines:[i]};return i.onDispose(()=>this._removeMarkerFromLink(r,i)),this._dataByLinkId.set(r.id,r),r.id}const i=e,r=this._getEntryIdKey(i),s=this._entriesWithId.get(r);if(s)return this.addLineToLink(s.id,t.ybase+t.y),s.id;const n=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose(()=>this._removeMarkerFromLink(o,n)),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every(e=>e.line!==t)){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(i,e))}}getLinkData(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){const i=e.lines.indexOf(t);-1!==i&&(e.lines.splice(i,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};t.OscLinkService=o=r([s(0,n.IBufferService)],o)},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;const i="di$target",r="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[r]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const s=function(e,t,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,s){t[i]===t?t[r].push({id:e,index:s}):(t[r]=[{id:e,index:s}],t[i]=t)}(s,e,n)};return s.toString=()=>e,t.serviceRegistry.set(e,s),s}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const r=i(8343);var s;t.IBufferService=(0,r.createDecorator)("BufferService"),t.ICoreMouseService=(0,r.createDecorator)("CoreMouseService"),t.ICoreService=(0,r.createDecorator)("CoreService"),t.ICharsetService=(0,r.createDecorator)("CharsetService"),t.IInstantiationService=(0,r.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(s||(t.LogLevelEnum=s={})),t.ILogService=(0,r.createDecorator)("LogService"),t.IOptionsService=(0,r.createDecorator)("OptionsService"),t.IOscLinkService=(0,r.createDecorator)("OscLinkService"),t.IUnicodeService=(0,r.createDecorator)("UnicodeService"),t.IDecorationService=(0,r.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const r=i(8460),s=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new r.EventEmitter,this.onChange=this._onChange.event;const e=new s.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0;const i=e.length;for(let r=0;r=i)return t+this.wcwidth(s);const n=e.charCodeAt(r);56320<=n&&n<=57343?s=1024*(s-55296)+n-56320+65536:t+=this.wcwidth(n)}t+=this.wcwidth(s)}return t}}}},t={};function i(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r].call(n.exports,n,n.exports,i),n.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;const t=i(9042),s=i(3236),n=i(844),o=i(5741),a=i(8285),h=i(7975),c=i(7090),l=["cols","rows"];class d extends n.Disposable{constructor(e){super(),this._core=this.register(new s.Terminal(e)),this._addonManager=this.register(new o.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=e=>this._core.options[e],i=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const e in this._core.options){const r={get:t.bind(this,e),set:i.bind(this,e)};Object.defineProperty(this._publicOptions,e,r)}}_checkReadonlyOptions(e){if(l.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new h.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new c.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new a.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){var t,i,r;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(i=e.width)&&void 0!==i?i:0,null!==(r=e.height)&&void 0!==r?r:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return t}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}e.Terminal=d})(),r})(),e.exports=t()},7174(e,t,i){"use strict";i.d(t,{A:()=>yt});var r={};function s(e,t){return function(){return e.apply(t,arguments)}}i.r(r),i.d(r,{hasBrowserEnv:()=>ue,hasStandardBrowserEnv:()=>_e,hasStandardBrowserWebWorkerEnv:()=>be,navigator:()=>ge,origin:()=>pe});const{toString:n}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:a,toStringTag:h}=Symbol,c=(l=Object.create(null),e=>{const t=n.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:u}=Array,g=f("undefined");function _(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b=d("ArrayBuffer"),p=f("string"),v=f("function"),m=f("number"),S=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==c(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||h in e||a in e)},w=d("Date"),C=d("File"),k=d("Blob"),E=d("FileList"),R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:{},B=void 0!==R.FormData?R.FormData:void 0,L=d("URLSearchParams"),[D,A,x,M]=["ReadableStream","Request","Response","Headers"].map(d);function T(e,t,{allOwnKeys:i=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),u(e))for(r=0,s=e.length;r0;)if(r=i[s],t===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:i.g,I=e=>!g(e)&&e!==P,H=(W="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>W&&e instanceof W);var W;const F=d("HTMLFormElement"),N=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),U=d("RegExp"),j=(e,t)=>{const i=Object.getOwnPropertyDescriptors(e),r={};T(i,(i,s)=>{let n;!1!==(n=t(i,s,e))&&(r[s]=n||i)}),Object.defineProperties(e,r)},G=d("AsyncFunction"),$=(z="function"==typeof setImmediate,Y=v(P.postMessage),z?setImmediate:Y?(q=`axios@${Math.random()}`,K=[],P.addEventListener("message",({source:e,data:t})=>{e===P&&t===q&&K.length&&K.shift()()},!1),e=>{K.push(e),P.postMessage(q,"*")}):e=>setTimeout(e));var z,Y,q,K;const V="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||$,X={isArray:u,isArrayBuffer:b,isBuffer:_,isFormData:e=>{if(!e)return!1;if(B&&e instanceof B)return!0;const t=o(e);if(!t||t===Object.prototype)return!1;if(!v(e.append))return!1;const i=c(e);return"formdata"===i||"object"===i&&v(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:S,isPlainObject:y,isEmptyObject:e=>{if(!S(e)||_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:D,isRequest:A,isResponse:x,isHeaders:M,isUndefined:g,isDate:w,isFile:C,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:k,isRegExp:U,isFunction:v,isStream:e=>S(e)&&v(e.pipe),isURLSearchParams:L,isTypedArray:H,isFileList:E,forEach:T,merge:function e(){const{caseless:t,skipUndefined:i}=I(this)&&this||{},r={},s=(s,n)=>{if("__proto__"===n||"constructor"===n||"prototype"===n)return;const o=t&&O(r,n)||n;y(r[o])&&y(s)?r[o]=e(r[o],s):y(s)?r[o]=e({},s):u(s)?r[o]=s.slice():i&&g(s)||(r[o]=s)};for(let e=0,t=arguments.length;e(T(t,(t,r)=>{i&&v(t)?Object.defineProperty(e,r,{value:s(t,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,r)=>{let s,n,a;const h={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),n=s.length;n-- >0;)a=s[n],r&&!r(a,e,t)||h[a]||(t[a]=e[a],h[a]=!0);e=!1!==i&&o(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;const r=e.indexOf(t,i);return-1!==r&&r===i},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!m(t))return null;const i=new Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{const i=(e&&e[a]).call(e);let r;for(;(r=i.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let i;const r=[];for(;null!==(i=e.exec(t));)r.push(i);return r},isHTMLForm:F,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,i)=>{if(v(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const r=e[i];v(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))})},toObjectSet:(e,t)=>{const i={},r=e=>{e.forEach(e=>{i[e]=!0})};return u(e)?r(e):r(String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,i){return t.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:O,global:P,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&v(e.append)&&"FormData"===e[h]&&e[a])},toJSONObject:e=>{const t=new Array(10),i=(e,r)=>{if(S(e)){if(t.indexOf(e)>=0)return;if(_(e))return e;if(!("toJSON"in e)){t[r]=e;const s=u(e)?[]:{};return T(e,(e,t)=>{const n=i(e,r+1);!g(n)&&(s[t]=n)}),t[r]=void 0,s}}return e};return i(e,0)},isAsyncFn:G,isThenable:e=>e&&(S(e)||v(e))&&v(e.then)&&v(e.catch),setImmediate:$,asap:V,isIterable:e=>null!=e&&v(e[a])};class J extends Error{static from(e,t,i,r,s,n){const o=new J(e.message,t||e.code,i,r,s);return o.cause=e,o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),n&&Object.assign(o,n),o}constructor(e,t,i,r,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),i&&(this.config=i),r&&(this.request=r),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}}J.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",J.ERR_BAD_OPTION="ERR_BAD_OPTION",J.ECONNABORTED="ECONNABORTED",J.ETIMEDOUT="ETIMEDOUT",J.ERR_NETWORK="ERR_NETWORK",J.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",J.ERR_DEPRECATED="ERR_DEPRECATED",J.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",J.ERR_BAD_REQUEST="ERR_BAD_REQUEST",J.ERR_CANCELED="ERR_CANCELED",J.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",J.ERR_INVALID_URL="ERR_INVALID_URL",J.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Z=J;function Q(e){return X.isPlainObject(e)||X.isArray(e)}function ee(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function te(e,t,i){return e?e.concat(t).map(function(e,t){return e=ee(e),!i&&t?"["+e+"]":e}).join(i?".":""):t}const ie=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)}),re=function(e,t,i){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(i=X.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])})).metaTokens,s=i.visitor||d,n=i.dots,o=i.indexes,a=i.Blob||"undefined"!=typeof Blob&&Blob,h=void 0===i.maxDepth?100:i.maxDepth,c=a&&X.isSpecCompliantForm(t);if(!X.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!c&&X.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,i,s){let a=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(te(s,i,n),l(e)),!1;if(e&&!s&&"object"==typeof e)if(X.endsWith(i,"{}"))i=r?i:i.slice(0,-2),e=JSON.stringify(e);else if(X.isArray(e)&&function(e){return X.isArray(e)&&!e.some(Q)}(e)||(X.isFileList(e)||X.endsWith(i,"[]"))&&(a=X.toArray(e)))return i=ee(i),a.forEach(function(e,r){!X.isUndefined(e)&&null!==e&&t.append(!0===o?te([i],r,n):null===o?i:i+"[]",l(e))}),!1;return!!Q(e)||(t.append(te(s,i,n),l(e)),!1)}const f=[],u=Object.assign(ie,{defaultVisitor:d,convertValue:l,isVisitable:Q});if(!X.isObject(e))throw new TypeError("data must be an object");return function e(i,r,n=0){if(!X.isUndefined(i)){if(n>h)throw new Z("Object is too deeply nested ("+n+" levels). Max depth: "+h,Z.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==f.indexOf(i))throw Error("Circular reference detected in "+r.join("."));f.push(i),X.forEach(i,function(i,o){!0===(!(X.isUndefined(i)||null===i)&&s.call(t,i,X.isString(o)?o.trim():o,r,u))&&e(i,r?r.concat(o):[o],n+1)}),f.pop()}}(e),t};function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ne(e,t){this._pairs=[],e&&re(e,this,t)}const oe=ne.prototype;oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,se)}:se;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const ae=ne;function he(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ce(e,t,i){if(!t)return e;const r=i&&i.encode||he,s=X.isFunction(i)?{serialize:i}:i,n=s&&s.serialize;let o;if(o=n?n(t,s):X.isURLSearchParams(t)?t.toString():new ae(t,s).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}const le=class{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,function(t){null!==t&&e(t)})}},de={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},fe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ae,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ue="undefined"!=typeof window&&"undefined"!=typeof document,ge="object"==typeof navigator&&navigator||void 0,_e=ue&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),be="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pe=ue&&window.location.href||"http://localhost",ve={...r,...fe},me=function(e){function t(e,i,r,s){let n=e[s++];if("__proto__"===n)return!0;const o=Number.isFinite(+n),a=s>=e.length;return n=!n&&X.isArray(r)?r.length:n,a?(X.hasOwnProp(r,n)?r[n]=X.isArray(r[n])?r[n].concat(i):[r[n],i]:r[n]=i,!o):(r[n]&&X.isObject(r[n])||(r[n]=[]),t(e,i,r[n],s)&&X.isArray(r[n])&&(r[n]=function(e){const t={},i=Object.keys(e);let r;const s=i.length;let n;for(r=0;r{t(function(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,i,0)}),i}return null},Se=(e,t)=>null!=e&&X.hasOwnProp(e,t)?e[t]:void 0,ye={transitional:de,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const i=t.getContentType()||"",r=i.indexOf("application/json")>-1,s=X.isObject(e);if(s&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(me(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(s){const t=Se(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return re(e,new ve.classes.URLSearchParams,{visitor:function(e,t,i,r){return ve.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((n=X.isFileList(e))||i.indexOf("multipart/form-data")>-1){const i=Se(this,"env"),r=i&&i.FormData;return re(n?{"files[]":e}:e,r&&new r,t)}}return s||r?(t.setContentType("application/json",!1),function(e){if(X.isString(e))try{return(0,JSON.parse)(e),X.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Se(this,"transitional")||ye.transitional,i=t&&t.forcedJSONParsing,r=Se(this,"responseType"),s="json"===r;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(i&&!r||s)){const i=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e,Se(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw Z.from(e,Z.ERR_BAD_RESPONSE,this,null,Se(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ve.classes.FormData,Blob:ve.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});const we=ye,Ce=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ke=e=>{const t={};let i,r,s;return e&&e.split("\n").forEach(function(e){s=e.indexOf(":"),i=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!i||t[i]&&Ce[i]||("set-cookie"===i?t[i]?t[i].push(r):t[i]=[r]:t[i]=t[i]?t[i]+", "+r:r)}),t};(Object.getOwnPropertyDescriptor(ke,"name")||{}).writable||Object.defineProperty(ke,"name",{value:"default",configurable:!0});const Ee=Symbol("internals"),Re=/[^\x09\x20-\x7E\x80-\xFF]/g;function Be(e){return e&&String(e).trim().toLowerCase()}function Le(e){return!1===e||null==e?e:X.isArray(e)?e.map(Le):function(e){let t=0,i=e.length;for(;tt;){const t=e.charCodeAt(i-1);if(9!==t&&32!==t)break;i-=1}return 0===t&&i===e.length?e:e.slice(t,i)}(String(e).replace(Re,""))}function De(e,t,i,r,s){return X.isFunction(r)?r.call(this,t,i):(s&&(t=i),X.isString(t)?X.isString(r)?-1!==t.indexOf(r):X.isRegExp(r)?r.test(t):void 0:void 0)}class Ae{constructor(e){e&&this.set(e)}set(e,t,i){const r=this;function s(e,t,i){const s=Be(t);if(!s)throw new Error("header name must be a non-empty string");const n=X.findKey(r,s);(!n||void 0===r[n]||!0===i||void 0===i&&!1!==r[n])&&(r[n||t]=Le(e))}const n=(e,t)=>X.forEach(e,(e,i)=>s(e,i,t));if(X.isPlainObject(e)||e instanceof this.constructor)n(e,t);else if(X.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))n(ke(e),t);else if(X.isObject(e)&&X.isIterable(e)){let i,r,s={};for(const t of e){if(!X.isArray(t))throw TypeError("Object iterator must return a key-value pair");s[r=t[0]]=(i=s[r])?X.isArray(i)?[...i,t[1]]:[i,t[1]]:t[1]}n(s,t)}else null!=e&&s(t,e,i);return this}get(e,t){if(e=Be(e)){const i=X.findKey(this,e);if(i){const e=this[i];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(e);)t[r[1]]=r[2];return t}(e);if(X.isFunction(t))return t.call(this,e,i);if(X.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Be(e)){const i=X.findKey(this,e);return!(!i||void 0===this[i]||t&&!De(0,this[i],i,t))}return!1}delete(e,t){const i=this;let r=!1;function s(e){if(e=Be(e)){const s=X.findKey(i,e);!s||t&&!De(0,i[s],s,t)||(delete i[s],r=!0)}}return X.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let i=t.length,r=!1;for(;i--;){const s=t[i];e&&!De(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,i={};return X.forEach(this,(r,s)=>{const n=X.findKey(i,s);if(n)return t[n]=Le(r),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}(s):String(s).trim();o!==s&&delete t[s],t[o]=Le(r),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return X.forEach(this,(i,r)=>{null!=i&&!1!==i&&(t[r]=e&&X.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(e=>i.set(e)),i}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,i=this.prototype;function r(e){const r=Be(e);t[r]||(function(e,t){const i=X.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+i,{value:function(e,i,s){return this[r].call(this,t,e,i,s)},configurable:!0})})}(i,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}}Ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(Ae.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}}),X.freezeMethods(Ae);const xe=Ae;function Me(e,t){const i=this||we,r=t||i,s=xe.from(r.headers);let n=r.data;return X.forEach(e,function(e){n=e.call(i,n,s.normalize(),t?t.status:void 0)}),s.normalize(),n}function Te(e){return!(!e||!e.__CANCEL__)}const Oe=class extends Z{constructor(e,t,i){super(null==e?"canceled":e,Z.ERR_CANCELED,t,i),this.name="CanceledError",this.__CANCEL__=!0}};function Pe(e,t,i){const r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(new Z("Request failed with status code "+i.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}const Ie=(e,t,i=3)=>{let r=0;const s=function(e,t){e=e||10;const i=new Array(e),r=new Array(e);let s,n=0,o=0;return t=void 0!==t?t:1e3,function(a){const h=Date.now(),c=r[o];s||(s=h),i[n]=a,r[n]=h;let l=o,d=0;for(;l!==n;)d+=i[l++],l%=e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),h-s{s=n,i=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=n?o(e,t):(i=e,r||(r=setTimeout(()=>{r=null,o(i)},n-a)))},()=>i&&o(i)]}(i=>{const n=i.loaded,o=i.lengthComputable?i.total:void 0,a=null!=o?Math.min(n,o):n,h=Math.max(0,a-r),c=s(h);r=Math.max(r,a),e({loaded:a,total:o,progress:o?a/o:void 0,bytes:h,rate:c||void 0,estimated:c&&o?(o-a)/c:void 0,event:i,lengthComputable:null!=o,[t?"download":"upload"]:!0})},i)},He=(e,t)=>{const i=null!=e;return[r=>t[0]({lengthComputable:i,total:e,loaded:r}),t[1]]},We=e=>(...t)=>X.asap(()=>e(...t)),Fe=ve.hasStandardBrowserEnv?((e,t)=>i=>(i=new URL(i,ve.origin),e.protocol===i.protocol&&e.host===i.host&&(t||e.port===i.port)))(new URL(ve.origin),ve.navigator&&/(msie|trident)/i.test(ve.navigator.userAgent)):()=>!0,Ne=ve.hasStandardBrowserEnv?{write(e,t,i,r,s,n,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];X.isNumber(i)&&a.push(`expires=${new Date(i).toUTCString()}`),X.isString(r)&&a.push(`path=${r}`),X.isString(s)&&a.push(`domain=${s}`),!0===n&&a.push("secure"),X.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ue(e,t,i){let r=!("string"==typeof(s=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s));var s;return e&&(r||!1===i)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const je=e=>e instanceof xe?{...e}:e;function Ge(e,t){t=t||{};const i=Object.create(null);function r(e,t,i,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function s(e,t,i,s){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e,0,s):r(e,t,0,s)}function n(e,t){if(!X.isUndefined(t))return r(void 0,t)}function o(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(i,s,n){return X.hasOwnProp(t,n)?r(i,s):X.hasOwnProp(e,n)?r(void 0,i):void 0}Object.defineProperty(i,"hasOwnProperty",{value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const h={url:n,method:n,data:n,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:a,headers:(e,t,i)=>s(je(e),je(t),0,!0)};return X.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const n=X.hasOwnProp(h,r)?h[r]:s,o=n(X.hasOwnProp(e,r)?e[r]:void 0,X.hasOwnProp(t,r)?t[r]:void 0,r);X.isUndefined(o)&&n!==a||(i[r]=o)}),i}const $e=e=>{const t=Ge({},e),i=e=>X.hasOwnProp(t,e)?t[e]:void 0,r=i("data");let s=i("withXSRFToken");const n=i("xsrfHeaderName"),o=i("xsrfCookieName");let a=i("headers");const h=i("auth"),c=i("baseURL"),l=i("allowAbsoluteUrls"),d=i("url");if(t.headers=a=xe.from(a),t.url=ce(Ue(c,d,l),e.params,e.paramsSerializer),h&&a.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):""))),X.isFormData(r))if(ve.hasStandardBrowserEnv||ve.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(X.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,i])=>{t.includes(e.toLowerCase())&&a.set(e,i)})}if(ve.hasStandardBrowserEnv&&(X.isFunction(s)&&(s=s(t)),!0===s||null==s&&Fe(t.url))){const e=n&&o&&Ne.read(o);e&&a.set(n,e)}return t};(Object.getOwnPropertyDescriptor($e,"name")||{}).writable||Object.defineProperty($e,"name",{value:"default",configurable:!0});const ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,i){const r=$e(e);let s=r.data;const n=xe.from(r.headers).normalize();let o,a,h,c,l,{responseType:d,onUploadProgress:f,onDownloadProgress:u}=r;function g(){c&&c(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let _=new XMLHttpRequest;function b(){if(!_)return;const r=xe.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());Pe(function(e){t(e),g()},function(e){i(e),g()},{data:d&&"text"!==d&&"json"!==d?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:e,request:_}),_=null}_.open(r.method.toUpperCase(),r.url,!0),_.timeout=r.timeout,"onloadend"in _?_.onloadend=b:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(b)},_.onabort=function(){_&&(i(new Z("Request aborted",Z.ECONNABORTED,e,_)),_=null)},_.onerror=function(t){const r=t&&t.message?t.message:"Network Error",s=new Z(r,Z.ERR_NETWORK,e,_);s.event=t||null,i(s),_=null},_.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const s=r.transitional||de;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),i(new Z(t,s.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,_)),_=null},void 0===s&&n.setContentType(null),"setRequestHeader"in _&&X.forEach(n.toJSON(),function(e,t){_.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(_.withCredentials=!!r.withCredentials),d&&"json"!==d&&(_.responseType=r.responseType),u&&([h,l]=Ie(u,!0),_.addEventListener("progress",h)),f&&_.upload&&([a,c]=Ie(f),_.upload.addEventListener("progress",a),_.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{_&&(i(!t||t.type?new Oe(null,e,_):t),_.abort(),_=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);p&&-1===ve.protocols.indexOf(p)?i(new Z("Unsupported protocol "+p+":",Z.ERR_BAD_REQUEST,e)):_.send(s||null)})},Ye=(e,t)=>{const{length:i}=e=e?e.filter(Boolean):[];if(t||i){let i,r=new AbortController;const s=function(e){if(!i){i=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Z?t:new Oe(t instanceof Error?t.message:t))}};let n=t&&setTimeout(()=>{n=null,s(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t);const o=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(s):e.removeEventListener("abort",s)}),e=null)};e.forEach(e=>e.addEventListener("abort",s));const{signal:a}=r;return a.unsubscribe=()=>X.asap(o),a}},qe=function*(e,t){let i=e.byteLength;if(!t||i{const s=async function*(e,t){for await(const i of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}}(e))yield*qe(i,t)}(e,t);let n,o=0,a=e=>{n||(n=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return a(),void e.close();let n=r.byteLength;if(i){let e=o+=n;i(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},{isFunction:Ve}=X,Xe=(({Request:e,Response:t})=>({Request:e,Response:t}))(X.global),{ReadableStream:Je,TextEncoder:Ze}=X.global,Qe=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},et=e=>{e=X.merge.call({skipUndefined:!0},Xe,e);const{fetch:t,Request:i,Response:r}=e,s=t?Ve(t):"function"==typeof fetch,n=Ve(i),o=Ve(r);if(!s)return!1;const a=s&&Ve(Je),h=s&&("function"==typeof Ze?(c=new Ze,e=>c.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var c;const l=n&&a&&Qe(()=>{let e=!1;const t=new i(ve.origin,{body:new Je,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),d=o&&a&&Qe(()=>X.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,i)=>{let r=t&&t[e];if(r)return r.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,i)})});return async e=>{let{url:s,method:o,data:a,signal:c,cancelToken:u,timeout:g,onDownloadProgress:_,onUploadProgress:b,responseType:p,headers:v,withCredentials:m="same-origin",fetchOptions:S}=$e(e),y=t||fetch;p=p?(p+"").toLowerCase():"text";let w=Ye([c,u&&u.toAbortSignal()],g),C=null;const k=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(b&&l&&"get"!==o&&"head"!==o&&0!==(E=await(async(e,t)=>{const r=X.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){const t=new i(ve.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e)?(await h(e)).byteLength:void 0)})(t):r})(v,a))){let e,t=new i(s,{method:"POST",body:a,duplex:"half"});if(X.isFormData(a)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,i]=He(E,Ie(We(b)));a=Ke(t.body,65536,e,i)}}X.isString(m)||(m=m?"include":"omit");const t=n&&"credentials"in i.prototype;if(X.isFormData(a)){const e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}const c={...S,signal:w,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:a,duplex:"half",credentials:t?m:void 0};C=n&&new i(s,c);let u=await(n?y(C,S):y(s,c));const g=d&&("stream"===p||"response"===p);if(d&&(_||g&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=u[t]});const t=X.toFiniteNumber(u.headers.get("content-length")),[i,s]=_&&He(t,Ie(We(_),!0))||[];u=new r(Ke(u.body,65536,i,()=>{s&&s(),k&&k()}),e)}p=p||"text";let R=await f[X.findKey(f,p)||"text"](u,e);return!g&&k&&k(),await new Promise((t,i)=>{Pe(t,i,{data:R,headers:xe.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:C})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t});throw Z.from(t,t&&t.code,e,C,t&&t.response)}}},tt=new Map,it=e=>{let t=e&&e.env||{};const{fetch:i,Request:r,Response:s}=t,n=[r,s,i];let o,a,h=n.length,c=tt;for(;h--;)o=n[h],a=c.get(o),void 0===a&&c.set(o,a=h?new Map:et(t)),c=a;return a},rt=(it(),{http:null,xhr:ze,fetch:{get:it}});X.forEach(rt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,nt=e=>X.isFunction(e)||null===e||!1===e,ot=function(e,t){e=X.isArray(e)?e:[e];const{length:i}=e;let r,s;const n={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=i?e.length>1?"since :\n"+e.map(st).join("\n"):" "+st(e[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return s};function at(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Oe(null,e)}function ht(e){return at(e),e.headers=xe.from(e.headers),e.data=Me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ot(e.adapter||we.adapter,e)(e).then(function(t){return at(e),t.data=Me.call(e,e.transformResponse,t),t.headers=xe.from(t.headers),t},function(t){return Te(t)||(at(e),t&&t.response&&(t.response.data=Me.call(e,e.transformResponse,t.response),t.response.headers=xe.from(t.response.headers))),Promise.reject(t)})}const ct="1.15.2",lt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lt[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const dt={};lt.transitional=function(e,t,i){function r(e,t){return"[Axios v"+ct+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,s,n)=>{if(!1===e)throw new Z(r(s," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!dt[s]&&(dt[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,s,n)}},lt.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};const ft={assertOptions:function(e,t,i){if("object"!=typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const n=r[s],o=Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0;if(o){const t=e[n],i=void 0===t||o(t,n,e);if(!0!==i)throw new Z("option "+n+" must be "+i,Z.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new Z("Unknown option "+n,Z.ERR_BAD_OPTION)}},validators:lt},ut=ft.validators;class gt{constructor(e){this.defaults=e||{},this.interceptors={request:new le,response:new le}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const i=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(i){const t=i.indexOf("\n"),r=-1===t?-1:i.indexOf("\n",t+1),s=-1===r?"":i.slice(r+1);String(e.stack).endsWith(s)||(e.stack+="\n"+i)}}else e.stack=i}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ge(this.defaults,t);const{transitional:i,paramsSerializer:r,headers:s}=t;void 0!==i&&ft.assertOptions(i,{silentJSONParsing:ut.transitional(ut.boolean),forcedJSONParsing:ut.transitional(ut.boolean),clarifyTimeoutError:ut.transitional(ut.boolean),legacyInterceptorReqResOrdering:ut.transitional(ut.boolean)},!1),null!=r&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:ft.assertOptions(r,{encode:ut.function,serialize:ut.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ft.assertOptions(t,{baseUrl:ut.spelling("baseURL"),withXsrfToken:ut.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let n=s&&X.merge(s.common,s[t.method]);s&&X.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=xe.concat(n,s);const o=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const i=t.transitional||de;i&&i.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const h=[];let c;this.interceptors.response.forEach(function(e){h.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[ht.bind(this),void 0];for(e.unshift(...o),e.push(...h),l=e.length,c=Promise.resolve(t);d{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{i.subscribe(e),t=e}).then(e);return r.cancel=function(){i.unsubscribe(t)},r},e(function(e,r,s){i.reason||(i.reason=new Oe(e,r,s),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new bt(function(t){e=t}),cancel:e}}}const pt=bt,vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vt).forEach(([e,t])=>{vt[t]=e});const mt=vt,St=function e(t){const i=new _t(t),r=s(_t.prototype.request,i);return X.extend(r,_t.prototype,i,{allOwnKeys:!0}),X.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return e(Ge(t,i))},r}(we);St.Axios=_t,St.CanceledError=Oe,St.CancelToken=pt,St.isCancel=Te,St.VERSION=ct,St.toFormData=re,St.AxiosError=Z,St.Cancel=St.CanceledError,St.all=function(e){return Promise.all(e)},St.spread=function(e){return function(t){return e.apply(null,t)}},St.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},St.mergeConfig=Ge,St.AxiosHeaders=xe,St.formToJSON=e=>me(X.isHTMLForm(e)?new FormData(e):e),St.getAdapter=ot,St.HttpStatusCode=mt,St.default=St;const yt=St}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/666.61c9442070b0f9ecdd75.js b/modules/dreamview_plus/frontend/dist/666.61c9442070b0f9ecdd75.js new file mode 100644 index 00000000000..be1773f31b5 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/666.61c9442070b0f9ecdd75.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[666],{60666(e,t,r){r.d(t,{Ay:()=>W,rh:()=>L,bv:()=>M,B3:()=>D,s$:()=>B,Sc:()=>E,O6:()=>k});var n=r(40366),o=r(23218),i=r(88206);function a(e){return a="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},a(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r .anticon":{cursor:"pointer",display:"block","&:hover":{color:e.tokens.font.reactive.mainHover},"&:active":{color:e.tokens.font.reactive.mainActive}}},"refresh-ic":{fontSize:e.tokens.font.size.large,marginLeft:e.tokens.margin.speace}}});var j=r(26256),w=r.n(j),k=n.createContext(null);function E(){var e=(0,n.useRef)({}),t=(0,n.useRef)({scrollElem:null}),r=(0,n.useRef)(),o=function(){var r=t.current.scrollElem;if(r){var n=r.scrollTop+r.offsetHeight,o=r.scrollTop;Object.keys(e.current).forEach(function(t){var i=e.current[t],a=i.elem,c=i.cb;if(a){var l=function(e,t){for(var r=0,n=e,o=e;;){var i=n.parentElement,a=getComputedStyle(i,null).getPropertyValue("position"),c="HTML"===i.tagName||i===t;if((["relative","absolute","fixed"].includes(a)||c)&&(r+=o.offsetTop,o=i),n=i,c)break}return r}(a,r);c(a.offsetHeight+l>o&&le.length)&&(t=e.length);for(var r=0,n=Array(t);r3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!e)return[];var a={},c=e.map(function(e){return[e[t]+o,e[r]]});return i&&(c=c.filter(function(e){var t,r,n=(t=e,r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return!a[n]&&(a[n]=!0,!0)})),n&&e.length&&c.push([e[0][t],e[0][r]]),c}function M(e,t,r){if(!e||!t||e.length!==t.length)return[];for(var n=[],o=0;oe.length)&&(t=e.length);for(var r=0,n=Array(t);r'.concat(o,"
")+t.reduce(function(t,n){var o,i,a=(null===(o=e.series[n.seriesIndex])||void 0===o||null===(o=o.lineStyle)||void 0===o?void 0:o.color)||e.series.color||r[n.seriesIndex],c='');return"".concat(t).concat(c," ").concat(n.seriesName,": ").concat((null===(i=n.value)||void 0===i?void 0:i[1])||"-","
")},"")},padding:[10,16,10,16],backgroundColor:"rgba(255,255,255,0.21)",extraCssText:"box-shadow: 0px 6px 12px 2px rgba(0,0,0,0.1);backdrop-filter: blur(5px);",borderColor:"transparent",textStyle:{color:t}}}(e,I.components.pncMonitor.toolTipColor,I.components.pncMonitor.chartColors),function(e,t){e.color=t}(e,I.components.pncMonitor.chartColors),function(e){var t;j.current&&R.current&&(null===(t=j.current)||void 0===t||t.setOption(e,{replaceMerge:["dataset","graphic"]}))}(e),S((e.series||[]).map(function(e){var t;return{name:e.name,color:null===(t=e.lineStyle)||void 0===t?void 0:t.color}}))}},[r,p,I]);var L=(0,n.useRef)({unDo:function(){return!1}}),M=(0,n.useCallback)(function(e){A&&(L.current.unDo=A.regisitScrollEvent(d,e,function(e){R.current=e}))},[]);return(0,n.useEffect)(function(){return function(){L.current.unDo()}},[]),n.createElement(Z,{onRef:M,autoHeight:l,onReset:D,onRefresh:i,onLegendClick:T,title:a,yAxisName:E,onCanvasRef:h,legends:N,titleExtra:u,className:s})}}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/781.cdc7d9148dc8ec954a06.js b/modules/dreamview_plus/frontend/dist/781.cdc7d9148dc8ec954a06.js new file mode 100644 index 00000000000..033d41f5d52 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/781.cdc7d9148dc8ec954a06.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[781],{98781(e,t,r){r.r(t),r.d(t,{default:()=>S});var n=r(40366),o=r(88219);function a(e){return a="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},a(e)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r2e3&&"TrafficLight"!==e;return{name:e,delay:c[e],fronDelay:c[e]<0?"-":(0,o.Dy)(c[e]),frotWarning:t}}):[]},[c]);return(0,n.useEffect)(function(){m(null==v?void 0:v.delay)},[v]),n.createElement(y.A,{className:a["panel-module-delay-root"]},n.createElement("ul",{className:a["panel-module-delay-scroll"]},h.map(function(e,t){return n.createElement("li",{className:a["panel-module-delay-item"],key:t+1},n.createElement("span",{className:a.name},e.name),n.createElement("span",{className:i(a.time,b({},a.error,e.frotWarning))},e.fronDelay))})))}function h(e){var t=(0,n.useMemo)(function(){return(0,m.A)({PanelComponent:g,panelId:e.panelId,subscribeInfo:[{name:f.lt.SIM_WORLD,needChannel:!1}]})},[]);return n.createElement(t,e)}g.displayName="InternalModuleDelay";const S=n.memo(h)},88219(e,t,r){function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(e);if(n>Math.pow(10,t-1))return String(n);var o="0".repeat(t-String(n).length);if("number"!=typeof n)throw new Error("fill0 recived an invidate value");return r?"".concat(o).concat(n):"".concat(n).concat(o)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Date(e),o=n(r.getHours()),a=n(r.getMinutes()),i=n(r.getSeconds()),l=n(r.getMilliseconds(),3),c="".concat(o,":").concat(a,":").concat(i);return t&&(c+=":".concat(l)),c}function a(e){var t=n(Math.floor(e%1e3),3),r=n(Math.floor(e/1e3%60)),o=n(Math.floor(e/6e4));return"".concat(o,":").concat(r,".").concat(t)}r.d(t,{Dy:()=>a,_E:()=>n,eh:()=>o})}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.1380d1be38b216372eaf.js b/modules/dreamview_plus/frontend/dist/782.1380d1be38b216372eaf.js new file mode 100644 index 00000000000..06f76c8b33b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.1380d1be38b216372eaf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(console.log("Visualization mode:",ye),ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&0!==Object.keys(e).length){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.8cd7de231b469a8fee1d.js b/modules/dreamview_plus/frontend/dist/782.8cd7de231b469a8fee1d.js new file mode 100644 index 00000000000..f86cd851f0c --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.8cd7de231b469a8fee1d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&(e.perceivedSignal&&A.updateSignal(e.perceivedSignal),0!==Object.keys(e).length)){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){e.perceivedSignal&&A.updateSignal(e.perceivedSignal);var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.93d5c1d1668c44476eed.js b/modules/dreamview_plus/frontend/dist/782.93d5c1d1668c44476eed.js new file mode 100644 index 00000000000..4b6c1c873d1 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.93d5c1d1668c44476eed.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(console.log("Visualization mode:",ye),ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&0!==Object.keys(e).length){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){e.perceivedSignal&&A.updateSignal(e.perceivedSignal);var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.a305db52fb17542146ce.js b/modules/dreamview_plus/frontend/dist/782.a305db52fb17542146ce.js new file mode 100644 index 00000000000..6cfae9d5845 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.a305db52fb17542146ce.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&0!==Object.keys(e).length){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.ab4041d90e2bf9653ecc.js b/modules/dreamview_plus/frontend/dist/782.ab4041d90e2bf9653ecc.js new file mode 100644 index 00000000000..60967942ce8 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.ab4041d90e2bf9653ecc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(console.log("Visualization mode:",ye),ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&0!==Object.keys(e).length){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){console.log("signals",e.perceivedSignal);var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.d09abc98db2d0818c80a.js b/modules/dreamview_plus/frontend/dist/782.d09abc98db2d0818c80a.js new file mode 100644 index 00000000000..c4cb6a0384b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.d09abc98db2d0818c80a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(console.log("Visualization mode:",ye),ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&(e.perceivedSignal&&A.updateSignal(e.perceivedSignal),0!==Object.keys(e).length)){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){e.perceivedSignal&&A.updateSignal(e.perceivedSignal);var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/782.d9ff38dd0e8b1cbbcec9.js b/modules/dreamview_plus/frontend/dist/782.d9ff38dd0e8b1cbbcec9.js new file mode 100644 index 00000000000..d36421d605c --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/782.d9ff38dd0e8b1cbbcec9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[782],{23240(e,t,n){n.r(t),n.d(t,{default:()=>tn});var r=n(40366),o=n(88206);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n div:nth-of-type(1)":{"& .ant-form-item-label":{"& label":{position:"relative",top:"4px"}}}}}},"& .dreamview-modal-footer":{display:"flex",justifyContent:"center",alignItems:"center","& > button":{width:"74px",height:"40px",borderRadius:"8px"},"& > button:nth-of-type(1)":{color:"#FFFFFF",background:"#282B36",border:"1px solid rgba(124,136,153,1)"},"& > button:nth-of-type(2)":{background:"#3288FA",borderRadius:"8px",marginLeft:"24px !important"}}},"routing-form-initial":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",marginLeft:"39px",marginBottom:"16px",display:"flex"},"routing-form-initial-content":{width:"320px",color:"#FFFFFF",display:"flex",justifyContent:"space-between"},"routing-form-initial-content-heading":{width:"111px"},"routing-form-way":{height:"264px",border:"1px solid rgba(56,59,69,1)",borderRadius:"8px",padding:"16px 0px 16px 45px",marginBottom:"12px"},"routing-form-way-con":{fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400",color:"#FFFFFF",display:"flex"},"routing-form-way-content":{flex:"1"},"routing-form-way-item":{color:"#FFFFFF",marginBottom:"8px",display:"flex",justifyContent:"space-between"},"routing-form-way-item-heading":{width:"111px"},"routing-form-colon":{color:"#A6B5CC",marginRight:"6px"},"routing-form-colon-distance":{marginLeft:"2px"},"routing-form-loop-disable":{background:"rgb(40, 93, 164)","& .dreamview-switch-handle":{background:"rgb(190, 206, 227)",borderRadius:"3px"}},"create-modal-form":{"& .ant-form-item-label":{"& label":{color:"#A6B5CC !important"}}}}});var X=n(27878),Q=n(91363);function ee(e){return ee="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},ee(e)}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n10?10:t}delete e.loopRouting,a.saveDefaultRouting(ne(ne({},e),{},{routingType:b.D5.DEFAULT_ROUTING,point:[P].concat((r=S,function(e){if(Array.isArray(e))return ae(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||ie(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})).then(function(){n.emit(Q.u.SimControlRoute,{panelId:l.panelId,routeInfo:{initialPoint:P,wayPoint:S,cycleNumber:null==e?void 0:e.cycleNumber}}),m(),i(),(0,o.iU)({type:"success",content:v("createCommonRouteSuccess")})})}var r})},onCancel:function(){i()},rootClassName:y["routing-modal"]},r.createElement(o.lV,{form:p,name:"form",className:y["create-modal-form"],initialValues:{loopRouting:E,cycleNumber:O}},r.createElement(o.lV.Item,{label:v("name"),style:{marginLeft:"74px"},name:"name",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?t&&f.find(function(e){return e.name===t})?Promise.reject(new Error(v("alreadyExists"))):Promise.resolve():Promise.reject(new Error(v("pleaseEnter")))}}}]},r.createElement(o.pd,{placeholder:"Please enter",style:{width:"252px",height:"40px"}})),r.createElement("div",{className:y["routing-form-initial"]},r.createElement("div",{className:y["routing-form-colon"]},v("initialPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-initial-content"]},r.createElement("div",null,"[".concat(P.x.toFixed(3)," ,").concat(P.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-initial-content-heading"]},null!=P&&P.heading?P.heading.toFixed(3):"-"))),r.createElement(X.A,{className:y["routing-form-way"]},r.createElement("div",{className:y["routing-form-way-con"]},r.createElement("div",{className:y["routing-form-colon"]},v("wayPoint"),r.createElement("span",{className:y["routing-form-colon-distance"]},":")),r.createElement("div",{className:y["routing-form-way-content"]},null==S?void 0:S.map(function(e,t){return r.createElement("div",{key:"".concat(e.x).concat(e.y).concat(t+1),className:y["routing-form-way-item"]},r.createElement("div",null,"[".concat(e.x.toFixed(3),",").concat(e.y.toFixed(3),"]")),r.createElement("div",{className:y["routing-form-way-item-heading"]},null!=e&&e.heading?e.heading.toFixed(3):"-"))})))),E&&r.createElement(o.lV.Item,{label:v("loopRouting"),style:{marginLeft:"16px"},name:"loopRouting",valuePropName:"checked"},r.createElement(o.dO,{disabled:!0,className:y["routing-form-loop-disable"]})),E&&r.createElement(o.lV.Item,{label:v("setLooptimes"),style:{marginLeft:"11px"},name:"cycleNumber",rules:[function(e){return e.getFieldValue,{validator:function(e,t){return t?Number(t)>10?Promise.reject(new Error("Max loop times is 10")):Promise.resolve():Promise.reject(new Error("Please enter"))}}}]},r.createElement(o.YI,{type:"number",max:10,precision:0,disabled:!0}))))}var ce=function(e){return e.EDITING_ROUTE="editing",e.CREATING_ROUTE="creating",e}({}),ue=function(e){return e.INITIAL_POINT="initial_point",e.WAY_POINT="way_point",e.INDOOR_LOCALIZATION_POINT="indoor_localization_point",e}({}),se=n(29946),fe=n(47127),me="INIT_ROUTING_EDITOR",pe="INIT_ROUTE_MANAGER",de=se.$7.createStoreProvider({initialState:{routingEditor:null,routeManager:null},reducer:function(e,t){return(0,fe.jM)(e,function(e){switch(t.type){case me:e.routingEditor=t.payload.routingEditor;break;case pe:e.routeManager=t.payload.routeManager}})}}),ye=de.StoreProvider,ve=de.useStore;const be=(0,K.n9)(function(){return{"favorite-scroll":{width:"284px",maxHeight:"402px",padding:"16px 16px"},"favorite-creating-op":{width:"252px",height:"40px",marginBottom:"10px"},"favorite-common-co":{"& > div:last-child":{borderBottom:"none"}},"favorite-common-item":{height:"40px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular",borderBottom:"1px solid #383B45",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center","& .favorite-common-item-op-hover":{display:"none"},"&:hover":{width:"268px",background:"rgba(115,193,250,0.08)",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-op-no-hover":{display:"none"},"& .favorite-common-item-op-hover":{display:"block"}}},"favorite-common-item-active":{background:"#3288FA !important",borderRadius:"6px",margin:"0px -8px 0px -8px",padding:"0px 8px 0px 8px","& .favorite-common-item-name-cx":{color:"#FFFFFF"},"& .favorite-common-item-op-no-hover-val-cx":{background:"#3288FA"},"& .favorite-common-item-op-no-hover-title-cx":{color:"#FFFFFF !important"},"&: hover":{"& .favorite-common-item-op-hover":{display:"none"},"& .favorite-common-item-op-no-hover":{display:"block"}}},"favorite-common-item-op-no-hover-title":{color:"#808B9D"},"favorite-common-item-op-no-hover-val":{width:"18px",height:"18px",color:"#FFFFFF",fontSize:"12px",textAlign:"center",lineHeight:"18px",marginLeft:"4px",background:"#343C4D",borderRadius:"4px",display:"inline-block"},"favorite-common-item-op-hover-remove":{color:"#FFFFFF",marginLeft:"23px"},"favorite-common-item-name":{width:"150px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"favorite-warning-co":{padding:"14px 0px 32px 0px",display:"flex",flexDirection:"column",alignItems:"center"},"favorite-warning-co-desc":{width:"195px",color:"#A6B5CC",fontSize:"12px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"favorite-warning-co-desc-active":{color:"#3288FA",cursor:"pointer"}}});var ge=n(27470),he=n(1465);function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),y=d[0],v=d[1];return(0,r.useEffect)(function(){v(!m)},[m]),r.createElement("div",{className:i(y&&n["functional-initial-disable"],n["functional-initial-con"])},r.createElement(o.AM,{content:l("backToLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){var e=a.initiationMarker.undo();u&&(e?s.setStartPoint({point:e}).then(function(){p(a.initiationMarker.positionsCount)}):s.setResetPoint().then(function(){p(a.initiationMarker.positionsCount)}))}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("backToStartPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:y&&i(n["functional-initial-every-icon-con"])},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){u&&s.setResetPoint().then(function(){a.initiationMarker.reset(),p(a.initiationMarker.positionsCount)})}},r.createElement(o.Av,{name:"IcBackTheStartingPoint"})))))}const nt=(0,K.n9)(function(e){return{"functional-initial-con":{display:"flex"},"functional-initial-every-icon-con":{cursor:"not-allowed"},"functional-initial-disable":{"& .functional-initial-every-icon-disable":{color:"#40454D",pointerEvents:"none"}},"functional-initial-popover":{"& .dreamview-popover-inner-content":{padding:"5px 10px",color:"#FFFFFF",fontFamily:"PingFangSC-Regular",fontSize:"14px",fontWeight:"400"}},"functional-initial-every-icon":{width:"32px",height:"32px",color:"#A6B5CC",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{color:"#D8D8D8",background:"rgba(115,193,250,0.08)"}}}});function rt(e){return rt="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},rt(e)}function ot(e,t,n){return(t=function(e){var t=function(e){if("object"!=rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function it(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0)),2),m=f[0],p=f[1];return(0,r.useEffect)(function(){p(!u)},[u]),r.createElement("div",{className:i(ot({},n["functional-initial-disable"],m),n["functional-initial-con"])},r.createElement(o.AM,{content:l("removeLastPoint"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.undo(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcBackToAstPoint"})))),r.createElement(o.AM,{content:l("removeAllPoints"),trigger:"hover",rootClassName:n["functional-initial-popover"]},r.createElement("div",{className:i(ot({},n["functional-initial-every-icon-con"],m))},r.createElement("div",{className:i("functional-initial-every-icon-disable",n["functional-initial-every-icon"]),onClick:function(){a.pathwayMarker.reset(),s(a.pathwayMarker.positionsCount)}},r.createElement(o.Av,{name:"IcRemoveAllPoints"})))))}const ct=(0,K.n9)(function(){return{"functional-loop-con":{width:"257px",padding:"16px 0px 21px 0px",color:"#A6B5CC",fontSize:"14px",fontWeight:"400",fontFamily:"PingFangSC-Regular"},"functional-loop-switch":{width:"160px",height:"20px",margin:"0px 0px 0px 32px",display:"flex",justifyContent:"space-around",alignItems:"center"},"functional-loop-switch-help":{"& .dreamview-popover-arrow::before":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-arrow::after":{background:"rgba(40, 43, 54) !important"},"& .dreamview-popover-inner-content":{width:"302px",color:"#FFFFFF",fontSize:"14px",fontWeight:"400",padding:"5px 10px",borderRadius:"6px",fontFamily:"PingFangSC-Regular",background:"rgba(80, 88, 102, 0.8)"}},"functional-loop-switch-remind":{position:"relative",top:"2px"},"functional-loop-input":{height:"32px",margin:"16px 0px 0px 20px",display:"flex",alignItems:"center"},"functional-loop-input-text":{marginRight:"6px"}}});function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n3e4},[C]),x=(0,r.useCallback)(function(e,n){var r={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:t.initiationMarker.initiationMarkerPosition,routeWayPoint:t.pathwayMarker.pathWatMarkerPosition}};if(n)if((null==n?void 0:n.origin)!==ge.Ay.INDOOR_LOCALIZATION)if("lastPosition"in n){var i,a,l=n.lastPosition;"edit"===e&&(null===(a=c.currentRouteManager)||void 0===a||a.setScribeCurrentCheckPoint(dt(dt({},l),{},{type:ue.WAY_POINT}))),null===(i=c.currentRouteManager)||void 0===i||i.setCurrentRoute(r)}else{var u,s;"edit"===e&&(null===(s=c.currentRouteManager)||void 0===s||s.setScribeCurrentCheckPoint(dt(dt({},n),{},{type:ue.INITIAL_POINT}))),null===(u=c.currentRouteManager)||void 0===u||u.setCurrentRoute(r)}else if("edit"===e){if(!P())return void t.indoorLocalizationMarker.undo();C.current=(new Date).getTime();var f=null==n?void 0:n.lastPosition;(0,o.iU)({type:"loading",content:"The Initialization point has been sent and is waiting for the indoor localization module to complete initialization",key:"sendIndoorLocalizationInitPoint",duration:30}),m.sendIndoorLocalizationInitPoint(f).then(function(){var e=setInterval(function(){new Promise(function(e,t){m.checkIndoorLocalizationInitPointStatus().then(function(){e()}).catch(function(){t()})}).then(function(){o.iU.destory("sendIndoorLocalizationInitPoint"),clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"success",content:"IndoorLocalization Success",key:"checkIndoorLocalizationState"}),null==m||m.getStartPoint().then(function(e){t.initiationMarker.init(e)})},function(){P()&&(clearInterval(e),t.indoorLocalizationMarker.reset(),(0,o.iU)({type:"error",content:"IndoorLocalization Fail",key:"checkIndoorLocalizationState"}))})},1e4)}).catch(function(){(0,o.iU)({type:"error",content:"send IndoorLocalization Init Point Fail",key:"sendIndoorLocalizationInitPoint"})})}},[t.initiationMarker,t.pathwayMarker,c.currentRouteManager]);(0,r.useEffect)(function(){Object.values(ge.e_).includes(i)&&([ge.e_.RELOCATE,ge.e_.WAYPOINT,ge.e_.INDOOR_LOCALIZATION].includes(i)||h(null))},[i,t]),(0,r.useEffect)(function(){var e=function(e){"r"===e.key&&b!==ge.Ay.RELOCATE&&(null==t||t.deactiveAll(),h(ge.Ay.RELOCATE),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x)),"w"===e.key&&b!==ge.Ay.WAYPOINT&&(null==t||t.deactiveAll(),h(ge.Ay.WAYPOINT),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x)),"i"===e.key&&b!==ge.Ay.INDOOR_LOCALIZATION&&(null==t||t.deactiveAll(),h(ge.Ay.INDOOR_LOCALIZATION),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)),(e.ctrlKey||e.metaKey)&&"z"===e.key&&(b===ge.Ay.RELOCATE&&(null==t||t.initiationMarker.undo()),b===ge.Ay.WAYPOINT&&(null==t||t.pathwayMarker.undo()))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[b]);var I=(0,r.useCallback)(function(e){return function(){if(e!==ge.Ay.RELOCATE||!E){if(b===e)return Object.values(ge.e_).includes(e)&&(null==t||t.deactiveAll()),void h(null);switch(e){case ge.Ay.RELOCATE:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.RELOCATE),null==t||t.initiationMarker.active(x);break;case ge.Ay.WAYPOINT:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.WAYPOINT),null==t||t.pathwayMarker.active(x);break;case ge.Ay.LOOP:u.pathwayMarker.positionsCount>0?f&&m.getStartPoint().then(function(n){var r={x:n.x,y:n.y,heading:null==n?void 0:n.heading},i=u.pathwayMarker.lastPosition;m.checkCycleRouting({start:r,end:i}).then(function(n){n.isCycle?(h(e),null==t||t.deactiveAll()):(d.setCurrentRouteMix({currentRouteLoop:{currentRouteLoopState:!1}}),(0,o.iU)({type:"error",content:p("NoLoopMessage")}))})}):(0,o.iU)({type:"error",content:p("NoWayPointMessage")});break;case ge.Ay.FAVORITE:h(e),null==t||t.deactiveAll();break;case ge.Ay.INDOOR_LOCALIZATION:h(e),null==t||t.deactiveAll(),null==n||n(ge.e_.INDOOR_LOCALIZATION),null==t||t.indoorLocalizationMarker.active(x)}}}},[t,n,b]),N=b===ge.Ay.RELOCATE?r.createElement(tt,null):r.createElement(Je,{functionalItemNoActiveText:E?Ge.FunctionalRelocateNoActiveDis:Ge.FunctionalRelocateNoActive}),R=b===ge.Ay.WAYPOINT?r.createElement(lt,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionaWayNoActive}),j=b===ge.Ay.LOOP?r.createElement(ft,null):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalLoopNoActive}),L=b===ge.Ay.FAVORITE?r.createElement(Ae,{activeOrigin:ge.uW.FROM_FULLSCREEN}):r.createElement(Je,{functionalItemNoActiveText:Ge.FunctionalFavoriteNoActive}),F=(0,r.useMemo)(function(){return r.createElement(Je,{functionalItemNoActiveText:O?Ge.FunctionalIndoorLocationNoActive:Ge.FunctionalIndoorLocationNoActiveDis})},[O]);return r.createElement("div",{className:S["routing-editing-function-area"]},r.createElement("div",{className:S["routing-editing-function-area__group"]},r.createElement(_e,{content:N,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.RELOCATE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",{className:A(yt({},S["func-relocate-ele"],E))},r.createElement($e,{functionalName:ge.Ay.RELOCATE,checkedItem:b,onClick:I(ge.Ay.RELOCATE),disable:E}))),r.createElement(_e,{content:R,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.WAYPOINT?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.WAYPOINT,checkedItem:b,onClick:I(ge.Ay.WAYPOINT)}))),r.createElement(_e,{content:F,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.INDOOR_LOCALIZATION?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.INDOOR_LOCALIZATION,checkedItem:b,onClick:I(ge.Ay.INDOOR_LOCALIZATION),disable:!O}))),r.createElement(_e,{content:j,trigger:"hover",placement:"right",mouseLeaveDelay:.5,destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.LOOP?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.LOOP,checkedItem:b,onClick:I(ge.Ay.LOOP)})))),r.createElement(_e,{content:L,trigger:"hover",placement:"rightTop",destroyTooltipOnHide:!0,rootClassName:A(b===ge.Ay.FAVORITE?S["custom-popover-functinal"]:S["custom-popover-ordinary"])},r.createElement("div",null,r.createElement($e,{functionalName:ge.Ay.FAVORITE,checkedItem:b,onClick:I(ge.Ay.FAVORITE)}))))}const ht=r.memo(gt),Et=(0,K.n9)(function(e){return{"routing-editing-op-con":{"& > button:nth-of-type(1)":{width:"72px",height:"32px",marginRight:"16px",backgroundColor:e.components.routingEditing.backgroundColor,border:e.components.routingEditing.border,color:e.components.routingEditing.color,"&:hover":{color:e.components.routingEditing.hoverColor,backgroundColor:e.components.routingEditing.backgroundHoverColor,border:e.components.routingEditing.borderHover},"&:active":{color:e.components.routingEditing.activeColor,backgroundColor:e.components.routingEditing.backgroundActiveColor,border:e.components.routingEditing.borderActive}},"& > button:nth-of-type(2)":{width:"114px",height:"32px"}}}});function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1])||arguments[1];m.coordinates.initialize(t.x,t.y),r&&m.initiationMarker.init(t),x(new ke.Vector3(t.x,t.y,0)),e=n.currentRouteManager.subScribeCurrentRoute(function(e){var t=e.routeOrigin,n=e.routePoint;if(t===ce.CREATING_ROUTE){var r=n.routeInitialPoint,o=n.routeWayPoint;m.initiationMarker.init(r),m.pathwayMarker.init(o)}})};return null==u||u.getMapElementIds({radius:20}).then(function(e){var n=xt(y.getMapElement(e),2),r=(n[0],n[1]);u.getMapElementsByIds(r).then(function(e){if(y.updateMapElement(e),Ie.A.findFirstMapElement(r))try{null==m||m.updateMap(e),m.render(),m.setCameraUpdateCallback(x),null==u||u.getStartPoint().then(function(e){t(e)}).catch(function(){u.getVirtualStartPoint().then(function(e){t(e,!1)})})}catch(e){console.error("getMapElementById error",e)}})}),function(){var t;null===(t=e)||void 0===t||t.unsubscribe()}},[s,C.currentMap]),(0,r.useEffect)(function(){var t=a.subScribeCurrentCheckPoint(function(t){if(s){var n=t,r=t.type;delete n.type,u.checkRoutingPoint({point:Ct(Ct({},n),{},{id:0})}).then(function(t){t.isLegal?r===ue.INITIAL_POINT&&u.setStartPoint({point:Ct({},n)}):(r===ue.INITIAL_POINT&&(m.initiationMarker.undo(),(0,o.iU)({type:"error",content:e("checkStartPointTooltip")})),r===ue.WAY_POINT&&(m.pathwayMarker.undo(),(0,o.iU)({type:"error",content:e("checkPointTooltip")})))})}});return function(){t.unsubscribe()}},[s]),r.createElement("div",{className:A["viz-container"]},r.createElement("div",{id:p,className:A["web-gl"]}),r.createElement(ht,{carviz:m,activeName:h,changeActiveName:w}),r.createElement("div",{className:A["view-btn-container"]},r.createElement(z.A,{carviz:m,activeName:h,changeActiveName:w})),r.createElement("div",{className:A["view-ope-container"]},r.createElement(wt,null)))}var Nt=n(74633),Rt=n(23110);function jt(e){return jt="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},jt(e)}function Lt(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=1e3&&(we(Pe),Pe=0,Ie=e),Ce(null==A?void 0:A.renderer.info.render.triangles)}}(),null==A||A.render(),be.current=requestIdleCallback(function(){Te()},{timeout:1e3})},Me=function(){null==A||A.updateData({object:[],autoDrivingCar:{}}),null==A||A.render(),null!=he&&he.current&&he.current.unsubscribe(),ge.current&&ge.current.subscription&&(ge.current.subscription.unsubscribe(),ge.current=null)};(0,r.useEffect)(function(){ve(pe)},[pe]),(0,r.useEffect)(function(){A.init();var e=x();P.set(e),A.option.updateLayerOption(C(e),"vehicle"),e.Perception.pointCloud.currentVisible&&setTimeout(function(){H({name:b.lt.POINT_CLOUD,needChannel:!1})},0)},[]),(0,r.useEffect)(function(){var e=[{keys:["="],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["="],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(-10)},discriptor:$("zoomIn")},{keys:["-"],functionalKey:"ctrlKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")},{keys:["-"],functionalKey:"metaKey",handler:function(e){var t;e.preventDefault(),null===(t=A.view)||void 0===t||t.updateViewDistance(10)},discriptor:$("zoomOut")}];return Y(e),function(){Z(e)}},[$]);var Ve=function(e){var t,n,r,o=Zt(Zt({},e),{},{boudingBox:!!ne}),i=null,a=(null==o||null===(t=o.planningData)||void 0===t?void 0:t.path)||[];return Array.isArray(null==o||null===(n=o.planningData)||void 0===n?void 0:n.path)?(ie||(i=["planning_path_boundary_1_regular/self","candidate_path_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","candidate_path_fallback/self","planning_path_boundary_2_fallback/self"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),a=(null==o||null===(r=o.planningData)||void 0===r?void 0:r.path)||[],ce||(i=["planning_reference_line"],o.planningData.path=a.filter(function(e){return!i.includes(e.name)})),!fe&&o.planningTrajectory&&(o.planningTrajectory=[]),o):o};(0,r.useEffect)(function(){if(B){if("/"!==y.currentPath)return function(){return null};var e=null,t=null;if(ye===Re.FOLLOW){A.removeAll(),A.view.setViewType("Overhead");var n=U({name:b.lt.SIM_WORLD,needChannel:!1});n&&(t=n.subscribe(function(e){if(e&&(console.log("follow simData :>> ",e),0!==Object.keys(e).length)){var t={autoDrivingCar:e.autoDrivingCar,followPlanningData:e.planningTrajectory};A.updateData(t)}}))}if(ye===Re.DEFAULT){A.follow.dispose();var r=E()(function(e){M.getRoutePath().then(function(t){if(p.current=e.routingTime,0!==Object.keys(e).length){var n=Zt({},e);n.routePath=t.routePath,A.updateData(Ve(n)),null==A||A.pointCloud.updateOffsetPosition()}})},500,{leading:!0}),o=U({name:b.lt.SIM_WORLD,needChannel:!1});o&&(t=o.subscribe(function(e){if(e){var t=e.autoDrivingCar;if(t){var n,o,i=null!==(n=t.positionX)&&void 0!==n?n:0,a=null!==(o=t.positionY)&&void 0!==o?o:0,l=Math.abs(R.current[0]-i)+Math.abs(R.current[1]-a);K.debug("车辆偏移距离:".concat(l,", 阈值为100")),l>100&&0!==R.current[0]&&0!==R.current[1]&&A&&A.initialized&&(K.debug("车辆偏移距离超过阈值,重置场景"),A.resetScence()),R.current=[i,a]}0!==Object.keys(e).length&&(e.routingTime&&e.routingTime!==p.current?r(e):(A.updateData(Ve(e)),null==A||A.pointCloud.updateOffsetPosition()))}}));var i=U({name:b.lt.Map,needChannel:!1});i&&(e=i.subscribe(function(e){e&&(null==A||A.updateMap(e))}))}return function(){ye===Re.FOLLOW&&(A.view.setViewType("Default"),t&&t.unsubscribe()),ye===Re.DEFAULT&&(e&&e.unsubscribe(),t&&t.unsubscribe())}}},[ye,B,ce,ie,fe,ne,y.currentPath]),(0,r.useEffect)(function(){return"/"===y.currentPath&&Te(),function(){var e=be.current;e&&cancelIdleCallback(e)}},[y.currentPath]);var De=(0,k.A)().metadata,_e=(0,r.useMemo)(function(){return De.find(function(e){return e.dataName===b.lt.POINT_CLOUD})},[De,B]),ze=(0,r.useMemo)(function(){return _e?_e.channels.map(function(e){return{label:null==e?void 0:e.channelName,value:null==e?void 0:e.channelName}}):[]},[_e]),Be=(0,r.useMemo)(function(){var e,t=null===(e=De.find(function(e){return e.dataName===b.lt.POINT_CLOUD}))||void 0===e||null===(e=e.channels)||void 0===e?void 0:e.filter(function(e){return(null==e?void 0:e.channelName.includes("compensator"))||(null==e?void 0:e.channelName.includes("fusion"))}).sort(function(e){return null!=e&&e.channelName.includes("compensator")?-1:1});return Array.isArray(t)?t[0]:""},[De]),Ke=(0,w.Mj)("".concat(W,"-viz-pointcloud-channel"));(0,r.useEffect)(function(){var e=null;if(B){var t=Ke.get();q&&t&&(e=U({name:b.lt.POINT_CLOUD,channel:t,needChannel:!0}))&&(he.current=e.subscribe(function(e){e&&(null==A||A.updatePointCloud(e))}),ee(t))}return function(){he.current&&he.current.unsubscribe(),A.pointCloud.disposeLastFrame()}},[De,q,B]),(0,r.useEffect)(function(){return function(){var e;null===(e=ge.current)||void 0===e||null===(e=e.subscription)||void 0===e||e.unsubscribe()}},[]);var We=r.createElement(D,{carviz:A,pointCloudFusionChannel:Be,handlePointCloudVisible:J,curChannel:Q,setCurChannel:ee,pointcloudChannels:ze,updatePointcloudChannel:function(e){Me();var t=V.subscribeToDataWithChannel(b.lt.POINT_CLOUD,e).subscribe(function(e){e&&(null==A||A.updatePointCloud(e))});ge.current={name:b.lt.POINT_CLOUD,subscription:t}},closeChannel:Me,handleReferenceLineVisible:ue,handleBoundaryLineVisible:ae,handleTrajectoryLineVisible:me,handleBoudingBoxVisible:re});return r.createElement("div",{className:s["viz-container"]},r.createElement("div",{id:N,className:s["web-gl"]}),r.createElement("div",{className:s["viz-rend-fps-item-hide"],onClick:function(){Ne(function(e){var t=e+1;return 5===t?(Fe(!Le),console.log("change fps text visible : ".concat(Le)),0):t})}}),!Le&&r.createElement("div",{className:s["viz-rend-fps-item"]},r.createElement("header",{className:"FPS-display"},r.createElement("p",null,"fps: ",Oe,"   triangles: ",Ae))),r.createElement("div",{className:s["viz-btn-container"]},r.createElement(z.A,{carviz:A},r.createElement(o.AM,{placement:"leftTop",content:We,trigger:"click"},r.createElement("span",{className:s["viz-btn-item"]},r.createElement(o.Av,{name:"IcCoverageHover"}))),r.createElement(o.AM,{overlayClassName:s["layer-menu-popover"],placement:"leftBottom",content:r.createElement(_.A,{carviz:A,setCurrentView:F}),trigger:"click",style:{padding:"0 !importent"}},r.createElement("span",{className:s["viz-btn-item"]},null==L?void 0:L.charAt(0))))),r.createElement(xe,null))}function Xt(){var e=Gt(ve(),2)[1],t={routeOrigin:ce.EDITING_ROUTE,routePoint:{routeInitialPoint:null,routeWayPoint:[]}},n={currentRouteLoop:{currentRouteLoopState:!1}};return(0,r.useEffect)(function(){var r;e((r={routeManager:new Ut(t,n)},{type:pe,payload:r}))},[]),r.createElement(m,{initialPath:"/"},r.createElement(y,{path:"/",style:{minWidth:"244px",height:"100%",position:"relative"}},r.createElement(Jt,null)),r.createElement(p,{path:"/routing",style:{width:"100%",height:"100%"}},r.createElement(kt,null)))}function Qt(){return r.createElement(ye,null,r.createElement(Xt,null))}function en(e){var t=(0,r.useMemo)(function(){return(0,B.A)({PanelComponent:Qt,panelId:e.panelId})},[]);return r.createElement(t,e)}Qt.displayName="VehicleViz";const tn=r.memo(en)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/893.d6f99a45208df40ce29c.js b/modules/dreamview_plus/frontend/dist/893.d6f99a45208df40ce29c.js new file mode 100644 index 00000000000..cdb6ef70ae6 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/893.d6f99a45208df40ce29c.js @@ -0,0 +1,2 @@ +/*! For license information please see 893.d6f99a45208df40ce29c.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[893],{634(t,e,n){var i=n(80464);t.exports=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=i(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}},26256(t,e,n){var i=n(634);t.exports=function(t){return i(2,t)}},53416(t,e,n){"use strict";n.d(e,{Ts:()=>Am});var i={};n.r(i),n.d(i,{Arc:()=>Kf,BezierCurve:()=>Zf,BoundingRect:()=>Re,Circle:()=>hf,CompoundPath:()=>Jf,Ellipse:()=>df,Group:()=>Er,Image:()=>Ds,IncrementalDisplayable:()=>hg,Line:()=>Wf,LinearGradient:()=>tg,OrientedBoundingRect:()=>sg,Path:()=>bs,Point:()=>Me,Polygon:()=>Nf,Polyline:()=>Vf,RadialGradient:()=>eg,Rect:()=>Es,Ring:()=>Lf,Sector:()=>Df,Text:()=>Js,applyTransform:()=>Cg,clipPointsByRect:()=>Lg,clipRectByRect:()=>Pg,createIcon:()=>Og,extendPath:()=>gg,extendShape:()=>fg,getShapeClass:()=>vg,getTransform:()=>Tg,groupTransition:()=>kg,initProps:()=>tu,isElementRemoved:()=>eu,lineLineIntersect:()=>Ng,linePolygonIntersect:()=>Rg,makeImage:()=>xg,makePath:()=>mg,mergePath:()=>bg,registerShape:()=>yg,removeElement:()=>nu,removeElementWithFadeOut:()=>ru,resizePath:()=>wg,setTooltipConfig:()=>zg,subPixelOptimize:()=>Ig,subPixelOptimizeLine:()=>Sg,subPixelOptimizeRect:()=>Mg,transformDirection:()=>Dg,traverseElements:()=>Bg,updateProps:()=>Ql});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var a=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},s=new function(){this.browser=new a,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(s.wxa=!0,s.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?s.worker=!0:!s.hasGlobalWindow||"Deno"in window?(s.node=!0,s.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,s);const l=s;var u,h,c="sans-serif",p="12px "+c,d=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),f={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!u){var n=f.createCanvas();u=n&&n.getContext("2d")}if(u)return h!==e&&(h=u.font=e||p),u.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||p),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Zt(s,a):Zt(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function $t(t){return"CANVAS"===t.nodeName.toUpperCase()}var Jt=/([&<>"'])/g,Qt={"&":"&","<":"<",">":">",'"':""","'":"'"};function te(t){return null==t?"":(t+"").replace(Jt,function(t,e){return Qt[e]})}var ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ne=[],ie=l.browser.firefox&&+l.browser.version.split(".")[0]<39;function re(t,e,n,i){return n=n||{},i?oe(t,e,n):ie&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):oe(t,e,n),n}function oe(t,e,n){if(l.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if($t(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Kt(ne,t,i,r))return n.zrX=ne[0],void(n.zrY=ne[1])}n.zrX=n.zrY=0}function ae(t){return t||window.event}function se(t,e,n){if(null!=(e=ae(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&re(t,r,e,n)}else{re(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&ee.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function le(t,e,n,i){t.addEventListener(e,n,i)}function ue(t,e,n,i){t.removeEventListener(e,n,i)}var he=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ce(t){return 2===t.which||3===t.which}var pe=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=de(r)/de(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ge(){return[1,0,0,1,0,0]}function ye(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ve(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function me(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function xe(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function _e(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function be(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function we(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var Se=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const Me=Se;var Ie=Math.min,Te=Math.max,Ce=new Me,De=new Me,Ae=new Me,ke=new Me,Le=new Me,Pe=new Me,Oe=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Ie(t.x,this.x),n=Ie(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Te(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Te(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return xe(r,r,[-e.x,-e.y]),be(r,r,[n,i]),xe(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(of&&(f=x,gf&&(f=_,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ce.x=Ae.x=n.x,Ce.y=ke.y=n.y,De.x=ke.x=n.x+n.width,De.y=Ae.y=n.y+n.height,Ce.transform(i),ke.transform(i),De.transform(i),Ae.transform(i),e.x=Ie(Ce.x,De.x,Ae.x,ke.x),e.y=Ie(Ce.y,De.y,Ae.y,ke.y);var l=Te(Ce.x,De.x,Ae.x,ke.x),u=Te(Ce.y,De.y,Ae.y,ke.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();const Re=Oe;var Ne="silent";function Ee(){he(this.event)}var ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return wt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Yt),Ve=function(t,e){this.x=t,this.y=e},Be=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Fe=new Re(0,0,0,0),Ge=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Ve(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new ze,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Wt(a),a}return wt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(z(Be,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ye(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Ve(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ve(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ee}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Ve(t,e);if(He(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Re(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(Fe.copy(h.getBoundingRect()),h.transform&&Fe.applyTransform(h.transform),Fe.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=We(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Ne)){e.target=a;break}}}function Ye(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Ge.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ye(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Rt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});const Xe=Ge;function Ue(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function Ze(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function je(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Ke(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)Ze(t,n,i,n+(o=Ue(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=qe(t[h],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(c=je(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1===--s){v=!0;break}if(0!==(y=s-je(t[u],a,0,s,s-1,e))){for(s-=y,d=1+(c-=y),p=1+(h-=y),l=0;l=7||y>=7);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else for(p=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Ue(t,n,i,e))s&&(l=s),Ze(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var $e=!1;function Je(){$e||($e=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Qe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var tn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Qe}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Je(),u.z=0),isNaN(u.z2)&&(Je(),u.z2=0),isNaN(u.zlevel)&&(Je(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const en=tn,nn=l.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var rn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-rn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*rn.bounceIn(2*t):.5*rn.bounceOut(2*t-1)+.5}};const on=rn;var an=Math.pow,sn=Math.sqrt,ln=1e-4,un=sn(3),hn=1/3,cn=St(),pn=St(),dn=St();function fn(t){return t>-1e-8&&t<1e-8}function gn(t){return t>1e-8||t<-1e-8}function yn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function vn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function mn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(fn(h)&&fn(c))fn(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(fn(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=sn(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-an(-m,hn):an(m,hn))+(x=x<0?-an(-x,hn):an(x,hn))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*sn(h*h*h)),b=Math.acos(_)/3,w=sn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+un*Math.sin(b)))/(3*a),(-s+w*(S-un*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),I>=0&&I<=1&&(o[d++]=I)}}return d}function xn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(fn(a))gn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(fn(u))r[0]=-o/(2*a);else if(u>0){var h,c=sn(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function _n(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function bn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;cn[0]=l,cn[1]=u;for(var m=0;m<1;m+=.05)pn[0]=yn(t,n,r,a,m),pn[1]=yn(e,i,o,s,m),(f=Nt(cn,pn))=0&&f=0&&y=1?1:mn(0,i,o,1,t,s)&&yn(0,r,a,1,s[0])}}}const Ln=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||xt,this.ondestroy=t.ondestroy||xt,this.onrestart=t.onrestart||xt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=X(t)?t:on[t]||kn(t)},t}();var Pn=function(t){this.value=t},On=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Pn(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Rn=function(){function t(t){this._list=new On,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Pn(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const Nn=Rn;var En={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function zn(t){return(t=Math.round(t))<0?0:t>255?255:t}function Vn(t){return t<0?0:t>1?1:t}function Bn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?zn(parseFloat(e)/100*255):zn(parseInt(e,10))}function Fn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Vn(parseFloat(e)/100):Vn(parseFloat(e))}function Gn(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Wn(t,e,n){return t+(e-t)*n}function Hn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Yn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Xn=new Nn(20),Un=null;function Zn(t,e){Un&&Yn(Un,e),Un=Xn.put(t,Un||e.slice())}function jn(t,e){if(t){e=e||[];var n=Xn.get(t);if(n)return Yn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in En)return Yn(e,En[i]),Zn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Hn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Zn(t,e),e):void Hn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Hn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Zn(t,e),e):void Hn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Hn(e,+u[0],+u[1],+u[2],1):Hn(e,0,0,0,1);h=Fn(u.pop());case"rgb":return u.length>=3?(Hn(e,Bn(u[0]),Bn(u[1]),Bn(u[2]),3===u.length?h:Fn(u[3])),Zn(t,e),e):void Hn(e,0,0,0,1);case"hsla":return 4!==u.length?void Hn(e,0,0,0,1):(u[3]=Fn(u[3]),qn(u,e),Zn(t,e),e);case"hsl":return 3!==u.length?void Hn(e,0,0,0,1):(qn(u,e),Zn(t,e),e);default:return}}Hn(e,0,0,0,1)}}function qn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Fn(t[1]),r=Fn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Hn(e=e||[],zn(255*Gn(a,o,n+1/3)),zn(255*Gn(a,o,n)),zn(255*Gn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Kn(t,e){var n=jn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ei(n,4===n.length?"rgba":"rgb")}}function $n(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=zn(Wn(a[0],s[0],l)),n[1]=zn(Wn(a[1],s[1],l)),n[2]=zn(Wn(a[2],s[2],l)),n[3]=Vn(Wn(a[3],s[3],l)),n}}function Jn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=jn(e[r]),s=jn(e[o]),l=i-r,u=ei([zn(Wn(a[0],s[0],l)),zn(Wn(a[1],s[1],l)),zn(Wn(a[2],s[2],l)),Vn(Wn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Qn(t,e,n,i){var r=jn(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=Fn(n)),null!=i&&(r[2]=Fn(i)),ei(qn(r),"rgba")}function ti(t,e){var n=jn(t);if(n&&null!=e)return n[3]=Vn(e),ei(n,"rgba")}function ei(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ni(t,e){var n=jn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var ii=new Nn(100);function ri(t){if(U(t)){var e=ii.get(t);return e||(e=Kn(t,-.1),ii.put(t,e)),e}if(Q(t)){var n=P({},t);return n.colorStops=V(t.colorStops,function(t){return{offset:t.offset,color:Kn(t.color,-.1)}}),n}return t}var oi=Math.round;function ai(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=jn(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function si(t){return t<1e-4&&t>-1e-4}function li(t){return oi(1e3*t)/1e3}function ui(t){return oi(1e4*t)/1e4}var hi={left:"start",right:"end",center:"middle",middle:"middle"};function ci(t){return t&&!!t.image}function pi(t){return ci(t)||function(t){return t&&!!t.svgElement}(t)}function di(t){return"linear"===t.type}function fi(t){return"radial"===t.type}function gi(t){return t&&("linear"===t.type||"radial"===t.type)}function yi(t){return"url(#"+t+")"}function vi(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function mi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*_t,r=nt(t.scaleX,1),o=nt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+oi(a*_t)+"deg, "+oi(s*_t)+"deg)"),l.join(" ")}var xi=l.hasGlobalWindow&&X(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},_i=Array.prototype.slice;function bi(t,e,n){return(e-t)*n+t}function wi(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(E(e)){var l=function(t){return E(t&&t[0])?2:1}(e);a=l,(1===l&&!j(e[0])||2===l&&!j(e[0][0]))&&(o=!0)}else if(j(e)&&!tt(e))a=0;else if(U(e))if(isNaN(+e)){var u=jn(e);u&&(s=u,a=3)}else a=0;else if(Q(e)){var h=P({},s);h.colorStops=V(e.colorStops,function(t){return{offset:t.offset,color:jn(t.color)}}),di(e)?a=4:fi(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=X(n)?n:on[n]||kn(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ki(i),l=Ai(i),u=0;u=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;ne);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?Li:t[h];if(!ki(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(ki(s))1===s?wi(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,Ci(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ci(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const Ri=Oi;function Ni(){return(new Date).getTime()}var Ei=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return wt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Ni()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,nn(function e(){t._running&&(nn(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=Ni(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ni(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ni()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Ri(t,e.loop);return this.addAnimator(n),n},e}(Yt);const zi=Ei;var Vi,Bi,Fi=l.domSupported,Gi=(Bi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Vi=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:V(Vi,function(t){var e=t.replace("mouse","pointer");return Bi.hasOwnProperty(e)?e:t})}),Wi=["mousemove","mouseup"],Hi=["pointermove","pointerup"],Yi=!1;function Xi(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ui(t){t&&(t.zrByTouch=!0)}function Zi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var ji=function(t,e){this.stopPropagation=xt,this.stopImmediatePropagation=xt,this.preventDefault=xt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},qi={mousedown:function(t){t=se(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=se(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=se(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Zi(this,(t=se(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Yi=!0,t=se(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Yi||(t=se(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ui(t=se(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),qi.mousemove.call(this,t),qi.mousedown.call(this,t)},touchmove:function(t){Ui(t=se(this.dom,t)),this.handler.processGesture(t,"change"),qi.mousemove.call(this,t)},touchend:function(t){Ui(t=se(this.dom,t)),this.handler.processGesture(t,"end"),qi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&qi.click.call(this,t)},pointerdown:function(t){qi.mousedown.call(this,t)},pointermove:function(t){Xi(t)||qi.mousemove.call(this,t)},pointerup:function(t){qi.mouseup.call(this,t)},pointerout:function(t){Xi(t)||qi.mouseout.call(this,t)}};z(["click","dblclick","contextmenu"],function(t){qi[t]=function(e){e=se(this.dom,e),this.trigger(t,e)}});var Ki={pointermove:function(t){Xi(t)||Ki.mousemove.call(this,t)},pointerup:function(t){Ki.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function $i(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,le(t.domTarget,e,n,i)}function Ji(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&ue(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Qi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const tr=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Qi(e,qi),Fi&&(a._globalHandlerScope=new Qi(document,Ki)),i=a,r=a._localHandlerScope,o=r.domHandlers,l.pointerEventsSupported?z(Gi.pointer,function(t){$i(r,t,function(e){o[t].call(i,e)})}):(l.touchEventsSupported&&z(Gi.touch,function(t){$i(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),z(Gi.mouse,function(t){$i(r,t,function(e){e=ae(e),r.touching||o[t].call(i,e)})})),a}return wt(e,t),e.prototype.dispose=function(){Ji(this._localHandlerScope),Fi&&Ji(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Fi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){$i(e,n,function(i){i=ae(i),Zi(t,i.target)||(i=function(t,e){return se(t.dom,new ji(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}l.pointerEventsSupported?z(Hi,n):l.touchEventsSupported||z(Wi,n)}(this,e):Ji(e)}},e}(Yt);var er=1;l.hasGlobalWindow&&(er=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var nr=er,ir="#333",rr="#ccc",or=ye;function ar(t){return t>5e-5||t<-5e-5}var sr=[],lr=[],ur=[1,0,0,1,0,0],hr=Math.abs,cr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return ar(this.rotation)||ar(this.x)||ar(this.y)||ar(this.scaleX-1)||ar(this.scaleY-1)||ar(this.skewX)||ar(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):or(n),t&&(e?me(n,t,n):ve(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(or(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(sr);var n=sr[0]<0?-1:1,i=sr[1]<0?-1:1,r=((sr[0]-n)*e+n)/sr[0]||0,o=((sr[1]-i)*e+i)/sr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],we(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],me(lr,t.invTransform,e),e=lr);var n=this.originX,i=this.originY;(n||i)&&(ur[4]=n,ur[5]=i,me(lr,e,ur),lr[4]-=n,lr[5]-=i,e=lr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&zt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&zt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&hr(t[0]-1)>1e-10&&hr(t[3]-1)>1e-10?Math.sqrt(hr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){dr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&_e(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),pr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Sr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=wr(i[0],n.width),u+=wr(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Mr="__zr_normal__",Ir=pr.concat(["ignore"]),Tr=B(pr,function(t,e){return t[e]=!0,t},{ignore:!1}),Cr={},Dr=new Re(0,0,0,0),Ar=function(){function t(t){this.id=C(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=Dr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Cr,n,u):Sr(Cr,n,u),r.x=Cr.x,r.y=Cr.y,o=Cr.align,a=Cr.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=wr(h[0],u.width),p=wr(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rr:ir},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&jn(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,ei(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},P(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(q(t))for(var n=G(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Mr,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Mr;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(R(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}D("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=R(i,t),o=R(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},p&&(S={}),_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=R(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=R(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Hr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return U(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Yr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Xr(t){return t.sort(function(t,e){return t-e}),t}function Ur(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function Zr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function jr(t,e){var n=Math.max(Ur(t),Ur(e)),i=t+e;return n>20?i:Yr(i,n)}var qr=9007199254740991;function Kr(t){var e=2*Math.PI;return(t%e+e)%e}function $r(t){return t>-1e-4&&t<1e-4}var Jr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Qr(t){if(t instanceof Date)return t;if(U(t)){var e=Jr.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function to(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function eo(t,e){var n=to(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function no(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function io(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i=0||r&&R(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Xo=Yo([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Uo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Xo(this,t,e)},t}(),Zo=new Nn(50);function jo(t){if("string"==typeof t){var e=Zo.get(t);return e&&e.image}return t}function qo(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Zo.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!$o(e=o.image)&&o.pending.push(a):((e=f.loadImage(t,Ko,Ko)).__zrImageSrc=t,Zo.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ko(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=yr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ea(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=yr(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?na(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;a=yr(e=e.substr(0,l),r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function na(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=ua(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!sa[t]}function ua(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var ha="__zr_style_"+Math.round(10*Math.random()),ca={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},pa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ca[ha]=!0;var da=["z","z2","invisible"],fa=["invisible"],ga=function(t){function e(e){return t.call(this,e)||this}var n;return wt(e,t),e.prototype._init=function(e){for(var n=G(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Ma[0]=wa(r)*n+t,Ma[1]=ba(r)*i+e,Ia[0]=wa(o)*n+t,Ia[1]=ba(o)*i+e,u(s,Ma,Ia),h(l,Ma,Ia),(r%=Sa)<0&&(r+=Sa),(o%=Sa)<0&&(o+=Sa),r>o&&!a?o+=Sa:rr&&(Ta[0]=wa(d)*n+t,Ta[1]=ba(d)*i+e,u(s,Ta,s),h(l,Ta,l))}var Ra={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Na=[],Ea=[],za=[],Va=[],Ba=[],Fa=[],Ga=Math.min,Wa=Math.max,Ha=Math.cos,Ya=Math.sin,Xa=Math.abs,Ua=Math.PI,Za=2*Ua,ja="undefined"!=typeof Float32Array,qa=[];function Ka(t){return Math.round(t/Ua*1e8)/1e8%2*Ua}function $a(t,e){var n=Ka(t[0]);n<0&&(n+=Za);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Za?r=n+Za:e&&n-r>=Za?r=n-Za:!e&&n>r?r=n+(Za-Ka(n-r)):e&&n0&&(this._ux=Xa(n/nr/t)||0,this._uy=Xa(n/nr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ra.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Xa(t-this._xi),i=Xa(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ra.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ra.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ra.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),qa[0]=i,qa[1]=r,$a(qa,o),i=qa[0];var a=(r=qa[1])-i;return this.addData(Ra.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Ha(r)*n+t,this._yi=Ya(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ra.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ra.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ja||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){za[0]=za[1]=Ba[0]=Ba[1]=Number.MAX_VALUE,Va[0]=Va[1]=Fa[0]=Fa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||Xa(y)>i||c===e-1)&&(f=Math.sqrt(A*A+y*y),r=g,o=x);break;case Ra.C:var v=t[c++],m=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=wn(r,o,v,m,g,x,_,b,10),r=_,o=b;break;case Ra.Q:f=Dn(r,o,v=t[c++],m=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case Ra.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],D=C+T;c+=1,d&&(a=Ha(T)*M+w,s=Ya(T)*I+S),f=Wa(M,I)*Ga(Za,Math.abs(C)),r=Ha(D)*M+w,o=Ya(D)*I+S;break;case Ra.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Ra.Z:var A=a-r;y=s-o,f=Math.sqrt(A*A+y*y),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p=this.data,d=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case Ra.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case Ra.L:a=p[_++],s=p[_++];var S=Xa(a-r),M=Xa(s-o);if(S>d||M>f){if(y){if(v+(j=l[m++])>u){var I=(u-v)/j;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}v+=j}t.lineTo(a,s),r=a,o=s,x=0}else{var T=S*S+M*M;T>x&&(h=a,c=s,x=T)}break;case Ra.C:var C=p[_++],D=p[_++],A=p[_++],k=p[_++],L=p[_++],P=p[_++];if(y){if(v+(j=l[m++])>u){_n(r,C,A,L,I=(u-v)/j,Na),_n(o,D,k,P,I,Ea),t.bezierCurveTo(Na[1],Ea[1],Na[2],Ea[2],Na[3],Ea[3]);break t}v+=j}t.bezierCurveTo(C,D,A,k,L,P),r=L,o=P;break;case Ra.Q:if(C=p[_++],D=p[_++],A=p[_++],k=p[_++],y){if(v+(j=l[m++])>u){Tn(r,C,A,I=(u-v)/j,Na),Tn(o,D,k,I,Ea),t.quadraticCurveTo(Na[1],Ea[1],Na[2],Ea[2]);break t}v+=j}t.quadraticCurveTo(C,D,A,k),r=A,o=k;break;case Ra.A:var O=p[_++],R=p[_++],N=p[_++],E=p[_++],z=p[_++],V=p[_++],B=p[_++],F=!p[_++],G=N>E?N:E,W=Xa(N-E)>.001,H=z+V,Y=!1;if(y&&(v+(j=l[m++])>u&&(H=z+V*(u-v)/j,Y=!0),v+=j),W&&t.ellipse?t.ellipse(O,R,N,E,B,z,H,F):t.arc(O,R,G,z,H,F),Y)break t;w&&(n=Ha(z)*N+O,i=Ya(z)*E+R),r=Ha(H)*N+O,o=Ya(H)*E+R;break;case Ra.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var X=p[_++],U=p[_++];if(y){if(v+(j=l[m++])>u){var Z=u-v;t.moveTo(a,s),t.lineTo(a+Ga(Z,X),s),(Z-=X)>0&&t.lineTo(a+X,s+Ga(Z,U)),(Z-=U)>0&&t.lineTo(a+Wa(X-Z,0),s+U),(Z-=X)>0&&t.lineTo(a,s+Wa(U-Z,0));break t}v+=j}t.rect(a,s,X,U);break;case Ra.Z:if(y){var j;if(v+(j=l[m++])>u){I=(u-v)/j,t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}v+=j}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ra,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Qa=Ja;function ts(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||at+l&&o>n+l||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=os);var p=Math.atan2(l,s);return p<0&&(p+=os),p>=i&&p<=r||p+os>=i&&p+os<=r}function ss(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var ls=Qa.CMD,us=2*Math.PI,hs=[-1,-1,-1],cs=[-1,-1];function ps(){var t=cs[0];cs[0]=cs[1],cs[1]=t}function ds(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&ps(),d=yn(e,i,o,s,cs[0]),p>1&&(f=yn(e,i,o,s,cs[1]))),2===p?ye&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if(fn(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=sn(u),p=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,hs);if(0===l)return 0;var u=In(e,i,o);if(u>=0&&u<=1){for(var h=0,c=Sn(e,i,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);hs[0]=-l,hs[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=us-1e-4){i=0,r=us;var h=o?1:-1;return a>=hs[0]+t&&a<=hs[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=us,r+=us);for(var p=0,d=0;d<2;d++){var f=hs[d];if(f+t>a){var g=Math.atan2(s,f);h=o?1:-1,g<0&&(g=us+g),(g>=i&&g<=r||g+us>=i&&g+us<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function ys(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,p=0,d=0,f=0,g=0,y=0;y1&&(n||(c+=ss(p,d,f,g,i,r))),m&&(f=p=u[y],g=d=u[y+1]),v){case ls.M:p=f=u[y++],d=g=u[y++];break;case ls.L:if(n){if(ts(p,d,u[y],u[y+1],e,i,r))return!0}else c+=ss(p,d,u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case ls.C:if(n){if(es(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=ds(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case ls.Q:if(n){if(ns(p,d,u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=fs(p,d,u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case ls.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var I=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=ss(p,d,o,a,i,r);var T=(i-x)*w/b+x;if(n){if(as(x,_,w,S,S+M,I,e,T,r))return!0}else c+=gs(x,_,w,S,S+M,I,T,r);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case ls.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],n){if(ts(f,g,o,g,e,i,r)||ts(o,g,o,a,e,i,r)||ts(o,a,f,a,e,i,r)||ts(f,a,f,g,e,i,r))return!0}else c+=ss(o,g,o,a,i,r),c+=ss(f,a,f,g,i,r);break;case ls.Z:if(n){if(ts(p,d,f,g,e,i,r))return!0}else c+=ss(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(c+=ss(p,d,f,g,i,r)||0),0!==c}var vs=O({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ca),ms={style:O({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},pa.style)},xs=pr.concat(["invisible","culling","z","z2","zlevel","parent"]),_s=function(t){function e(e){return t.call(this,e)||this}var n;return wt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?ir:e>.2?"#eee":rr}if(t)return rr}return ir},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(U(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ni(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Qa(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ys(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ys(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:P(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return yt(vs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=P({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=P({},i.shape),P(s,n.shape)):(s=P({},r?this.shape:i.shape),P(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=P({},this.shape);for(var u={},h=G(s),c=0;c0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return yt(ws,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=mr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ma);Ss.prototype.type="tspan";const Ms=Ss;var Is=O({x:0,y:0},ca),Ts={style:O({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},pa.style)},Cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wt(e,t),e.prototype.createStyle=function(t){return yt(Is,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Ts},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Re(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ma);Cs.prototype.type="image";const Ds=Cs;var As=Math.round;function ks(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(As(2*i)===As(2*r)&&(t.x1=t.x2=Ps(i,s,!0)),As(2*o)===As(2*a)&&(t.y1=t.y2=Ps(o,s,!0)),t):t}}function Ls(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ps(i,s,!0),t.y=Ps(r,s,!0),t.width=Math.max(Ps(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ps(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ps(t,e,n){if(!e)return t;var i=As(2*t);return(i+As(e))%2==0?i/2:(i+(n?1:-1))/2}var Os=function(){this.x=0,this.y=0,this.width=0,this.height=0},Rs={},Ns=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.getDefaultShape=function(){return new Os},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ls(Rs,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(bs);Ns.prototype.type="rect";const Es=Ns;var zs={fill:"#000"},Vs={style:O({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},pa.style)},Bs=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=zs,n.attr(e),n}return wt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;ef&&h){var g=Math.floor(f/l);c=c||n.length>g,n=n.slice(0,g)}if(t&&a&&null!=p)for(var y=ta(p,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v={},m=0;m0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,D=0;Dl&&aa(n,t.substring(l,u),e,s),aa(n,i[2],e,s,i[1]),l=Jo.lastIndex}lo){var D=n.lines.length;w>0?(x.tokens=x.tokens.slice(0,w),v(x,b,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m),n.isTruncated=n.isTruncated||n.lines.length=0&&"right"===(C=x[T]).align;)this._placeToken(C,t,b,f,I,"right",y),w-=C.width,I-=C.width,T--;for(M+=(n-(M-d)-(g-I)-w)/2;S<=T;)C=x[S],this._placeToken(C,t,b,f,M+C.width/2,"center",y),M+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&$s(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=qs(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ms),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=js("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),x=Zs("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!y?null:(v=2,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||p,f.opacity=it(s.opacity,e.opacity,1),Ys(f,s),x&&(f.lineWidth=it(s.lineWidth,e.lineWidth,v),f.lineDash=nt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),m&&(f.fill=m);var b=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new Re(xr(f.x,b,f.textAlign),_r(f.y,w,f.textBaseline),b,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||h&&c){(a=this._getOrCreateChild(Es)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=i,y.width=r,y.height=o,y.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=nt(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(Ds)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=nt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=it(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Xs(t)&&(e=[t.fontStyle,t.fontWeight,Hs(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&st(e)||t.textFont||t.font},e}(ma),Fs={left:!0,right:1,center:1},Gs={top:1,bottom:1,middle:1},Ws=["fontStyle","fontWeight","fontSize","fontFamily"];function Hs(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Ys(t,e){for(var n=0;n=0,o=!1;if(t instanceof bs){var a=il(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(pl(s)||pl(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=P({},i),(u=P({},u)).fill=s):!pl(u.fill)&&pl(s)?(o=!0,i=P({},i),(u=P({},u)).fill=ri(s)):!pl(u.stroke)&&pl(l)&&(o||(i=P({},i),u=P({},u)),u.stroke=ri(l)),i.style=u}}if(i&&null==i.z2){o||(i=P({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=R(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Fl(t,e,n){Ul(t,!0),bl(t,Ml),Wl(t,e,n)}function Gl(t,e,n,i){i?function(t){Ul(t,!1)}(t):Fl(t,e,n)}function Wl(t,e,n){var i=Qs(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Hl=["emphasis","blur","select"],Yl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Xl(t,e,n,i){n=n||"itemStyle";for(var r=0;r0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Ql(t,e,n,i,r,o){Jl("update",t,e,n,i,r,o)}function tu(t,e,n,i,r,o){Jl("enter",t,e,n,i,r,o)}function eu(t){if(!t.__zr)return!0;for(var e=0;e-1?Bu:Gu;function Xu(t,e){t=t.toUpperCase(),Hu[t]=new Nu(e),Wu[t]=e}function Uu(t){return Hu[t]}Xu(Fu,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Xu(Bu,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Zu=36e5,ju=864e5,qu=31536e6,Ku={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$u="{yyyy}-{MM}-{dd}",Ju={year:"{yyyy}",month:"{yyyy}-{MM}",day:$u,hour:$u+" "+Ku.hour,minute:$u+" "+Ku.minute,second:$u+" "+Ku.second,millisecond:Ku.none},Qu=["year","month","day","hour","minute","second","millisecond"],th=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function eh(t,e){return"0000".substr(0,e-(t+="").length)+t}function nh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ih(t){return t===nh(t)}function rh(t,e,n,i){var r=Qr(t),o=r[sh(n)](),a=r[lh(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[uh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[hh(n)](),c=(h-1)%12+1,p=r[ch(n)](),d=r[ph(n)](),f=r[dh(n)](),g=h>=12?"pm":"am",y=g.toUpperCase(),v=(i instanceof Nu?i:Uu(i||Yu)||Hu[Gu]).getModel("time"),m=v.get("month"),x=v.get("monthAbbr"),_=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,eh(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,eh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,eh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,eh(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,eh(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,eh(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,eh(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,eh(f,3)).replace(/{S}/g,f+"")}function oh(t,e){var n=Qr(t),i=n[lh(e)]()+1,r=n[uh(e)](),o=n[hh(e)](),a=n[ch(e)](),s=n[ph(e)](),l=0===n[dh(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,p=c&&1===r;return p&&1===i?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function ah(t,e,n){var i=j(t)?Qr(t):t;switch(e=e||oh(t,n)){case"year":return i[sh(n)]();case"half-year":return i[lh(n)]()>=6?1:0;case"quarter":return Math.floor((i[lh(n)]()+1)/4);case"month":return i[lh(n)]();case"day":return i[uh(n)]();case"half-day":return i[hh(n)]()/24;case"hour":return i[hh(n)]();case"minute":return i[ch(n)]();case"second":return i[ph(n)]();case"millisecond":return i[dh(n)]()}}function sh(t){return t?"getUTCFullYear":"getFullYear"}function lh(t){return t?"getUTCMonth":"getMonth"}function uh(t){return t?"getUTCDate":"getDate"}function hh(t){return t?"getUTCHours":"getHours"}function ch(t){return t?"getUTCMinutes":"getMinutes"}function ph(t){return t?"getUTCSeconds":"getSeconds"}function dh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fh(t){return t?"setUTCFullYear":"setFullYear"}function gh(t){return t?"setUTCMonth":"setMonth"}function yh(t){return t?"setUTCDate":"setDate"}function vh(t){return t?"setUTCHours":"setHours"}function mh(t){return t?"setUTCMinutes":"setMinutes"}function xh(t){return t?"setUTCSeconds":"setSeconds"}function _h(t){return t?"setUTCMilliseconds":"setMilliseconds"}function bh(t){if(!oo(t))return U(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function wh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Sh=ot;function Mh(t,e,n){function i(t){return t&&st(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Qr(t):t;if(!isNaN(+s))return rh(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return Z(t)?i(t):j(t)&&r(t)?t+"":"-";var l=ro(t);return r(l)?bh(l):Z(t)?i(t):"boolean"==typeof t?t+"":"-"}var Ih=["a","b","c","d","e","f","g"],Th=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ch(t,e,n){Y(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;oi||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}var Rh=Oh;function Nh(t,e,n){n=Sh(n||0);var i=e.width,r=e.height,o=Hr(t.left,i),a=Hr(t.top,r),s=Hr(t.right,i),l=Hr(t.bottom,r),u=Hr(t.width,i),h=Hr(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new Re(o+n[3],a+n[0],u,h);return f.margin=n,f}function Eh(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Re(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=Nh(O({width:a.width,height:a.height},e),n,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function zh(t){var e=t.layoutMode||t.constructor.layoutMode;return q(e)?e:e?{type:e}:null}function Vh(t,e,n){var i=n&&n.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(Ph[0],0),o=a(Ph[1],1);function a(n,r){var o={},a=0,u={},h=0;if(kh(n,function(e){u[e]=t[e]}),kh(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;a--)o=k(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Lo(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Nu);Bo(Wh,Nu),Ho(Wh),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Wh),function(t){function e(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,n,i,r){if(t.length){var o=function(t){var n={},i=[];return z(t,function(r){var o,a,s=e(n,r),l=function(t,e){var n=[];return z(t,function(t){R(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(o=r,a=[],z(Wh.getClassesByMainType(o),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=V(a,function(t){return zo(t).main}),"dataset"!==o&&R(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&i.push(r),z(l,function(t){R(s.predecessor,t)<0&&s.predecessor.push(t);var i=e(n,t);R(i.successor,t)<0&&i.successor.push(r)})}),{graph:n,noEntryList:i}}(n),a=o.graph,s=o.noEntryList,l={};for(z(t,function(t){l[t]=!0});s.length;){var u=s.pop(),h=a[u],c=!!l[u];c&&(i.call(r,u,h.originalDeps.slice()),delete l[u]),z(h.successor,c?d:p)}z(l,function(){throw new Error("")})}function p(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,p(t)}}}(Wh);const Hh=Wh;var Yh="";"undefined"!=typeof navigator&&(Yh=navigator.platform||"");var Xh="rgba(0, 0, 0, 0.2)";const Uh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Xh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Xh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Xh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Xh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Xh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Xh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Yh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Zh=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),jh="original",qh="arrayRows",Kh="objectRows",$h="keyedColumns",Jh="typedArray",Qh="unknown",tc="column",ec="row",nc=Io();function ic(t,e,n){var i={},r=oc(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=nc(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;z(t=t.slice(),function(e,n){var r=q(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]});var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var vc="\0_ec_inner",mc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Nu(i),this._locale=new Nu(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=bc(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,bc(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):hc(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&z(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ft(),s=e&&e.replaceMergeMainTypeMap;nc(this).datasetMap=ft(),z(t,function(t,e){null!=t&&(Hh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?A(t):k(n[e],t,!0))}),s&&s.each(function(t,e){Hh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),Hh.topologicalTravel(o,Hh.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=cc.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,po(t[e])),a=i.get(e),l=mo(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){z(t,function(t){var i=t.newOption;q(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,Hh),n[e]=null,i.set(e,null),r.set(e,0);var u,h=[],c=[],p=0;z(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Hh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=P({componentIndex:n},t.keyInfo);P(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),c.push(i),p++):(h.push(void 0),c.push(void 0))},this),n[e]=h,i.set(e,c),r.set(e,p),"series"===e&&lc(this)},this),this._seriesIndices||lc(this)},e.prototype.getOption=function(){var t=A(this.option);return z(t,function(e,n){if(Hh.hasClass(n)){for(var i=po(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!So(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[vc],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}const Lc=Ac;var Pc=z,Oc=q,Rc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nc(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Rc.length;n=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&d>=0&&v>0||"samesign"===l&&d<=0&&v<0){d=jr(d,v),f=v;break}}}return i[0]=d,i[1]=f,i})})}var Jc,Qc,tp,ep,np,ip=function(t){this.data=t.data||(t.sourceFormat===$h?{}:[]),this.sourceFormat=t.sourceFormat||Qh,this.seriesLayoutBy=t.seriesLayoutBy||tc,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return wp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Ip(t){var e,n;return q(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Tp(t){return new Cp(t)}var Cp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||p1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},Rp=function(){function t(t,e){j(e)||Ap(""),this._opFn=Op[t],this._rvalFloat=ro(e)}return t.prototype.evaluate=function(t){return j(t)?this._opFn(t,this._rvalFloat):this._opFn(ro(t),this._rvalFloat)},t}(),Np=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=j(t)?t:ro(t),i=j(e)?e:ro(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=U(t),s=U(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),Ep=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ro(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=ro(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function zp(t,e){return"eq"===t||"ne"===t?new Ep("eq"===t,e):mt(Op,t)?new Rp(t,e):null}var Vp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return kp(t,e)},t}();function Bp(t){return Xp(t.sourceFormat)||Ap(""),t.data}function Fp(t){var e=t.sourceFormat,n=t.data;if(Xp(e)||Ap(""),e===qh){for(var i=[],r=0,o=n.length;r65535?jp:qp}function td(){return[1/0,-1/0]}function ed(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function nd(t,e,n,i,r){var o=Jp[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=V(o,function(t){return t.property}),u=0;uy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&x<=h||isNaN(x))&&(a[s++]=d),d++;p=!0}else if(2===r){f=c[i[0]];var y=c[i[1]],v=t[i[1]][0],m=t[i[1]][1];for(g=0;g=u&&x<=h||isNaN(x))&&(_>=v&&_<=m||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g=u&&x<=h||isNaN(x))&&(a[s++]=b)}else for(g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(Qp(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var p=1;pn&&(n=i,r=I)}M>0&&M<_-x&&(c[l++]=Math.min(S,r),r=Math.max(S,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(Qp(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;ua&&(f=a-u);for(var g=0;gd&&(d=y,p=u+g)}var v=this.getRawIndex(h),m=this.getRawIndex(p);hu-d&&(s=u-d,a.length=s);for(var f=0;fh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return kp(t[i],this._dimensions[i])}Up={arrayRows:t,objectRows:function(t,e,n,i){return kp(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return kp(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();const rd=id;var od=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(sd(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=$(a=o.get("data",!0))?Jh:jh,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=nt(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=nt(h.sourceHeader,c.sourceHeader),f=nt(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||f?[op(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else t=[op(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&ld("");var o,a=[],s=[];return z(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||ld(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e){var n=po(t),i=n.length;i||Ap("");for(var r=0,o=i;r1||n>0&&!t.noHeader;return z(t.blocks,function(t){var n=yd(t);n>=e&&(e=n+ +(i&&(!n||fd(t)&&!t.noHeader)))}),e}return 0}function vd(t,e,n,i){var r,o=e.noHeader,a=(r=yd(e),{html:cd[r],richText:pd[r]}),s=[],l=e.blocks||[];at(!l||Y(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(mt(h,u)){var c=new Np(h[u],null);l.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===u&&l.reverse()}z(l,function(n,r){var o=e.valueFormatter,l=gd(n)(o?P(P({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)});var p="richText"===t.renderMode?s.join(a.richText):_d(i,s.join(""),o?n:a.html);if(o)return p;var d=Mh(e.header,"ordinal",t.useUTC),f=hd(i,t.renderMode).nameStyle,g=ud(i);return"richText"===t.renderMode?bd(t,d,f)+a.richText+p:_d(i,'
'+te(d)+"
"+p,n)}function md(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return V(t=Y(t)?t:[t],function(t,e){return Mh(t,Y(d)?d[e]:d,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Mh(l,"ordinal",u),d=e.valueType,f=a?[]:h(e.value,e.dataIndex),g=!s||!o,y=!s&&o,v=hd(i,r),m=v.nameStyle,x=v.valueStyle;return"richText"===r?(s?"":c)+(o?"":bd(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Y(e)?e.join(" "):e,o)}(t,f,g,y,x)):_d(i,(s?"":c)+(o?"":function(t,e,n){return''+te(t)+""}(p,!s,m))+(a?"":function(t,e,n,i){return''+V(t=Y(t)?t:[t],function(t){return te(t)}).join("  ")+""}(f,g,y,x)),n)}}function xd(t,e,n,i,r,o){if(t)return gd(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function _d(t,e,n){return'
'+e+'
'}function bd(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function wd(t,e){return Dh(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Sd(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Md=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ao()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=U(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return U(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Y(e)?z(e,function(t){return P(n,t)}):P(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Id(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=Y(c),d=wd(o,a);if(h>1||p&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=B(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(dd("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?z(i,function(t){h(wp(o,n,t),t)}):z(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=wp(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=wo(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return dd("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[dd("nameValue",{markerType:"item",markerColor:d,name:x,noName:!st(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var Td=Io();function Cd(t,e){return t.getName(e)||t.getId(e)}var Dd="__universalTransitionEnabled",Ad=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return o(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Tp({count:Ld,reset:Pd}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Td(this).sourceManager=new od(this)).prepareSource();var i=this.getInitialData(t,n);Rd(i,this),this.dataTask.context.data=i,Td(this).dataBeforeProcessed=i,kd(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=zh(this),i=n?Bh(t):{},r=this.subType;Hh.hasClass(r)&&(r+="Series"),k(t,e.getTheme().get(this.subType)),k(t,this.getDefaultOption()),fo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Vh(t,i,n)},e.prototype.mergeOption=function(t,e){t=k(this.option,t,!0),this.fillDataTextStyle(t.data);var n=zh(this);n&&Vh(this.option,t,n);var i=Td(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Rd(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Td(this).dataBeforeProcessed=r,kd(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!$(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=fc.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Cd(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Dd])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){q(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Hh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Hh);function kd(t){var e=t.name;wo(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return z(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Ld(t){return t.model.getRawData().count()}function Pd(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Od}function Od(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Rd(t,e){z(gt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,H(Nd,e))})}function Nd(t,e){var n=Ed(t);return n&&n.setOutputEnd((e||this).count()),e}function Ed(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}N(Ad,Mp),N(Ad,fc),Bo(Ad,Hh);const zd=Ad;var Vd=function(){function t(){this.group=new Er,this.uid=zu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Vo(Vd),Ho(Vd);const Bd=Vd;function Fd(){var t=Io();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Gd=Qa.CMD,Wd=[[],[],[]],Hd=Math.sqrt,Yd=Math.atan2;function Xd(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Gd.M,c=Gd.C,p=Gd.L,d=Gd.R,f=Gd.A,g=Gd.Q;for(r=0,o=0;r1&&(a*=Ud(f),s*=Ud(f));var g=(r===o?-1:1)*Ud((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+jd(c)*y-Zd(c)*v,x=(e+i)/2+Zd(c)*y+jd(c)*v,_=Jd([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=Jd(b,w);if($d(b,w)<=-1&&(S=qd),$d(b,w)>=1&&(S=0),S<0){var M=Math.round(S/qd*1e6)/1e6;S=2*qd+M%2*qd}h.addData(u,m,x,a,s,_,S,c,o)}var tf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ef=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,nf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wt(e,t),e.prototype.applyTransform=function(t){},e}(bs);function rf(t){return null!=t.setData}function of(t,e){var n=function(t){var e=new Qa;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Qa.CMD,l=t.match(tf);if(!l)return e;for(var u=0;uk*k+L*L&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}var Tf=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Cf=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.getDefaultShape=function(){return new Tf},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=wf(e.r,0),r=wf(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,h=e.cy,c=!!e.clockwise,p=_f(l-s),d=p>gf&&p%gf;if(d>Mf&&(p=d),i>Mf)if(p>gf-Mf)t.moveTo(u+i*vf(s),h+i*yf(s)),t.arc(u,h,i,s,l,!c),r>Mf&&(t.moveTo(u+r*vf(l),h+r*yf(l)),t.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=void 0,A=void 0,k=i*vf(s),L=i*yf(s),P=r*vf(l),O=r*yf(l),R=p>Mf;if(R){var N=e.cornerRadius;N&&(n=function(t){var e;if(Y(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N),f=n[0],g=n[1],y=n[2],v=n[3]);var E=_f(i-r)/2;if(m=Sf(E,y),x=Sf(E,v),_=Sf(E,f),b=Sf(E,g),M=w=wf(m,x),I=S=wf(_,b),(w>Mf||S>Mf)&&(T=i*vf(l),C=i*yf(l),D=r*vf(s),A=r*yf(s),pMf){var X=Sf(y,M),U=Sf(v,M),Z=If(D,A,k,L,i,X,c),j=If(T,C,P,O,i,U,c);t.moveTo(u+Z.cx+Z.x0,h+Z.cy+Z.y0),M0&&t.arc(u+Z.cx,h+Z.cy,X,xf(Z.y0,Z.x0),xf(Z.y1,Z.x1),!c),t.arc(u,h,i,xf(Z.cy+Z.y1,Z.cx+Z.x1),xf(j.cy+j.y1,j.cx+j.x1),!c),U>0&&t.arc(u+j.cx,h+j.cy,U,xf(j.y1,j.x1),xf(j.y0,j.x0),!c))}else t.moveTo(u+k,h+L),t.arc(u,h,i,s,l,!c);else t.moveTo(u+k,h+L);r>Mf&&R?I>Mf?(X=Sf(f,I),Z=If(P,O,T,C,r,-(U=Sf(g,I)),c),j=If(k,L,D,A,r,-X,c),t.lineTo(u+Z.cx+Z.x0,h+Z.cy+Z.y0),I0&&t.arc(u+Z.cx,h+Z.cy,U,xf(Z.y0,Z.x0),xf(Z.y1,Z.x1),!c),t.arc(u,h,r,xf(Z.cy+Z.y1,Z.cx+Z.x1),xf(j.cy+j.y1,j.cx+j.x1),c),X>0&&t.arc(u+j.cx,h+j.cy,X,xf(j.y1,j.x1),xf(j.y0,j.x0),!c))):(t.lineTo(u+P,h+O),t.arc(u,h,r,l,s,c)):t.lineTo(u+P,h+O)}else t.moveTo(u,h);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(bs);Cf.prototype.type="sector";const Df=Cf;var Af=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},kf=function(t){function e(e){return t.call(this,e)||this}return wt(e,t),e.prototype.getDefaultShape=function(){return new Af},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(bs);kf.prototype.type="ring";const Lf=kf;function Pf(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;pig[1]){if(a=!1,r)return a;var u=Math.abs(ig[0]-ng[1]),h=Math.abs(ng[0]-ig[1]);Math.min(u,h)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ag(t){return!t.isGroup}function kg(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Ag(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Ag(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Ql(t,i,n,Qs(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=P({},t.shape)),e}}function Lg(t,e){return V(t,function(t){var n=t[0];n=cg(n,e.x),n=pg(n,e.x+e.width);var i=t[1];return i=cg(i,e.y),[n,i=pg(i,e.y+e.height)]})}function Pg(t,e){var n=cg(t.x,e.x),i=pg(t.x+t.width,e.x+e.width),r=cg(t.y,e.y),o=pg(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Og(t,e,n){var i=P({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),O(r,n),new Ds(i)):mg(t.replace("path://",""),i,n,"center")}function Rg(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,y=Eg(f,g,u,h)/d;if(y<0||y>1)return!1;var v=Eg(f,g,c,p)/d;return!(v<0||v>1)}function Eg(t,e,n,i){return t*i-n*e}function zg(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=U(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&z(G(l),function(t){mt(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Qs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:O({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Vg(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Bg(t,e){if(t)if(Y(t))for(var n=0;n=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function Qg(t,e,n,i){var r=t[e];if(r){var o=r[qg]||r,a=r[$g];if(r[Kg]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Jg(o,n,"debounce"===i))[qg]=o,r[$g]=i,r[Kg]=n}return r}}function ty(t,e){var n=t[e];n&&n[qg]&&(n.clear&&n.clear(),t[e]=n[qg])}var ey=Io(),ny={itemStyle:Yo(Lu,!0),lineStyle:Yo(Du,!0)},iy={lineStyle:"stroke",itemStyle:"fill"};function ry(t,e){return t.visualStyleMapper||ny[e]||(console.warn("Unknown style type '"+e+"'."),ny.itemStyle)}function oy(t,e){return t.visualDrawType||iy[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var ay={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=ry(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=oy(t,i),l=o[s],u=X(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||X(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||X(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=P({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},sy=new Nu,ly={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=ry(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){sy.option=n[i];var a=r(sy);P(t.ensureUniqueItemVisual(e,"style"),a),sy.option.decal&&(t.setItemVisual(e,"decal",sy.option.decal),sy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},uy={performRawSeries:!0,overallReset:function(t){var e=ft();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),ey(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=ey(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=oy(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},hy=Math.PI,cy=function(){function t(t,e,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=ft();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;z(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});at(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}z(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var d=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(d)}),h.perform(d)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=ft(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Tp({plan:yy,reset:vy,count:_y}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Tp({reset:py});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ft(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,Tp({reset:dy,onDirty:gy})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}at(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,z(n.getSeries(),p)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return X(t)&&(t={overallReset:t,seriesType:by(t)}),t.uid=zu("stageHandler"),e&&(t.visualType=e),t},t}();function py(t){t.overallReset(t.ecModel,t.api,t.payload)}function dy(t){return t.overallProgress&&fy}function fy(){this.agent.dirty(),this.getDownstream().dirty()}function gy(){this.agent&&this.agent.dirty()}function yy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function vy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=po(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?V(e,function(t,e){return xy(e)}):my}var my=xy(0);function xy(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ey=["symbol","symbolSize","symbolRotate","symbolOffset"],zy=Ey.concat(["symbolKeepAspect"]),Vy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&sv(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=sv(i)?i:0,r=sv(r)?r:1,o=sv(o)?o:0,a=sv(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:j(e)?[e]:Y(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=V(r,function(t){return t/a}),o/=a)}return[r,o]}var pv=new Qa(!0);function dv(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function fv(t){return"string"==typeof t&&"none"!==t}function gv(t){var e=t.fill;return null!=e&&"none"!==e}function yv(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function vv(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function mv(t,e,n){var i=qo(e.image,e.__image,n);if($o(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*_t),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var xv=["shadowBlur","shadowOffsetX","shadowOffsetY"],_v=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Mv(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ca.opacity:a}(i||e.blend!==n.blend)&&(o||(Mv(t,r),o=!0),t.globalCompositeOperation=e.blend||ca.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Fv])if(this._disposed)vm(this.id);else{var i,r,o;if(q(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Fv]=!0,!this._model||e){var a=new Lc(this._api),s=this._theme,l=this._model=new wc;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},bm);var u={seriesTransition:o,optionChanged:!0};if(n)this[Gv]={silent:i,updateParams:u},this[Fv]=!1,this.getZr().wakeUp();else{try{jv(this),$v.update.call(this,null,u)}catch(t){throw this[Gv]=null,this[Fv]=!1,t}this._ssr||this._zr.flush(),this[Gv]=null,this[Fv]=!1,em.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||l.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(l.svgSupported){var t=this._zr;return z(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;z(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return z(i,function(t){t.group.ignore=!1}),o}vm(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Tm[n]){var a=o,s=o,l=-1/0,u=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();z(Im,function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(A(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),h.push({dom:p,left:d.left,top:d.top})}});var p=(l*=c)-(a*=c),d=(u*=c)-(s*=c),g=f.createCanvas(),y=Gr(g,{renderer:e?"svg":"canvas"});if(y.resize({width:p,height:d}),e){var v="";return z(h,function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""}),y.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new Es({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),z(h,function(t){var e=new Ds({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});y.add(e)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}vm(this.id)},e.prototype.convertToPixel=function(t,e){return Jv(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Jv(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return z(Co(this._model,t),function(t,i){i.indexOf("Models")>=0&&z(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n;vm(this.id)},e.prototype.getVisual=function(t,e){var n=Co(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Fy(i,r,e):Gy(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;z(ym,function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&Xy(o,function(t){var e=Qs(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=P({},e.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)}),z(xm,function(t,e){i._messageCenter.on(e,function(t){this.trigger(e,t)},i)}),z(["selectchanged"],function(t){i._messageCenter.on(t,function(e){this.trigger(t,e)},i)}),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Yy("map","selectchanged",e,i,t),Yy("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Yy("map","selected",e,i,t),Yy("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Yy("map","unselected",e,i,t),Yy("pie","unselected",e,i,t))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?vm(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)vm(this.id);else{this._disposed=!0,this.getDom()&&Po(this.getDom(),Dm,"");var t=this,e=t._api,n=t._model;z(t._componentsViews,function(t){t.dispose(n,e)}),z(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Im[t.id]}},e.prototype.resize=function(t){if(!this[Fv])if(this._disposed)vm(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Gv]&&(null==i&&(i=this[Gv].silent),n=!0,this[Gv]=null),this[Fv]=!0;try{n&&jv(this),$v.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Fv]=!1,t}this[Fv]=!1,em.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)vm(this.id);else if(q(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Mm[t]){var n=Mm[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?vm(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=xm[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)vm(this.id);else if(q(e)||(e={silent:!!e}),mm[t.type]&&this._model)if(this[Fv])this._pendingActions.push(t);else{var n=e.silent;tm.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&l.browser.weChat&&this._throttledZrFlush(),em.call(this,n),nm.call(this,n)}},e.prototype.updateLabelLayout=function(){Nv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)vm(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis){if(eu(t))return;if(t instanceof bs&&function(t){var e=il(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}jv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),qv(t,!0),qv(t,!1),e.plan()},qv=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!l.node&&!l.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,e),Nv.trigger("series:afterupdate",e,i,s)},hm=function(t){t[Wv]=!0,t.getZr().wakeUp()},cm=function(t){t[Wv]&&(t.getZr().storage.traverse(function(t){eu(t)||e(t)}),t[Wv]=!1)},lm=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Cl(e,n),hm(t)},n.prototype.leaveEmphasis=function(e,n){Dl(e,n),hm(t)},n.prototype.enterBlur=function(e){Al(e),hm(t)},n.prototype.leaveBlur=function(e){kl(e),hm(t)},n.prototype.enterSelect=function(e){Ll(e),hm(t)},n.prototype.leaveSelect=function(e){Pl(e),hm(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Mc))(t)},um=function(t){function e(t,e){for(var n=0;n=0)){Em.push(n);var o=Ty.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Vm(t,e){Mm[t]=e}Nm(zv,ay),Nm(Vv,ly),Nm(Vv,uy),Nm(zv,Vy),Nm(Vv,By),Nm(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Lv(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=Lv(r,e))}})}),Lm(Kc),Pm(900,function(t){var e=ft();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each($c)}),Vm("default",function(t,e){O(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Er,i=new Es({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Js({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Es({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Kf({shape:{startAngle:-hy/2,endAngle:-hy/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*hy/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*hy/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),Rm({type:sl,event:sl,update:sl},xt),Rm({type:ll,event:ll,update:ll},xt),Rm({type:ul,event:ul,update:ul},xt),Rm({type:hl,event:hl,update:hl},xt),Rm({type:cl,event:cl,update:cl},xt),km("light",Dy),km("dark",Ry);var Bm=[],Fm={registerPreprocessor:Lm,registerProcessor:Pm,registerPostInit:function(t){Om("afterinit",t)},registerPostUpdate:function(t){Om("afterupdate",t)},registerUpdateLifecycle:Om,registerAction:Rm,registerCoordinateSystem:function(t,e){Cc.register(t,e)},registerLayout:function(t,e){zm(wm,t,e,1e3,"layout")},registerVisual:Nm,registerTransform:function(t){var e=(t=A(t)).type;e||Ap("");var n=e.split(":");2!==n.length&&Ap("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Hp.set(e,t)},registerLoading:Vm,registerMap:function(t,e,n){var i=Ev.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){Ev[t]=e},PRIORITY:Bv,ComponentModel:Hh,ComponentView:Bd,SeriesModel:zd,ChartView:jg,registerComponentModel:function(t){Hh.registerClass(t)},registerComponentView:function(t){Bd.registerClass(t)},registerSeriesModel:function(t){zd.registerClass(t)},registerChartView:function(t){jg.registerClass(t)},registerSubTypeDefaulter:function(t,e){Hh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Vr[t]=n}};function Gm(t){Y(t)?z(t,function(t){Gm(t)}):R(Bm,t)>=0||(Bm.push(t),X(t)&&(t={install:t}),t.install(Fm))}var Wm=2*Math.PI,Hm=Qa.CMD,Ym=["top","right","bottom","left"];function Xm(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Um(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-r)%Wm<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=rs(r),r=rs(p)}else i=rs(i),r=rs(r);i>r&&(r+=Wm);var d=Math.atan2(s,a);if(d<0&&(d+=Wm),d>=i&&d<=r||d+Wm>=i&&d+Wm<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,Jm.fromArray(t[0]),Qm.fromArray(t[1]),tx.fromArray(t[2]),Me.sub(ex,Jm,Qm),Me.sub(nx,tx,Qm);var n=ex.len(),i=nx.len();if(!(n<.001||i<.001)){ex.scale(1/n),nx.scale(1/i);var r=ex.dot(nx);if(Math.cos(e)1&&Me.copy(ox,tx),ox.toArray(t[1])}}}}function sx(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Jm.fromArray(t[0]),Qm.fromArray(t[1]),tx.fromArray(t[2]),Me.sub(ex,Qm,Jm),Me.sub(nx,tx,Qm);var i=ex.len(),r=nx.len();if(!(i<.001||r<.001)&&(ex.scale(1/i),nx.scale(1/r),ex.dot(e)=a)Me.copy(ox,tx);else{ox.scaleAndAdd(nx,o/Math.tan(Math.PI/2-s));var l=tx.x!==Qm.x?(ox.x-Qm.x)/(tx.x-Qm.x):(ox.y-Qm.y)/(tx.y-Qm.y);if(isNaN(l))return;l<0?Me.copy(ox,Qm):l>1&&Me.copy(ox,tx)}ox.toArray(t[1])}}}function lx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function ux(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Rt(i[0],i[1]),o=Rt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Et([],i[1],i[0],a/r),l=Et([],i[1],i[2],a/o),u=Et([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&o&&w(-c/a,0,a);var y,v,m=t[0],x=t[a-1];return _(),y<0&&S(-y,.8),v<0&&S(v,.8),_(),b(y,v,1),b(v,y,-1),_(),y<0&&M(-y),v<0&&M(v),u}function _(){y=m.rect[e]-i,v=r-x.rect[e]-x.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--)w(-o[l-1]*c,l,a)}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function fx(t,e,n,i){return dx(t,"y","height",e,n,i)}function gx(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new Re(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r=0&&n.attr(d.oldLayoutSelect),R(u,"emphasis")>=0&&n.attr(d.oldLayoutEmphasis)),Ql(n,s,e,a)}else if(n.attr(s),!mu(n).valueAnimation){var h=nt(n.style.opacity,1);n.style.opacity=0,tu(n,{style:{opacity:h}},e,a)}if(d.oldLayout=s,n.states.select){var c=d.oldLayoutSelect={};Sx(c,s,Mx),Sx(c,n.states.select,Mx)}if(n.states.emphasis){var p=d.oldLayoutEmphasis={};Sx(p,s,Mx),Sx(p,n.states.emphasis,Mx)}_u(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(d=bx(i)).oldLayout;var d,f={points:i.shape.points};r?(i.attr({shape:r}),Ql(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,tu(i,{style:{strokePercent:1}},e)),d.oldLayout=f}},t}();const Tx=Ix;var Cx=Io();function Dx(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Cx(e).labelManager;i||(i=Cx(e).labelManager=new Tx),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Cx(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Ax(t,e,n){var i=f.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}Gm(Dx);var kx=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||nr,"string"==typeof e?r=Ax(e,n,i):q(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(vt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return wt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Ax("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Re(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new Re(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&u.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Rx:0),this._needsManuallyCompositing),u.__builtin__||D("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,z(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?k(n[t],e,!0):n[t]=e;for(var i=0;i=Fx:-u>=Fx),d=u>0?u%Fx:u%Fx+Fx;l=!!p||!si(c)&&d>=Bx==!!h;var f=t+n*Vx(o),g=e+i*zx(o);this._start&&this._add("M",f,g);var y=Math.round(r*Gx);if(p){var v=1/this._p,m=(h?1:-1)*(Fx-v);this._add("A",n,i,y,1,+h,t+n*Vx(o+m),e+i*zx(o+m)),v>.01&&this._add("A",n,i,y,0,+h,f,g)}else{var x=t+n*Vx(a),_=e+i*zx(a);this._add("A",n,i,y,+l,+h,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,o)+("style"!==r?te(a):a||"")+(i?""+n+V(i,function(e){return t(e)}).join(n)+n:"")+""}(t)}function t_(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function e_(t,e,n,i){return Jx("svg","root",{width:t,height:e,xmlns:jx,"xmlns:xlink":qx,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var n_=0;function i_(){return n_++}var r_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},o_="transform-origin";function a_(t,e,n){var i=P({},t.shape);P(i,e),t.buildPath(n,i);var r=new Hx;return r.reset(vi(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function s_(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[o_]=n+"px "+i+"px")}var l_={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function u_(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function h_(t){return U(t)?r_[t]?"cubic-bezier("+r_[t]+")":kn(t)?t:"":""}function c_(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof Jf){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(z(o,function(t){var e=t_(n.zrId);e.animation=!0,c_(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=G(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var p=h[c];a[c]=a[c]||{d:""},a[c].d+=p.d||""}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=u_(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0}).length)return u_(h,n)+" "+r[0]+" both"}for(var y in l)(s=g(l[y]))&&a.push(s);if(a.length){var v=n.zrId+"-cls-"+i_();n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function p_(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+i_(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var d_=Math.round;function f_(t){return t&&U(t.src)}function g_(t){return t&&X(t.toDataURL)}function y_(t,e,n,i){(function(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof Ds)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==Yx}(e)){var o=ai(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill",Yx);if(function(t){var e=t.stroke;return null!=e&&e!==Yx}(e)){var s=ai(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,c=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||h<1)&&t("stroke-opacity",h),e.lineDash){var p=cv(n),d=p[0],f=p[1];d&&(f=Xx(f||0),t("stroke-dasharray",d.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray",Yx);for(var g=0;g=0&&a||o;s&&(r=ri(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var u={cursor:"pointer"};r&&(u.fill=r),i.stroke&&(u.stroke=i.stroke),l&&(u["stroke-width"]=l),p_(u,e,n,!0)}}(t,o,e),Jx(s,t.id+"",o)}function T_(t,e){return t instanceof bs?I_(t,e):t instanceof Ds?function(t,e){var n=t.style,i=n.image;if(i&&!U(i)&&(f_(i)?i=i.src:g_(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),x_(a,t.transform),y_(a,n,t,e),v_(a,t),e.animation&&c_(t,a,e),Jx("image",t.id+"",a)}}(t,e):t instanceof Ms?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||p,o=n.x||0,a=function(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}(n.y||0,br(r),n.textBaseline),s={"dominant-baseline":"central","text-anchor":hi[n.textAlign]||n.textAlign};if(Xs(n)){var l="",u=n.fontStyle,h=Hs(n.fontSize);if(!parseFloat(h))return;var d=n.fontFamily||c,f=n.fontWeight;l+="font-size:"+h+";font-family:"+d+";",u&&"normal"!==u&&(l+="font-style:"+u+";"),f&&"normal"!==f&&(l+="font-weight:"+f+";"),s.style=l}else s.style="font: "+r;return i.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),x_(s,t.transform),y_(s,n,t,e),v_(s,t),e.animation&&c_(t,s,e),Jx("text",t.id+"",s,void 0,i)}}(t,e):void 0}function C_(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(di(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!fi(o))return;r="radialGradient",a.cx=nt(o.x,.5),a.cy=nt(o.y,.5),a.r=nt(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;ul?H_(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Y_(t,e,a,l))}(n,i,r):B_(r)?(B_(t.text)&&E_(n,""),H_(n,null,r,0,r.length-1)):B_(i)?Y_(n,i,0,i.length-1):B_(t.text)&&E_(n,""):t.text!==e.text&&(B_(i)&&Y_(n,i,0,i.length-1),E_(n,e.text)))}var Z_=0,j_=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=P({},n),this.root=t,this._id="zr"+Z_++,this._oldVNode=e_(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=$x("svg");X_(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(G_(t,e))U_(t,e);else{var n=t.elm,i=R_(n);W_(e),null!==i&&(L_(i,e.elm,N_(n)),Y_(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return T_(t,t_(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=t_(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=Jx("rect","bg",{width:t,height:e,x:"0",y:"0"}),gi(n))C_({fill:n},r.attrs,"fill",i);else if(pi(n))D_({style:{fill:n},dirty:xt,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=ai(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=Jx("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=V(G(r.defs),function(t){return r.defs[t]});if(l.length&&o.push(Jx("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=V(G(t),function(e){return e+r+V(G(t[e]),function(n){return n+":"+t[e][n]+";"}).join(i)+o}).join(i),s=V(G(e),function(t){return"@keyframes "+t+r+V(G(e[t]),function(n){return n+r+V(G(e[t][n]),function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"}).join(i)+o}).join(i)+o}).join(i);return a||s?[""].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(u){var h=Jx("style","stl",{},[],u);o.push(h)}}return e_(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Qx(this.renderToVNode({animation:nt(t.cssAnimation,!0),emphasis:nt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)i=a[--s-1];for(var y=f+1;y1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;p1)for(var a=0;a30}var cb,pb,db,fb,gb,yb,vb,mb=q,xb=V,_b="undefined"==typeof Int32Array?Array:Int32Array,bb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wb=["_approximateExtent"],Sb=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;sb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===jh&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(Y(r=this.getVisual(e))?r=r.slice():mb(r)&&(r=P({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,mb(e)?P(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){mb(t)?P(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?P(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;tl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){z(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:xb(this.dimensions,this._getDimInfo,this),this.hostModel)),gb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];X(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(rt(arguments)))})},t.internalField=(cb=function(t){var e=t._invertedIndicesMap;z(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new _b(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}();const Mb=Sb;function Ib(t,e){rp(t)||(t=ap(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=ft(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return z(e,function(t){var e;q(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&hb(a),l=i===t.dimensionsDefine,u=l?ub(t):lb(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=ft(h),p=new Kp(a),d=0;d0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new ab({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Tb(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var Cb=function(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t},Db={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Ao).models[0],o=t.getReferringComponents("yAxis",Ao).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Ab(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Ab(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Ao).models[0];e.coordSysDims=["single"],n.set("single",r),Ab(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Ao).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Ab(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Ab(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();z(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Ab(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}};function Ab(t){return"category"===t.get("type")}function kb(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Lb(t,e){return kb(t,e)?t.getCalculationInfo("stackResultDimension"):e}const Pb=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=ap(t)):o=(i=r.getSource()).sourceFormat===jh;var a=function(t){var e=t.get("coordinateSystem"),n=new Cb(e),i=Db[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Cc.get(i);return e&&e.coordSysDims&&(n=V(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=nb(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=X(l)?l:l?H(ic,s,e):null,h=Ib(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(t,e,n){var i,r;return n&&z(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),d=function(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!sb(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,p=!(!t||!t.get("stack"));if(z(i,function(t,e){U(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;z(i,function(t){t.coordDim===d&&g++});var y={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}(e,{schema:h,store:p}),f=new Mb(h,e);f.setCalculationInfo(d);var g=null!=c&&function(t){if(t.sourceFormat===jh){var e=function(t){for(var e=0;e-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(zd);const Rb=Ob;function Nb(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=wp(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var zb=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return o(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=rv(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Vb,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Cl(this.childAt(0))},e.prototype.downplay=function(){Dl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,h)}else{(p=this.childAt(0)).silent=!1;var c={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(c):Ql(p,c,a,n),ou(p)}if(this._updateCommon(t,n,s,i,r),l){var p=this.childAt(0);u||(c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,tu(p,c,a,n))}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=hu(y),p=v.getShallow("scale"),d=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=av(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof Ds){var w=f.style;f.useStyle(P({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(P({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;uu(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):Nb(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var C=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;T.scaleX=this._sizeX*C,T.scaleY=this._sizeY*C,this.setSymbolScale(1),Gl(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Qs(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&nu(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();nu(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return ov(t.getItemVisual(e,"symbolSize"))},e}(Er);function Vb(t,e){this.parent.drift(t,e)}const Bb=zb;function Fb(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Gb(t){return null==t||q(t)||(t={isIgnore:t}),t||{}}function Wb(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:hu(e),cursorStyle:e.get("cursor")}}var Hb=function(){function t(t){this.group=new Er,this._SymbolCtor=t||Bb}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=Gb(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=Wb(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(Fb(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(Fb(t,d,h,e)){var f=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,h,s,l)).setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):Ql(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}else n.remove(p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Wb(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Gb(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=V(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,d=e.getCalculationInfo("stackResultDimension");return kb(e,c[0])&&(p=!0,c[0]=d),kb(e,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ub(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var Zb="undefined"!=typeof Float32Array,jb=Zb?Float32Array:Array;function qb(t){return Y(t)?Zb?new Float32Array(t):t:new jb(t)}var Kb=Math.min,$b=Math.max;function Jb(t,e){return isNaN(t)||isNaN(e)}function Qb(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y=r||g<0)break;if(Jb(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y=i||Jb(w,S))d=v,f=m;else{T=w-u,C=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if("x"===s){var E=T>0?1:-1;d=v-E*(R=Math.abs(k))*a,f=m,D=v+E*(N=Math.abs(L))*a,A=m}else if("y"===s){var z=C>0?1:-1;d=v,f=m-z*(R=Math.abs(P))*a,D=v,A=m+z*(N=Math.abs(O))*a}else R=Math.sqrt(k*k+P*P),d=v-T*a*(1-(I=(N=Math.sqrt(L*L+O*O))/(N+R))),f=m-C*a*(1-I),A=m+C*a*I,D=Kb(D=v+T*a*I,$b(w,v)),A=Kb(A,$b(S,m)),D=$b(D,Kb(w,v)),f=m-(C=(A=$b(A,Kb(S,m)))-m)*R/N,d=Kb(d=v-(T=D-v)*R/N,$b(u,v)),f=Kb(f,$b(h,m)),D=v+(T=v-(d=$b(d,Kb(u,v))))*N/R,A=m+(C=m-(f=$b(f,Kb(h,m))))*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=D,p=A}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}var tw=function(){this.smooth=0,this.smoothConstraint=!0},ew=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tw},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&Jb(n[2*r-2],n[2*r-1]);r--);for(;i=0){var y=a?(h-i)*g+i:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,i=h;break;case o.C:u=r[l++],h=r[l++],c=r[l++],p=r[l++],d=r[l++],f=r[l++];var v=a?mn(n,u,c,d,t,s):mn(i,h,p,f,t,s);if(v>0)for(var m=0;m=0)return y=a?yn(i,h,p,f,x):yn(n,u,c,d,x),a?[t,y]:[y,t]}n=d,i=f}}},e}(bs),nw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(tw),iw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return o(e,t),e.prototype.getDefaultShape=function(){return new nw},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Jb(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return z(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,o,i),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),_||c.remove(),r.add(f);var M,I=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(M=i.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=V(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Jn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";z(p,function(t){t.offset=(t.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new tg(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}}}(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(p&&h.type===i.type&&I===this._step){y&&!d?d=this._newPolygon(l,x):d&&!y&&(f.remove(d),d=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Dh(T));var C=f.getClipPath();C?tu(C,{shape:yw(this,i,!1,t).shape},t):f.setClipPath(yw(this,i,!0,t)),_&&c.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),lw(this._stackedOnPoints,x)&&lw(this._points,l)||(g?this._doUpdateAnimation(o,x,i,n,I,v,b):(I&&(x&&(x=pw(x,l,i,I,b)),l=pw(l,null,i,I,b)),p.setShape({points:l}),d&&d.setShape({points:l,stackedOnPoints:x})))}else _&&c.updateData(o,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,M),I&&(x&&(x=pw(x,l,i,I,b)),l=pw(l,null,i,I,b)),p=this._newPolyline(l),y?d=this._newPolygon(l,x):d&&(f.remove(d),d=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Dh(T)),f.setClipPath(yw(this,i,!0,t));var D=t.getModel("emphasis"),A=D.get("focus"),k=D.get("blurScope"),L=D.get("disabled");p.useStyle(O(a.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Xl(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),Qs(p).seriesIndex=t.seriesIndex,Gl(p,A,k,L);var P=cw(t.get("smooth")),R=t.get("smoothMonotone");if(p.setShape({smooth:P,smoothMonotone:R,connectNulls:b}),d){var N=o.getCalculationInfo("stackedOnSeries"),E=0;d.useStyle(O(s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(E=cw(N.get("smooth"))),d.setShape({smooth:P,stackedOnSmooth:E,smoothMonotone:R,connectNulls:b}),Xl(d,t,"areaStyle"),Qs(d).seriesIndex=t.seriesIndex,Gl(d,A,k,L)}var B=this._changePolyState;o.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=B)}),this._polyline.onHoverStateChange=B,this._data=o,this._coordSys=i,this._stackedOnPoints=x,this._points=l,this._step=I,this._valueOrigin=v,t.get("triggerLineEvent")&&(this.packEventData(t,p),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,e){Qs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Mo(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new Bb(r,o)).x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else jg.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Mo(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else jg.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;wl(this._polyline,t),e&&wl(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ew({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new iw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");X(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=X(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=X(u)?u(o):l*m+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(gw(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Js({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&dw(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(uu(o,hu(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Eb(r,n):Nb(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=fw(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{(T=l.getPointOn(m,b))&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(I=Ro(n,p,C,D,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0;T=fw(u,A),r&&(I=h.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var k=mu(s);"function"==typeof k.setLabelText&&k.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Xb(r,e,a),y=t.getLayout("points")||[],v=e.getLayout("points")||[],m=0;m3e3||l&&hw(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),Ql(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),Ql(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/p));var d=void 0;U(r)?d=_w[r]:X(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,bw))}}}}}var Sw="__ec_stack_";function Mw(t){return t.get("stack")||Sw+t.seriesIndex}function Iw(t){return t.dim+t.index}function Tw(t,e){var n=[];return e.eachSeriesByType(t,function(t){Lw(t)&&n.push(t)}),n}function Cw(t){var e=function(t){var e={};z(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return z(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var p=Hr(t.get("barWidth"),i),d=Hr(t.get("barMaxWidth"),i),f=Hr(t.get("barMinWidth")||(Pw(t)?.5:1),i),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:y,axisKey:Iw(r),stackId:Mw(t)})}),Dw(n)}function Dw(t){var e={};z(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)});var n={};return z(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=G(i).length;o=Math.max(35-4*a,15)+"%"}var s=Hr(o,r),l=Hr(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),z(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--;else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,d=0;z(i,function(t,e){t.width||(t.width=c),p=t,d+=t.width*(1+l)}),p&&(d-=p.width*l);var f=-d/2;z(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function Aw(t,e){var n=Tw(t,e),i=Cw(n);z(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=Mw(t),o=i[Iw(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function kw(t){return{seriesType:t,plan:Fd(),reset:function(t){if(Lw(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=kb(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),p=function(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),d=Pw(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&qb(3*r),u=d&&s&&qb(3*r),m=d&&qb(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=p,T=void 0;h&&(T=+S-b.get(o,i));var C=void 0,D=void 0,A=void 0,k=void 0;if(c){var L=n.dataToPoint([S,M]);h&&(I=n.dataToPoint([T,M])[0]),C=I,D=L[1]+v,A=L[0]-I,k=y,Math.abs(A)s){h=(d+u)/2;break}1===p&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}});else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(zd);zd.registerClass(Ow);const Rw=Ow;var Nw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(){return Pb(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Vu(Rw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Rw);const Ew=Nw;var zw=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Vw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return o(e,t),e.prototype.getDefaultShape=function(){return new zw},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-lo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){ru(e,t,Qs(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(jg),Uw={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Hw(e.x,t.x),s=Yw(e.x+e.width,r),l=Hw(e.y,t.y),u=Yw(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=Yw(e.r,t.r),o=Hw(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},Zw={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Es({shape:P({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?Bw:Df,h=new u({shape:i,z2:1});h.name="item";var c,p,d=tS(r);if(h.calculateTextPosition=(c=d,p=({isRoundCap:u===Bw}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Sr(t,e,n);var r=c(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,d=(u+h)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=p?Math.abs(u-h)/2:0,m=Math.cos,x=Math.sin,_=s+u*m(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(h-o)*m(y),b=l+(h-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(h+o)*m(y),b=l+(h+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+d*m(f)+Fw(f,o+v,!1),b=l+d*x(f)+Gw(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+d*m(f)+Fw(f,-o+v,!1),b=l+d*x(f)+Gw(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+d*m(y),b=l+d*x(y),w="center",S="middle";break;case"endArc":_=s+(u+o)*m(y),b=l+(u+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*m(y),b=l+(u-o)*x(y),w="center",S="top";break;case"endAngle":_=s+d*m(g)+Fw(g,o+v,!0),b=l+d*x(g)+Gw(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+d*m(g)+Fw(g,-o+v,!0),b=l+d*x(g)+Gw(g,-o+v,!0),w="right",S="middle";break;default:return Sr(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?Ql:tu)(h,{shape:g},o)}return h}};function jw(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Ql:tu)(n,{shape:l},e,r,null),(a?Ql:tu)(n,{shape:u},e?t.baseAxis.model:null,r)}function qw(t,e){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function tS(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function eS(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;P(u,Ww(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var c=i.getShallow("cursor");c&&t.attr("cursor",c);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=hu(i);uu(t,d,{labelFetcher:o,labelDataIndex:n,defaultText:Nb(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=t.getTextContent();if(s&&f){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(j(i))t.setTextConfig({rotation:i});else if(Y(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===g?p:g,tS(a),i.get(["label","rotate"]))}xu(f,d,o.getRawValue(n),function(t){return Eb(e,t)});var y=i.getModel(["emphasis"]);Gl(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Xl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",z(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var nS=function(){},iS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return o(e,t),e.prototype.getDefaultShape=function(){return new nS},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);Qs(this).dataIndex=e>=0?e:null},30,!1);function aS(t,e,n){if(sw(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const sS=Xw;var lS=2*Math.PI,uS=Math.PI/180;function hS(t,e){return Nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cS(t,e){var n=hS(t,e),i=t.get("center"),r=t.get("radius");Y(r)||(r=[0,r]);var o,a,s=Hr(n.width,e.getWidth()),l=Hr(n.height,e.getHeight()),u=Math.min(s,l),h=Hr(r[0],u/2),c=Hr(r[1],u/2),p=t.coordinateSystem;if(p){var d=p.dataToPoint(i);o=d[0]||0,a=d[1]||0}else Y(i)||(i=[i,i]),o=Hr(i[0],s)+n.x,a=Hr(i[1],l)+n.y;return{cx:o,cy:a,r0:h,r:c}}function pS(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=hS(t,n),o=cS(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*uS,c=t.get("endAngle"),p=t.get("padAngle")*uS;c="auto"===c?h-lS:-c*uS;var d=t.get("minAngle")*uS+p,f=0;e.each(i,function(t){!isNaN(t)&&f++});var g=e.getSum(i),y=Math.PI/(g||f)*2,v=t.get("clockwise"),m=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var b=v?1:-1,w=[h,c],S=b*p/2;$a(w,!v),h=w[0],c=w[1];var M=dS(t);M.startAngle=h,M.endAngle=c,M.clockwise=v;var I=Math.abs(c-h),T=I,C=0,D=h;if(e.setLayout({viewRect:r,r:l}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:u,r:m?NaN:l});else{(i="area"!==m?0===g&&x?y:t*y:I/f)i?h=o=D+b*i/2:(o=D+S,h=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:h,clockwise:v,cx:a,cy:s,r0:u,r:m?Wr(t,_,[u,l]):l}),D=r}}),Tn?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(c)t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function mS(t){return"center"===t.position}var xS=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Js;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return o(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=P(Ww(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var h=o.getShallow("animationType");o.ecModel.ssr?(tu(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===h?(r.shape.r=l.r0,tu(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),tu(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Ql(r,{shape:{endAngle:l.endAngle}},o,e))}else ou(r),Ql(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Xl(r,a);var c=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(c)*p,f=Math.sin(c)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=P({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Ww(s.getModel("itemStyle"),l)),P(r.ensureState("select"),{x:d,y:f,shape:Ww(a.getModel(["select","itemStyle"]),l)}),P(r.ensureState("blur"),{shape:Ww(a.getModel(["blur","itemStyle"]),l)});var y=r.getTextGuideLine(),v=r.getTextContent();y&&P(y.ensureState("select"),{x:d,y:f}),P(v.ensureState("select"),{x:d,y:f}),Gl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;uu(i,hu(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Vf,this.setTextGuideLine(c)),hx(this,cx(r),{stroke:s,opacity:it(o.get(["lineStyle","opacity"]),l,1)})}},e}(Df),_S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return o(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":k>0?"left":"right"}var B=Math.PI,F=0,G=y.get("rotate");if(j(G))F=G*(B/180);else if("center"===v)F=0;else if("radial"===G||!0===G)F=k<0?-A+B:-A;else if("tangential"===G&&"outside"!==v&&"outer"!==v){var W=Math.atan2(k,L);W<0&&(W=2*B+W),L>0&&(W=B+W),F=W-B}if(o=!!F,p.x=I,p.y=T,p.rotation=F,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:D});var H=p.states.select;H&&(H.x+=p.x,H.y+=p.y)}else{var Y=p.getBoundingRect().clone();Y.applyTransform(p.getComputedTransform());var X=(p.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,r.push({label:p,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new Me(k,L),linePoints:C,textAlign:D,labelDistance:m,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:p.style.width})}s.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p=n.r0}},e.type="pie",e}(jg);const bS=_S;function wS(t,e,n){e=Y(e)&&{coordDimensions:e}||P({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Ib(i,e).dimensions,o=new Mb(r,t);return o.initData(i,n),o}var SS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();const MS=SS;var IS=Io(),TS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new MS(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return wS(this,{coordDimensions:["value"],encodeDefaulter:H(rc,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=IS(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),function(t){o.push(t)}),r=i.seats=function(t,e){var n=B(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=V(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=V(r,function(t){return Math.floor(t)}),s=B(a,function(t,e){return t+e},0),l=V(r,function(t,e){return t-a[e]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return V(a,function(t){return t/i})}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){fo(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(zd);const CS=TS;var DS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){return Pb(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(zd);const AS=DS;var kS=function(){},LS=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(e,t),e.prototype.getDefaultShape=function(){return new kS},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const OS=PS;var RS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=xw("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new OS:new Yb,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(jg);const NS=RS;var ES=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Hh);const zS=ES;var VS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),BS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ao).models[0]},e.type="cartesian2dAxis",e}(Hh);N(BS,VS);var FS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},GS=k({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FS),WS=k({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},FS);const HS={category:GS,value:WS,time:k({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},WS),log:O({logBase:10},WS)};var YS=0;function XS(t){return q(t)&&null!=t.value?t.value:t+""}const US=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++YS}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&V(i,XS);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!U(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},t}();var ZS={value:1,category:1,time:1,log:1};function jS(t,e,n,i){z(ZS,function(r,a){var s=k(k({},HS[a],!0),i,!0),l=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return o(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=zh(this),i=n?Bh(t):{};k(t,e.getTheme().get(a+"Axis")),k(t,this.getDefaultOption()),t.type=qS(t),n&&Vh(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=US.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=s,n}(n);t.registerComponentModel(l)}),t.registerSubTypeDefaulter(e+"Axis",qS)}function qS(t){return t.type||(t.data?"category":"value")}var KS=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Ho(KS);const $S=KS;function JS(t){return"interval"===t.type||"log"===t.type}function QS(t){var e=Math.pow(10,to(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Yr(n*e)}function tM(t){return Ur(t)+2}function eM(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function nM(t,e){return t>=e[0]&&t<=e[1]}function iM(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function rM(t,e){return t*(e[1]-e[0])+e[0]}var oM=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new US({})),Y(i)&&(i=new US({categories:V(i,function(t){return q(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(e,t),e.prototype.parse=function(t){return null==t?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return nM(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return iM(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(rM(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}($S);$S.registerClass(oM);const aM=oM;var sM=Yr,lM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return o(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return nM(t,this._extent)},e.prototype.normalize=function(t){return iM(t,this._extent)},e.prototype.scale=function(t){return rM(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=tM(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:sM(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&hi&&(a=r.interval=i);var s=r.intervalPrecision=tM(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),eM(t,0,e),eM(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Yr(Math.ceil(t[0]/a)*a,s),Yr(Math.floor(t[1]/a)*a,s)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=sM(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=sM(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}($S);$S.registerClass(lM);const uM=lM;var hM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return o(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rh(t.value,Ju[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(nh(this._minLevelUnit))]||Ju.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(U(n))o=n;else if(X(n))o=n(t.value,e,{level:t.level});else{var a=P({},Ku);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Y(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return rh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=th,o=0;function a(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=i[0]&&y<=i[1]&&h++)}var v=(i[1]-i[0])/e;if(h>1.5*v&&c>v/1.5)break;if(l.push(f),h>v||t===r[p])break}u=[]}}var m=F(V(l,function(t){return F(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],_=m.length-1;for(p=0;pn&&(this._approxInterval=n);var o=cM.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function dM(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function fM(t){return(t/=Zu)>12?12:t>6?6:t>3.5?4:t>2?2:1}function gM(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function yM(t){return eo(t,!0)}function vM(t,e,n){var i=new Date(t);switch(nh(e)){case"year":case"month":i[gh(n)](0);case"day":i[yh(n)](1);case"hour":i[vh(n)](0);case"minute":i[mh(n)](0);case"second":i[xh(n)](0),i[_h(n)](0)}return i.getTime()}$S.registerClass(hM);const mM=hM;var xM=$S.prototype,_M=uM.prototype,bM=Yr,wM=Math.floor,SM=Math.ceil,MM=Math.pow,IM=Math.log,TM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new uM,e._interval=0,e}return o(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return V(_M.getTicks.call(this,t),function(t){var e=t.value,r=Yr(MM(this.base,e));return r=e===n[0]&&this._fixMin?DM(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?DM(r,i[1]):r}},this)},e.prototype.setExtent=function(t,e){var n=IM(this.base);t=IM(Math.max(0,t))/n,e=IM(Math.max(0,e))/n,_M.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=xM.getExtent.call(this);e[0]=MM(t,e[0]),e[1]=MM(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=DM(e[0],n[0])),this._fixMax&&(e[1]=DM(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=IM(t[0])/IM(e),t[1]=IM(t[1])/IM(e),xM.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i,r=(i=n,Math.pow(10,to(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[Yr(SM(e[0]/r)*r),Yr(wM(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){_M.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return nM(t=IM(t)/IM(this.base),this._extent)},e.prototype.normalize=function(t){return iM(t=IM(t)/IM(this.base),this._extent)},e.prototype.scale=function(t){return t=rM(t,this._extent),MM(this.base,t)},e.type="log",e}($S),CM=TM.prototype;function DM(t,e){return bM(t,Ur(e))}CM.getMinorTicks=_M.getMinorTicks,CM.getLabel=_M.getLabel,$S.registerClass(TM);const AM=TM;var kM=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[PM[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[LM[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),LM={min:"_determinedMin",max:"_determinedMax"},PM={min:"_dataMin",max:"_dataMax"};function OM(t,e,n){var i=t.rawExtentInfo;return i||(i=new kM(t,e,n),t.rawExtentInfo=i,i)}function RM(t,e){return null==e?null:tt(e)?NaN:t.parse(e)}function NM(t,e){var n=t.type,i=OM(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Tw("bar",a),l=!1;if(z(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Cw(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=Math.abs(r[1]-r[0]),a=function(t,e){if(t&&e){var n=t[Iw(e)];return n}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;z(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;z(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function EM(t,e){var n=e,i=NM(t,n),r=i.extent,o=n.get("splitNumber");t instanceof AM&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function zM(t,e){if(e=e||t.get("type"))switch(e){case"category":return new aM({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new mM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new($S.getClass(e)||uM)}}function VM(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):U(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):X(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(BM(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function BM(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function FM(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Re(t.x,t.y,o,a)}function GM(t){var e=t.get("interval");return null==e?"auto":e}function WM(t){return"category"===t.type&&0===GM(t.getLabelModel())}function HM(t,e){var n={};return z(t.mapDimensionsAll(e),function(e){n[Lb(t,e)]=!0}),G(n)}var YM=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return V(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),F(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),XM=["x","y"];function UM(t){return"interval"===t.type||"time"===t.type}var ZM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=XM,e}return o(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(UM(t)&&UM(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=we([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Re(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return zt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return zt(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new Re(i,r,o,a)},e}(YM);const jM=ZM;var qM=Io();function KM(t,e){var n=V(e,function(e){return t.scale.parse(e)});return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function $M(t,e){var n,i,r=JM(t,"labels"),o=GM(e);return QM(r,o)||(X(o)?n=nI(t,o):(i="auto"===o?function(t){var e=qM(t).autoInterval;return null!=e?e:qM(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=eI(t,i)),tI(r,o,{labels:n,labelCategoryInterval:i}))}function JM(t,e){return qM(t)[e]||(qM(t)[e]=[])}function QM(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=WM(t),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function nI(t,e,n){var i=t.scale,r=VM(t),o=[];return z(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var iI=[0,1],rI=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Zr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&oI(n=n.slice(),i.count()),Wr(t,iI,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&oI(n=n.slice(),i.count());var r=Wr(t,n,iI,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=V(function(t,e){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent();return{ticks:F(KM(t,n),function(t){return t>=i[0]&&t<=i[1]})}}return"category"===t.type?function(t,e){var n,i,r=JM(t,"ticks"),o=GM(e),a=QM(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),X(o))n=nI(t,o,!0);else if("auto"===o){var s=$M(t,t.getLabelModel());i=s.labelCategoryInterval,n=V(s.labels,function(t){return t.tickValue})}else n=eI(t,i=o,!0);return tI(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:V(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1],tickValue:e[0].tickValue};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;z(e,function(t){t.coord-=u/2});var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a,tickValue:h[1]+1},e.push(o)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]}),p(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&p(o.coord,s[1])&&e.push({coord:s[1]})}function p(t,e){return t=Yr(t),e=Yr(e),c?t>e:t0&&t<100||(t=5),V(this.scale.getMinorTicks(t),function(t){return V(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return function(t){var e=t.getLabelModel().get("customValues");if(e){var n=VM(t),i=t.scale.getExtent();return{labels:V(F(KM(t,e),function(t){return t>=i[0]&&t<=i[1]}),function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}})}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=$M(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=VM(t);return{labels:V(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)}(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=VM(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,y=mr(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=qM(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function oI(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const aI=rI;var sI=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return o(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(aI);const lI=sI;function uI(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:c[0],"x"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),et(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function hI(t){return"cartesian2d"===t.get("coordinateSystem")}function cI(t){var e={xAxisModel:null,yAxisModel:null};return z(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Ao).models[0];e[i]=o}),e}var pI=Math.log;function dI(t,e,n){var i=uM.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=NM(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=pI(t.base);u=[pI(u[0])/p,pI(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=QS(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=QS(f));var v=f*a;(g=Yr((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Yr(v)):y>0&&u[1]<=0&&(y=0,g=-Yr(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,y+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,y-f)}var fI=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=XM,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=G(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;JS(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(EM(l,s),JS(l)&&(e=a))}r.length&&(e||EM((e=r.pop()).scale,e.model),z(r,function(t){dI(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};z(n.x,function(t){yI(n,"y",t,r)}),z(n.y,function(t){yI(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Nh(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){z(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)})}s(),r&&(z(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof aM?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=VM(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h0&&i>0||n<0&&i<0)}(t)}const mI=fI;var xI=Math.PI,_I=function(){function t(t,e){this.group=new Er,this.opt=e,this.axisModel=t,O(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Er({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!bI[t]},t.prototype.add=function(t){bI[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Kr(e-t);return $r(o)?(r=n>0?"top":"bottom",i="center"):$r(o-xI)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),bI={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(zt(s,s,a),zt(l,l,a));var h=P({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Wf({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Sg(c.shape,c.style.lineWidth),c.anid="line",n.add(c);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);U(p)&&(p=[p,p]),(U(d)||j(d))&&(d=[d,d]);var f=av(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];z([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==p[i]&&null!=p[i]){var r=rv(p[i],-g/2,-y/2,g,y,h.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=II(r.getTicksCoords(),e.transform,l,O(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,d=["start"===s?c[0]-p*h:"end"===s?c[1]+p*h:(c[0]+c[1])/2,MI(s)?t.labelOffset+l*h:0],f=e.get("nameRotate");null!=f&&(f=f*xI/180),MI(s)?o=_I.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=Kr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return $r(a-xI/2)?(o=l?"bottom":"top",r="center"):$r(a-1.5*xI)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*xI&&a>xI/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=et(t.nameTruncateMaxWidth,y.maxWidth,a),x=new Js({x:d[0],y:d[1],rotation:o.rotation,silent:_I.isLabelSilent(e),style:cu(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(zg({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=_I.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,Qs(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function wI(t){t&&(t.ignore=!0)}function SI(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=ye([]);return _e(r,r,-t.rotation),n.applyTransform(me([],r,t.getLocalTransform())),i.applyTransform(me([],r,e.getLocalTransform())),n.intersect(i)}}function MI(t){return"middle"===t||"center"===t}function II(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function DI(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[kI(t)]}function AI(t){return!!t.get(["handle","show"])}function kI(t){return t.type+"||"+t.id}var LI={},PI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=DI(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=AI(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var p=a;null!=c.color&&(p=O({color:c.color},a));var d=k(A(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(U(l)){var f=d.name;d.name=l.replace("{value}",null!=f?f:"")}else X(l)&&(d.name=l(d.name,d));var g=new Nu(d,null,this.ecModel);return N(g,VS.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:k({lineStyle:{color:"#bbb"}},tT.axisLine),axisLabel:eT(tT.axisLabel,!1),axisTick:eT(tT.axisTick,!1),splitLine:eT(tT.splitLine,!0),splitArea:eT(tT.splitArea,!0),indicator:[]},e}(Hh);const iT=nT;var rT=["axisLine","axisTickLabel","axisName"],oT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;z(V(e.getIndicatorAxes(),function(t){var n=t.model.get("showName")?t.name:"";return new TI(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){z(rT,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),p=Y(h)?h:[h],d=Y(c)?c:[c],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x3?1.4:r>1?1.2:1.1;yT(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);yT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){dT(this._zr,"globalPan")||yT(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Yt);function yT(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(he(i.event),vT(t,e,n,i,r))}function vT(t,e,n,i,r){r.isAvailableBehavior=W(mT,null,n,i),t.trigger(e,r)}function mT(t,e,n){var i=n[t];return!t||i&&(!U(i)||e.event[i+"Key"])}const xT=gT;function _T(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function bT(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var wT,ST={axisPointer:1,tooltip:1,brush:1};function MT(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!ST.hasOwnProperty(i.mainType)&&r&&r.model!==n}function IT(t){U(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var TT={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},CT=G(TT),DT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},AT=G(DT),kT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=IT(t);this._defsUsePending=[];var i=new Er;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),ET(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,r,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=a&&null!=s&&(u=XT(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;(i=new Er).add(p),p.scaleX=p.scaleY=u.scale,p.x=u.x,p.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Es({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=wT[s];if(u&&mt(wT,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=LT[s];if(p&&mt(LT,s)){var d=p.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new Ms({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});RT(e,n),ET(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(wT={g:function(t,e){var n=new Er;return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Es;return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new hf;return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Wf;return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new df;return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=NT(i));var r=new Nf({shape:{points:n||[]},silent:!0});return RT(e,r),ET(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=NT(i));var r=new Vf({shape:{points:n||[]},silent:!0});return RT(e,r),ET(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Ds;return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Er;return RT(e,a),ET(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Er;return RT(e,a),ET(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=af(t.getAttribute("d")||"");return RT(e,n),ET(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),LT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new tg(e,n,i,r);return PT(t,o),OT(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new eg(e,n,i);return PT(t,r),OT(t,r),r}};function PT(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function OT(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};YT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function RT(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),O(e.__inheritedStyle,t.__inheritedStyle))}function NT(t){for(var e=FT(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=FT(a);switch(r=r||ge(),s){case"translate":xe(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":be(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_e(r,r,-parseFloat(l[0])*WT,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":me(r,[1,0,Math.tan(parseFloat(l[0])*WT),1,0,0],r);break;case"skewY":me(r,[1,Math.tan(parseFloat(l[0])*WT),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),YT(t,a,s),i||function(t,e,n){for(var i=0;in&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}for(var aC=[126,25],sC="南海诸岛",lC=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],uC=0;uC0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new JT(o[0],o.slice(1)));break;case"MultiPolygon":z(i.coordinates,function(t){t[0]&&r.push(new JT(t[0],t.slice(1)))});break;case"LineString":r.push(new QT([i.coordinates]));break;case"MultiLineString":r.push(new QT(i.coordinates))}var a=new tC(n[e||"name"],r,n.cp);return a.properties=n,a})}(i,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ft(),n=ft(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;uu(e,hu(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(wC(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function DC(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Qs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function AC(t,e,n,i,r){t.data||zg({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function kC(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Gl(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=Qs(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function LC(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),z(t,function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(zd);const EC=NC;function zC(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),z(e,function(t,e){for(var n,i,r,o=(n=V(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},z(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,h=0;h1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=c[1]-d.height/2,d.x=c[0]-d.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,d=Nh(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var qC=function(){function t(){this.dimensions=YC}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,r){var o=t.get("map"),a=new ZC(o+r,o,P({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=jC,a.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),z(r,function(t,r){var o=V(t,function(t){return t.get("nameMap")}),a=new ZC(r,r,P({nameMap:L(o)},i(t[0])));a.zoomLimit=et.apply(null,V(t,function(t){return t.get("scaleLimit")})),n.push(a),a.resize=jC,a.resize(t[0],e),z(t,function(t){t.coordinateSystem=a,function(t,e){z(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}(a,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=ft(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=uD(s),o=hD(o),s&&o;){r=uD(r),a=hD(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);p>0&&(pD(cD(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!uD(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!hD(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function aD(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function sD(t){return arguments.length?t:dD}function lD(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function uD(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function hD(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function cD(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function pD(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function dD(t,e){return t.parentNode===e.parentNode?1:2}var fD=function(){this.parentPoint=[],this.childPoints=[]},gD=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fD},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=Hr(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;pm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),T=I*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),A="relative"===D?gt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===D?a.getAncestorsIndices():"descendant"===D?a.getDescendantIndices():null;A&&(Qs(n).focus=A),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Zf({shape:wD(h,c,p,r,r)})),Ql(g,{shape:wD(h,c,p,o,a)},t));else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var i=n.getData().tree.root,r=t.targetNode;if(U(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function zD(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function VD(t,e){return R(zD(t),e)>=0}function BD(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var FD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return o(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Nu(n,this,this.ecModel),r=ND.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t})}),o=0;r.eachNode("preorder",function(t){t.depth>o&&(o=t.depth)});var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return dd("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=BD(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(zd);const GD=FD;function WD(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function HD(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return Nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=sD(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=sD());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),WD(l,function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=lD(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)});else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(h.getLayout().x+p+d),f=r/(c.depth-1||1),WD(l,function(t){v=(t.getLayout().x+d)*g,y="LR"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})):"TB"!==m&&"BT"!==m||(f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),WD(l,function(t){y=(t.getLayout().x+d)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))}}}(t,e)})}function YD(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();P(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var XD=["treemapZoomToNode","treemapRender","treemapMove"];function UD(t){var e=t.getData().tree,n={};e.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=gc(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}var ZD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};jD(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Nu({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=po(e.get("color")),o=po(e.get(["aria","decal","decals"]));if(r){z(t=t||[],function(t){var e=new Nu(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e);var a=V(i||[],function(t){return new Nu(t,o,e)},this),s=ND.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t})});return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return dd("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=BD(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},P(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ft(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){UD(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(zd);function jD(t){var e=0;z(t.children,function(t){jD(t);var n=t.value;Y(n)&&(n=n[0]),e+=n});var n=t.value;Y(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Y(t.value)?t.value[0]=n:t.value=n}const qD=ZD;var KD=function(){function t(t){this.group=new Er,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),h={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,s,l,u,i),Eh(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=bo(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,u,h,c,p,d,f,g,y=0,v=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),x=(s=e.pos,h=(l=e.box).width,c=l.height,p=Hr(s.left,h),d=Hr(s.top,c),f=Hr(s.right,h),g=Hr(s.bottom,c),(isNaN(p)||isNaN(parseFloat(s.left)))&&(p=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=h),(isNaN(d)||isNaN(parseFloat(s.top)))&&(d=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=c),u=Sh(u||0),{width:Math.max(f-p-u[1]-u[3],0),height:Math.max(g-d-u[0]-u[2],0)}),_=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M=b[S],I=M.node,T=M.width,C=M.text;_>x.width&&(_-=T-v,T=v,C=null);var D=new Nf({shape:{points:$D(y,0,T,m,S===b.length-1,0===S)},style:O(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Js({style:cu(r,{text:C})}),textConfig:{position:"inside"},z2:1e5,onclick:H(a,I)});D.disableLabelAnimation=!0,D.getTextContent().ensureState("emphasis").style=cu(o,{text:C}),D.ensureState("emphasis").style=w,Gl(D,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(D),JD(D,t,I),y+=T+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function $D(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function JD(t,e,n){Qs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&BD(n,e)}}const QD=KD;var tA=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new Re(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=i,a){var h=a.min||0,c=a.max||1/0;u=Math.max(Math.min(c,u),h)}var p=u/l.zoom;l.zoom=u;var d=this.seriesModel.layoutInfo,f=[1,0,0,1,0,0];xe(f,f,[-(e-=d.x),-(n-=d.y)]),be(f,f,[p,p]),xe(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ah(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new QD(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(VD(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(jg);const uA=lA;var hA=z,cA=q,pA=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=A(e);this.type=i,this.mappingMethod=n,this._normalizeData=wA[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(dA(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,z(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(hA(e,function(t,e){n[t]=e}),!Y(i)){var r=[];q(i)?hA(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=bA(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):dA(r,!0):(at("linear"!==n||r.dataExtent),dA(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return W(this._normalizeData,this)},t.listVisualTypes=function(){return G(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){q(t)?z(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=Y(e)?[]:q(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&hA(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else{if(!cA(t))return[];var e=[];hA(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var p=new MA(c);return IA(p).drColorMappingBy=h,p}}}(0,r,o,0,u,d);z(d,function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=P({},e);if(r){var s=r.type,l="color"===s&&IA(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);CA(t,o,n,i)}})}else s=DA(u),h.fill=s}}function DA(t){var e=AA(t,"color");if(e){var n=AA(t,"colorAlpha"),i=AA(t,"colorSaturation");return i&&(e=Qn(e,null,null,i)),n&&(e=ti(e,n)),e}}function AA(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function kA(t,e){var n=t.get(e);return Y(n)&&n.length?{name:e,range:n}:null}var LA=Math.max,PA=Math.min,OA=et,RA=z,NA=["itemStyle","borderWidth"],EA=["itemStyle","gapWidth"],zA=["upperLabel","show"],VA=["upperLabel","height"];const BA={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Nh(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Hr(OA(s.width,l[0]),r),h=Hr(OA(s.height,l[1]),o),c=i&&i.type,p=ED(i,["treemapZoomToNode","treemapRootToNode"],t),d="treemapRender"===c||"treemapMove"===c?i.rootRect:null,f=t.getViewRoot(),g=zD(f);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,p=0,d=c.length;pqr&&(u=qr),a=o}ua[1]&&(a[1]=e)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?LA(u*i/l,l/(u*r)):1/0}function WA(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;ci&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);u[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*f+l[0],i.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,c=v[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,c="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,c=v[0]>=0?"right":"left",i.originX=f*_,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(Er);const Dk=Ck;function Ak(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:hu(e)}}function kk(t){return isNaN(t[0])||isNaN(t[1])}function Lk(t){return t&&!kk(t[0])&&!kk(t[1])}const Pk=function(){function t(t){this.group=new Er,this._LineCtor=t||Dk}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=Ak(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ak(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function Fk(t,e){var n=[],i=Tn,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),h=t.getVisual("toSymbol");l.__original||(l.__original=[It(l[0]),It(l[1])],l[2]&&l.__original.push(It(l[2])));var c=l.__original;if(null!=l[2]){if(Mt(r[0],c[0]),Mt(r[1],c[2]),Mt(r[2],c[1]),u&&"none"!==u){var p=ak(t.node1),d=Bk(r,c[0],p*e);i(r[0][0],r[1][0],r[2][0],d,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],d,n),r[0][1]=n[3],r[1][1]=n[4]}h&&"none"!==h&&(p=ak(t.node2),d=Bk(r,c[1],p*e),i(r[0][0],r[1][0],r[2][0],d,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],d,n),r[1][1]=n[1],r[2][1]=n[2]),Mt(l[0],r[0]),Mt(l[1],r[2]),Mt(l[2],r[1])}else Mt(o[0],c[0]),Mt(o[1],c[1]),At(a,o[1],o[0]),Pt(a,a),u&&"none"!==u&&(p=ak(t.node1),Dt(o[0],o[0],a,p*e)),h&&"none"!==h&&(p=ak(t.node2),Dt(o[1],o[1],a,-p*e)),Mt(l[0],o[0]),Mt(l[1],o[1])})}function Gk(t){return"view"===t.type}var Wk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){var n=new Yb,i=new Pk,r=this.group;this._controller=new xT(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(Gk(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Ql(s,l,t)}Fk(t.getGraph(),ok(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p);var d=t.get("layout");u.graph.eachNode(function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",function(o){switch(d){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),uk(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),ik(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){c&&c.setUnfixed(n)}),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(Qs(r).focus=e.getAdjacentDataIndices())}}),u.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Qs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),y=u.getLayout("cy");u.graph.eachNode(function(t){ck(t,f,g,y)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!MT(e,n,t)}),Gk(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",function(e){_T(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})}).on("zoom",function(e){bT(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),Fk(t.getGraph(),ok(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=ok(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},e.prototype.updateLayout=function(t){Fk(t.getGraph(),ok(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(jg);const Hk=Wk;function Yk(t){return"_EC_"+t}var Xk=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[Yk(t)]){var i=new Uk(t,e);return i.hostGraph=this,this.nodes.push(i),n[Yk(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[Yk(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(j(t)&&(t=this.nodes[t]),j(e)&&(e=this.nodes[e]),t instanceof Uk||(t=i[Yk(t)]),e instanceof Uk||(e=i[Yk(e)]),t&&e){var o=t.id+"-"+e.id,a=new Zk(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof Uk&&(t=t.id),e instanceof Uk&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof Uk||(e=this._nodesMap[Yk(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}N(Uk,jk("hostGraph","data")),N(Zk,jk("hostGraph","edgeData"));const qk=Xk;function Kk(t,e,n,i,r){for(var o=new qk(i),a=0;a "+p)),u++)}var d,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)d=Pb(t,n);else{var g=Cc.get(f),y=g&&g.dimensions||[];R(y,"value")<0&&y.concat(["value"]);var v=Ib(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(d=new Mb(v,n)).initData(t)}var m=new Mb(["value"],n);return m.initData(l,s),r&&r(d,m),PD({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var $k=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new MS(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),fo(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){KA(n=this)&&(n.__curvenessList=[],n.__edgeMap={},$A(n));var a=Kk(r,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=Nu.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})});return z(a.edges,function(t){!function(t,e,n,i){if(KA(n)){var r=JA(t,e,n),o=n.__edgeMap,a=o[QA(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),dd("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Id({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:P({value:0},t)}),e=new Mb(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(zd);const Jk=$k;var Qk={type:"graphRoam",event:"graphRoam",update:"none"},tL=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},eL=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return o(e,t),e.prototype.getDefaultShape=function(){return new tL},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(bs);const nL=eL;function iL(t,e){var n=null==t?"":t+"";return e&&(U(e)?n=e.replace("{value}",n):X(e)&&(n=e(t))),n}var rL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:Hr(n[0],e.getWidth()),cy:Hr(n[1],e.getHeight()),r:Hr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?Bw:Df,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),f=[s,l];$a(f,!a);for(var g=(l=f[1])-(s=f[0]),y=s,v=[],m=0;c&&m=t&&(0===e?0:i[e-1][0])Math.PI/2&&(V+=Math.PI):"tangential"===z?V=-M-Math.PI/2:j(z)&&(V=z*Math.PI/180),0===V?c.add(new Js({style:cu(x,{text:O,x:N,y:E,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):c.add(new Js({style:cu(x,{text:O,x:N,y:E,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:E,rotation:V}))}if(m.get("show")&&k!==_){P=(P=m.get("distance"))?P+l:l;for(var B=0;B<=b;B++){u=Math.cos(M),h=Math.sin(M);var F=new Wf({shape:{x1:u*(f-P)+p,y1:h*(f-P)+d,x2:u*(f-S-P)+p,y2:h*(f-S-P)+d},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:i((k+B/b)/_)}),c.add(F),M+=T}M-=T}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var i,o=y.getItemModel(e).getModel("pointer"),a=Hr(o.get("width"),r.r),s=Hr(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=Hr(u[0],r.r),c=Hr(u[1],r.r),p=o.get("keepAspect");return(i=l?rv(l,h-a/2,c-s,a,s,null,p):new nL({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?Bw:Df,i=f.get("overlap"),a=i?f.get("width"):l/y.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=Wr(y.get(v,t),[m,x],[100,0],!0)),c}(g||d)&&(y.diff(h).add(function(e){var n=y.get(v,e);if(d){var i=w(e,o);tu(i,{rotation:-((isNaN(+n)?b[0]:Wr(n,_,b,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");tu(r,{shape:{endAngle:Wr(n,_,b,a)}},t),u.add(r),tl(t.seriesIndex,y.dataType,e,r),p[e]=r}}).update(function(e,n){var i=y.get(v,e);if(d){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,Ql(s,{rotation:-((isNaN(+i)?b[0]:Wr(i,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=c[n],m=S(e,l?l.shape.endAngle:o),x=f.get("clip");Ql(m,{shape:{endAngle:Wr(i,_,b,x)}},t),u.add(m),tl(t.seriesIndex,y.dataType,e,m),p[e]=m}}).execute(),y.each(function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof Ds){var h=s.style;s.useStyle(P({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Wr(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,Xl(s,e),Gl(s,r,o,a)}if(g){var c=p[t];c.useStyle(y.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,Xl(c,e),Gl(c,r,o,a)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=rv(r,e.cx-i/2+Hr(o[0],e.r),e.cy-i/2+Hr(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new Er,c=[],p=[],d=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){c[t]=new Js({silent:!0}),p[t]=new Js({silent:!0})}).update(function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Er,y=i(Wr(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=r.cx+Hr(m[0],r.r),_=r.cy+Hr(m[1],r.r);(D=c[e]).attr({z2:f?0:2,style:cu(v,{x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(D)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+Hr(w[0],r.r),M=r.cy+Hr(w[1],r.r),I=Hr(b.get("width"),r.r),T=Hr(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,D=p[e],A=b.get("formatter");D.attr({z2:f?0:2,style:cu(b,{x:S,y:M,text:iL(o,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:C})}),xu(D,{normal:b},o,function(t){return iL(t,A)}),d&&_u(D,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return iL(a?a.interpolatedValue:o,A)}}),g.add(D)}h.add(g)}),this.group.add(h),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(jg);const oL=rL;var aL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return o(e,t),e.prototype.getInitialData=function(t,e){return wS(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(zd);const sL=aL;var lL=["itemStyle","opacity"],uL=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Vf,a=new Js;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return o(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(lL);l=null==l?1:l,n||ou(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,tu(i,{style:{opacity:l}},r,e)):Ql(i,{style:{opacity:l},shape:{points:a.points}},r,e),Xl(i,o),this._updateLabel(t,e),Gl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;uu(r,hu(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var h=s.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Me(h[0][0],h[0][1]):null},Ql(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),hx(n,cx(a),{stroke:u})},e}(Nf),hL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new uL(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){ru(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(jg);const cL=hL;var pL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new MS(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return wS(this,{coordDimensions:["value"],encodeDefaulter:H(rc,this)})},e.prototype._defaultLabelLine=function(t){fo(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(zd);const dL=pL;function fL(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&kL(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function kL(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const LL=DL;var PL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&k(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){z(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];z(F(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Hh);const OL=PL;var RL=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(aI);const NL=RL;function EL(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=VL(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=VL(s,[0,a]),r=o=VL(s,[r,o]),i=0}e[0]=VL(e[0],n),e[1]=VL(e[1],n);var l=zL(e,i);e[i]+=t;var u,h=r||0,c=n.slice();return l.sign<0?c[0]+=h:c[1]-=h,e[i]=VL(e[i],c),u=zL(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function zL(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function VL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var BL=z,FL=Math.min,GL=Math.max,WL=Math.floor,HL=Math.ceil,YL=Yr,XL=Math.PI,UL=function(){function t(t,e,n){this.type="parallel",this._axesMap=ft(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;BL(i,function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new NL(t,zM(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();BL(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),EM(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=Nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=ZL(e.get("axisExpandWidth"),l),c=ZL(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get("axisExpandWindow");d?(t=ZL(d[1]-d[0],l),d[1]=d[0]+t):(t=ZL(h*(c-1),l),(d=[h*(e.get("axisExpandCenter")||WL(u/2))-t/2])[1]=d[0]+t);var f=(s-t)/(u-c);f<3&&(f=0);var g=[WL(YL(d[0]/h,1))+1,HL(YL(d[1]/h,1))-1],y=f/h*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:f,axisExpandWindow:d,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),BL(n,function(e,n){var o=(i.axisExpandable?qL:jL)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:XL/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=[1,0,0,1,0,0];_e(h,h,u),xe(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];z(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?EL(a,i,o,"all"):l="none";else{var p=i[1]-i[0];(i=[GL(0,o[1]*s/p-p/2)])[1]=FL(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},t}();function ZL(t,e){return FL(GL(t,e[0]),e[1])}function jL(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function qL(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=0;n--)Xr(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&mP(t);var l=A(s);l.brushType=NP(l.brushType,a),l.panelId=a===tP?null:a.panelId,o=t._creatingCover=hP(t,l),t._covers.push(o)}if(o){var u=VP[NP(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(LP(t,o,t._track)),i&&(cP(t,o),u.updateCommon(t,o)),pP(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&yP(t,e,n)&&mP(t)&&(r={isEnd:i,removeOnClick:!0});return r}function NP(t,e){return"auto"===t?e.defaultBrushType:t}var EP={mousedown:function(t){if(this._dragging)zP(this,t);else if(!t.target||!t.target.draggable){PP(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=yP(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=yP(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new Nu(r[a],this,e));var s=Kk(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})});return s.data},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return dd("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return dd("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(zd);const iO=nO;function rO(t,e){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){z(t,function(t){var e=fO(t.outEdges,dO),n=fO(t.inEdges,dO),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)})}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],h=[],c=0,p=0;p=0;v&&y.depth>d&&(d=y.depth),g.setLayout({depth:v?y.depth:c},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mc-1?d:c-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)sO(s,l*=.99,a),aO(s,r,n,i,a),gO(s,l,a),aO(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";z(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),z(t,function(t){var e=0,n=0;z(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),z(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==F(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function oO(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function aO(t,e,n,i,r){var o="vertical"===r?"x":"y";z(t,function(t){var a,s,l;t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var u=0,h=t.length,c="vertical"===r?"dx":"dy",p=0;p0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,p=h-2;p>=0;--p)(l=(s=t[p]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]})}function sO(t,e,n){z(t.slice().reverse(),function(t){z(t,function(t){if(t.outEdges.length){var i=fO(t.outEdges,lO,n)/fO(t.outEdges,dO);if(isNaN(i)){var r=t.outEdges.length;i=r?fO(t.outEdges,uO,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-pO(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-pO(t,n))*e;t.setLayout({y:a},!0)}}})})}function lO(t,e){return pO(t.node2,e)*t.getValue()}function uO(t,e){return pO(t.node2,e)}function hO(t,e){return pO(t.node1,e)*t.getValue()}function cO(t,e){return pO(t.node1,e)}function pO(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function dO(t){return t.getValue()}function fO(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)}),z(n,function(e){var n=new MA({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))})}i.length&&z(i,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}var vO=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],p=[r,o],d=p[u].get("type"),f=p[1-u].get("type"),g=t.data;if(g&&i){var y=[];z(g,function(t,e){var n;Y(t)?(n=t.slice(),t.unshift(e)):Y(t.value)?((n=P({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)}),t.data=y}var v=this.defaultValueDimensions,m=[{name:h,type:nb(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:nb(f),dimsDef:v.slice()}];return wS(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:H(ic,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),mO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(zd);N(mO,vO,!0);const xO=mO;var _O=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=SO(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(ou(n),MO(s,n,i,t)):n=SO(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(jg),bO=function(){},wO=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return o(e,t),e.prototype.getDefaultShape=function(){return new bO},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},kO=["itemStyle","borderColor"],LO=["itemStyle","borderColor0"],PO=["itemStyle","borderColorDoji"],OO=["itemStyle","color"],RO=["itemStyle","color0"];function NO(t,e){return e.get(t>0?OO:RO)}function EO(t,e){return e.get(0===t?PO:t>0?kO:LO)}const zO={seriesType:"candlestick",plan:Fd(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,o=i.getItemStyle();o.fill=NO(r,i),o.stroke=EO(r,i)||o.fill,P(e.ensureUniqueItemVisual(n,"style"),o)}}}}};var VO=["color","borderColor"],BO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Bg(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&HO(s,a))return;var l=WO(a,0,!0);tu(l,{shape:{points:a.ends}},t,n),YO(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&HO(s,h)?i.remove(u):(u?(Ql(u,{shape:{points:h.ends}},t,a),ou(u)):u=WO(h),YO(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),jO(t,this.group);var e=t.get("clip",!0)?aw(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=WO(i.getItemLayout(n));YO(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){jO(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(jg),FO=function(){},GO=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return o(e,t),e.prototype.getDefaultShape=function(){return new FO},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(bs);function WO(t,e,n){var i=t.ends;return new GO({shape:{points:n?XO(i,t):i},z2:100})}function HO(t,e){for(var n=!0,i=0;id?x[1]:m[1],ends:w,brushRect:T(f,g,c)})}function M(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var r=e.slice(),o=e.slice();r[0]=Ig(r[0]+i/2,1,!1),o[0]=Ig(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function T(t,e,n){var r=M(t,n),o=M(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(t){return t[0]=Ig(t[0],1),t}}}}};function eR(t,e,n,i,r,o){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}const nR=tR;function iR(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var rR=function(t){function e(e,n){var i=t.call(this)||this,r=new Bb(e,n),o=new Er;return i.add(r),i.add(o),i.updateData(e,n),i}return o(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=X(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},e.prototype._getLineLength=function(t){return Rt(t.__p1,t.__cp1)+Rt(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Sn,l=Mn;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(h,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=t.__t<1?u[0]-l[0]:l[0]-u[0],c=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(cR);const gR=fR;var yR=function(){this.polyline=!1,this.curveness=0,this.segs=[]},vR=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yR},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;c0){if(ns(u,h,(u+p)/2-(h-d)*r,(h+d)/2-(p-u)*r,p,d,o,t,e))return a}else if(ts(u,h,p,d,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var xR={seriesType:"lines",plan:Fd(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&aw(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=_R.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new mR:new Pk(r?i?gR:dR:i?cR:Dk),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(jg);const wR=bR;var SR="undefined"==typeof Uint32Array?Array:Uint32Array,MR="undefined"==typeof Float64Array?Array:Float64Array;function IR(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=V(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),L([e,t[0],t[1]])}))}var TR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(e,t),e.prototype.init=function(e){e.data=e.data||[],IR(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(IR(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=gt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=gt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(zd);const CR=TR;function DR(t){return t instanceof Array||(t=[t,t]),t}const AR={seriesType:"lines",reset:function(t){var e=DR(t.get("symbol")),n=DR(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=DR(n.getShallow("symbol",!0)),r=DR(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var kR=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=f.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),p=t.length;h.width=e,h.height=n;for(var d=0;d0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(m,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=f.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();const LR=kR;function PR(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var OR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):PR(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(PR(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Bg(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=sw(u,"cartesian2d");if(h){var c=u.getAxis("x"),p=u.getAxis("y");o=c.getBandWidth()+.5,a=p.getBandWidth()+.5,s=c.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=hu(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=h?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;Is[1]||Al[1])continue;var k=u.dataToPoint([D,A]);T=new Es({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new Es({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=hu(L)}T.shape.r=m;var O=t.getRawValue(I),R="-";O&&null!=O[2]&&(R=O[2]+""),uu(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=v,Gl(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new LR;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),d=Math.min(l.height+l.y,i.getHeight()),f=p-h,g=d-c,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r}),m=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(m,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=V(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i=0?1:-1:o>0?1:-1}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,"symbolSize");(h=Y(f)?f.slice():null==f?["100%","100%"]:[f,f])[p.index]=Hr(h[p.index],d),h[c.index]=Hr(h[c.index],i?d:Math.abs(o)),u.symbolSize=h,(u.symbolScale=[h[0]/s,h[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(zR)||0;o&&(BR.attr({scaleX:e[0],scaleY:e[1],rotation:n}),BR.updateTransform(),o/=BR.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}(n,c.symbolScale,l,i,c);var p=c.symbolSize,d=av(n.get("symbolOffset"),p);return function(t,e,n,i,r,o,a,s,l,u,h,c){var p=h.categoryDim,d=h.valueDim,f=c.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(i){var v=Math.abs(l),m=et(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Hr(m,e[d.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=oo(i),M=S?i:iN((v+w)/b);b=g+2*(_=(v-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*_,S||"fixed"===i||(M=u?iN((Math.abs(u)+w)/b):0),y=M*b-w,c.repeatTimes=M,c.symbolMargin=_}var I=f*(y/2),T=c.pathPosition=[];T[p.index]=n[p.wh]/2,T[d.index]="start"===a?I:"end"===a?l-I:l/2,o&&(T[0]+=o[0],T[1]+=o[1]);var C=c.bundlePosition=[];C[p.index]=n[p.xy],C[d.index]=n[d.xy];var D=c.barRectShape=P({},n);D[d.wh]=f*Math.max(Math.abs(n[d.wh]),Math.abs(T[d.index]+I)),D[p.wh]=n[p.wh];var A=c.clipShape={};A[p.xy]=-n[p.xy],A[p.wh]=h.ecSize[p.wh],A[d.xy]=0,A[d.wh]=n[d.wh]}(n,p,r,o,0,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function WR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function HR(t){var e=t.symbolPatternSize,n=rv(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function YR(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(tN(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function XR(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?eN(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=HR(n),r.add(o),eN(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function UR(t,e,n){var i=P({},e.barRectShape),r=t.__pictorialBarRect;r?eN(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new Es({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function ZR(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,a=P({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(o)Ql(o,{shape:a},l,u);else{a[s.wh]=0,o=new Es({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[s.wh]=n.clipShape[s.wh],i[r?"updateProps":"initProps"](o,{shape:h},l,u)}}}function jR(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=qR,n.isAnimationEnabled=KR,n}function qR(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function KR(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $R(t,e,n,i){var r=new Er,o=new Er;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?YR(r,e,n):XR(r,0,n),UR(r,n,i),ZR(r,e,n,i),r.__pictorialShapeStr=QR(t,n),r.__pictorialSymbolMeta=n,r}function JR(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];tN(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),z(o,function(t){nu(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function QR(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tN(t,e,n){z(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function eN(t,e,n,r,o,a){e&&t.attr(e),r.symbolClip&&!o?n&&t.attr(n):n&&i[o?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,a)}function nN(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");tN(t,function(t){if(t instanceof Ds){var e=t.style;t.useStyle(P({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var d=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,uu(f,hu(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Nb(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),Gl(t,h,c,o.get("disabled"))}function iN(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const rN=FR;var oN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Vu(Rw.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Rw);const aN=oN;var sN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new Q_(this._layersSeries||[],a,h,h),p=[];function d(e,n,s){var l=r._layers;if("remove"!==e){for(var u,h,c=[],d=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;fI&&!$r(C-I)&&C0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new fN(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",function(t){r._rootToNode(o.parentNode)})):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&Ah(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gN,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(jg);const mN=vN;var xN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};_N(n);var i=this._levelModels=V(t.levels||[],function(t){return new Nu(t,this,e)},this),r=ND.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=BD(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){UD(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(zd);function _N(t){var e=0;z(t.children,function(t){_N(t);var n=t.value;Y(n)&&(n=n[0]),e+=n});var n=t.value;Y(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),Y(t.value)?t.value[0]=n:t.value=n}const bN=xN;var wN=Math.PI/180;function SN(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");Y(i)||(i=[0,i]),Y(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Hr(e[0],r),l=Hr(e[1],o),u=Hr(i[0],a/2),h=Hr(i[1],a/2),c=-t.get("startAngle")*wN,p=t.get("minAngle")*wN,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&MN(f,y);var v=0;z(f.children,function(t){!isNaN(t.getValue())&&v++});var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,T=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===m&&M?x:r*x;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&U(o)&&(o=Kn(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),P(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}var TN={color:"fill",borderColor:"stroke"},CN={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},DN=Io(),AN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Pb(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=DN(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(zd);const kN=AN;function LN(t,e){return e=e||[0,0],V(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function PN(t,e){return e=e||[0,0],V([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function ON(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function RN(t,e){return e=e||[0,0],V(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function NN(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||mt(t,"text")))}function EN(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},mt(a,"text")&&(o.text=a.text),mt(a,"rich")&&(o.rich=a.rich),mt(a,"textFill")&&(o.fill=a.textFill),mt(a,"textStroke")&&(o.stroke=a.textStroke),mt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),mt(a,"fontSize")&&(o.fontSize=a.fontSize),mt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),mt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=mt(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),mt(a,"textPosition")&&(i.position=a.textPosition),mt(a,"textOffset")&&(i.offset=a.textOffset),mt(a,"textRotation")&&(i.rotation=a.textRotation),mt(a,"textDistance")&&(i.distance=a.textDistance)}return zN(o,t),z(o.rich,function(t){zN(t,t)}),{textConfig:i,textContent:r}}function zN(t,e){e&&(e.font=e.textFont||e.font,mt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),mt(e,"textAlign")&&(t.align=e.textAlign),mt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),mt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),mt(e,"textWidth")&&(t.width=e.textWidth),mt(e,"textHeight")&&(t.height=e.textHeight),mt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),mt(e,"textPadding")&&(t.padding=e.textPadding),mt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),mt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),mt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),mt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),mt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),mt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),mt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function VN(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";BN(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,z(e.rich,function(t){BN(t,t)}),i}function BN(t,e){e&&(mt(e,"fill")&&(t.textFill=e.fill),mt(e,"stroke")&&(t.textStroke=e.fill),mt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),mt(e,"font")&&(t.font=e.font),mt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),mt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),mt(e,"fontSize")&&(t.fontSize=e.fontSize),mt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),mt(e,"align")&&(t.textAlign=e.align),mt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),mt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),mt(e,"width")&&(t.textWidth=e.width),mt(e,"height")&&(t.textHeight=e.height),mt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),mt(e,"padding")&&(t.textPadding=e.padding),mt(e,"borderColor")&&(t.textBorderColor=e.borderColor),mt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),mt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),mt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),mt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),mt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),mt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),mt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),mt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),mt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),mt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var FN={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},GN=G(FN),WN=(B(pr,function(t,e){return t[e]=1,t},{}),pr.join(", "),["","style","shape","extra"]),HN=Io();function YN(t,e,n,i,r){var o=t+"Animation",a=$l(t,i,r)||{},s=HN(e).userDuring;return a.duration>0&&(a.during=s?W($N,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),P(a,n[o]),a}function XN(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=HN(t),u=e.style;l.userDuring=e.during;var h={},c={};if(function(t,e,n){for(var i=0;i=0)){var c=t.getAnimationStyleProps(),p=c?c.style:null;if(p){!r&&(r=i.style={});var d=G(n);for(u=0;u0&&t.animateFrom(p,d)}else!function(t,e,n,i,r){if(r){var o=YN("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,h);UN(t,e),u?t.dirty():t.markRedraw()}function UN(t,e){for(var n=HN(t).leaveToProps,i=0;i=0){!o&&(o=i[t]={});var p=G(a);for(h=0;hi[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:W(RN,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function gE(t){return t instanceof bs}function yE(t){return t instanceof ma}var vE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=SE(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){IE(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&ZN(n,DN(n).option,t)}).update(function(e,l){var u=r.getItemGraphicEl(l);IE(n,u,e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?aw(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=SE(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=s);var r=m(i,oE).getItemStyle(),o=x(i,oE),a=cu(o,null,null,!0,!0);a.text=o.getShallow("show")?it(t.getFormattedLabel(i,oE),t.getFormattedLabel(i,aE),Nb(e,i)):null;var l=pu(o,null,!0);return b(n,r),r=VN(r,a,l),n&&_(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),mt(TN,t)){var i=e.getItemVisual(n,"style");return i?i[TN[t]]:null}if(mt(CN,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type)return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=c;f--){var g=e.childAt(f);LE(e,g,r)}}}(t,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function CE(t,e,n){var i,r=DN(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(mt(i,"pathData")||mt(i,"d"))&&NE(a)!==r.customPathData||"image"===o&&mt(s,"image")&&s.image!==r.customImagePath}function DE(t,e,n){var i=e?AE(t,e):t,r=e?kE(t,i,oE):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?AE(s,e):s:null;if(r&&(n.isLegacy||NN(r,o,!!a,!!l))){n.isLegacy=!0;var u=EN(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function AE(t,e){return e?t?t[e]:null:t}function kE(t,e,n){var i=e&&e.style;return null==i&&n===oE&&t&&(i=t.styleEmphasis),i}function LE(t,e,n){e&&ZN(e,DN(t).option,n)}function PE(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function OE(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;TE(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function RE(t){var e=this.context,n=e.oldChildren[t];n&&ZN(n,DN(n).option,e.seriesModel)}function NE(t){return t&&(t.pathData||t.d)}var EE=Io(),zE=A,VE=W,BE=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=H(FE,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new Er,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);YE(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=DI(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,r){var o=e.pointer;if(o){var a=EE(t).pointerEl=new i[o.type](zE(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=EE(t).labelEl=new Js(zE(e.label));t.add(r),WE(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=EE(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=EE(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),WE(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Og(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){he(t.event)},onmousedown:VE(this._onHandleDragMove,this,0,0),drift:VE(this._onHandleDragMove,this),ondragend:VE(this._onHandleDragEnd,this)}),i.add(r)),YE(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Y(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Qg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){FE(this._axisPointerModel,!e&&this._moveAnimation,this._handle,HE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(HE(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(HE(i)),EE(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ty(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function FE(t,e,n,i){GE(EE(n).lastProp,i)||(EE(n).lastProp=i,e?Ql(n,i,t):(n.stopAnimation(),n.attr(i)))}function GE(t,e){if(q(t)&&q(e)){var n=!0;return z(e,function(e,i){n=n&&GE(t[i],e)}),!!n}return t===e}function WE(t,e){t[e.get(["label","show"])?"show":"hide"]()}function HE(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function YE(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}const XE=BE;function UE(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function ZE(t,e,n,i,r){var o=jE(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Sh(a.get("padding")||0),l=a.getFont(),u=mr(o,l),h=r.position,c=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;"right"===d&&(h[0]-=c),"center"===d&&(h[0]-=c/2);var f=r.verticalAlign;"bottom"===f&&(h[1]-=p),"middle"===f&&(h[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:cu(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function jE(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:BM(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};z(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),U(a)?o=a.replace("{value}",o):X(a)&&(o=a(s))}return o}function qE(t,e,n){var i=[1,0,0,1,0,0];return _e(i,i,n.rotation),xe(i,i,n.position),Cg([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function KE(t,e,n,i,r,o){var a=TI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),ZE(e,i,r,o,{position:qE(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function $E(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function JE(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function QE(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var tz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=ez(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=UE(i),c=nz[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}KE(e,t,uI(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=uI(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qE(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=ez(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(XE);function ez(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var nz={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:$E([e,n[0]],[e,n[1]],iz(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:JE([e-i/2,n[0]],[i,r],iz(t))}}};function iz(t){return"x"===t.dim?0:1}const rz=tz;var oz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Hh);const az=oz;var sz=Io(),lz=z;function uz(t,e,n){if(!l.node){var i=e.getZr();sz(i).records||(sz(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);lz(sz(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}sz(t).initialized||(sz(t).initialized=!0,n("click",H(cz,"click")),n("mousemove",H(cz,"mousemove")),n("globalout",hz))}(i,e),(sz(i).records[t]||(sz(i).records[t]={})).handler=n}}function hz(t,e,n){t.handler("leave",null,n)}function cz(t,e,n,i){e.handler(t,n,i)}function pz(t,e){if(!l.node){var n=e.getZr();(sz(n).records||{})[t]&&(sz(n).records[t]=null)}}var dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";uz("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){pz("axisPointer",e)},e.prototype.dispose=function(t,e){pz("axisPointer",e)},e.type="axisPointer",e}(Bd);const fz=dz;function gz(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Mo(o,t);if(null==a||a<0||Y(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p="x"===h||"radius"===h?1:0,d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(V(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var yz=Io();function vz(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||W(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){wz(r)&&(r=gz({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=wz(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||wz(r),p={},d={},f={list:[],map:{}},g={showPointer:H(xz,d),showTooltip:H(_z,f)};z(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);z(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&mz(t,a,g,!1,p)}})});var y={};return z(h,function(t,e){var n=t.linkGroup;n&&!d[e]&&z(n.axesInfo,function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,bz(e),bz(t)))),y[t.key]=o}})}),z(y,function(t,e){mz(h[e],t,g,!0,p)}),function(t,e,n){var i=n.axesInfo=[];z(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(d,h,p),function(t,e,n,i){if(!wz(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=yz(i)[r]||{},a=yz(i)[r]={};z(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&z(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];z(o,function(t,e){!a[e]&&l.push(t)}),z(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(h,0,n),p}}function mz(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return z(e.seriesModels,function(e,l){var u,h,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(c,t,n);h=p.dataIndices,u=p.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f=0&&s<0)&&(a=f,s=d,r=u,o.length=0),z(h,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&P(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function xz(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function _z(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=kI(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function bz(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function wz(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Sz(t){OI.registerAxisPointerClass("CartesianAxisPointer",rz),t.registerComponentModel(az),t.registerComponentView(fz),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];z(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=kI(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(z(n.getAxes(),H(d,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),c="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||c)&&z(p.baseAxes,H(d,!c||"cross",h)),c&&z(p.otherAxes,H(d,"cross",!1))}}function d(i,s,h){var c=h.model.getModel("axisPointer",r),p=c.get("show");if(p&&("auto"!==p||i||AI(c))){null==s&&(s=c.get("triggerTooltip")),c=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};z(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=A(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&O(l,h.textStyle)}}return t.model.getModel("axisPointer",new Nu(s,n,i))}(h,u,r,e,i,s):c;var d=c.get("snap"),f=c.get("triggerEmphasis"),g=kI(h.model),y=s||d||"category"===h.type,v=t.axesInfo[g]={key:g,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:d,useHandle:AI(c),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;ry?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,a,i.get(["label","margin"]));ZE(t,n,i,r,p)},e}(XE),Iz={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:$E(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:QE(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:QE(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const Tz=Mz;var Cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Hh);const Dz=Cz;var Az=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ao).models[0]},e.type="polarAxis",e}(Hh);N(Az,VS);var kz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="angleAxis",e}(Az),Lz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="radiusAxis",e}(Az),Pz=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(aI);Pz.prototype.dataToRadius=aI.prototype.dataToCoord,Pz.prototype.radiusToData=aI.prototype.coordToData;const Oz=Pz;var Rz=Io(),Nz=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=mr(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=Rz(t.model),p=c.lastAutoInterval,d=c.lastTickCount;return null!=p&&null!=d&&Math.abs(p-h)<=1&&Math.abs(d-r)<=1&&p>h?h=p:(c.lastTickCount=r,c.lastAutoInterval=h),h},e}(aI);Nz.prototype.dataToAngle=aI.prototype.dataToCoord,Nz.prototype.angleToData=aI.prototype.coordToData;const Ez=Nz;var zz=["radius","angle"],Vz=function(){function t(t){this.dimensions=zz,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Oz,this._angleAxis=new Ez,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180,r=1e-4;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,o=n*n+i*i,a=this.r,s=this.r0;return a!==s&&o-r<=a*a&&o+r>=s*s}}},t.prototype.convertToPixel=function(t,e,n){return Bz(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Bz(e)===this?this.pointToData(n):null},t}();function Bz(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const Fz=Vz;function Gz(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();z(HM(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),z(HM(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),EM(i.scale,i.model),EM(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Wz(t,e){var n;if(t.type=e.get("type"),t.scale=zM(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}const Hz={dimensions:zz,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new Fz(i+"");r.update=Gz;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Wz(o,s),Wz(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Hr(i[0],r),t.cy=Hr(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[Hr(l[0],s),Hr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Ao).models[0];t.coordinateSystem=e.coordinateSystem}}),n}};var Yz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xz(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function Uz(t){return t.getRadiusAxis().inverse?0:1}function Zz(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var jz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=V(n.getViewLabels(),function(t){t=A(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});Zz(s),Zz(o),z(Yz,function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||qz[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(OI),qz={axisLine:function(t,e,n,r,o,a){var s,l=e.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),h=Math.PI/180,c=u.getExtent(),p=Uz(n),d=p?0:1,f=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(s=0===a[d]?new i[f]({shape:{cx:n.cx,cy:n.cy,r:a[p],startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new Lf({shape:{cx:n.cx,cy:n.cy,r:a[p],r0:a[d]},style:l.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(s)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[Uz(n)],u=V(i,function(t){return new Wf({shape:Xz(n,[l,l+s],t.coord)})});t.add(bg(u,{style:O(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[Uz(n)],h=[],c=0;cf?"left":"right",v=Math.abs(d[1]-g)/p<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[c]){var m=s[c];q(m)&&m.textStyle&&(a=new Nu(m.textStyle,l,l.ecModel))}var x=new Js({silent:TI.isLabelSilent(e),style:cu(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),h){var _=TI.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,Qs(x).eventData=_}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h=0?"p":"n",C=b;m&&(i[s][I]||(i[s][I]={p:b,n:b}),C=i[s][I][T]);var D=void 0,A=void 0,k=void 0,L=void 0;if("radius"===c.dim){var P=c.dataToCoord(M)-b,O=o.dataToCoord(I);Math.abs(P)=L})}}})};var oV={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},aV={splitNumber:5},sV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="polar",e}(Bd);function lV(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),et(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var uV=["axisLine","axisTickLabel","axisName"],hV=["splitArea","splitLine"],cV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return o(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Er;var s=lV(e),l=new TI(e,s);z(uV,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),z(hV,function(t){e.get([t,"show"])&&pV[t](this,this.group,this._axisGroup,e)},this),kg(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){EI(this)},e.type="singleAxis",e}(OI),pV={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=[],p=0,d=r.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return _V(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return _V(e)===this?this.pointToData(n):null},t}();function _V(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const bV=xV,wV={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new bV(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Ao).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:mV};var SV=["x","y"],MV=["width","height"],IV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=DV(a,1-CV(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=UE(i),c=TV[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}KE(e,t,lV(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=lV(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=qE(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=CV(r),s=DV(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=DV(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(XE),TV={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:$E([e,n[0]],[e,n[1]],CV(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:JE([e-i/2,n[0]],[i,r],CV(t))}}};function CV(t){return t.isHorizontal()?0:1}function DV(t,e){var n=t.getRect();return[n[SV[e]],n[SV[e]]+n[MV[e]]]}const AV=IV;var kV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="single",e}(Bd),LV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e,n,i){var r=Bh(e);t.prototype.init.apply(this,arguments),PV(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),PV(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Hh);function PV(t,e){var n,i=t.cellSize;1===(n=Y(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=V([0,1],function(t){return function(t,e){return null!=t[Ph[e][0]]||null!=t[Ph[e][1]]&&null!=t[Ph[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});Vh(t,e,{type:"box",ignoreSize:r})}const OV=LV;var RV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Es({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,h=0;u.time<=e.end.time;h++){p(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function p(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}p(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Vf({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return U(t)&&t?(n=t,z(e,function(t,e){n=n.replace("{"+e+"}",t)}),n):X(t)?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+"-"+e.end.y);var d=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),y=new Js({z2:30,style:cu(r,{text:g}),silent:r.get("silent")});y.attr(this._yearTextPositionControl(y,c[a],n,a,o)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!U(o)||(o&&(e=Uu(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===s?0:1,c="horizontal"===n?0:1;a="start"===s?-a:a;for(var p="center"===l,d=r.get("silent"),f=0;f=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/EV)-Math.floor(n[0].time/EV)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}();function VV(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}const BV=zV;function FV(t,e){var n;return z(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var GV=["transition","enterFrom","leaveTo"],WV=GV.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function HV(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?GV:WV,r=0;r=0;l--){var p,d,f;if(f=null!=(d=bo((p=n[l]).id,null))?r.get(d):null){var g=f.parent,y=(c=UV(g),{}),v=Eh(f,p,g===i?{width:o,height:a}:{width:c.width,height:c.height},null,{hv:p.hv,boundingMode:p.bounding},y);if(!UV(f).isNew&&v){for(var m=p.transition,x={},_=0;_=0)?x[b]=w:f[b]=w}Ql(f,x,t,0)}else f.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){KV(n,UV(n).option,e,t._lastGraphicModel)}),this._elMap=ft()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Bd);function jV(t){var e=new(mt(XV,t)?XV[t]:vg(t))({});return UV(e).type=t,e}function qV(t,e,n,i){var r=jV(n);return e.add(r),i.set(t,r),UV(r).id=t,UV(r).isNew=!0,r}function KV(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){KV(t,e,n,i)}),ZN(t,e,i),n.removeKey(UV(t).id))}function $V(t,e,n,i){t.isGroup||z([["cursor",ma.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],function(n){var i=n[0];mt(e,i)?t[i]=nt(e[i],n[1]):null==t[i]&&(t[i]=n[1])}),z(G(e),function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=X(i)?i:null}}),mt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var JV=["x","y","radius","angle","single"],QV=["cartesian2d","polar","singleAxis"];function tB(t){return t+"Axis"}function eB(t){var e=t.ecModel,n={infoList:[],infoMap:ft()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(tB(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var nB=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),iB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(e,t),e.prototype.init=function(t,e,n){var i=rB(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=rB(t);k(this.option,t,!0),k(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;z([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=ft();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return z(JV,function(n){var i=this.getReferringComponents(tB(n),ko);if(i.specified){e=!0;var r=new nB;z(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(e,n){var r=e[0];if(r){var o=new nB;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Ao).models[0];a&&z(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Ao).models[0]&&o.add(t.componentIndex)})}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&z(JV,function(e){if(i){var r=n.findComponents({mainType:tB(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new nB;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");z([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(tB(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){z(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(tB(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;z([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;z(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=tB(this._dimName),i=e.getReferringComponents(n,Ao).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return A(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];pB(["start","end"],function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(Wr(h,o,n))):(e=!0,h=Wr(c=null==c?n[u]:i.parse(c),n,o)),s[u]=null==c||isNaN(c)?n[u]:c,a[u]=null==h||isNaN(h)?o[u]:h}),dB(s),dB(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";EL(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Wr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];pB(n,function(t){!function(t,e,n){e&&z(HM(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}(i,t.getData(),e)});var r=t.getAxisModel(),o=OM(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&pB(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=V(i,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,r,l=0;lo[1];if(h&&!c&&!p)return!0;h&&(r=!0),c&&(e=!0),p&&(n=!0)}return r&&e&&n})}else pB(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}});pB(i,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;pB(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Wr(n[0]+o,n,[0,100],!0):null!=r&&(o=Wr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Zr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const gB=fB,yB={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(tB(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new gB(e,i,o,t),n.push(r.__dzAxisProxy))});var i=ft();return z(n,function(t){z(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var vB=!1;function mB(t){vB||(vB=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,yB),function(t){t.registerAction("dataZoom",function(t,e){z(function(t,e){var n,i=ft(),r=[],o=ft();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function xB(t){t.registerComponentModel(sB),t.registerComponentView(cB),mB(t)}var _B=function(){},bB={};function wB(t,e){bB[t]=e}function SB(t){return bB[t]}var MB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;z(this.option.feature,function(t,n){var i=SB(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),k(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Hh);const IB=MB;function TB(t,e){var n=Sh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Es({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var CB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];z(s,function(t,e){u.push(e)}),new Q_(this._featureNames||[],u).add(h).update(h).remove(H(h,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Nh(i,o,r);Rh(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Eh(t,i,o,r)}(r,t,n),r.add(TB(r.getBoundingRect(),t)),a||r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!X(l)&&e){var u=l.style||(l.style={}),h=mr(e,Js.makeFont(u)),c=t.x+r.x,p=!1;t.y+r.y+o+h.height>n.getHeight()&&(a.position="top",p=!0);var d=p?-5-h.height:o+10;c+h.width/2>n.getWidth()?(a.position=["100%",d],u.align="right"):c-h.width/2<0&&(a.position=[0,d],u.align="left")}})}function h(h,c){var p,d=u[h],f=u[c],g=s[d],y=new Nu(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(g.title=i.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))p={onclick:y.option.onclick,featureName:d};else{var v=SB(d);if(!v)return;p=new v}l[d]=p}else if(!(p=l[f]))return;p.uid=zu("toolbox-feature"),p.model=y,p.ecModel=e,p.api=n;var m=p instanceof _B;d||!f?!y.get("show")||m&&p.unusable?m&&p.remove&&p.remove(e,n):(function(i,s,l){var u,h,c=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),d=s instanceof _B&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};U(d)?(u={})[l]=d:u=d,U(f)?(h={})[l]=f:h=f;var g=i.iconPaths={};z(u,function(l,u){var d=Og(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle()),d.ensureState("emphasis").style=p.getItemStyle();var f=new Js({style:{text:h[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:vu({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},e)},ignore:!0});d.setTextContent(f),zg({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),d.__title=h[u],d.on("mouseover",function(){var e=p.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),d.setTextConfig({position:p.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()}),("emphasis"===i.get(["iconStatus",u])?Cl:Dl)(d),r.add(d),d.on("click",W(s.onclick,s,e,n,u)),g[u]=d})}(y,p,d),y.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Cl:Dl)(i[t])},p instanceof _B&&p.render&&p.render(y,e,n,i)):m&&p.dispose&&p.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){z(this._features,function(t){t instanceof _B&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){z(this._features,function(n){n instanceof _B&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){z(this._features,function(n){n instanceof _B&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(Bd);const DB=CB;var AB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=l.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var u=a.split(","),h=u[0].indexOf("base64")>-1,c=r?decodeURIComponent(u[1]):u[1];h&&(c=window.atob(c));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,f=new Uint8Array(d);d--;)f[d]=c.charCodeAt(d);var g=new Blob([f]);window.navigator.msSaveOrOpenBlob(g,p)}else{var y=document.createElement("iframe");document.body.appendChild(y);var v=y.contentWindow,m=v.document;m.open("image/svg+xml","replace"),m.write(c),m.close(),v.focus(),m.execCommand("SaveAs",!0,p),document.body.removeChild(y)}}else{var x=n.get("lang"),_='',b=window.open();b.document.write(_),b.document.title=i}else{var w=document.createElement("a");w.download=i+"."+o,w.target="_blank",w.href=a;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(_B);const kB=AB;var LB="__ec_magicType_stack__",PB=[["line","bar"],["stack"]],OB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return z(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(RB[n]){var o,a={series:[]};z(PB,function(t){R(t,n)>=0&&z(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var e=t.subType,r=t.id,o=RB[n](e,r,t,i);o&&(O(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",h=t.getReferringComponents(u,Ao).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=k({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(_B),RB={line:function(t,e,n,i){if("bar"===t)return k({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return k({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===LB;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),k({id:e,stack:r?"":LB},i.get(["option","stack"])||{},!0)}};Rm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const NB=OB;var EB=new Array(60).join("-"),zB="\t";function VB(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var BB=new RegExp("[\t]+","g");var FB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),h=i.get("contentToOption"),c=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:F([(n=r.seriesGroupByCategoryAxis,i=[],z(n,function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(V(t.series,function(t){return t.name})),a=[n.model.getCategories()];z(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(zB)],l=0;l=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=V(VB(e.shift()).split(BB),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=eF[t.brushType](0,n,e);t.__rangeOffset={offset:iF[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){z(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&z(i.coordSyses,function(i){var r=eF[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){z(t,function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=eF[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?iF[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=oF(n),o=oF(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:GP(i),isTargetByCursor:HP(i,t,n.coordSysModel),getLinearBrushOtherExtent:WP(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&R(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=$B(e,t),r=0;rt[1]&&t.reverse(),t}function $B(t,e){return Co(t,e,{includeMainTypes:jB})}var JB={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=ft(),a={},s={};(n||i||r)&&(z(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),z(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),z(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=t.coordinateSystem,o=[];z(r.getCartesians(),function(t,e){(R(n,t.getAxis("x").model)>=0||R(i,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:tF.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){z(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:tF.geo})})}},QB=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],tF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Tg(t)),e}},eF={lineX:H(nF,0),lineY:H(nF,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[KB([r[0],o[0]]),KB([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:V(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function nF(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=KB(V([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var iF={lineX:H(rF,0),lineY:H(rF,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return V(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function rF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function oF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const aF=qB;var sF,lF,uF=z,hF=co+"toolbox-dataZoom_",cF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new FP(n.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new aF(dF(t),e,{include:["grid"]}).makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return XB(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){pF[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new aF(dF(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=XB(t);HB(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=EL(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];uF(t,function(t,n){e.push(A(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(_B),pF={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=XB(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return HB(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function dF(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}sF="dataZoom",lF=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Co(t,dF(i));return uF(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),uF(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:hF+e+o};a[n]=o,r.push(a)}},at(null==cc.get(sF)&&lF),cc.set(sF,lF);const fF=cF;var gF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Hh);const yF=gF;function vF(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function mF(t){if(l.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(c))+p*Math.abs(Math.sin(c)),f=e+" solid "+r+"px;";return'
'}(n,i,r)),U(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!l.node&&n.getDom()){var r=NF(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=Do(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Lo(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=Qs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=PF;u.x=i.x,u.y=i.y,u.update(),Qs(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var h=gz(i,e),c=h.point[0],p=h.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:h.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(NF(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===RF([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===Qs(n).ssrType)return;this._lastDataByCoordSys=null,Xy(n,function(t){return null!=Qs(t).dataIndex?(r=t,!0):null!=Qs(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=W(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=RF([e.tooltipOption],i),a=this._renderMode,s=[],l=dd("section",{blocks:[],noHeader:!0}),u=[],h=new Md;z(t,function(t){z(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=jE(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=dd("section",{header:o,noHeader:!st(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),z(t.seriesDataIndices,function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=BM(e.axis,{value:r}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",Dh(f.color),a);var g=Ip(p.formatTooltip(d,!0,null)),y=g.frag;if(y){var v=RF([p],i).get("valueFormatter");c.blocks.push(v?P({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),u.reverse();var c=e.position,p=o.get("order"),d=xd(l,h,a,p,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],c,null,h)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Qs(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,d=RF([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new Md;g.marker=y.makeTooltipMarker("item",Dh(g.color),c);var v=Ip(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=v.frag,b=_?xd(x?P({valueFormatter:x},_):_,y,c,m,i.get("useUTC"),d.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(d,function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Qs(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;U(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=A(o)).content=te(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,h=RF(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",d=new Md;this._showOrMove(h,function(){var n=A(h.get("formatterParams")||{});this._showTooltipContent(h,c,n,p,t.offsetX,t.offsetY,t.position,e,d)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(U(h)){var d=t.ecModel.get("useUTC"),f=Y(n)?n[0]:n;c=h,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(c=rh(f.axisValue,c,d)),c=Ch(c,n,!0)}else if(X(h)){var g=W(function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,g)}else c=h;u.setContent(c,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Y(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Y(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),X(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),Y(e))n=Hr(e[0],s),i=Hr(e[1],l);else if(q(e)){var d=e;d.width=u[0],d.height=u[1];var f=Nh(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(U(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,h?null:20,c?null:20),n=g[0],i=g[1];h&&(n-=EF(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=EF(c)?u[1]/2:"bottom"===c?u[1]:0),vF(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&z(n,function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&z(a,function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&z(a,function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&z(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!l.node&&e.getDom()&&(ty(this,"_updatePosition"),this._tooltipContent.dispose(),pz("itemTooltip",e))},e.type="tooltip",e}(Bd);function RF(t,e,n){var i,r=e.ecModel;n?(i=new Nu(n,r,r),i=new Nu(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Nu&&(a=a.get("tooltip",!0)),U(a)&&(a={formatter:a}),a&&(i=new Nu(a,i,r)))}return i}function NF(t,e){return t.dispatchAction||W(e.dispatchAction,e)}function EF(t){return"center"===t||"middle"===t}const zF=OF;var VF=["rect","polygon","keep","clear"];function BF(t,e){var n=po(t?t.brush:[]);if(n.length){var i=[];z(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;Y(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};z(t,function(t){e[t]=1}),t.length=0,z(e,function(e,n){t.push(n)})}(s),e&&!s.length&&s.push.apply(s,VF)}}var FF=z;function GF(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function WF(t,e,n){var i={};return FF(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);FF(t[e],function(t,i){if(MA.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new MA(r),"opacity"===i&&((r=A(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new MA(r))}})}),i}function HF(t,e,n){var i;z(n,function(t){e.hasOwnProperty(t)&&GF(e[t])&&(i=!0)}),i&&z(n,function(n){e.hasOwnProperty(n)&&GF(e[n])?t[n]=A(e[n]):delete t[n]})}var YF={lineX:XF(0),lineY:XF(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ZT(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(ZT(i,r,o)||ZT(i,r+a,o)||ZT(i,r,o+s)||ZT(i,r+a,o+s)||Re.create(t).contain(l[0],l[1])||Rg(r,o,r+a,o,i)||Rg(r,o,r,o+s,i)||Rg(r+a,o,r+a,o+s,i)||Rg(r,o+s,r+a,o+s,i))||void 0}}};function XF(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return UF(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&eG(e)}};function eG(t){return new Re(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var nG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new FP(e.getZr())).on("brush",W(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){KF(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:A(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:A(n),$from:e})},e.type="brush",e}(Bd);const iG=nG;var rG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return o(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&HF(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=V(t,function(t){return oG(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=oG(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Hh);function oG(t,e){return k({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Nu(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const aG=rG;var sG=["rect","polygon","lineX","lineY","keep","clear"],lG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,z(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return z(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:sG.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(_B);const uG=lG;var hG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Hh),cG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=nt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Js({style:cu(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new Js({style:cu(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on("click",function(){Ah(p,"_"+t.get("target"))}),d&&c.on("click",function(){Ah(d,"_"+t.get("subtarget"))}),Qs(l).eventData=Qs(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Nh(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new Es({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Bd),pG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],z(n,function(e,n){var i,o=bo(yo(e),"");q(e)?(i=A(e)).value=n:i=n,t.push(i),r.push(o)})):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new Mb([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Hh);const dG=pG;var fG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline.slider",e.defaultOption=Vu(dG.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(dG);N(fG,Mp.prototype);const gG=fG;var yG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline",e}(Bd);const vG=yG;var mG=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return o(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(aI);const xG=mG;var _G=Math.PI,bG=Io(),wG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return dd("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},z(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Nh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:_G/2},p="vertical"===s?l.height:l.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*_G/180;var x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),b=f&&d.get("showPrevBtn",!0),w=f&&d.get("showNextBtn",!0),S=0,M=p;"left"===x||"bottom"===x?(_&&(i=[0,0],S+=v),b&&(r=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(_&&(i=[M-g,0],M-=v),b&&(r=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:p,orient:s,rotation:c[s],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;xe(o,o,[-a,-s]),_e(o,o,-_G/2),xe(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),h=y(i.getBoundingRect()),c=[n.x,n.y],p=[i.x,i.y];p[0]=c[0]=l[0][0];var d,f=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==f||U(f)?(v(c,u,l,1,d="+"===f?0:1),v(p,h,l,1,1-d)):(v(c,u,l,1,d=f>=0?0:1),p[1]=c[1]+f),n.setPosition(c),i.setPosition(p),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new aM({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new mM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new uM}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new xG("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Er;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Wf({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:P({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Wf({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:O({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],z(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c={x:a,y:0,onclick:W(r._changeTimeline,r,t.value)},p=SG(s,l,e,c);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),Fl(p);var d=Qs(p);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=i):d.dataIndex=d.dataModel=null,r._tickSymbols.push(p)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],z(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),p=new Js({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:W(r._changeTimeline,r,a),silent:!1,style:cu(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=cu(u),p.ensureState("progress").style=cu(h),e.add(p),Fl(p),bG(p).dataIndex=a,r._tickLabels.push(p)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h=wr(nt(i.get(["controlStyle",n+"BtnSize"]),r),r),c=function(t,e,n,i){var r=i.style,o=Og(t.get(["controlStyle",e]),i||{},new Re(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});c.ensureState("emphasis").style=s,e.add(c),Fl(c)}}h(t.nextBtnPosition,"next",W(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",W(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",W(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=W(s._handlePointerDrag,s),t.ondragend=W(s._handlePointerDragend,s),MG(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){MG(t,s._progressLine,o,n,i)}};this._currentPointer=SG(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=Xr(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(c)),[a,h]}var VG={min:H(zG,"min"),max:H(zG,"max"),average:H(zG,"average"),median:H(zG,"median")};function BG(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Y(e.coord)&&Y(r)){var o=FG(e,n,i,t);if((e=A(e)).type&&VG[e.type]&&o.baseAxis&&o.valueAxis){var a=R(r,o.baseAxis.dim),s=R(r,o.valueAxis.dim),l=VG[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Y(r))for(var u=e.coord,h=0;h<2;h++)VG[u[h]]&&(u[h]=HG(n,n.mapDimension(r[h]),u[h]));else e.coord=[];return e}}function FG(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function GG(t,e){return!(t&&t.containData&&e.coord&&!EG(e))||t.containData(e.coord)}function WG(t,e){return t?function(t,n,i,r){return kp(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return kp(t.value,e[r])}}function HG(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var YG=Io(),XG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){this.markerGroupMap=ft()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){YG(t).keep=!1}),e.eachSeries(function(t){var r=OG.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){!YG(t).keep&&i.group.remove(t.group)})},e.prototype.markKeep=function(t){YG(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;z(t,function(t){var i=OG.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?Al(t):kl(t))})})},e.type="marker",e}(Bd);const UG=XG;function ZG(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=Hr(a.get("x"),n.getWidth()),l=Hr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}var jG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=OG.getMarkerModelFromSeries(t,"markPoint");e&&(ZG(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Yb),u=function(t,e,n){var i;i=t?V(t&&t.dimensions,function(t){return P(P({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new Mb(i,n),o=V(n.get("data"),H(BG,e));t&&(o=F(o,H(GG,t)));var a=WG(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),ZG(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(X(i)||X(r)||X(o)||X(s)){var h=e.getRawValue(t),c=e.getDataParams(t);X(i)&&(i=i(h,c)),X(r)&&(r=r(h,c)),X(o)&&(o=o(h,c)),X(s)&&(s=s(h,c))}var p=n.getModel("itemStyle").getItemStyle(),d=Gy(a,"color");p.fill||(p.fill=d),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){Qs(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(UG);const qG=jG;var KG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(OG);const $G=KG;var JG=Io(),QG=function(t,e,n,i){var r,o=t.getData();if(Y(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=et(i.yAxis,i.xAxis);else{var u=FG(i,o,e,t);s=u.valueAxis,l=HG(o,Lb(o,u.valueDataDim),a)}var h="x"===s.dim?0:1,c=1-h,p=A(i),d={coord:[]};p.type=null,p.coord=[],p.coord[c]=-1/0,d.coord[c]=1/0;var f=n.get("precision");f>=0&&j(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[h]=d.coord[h]=l,r=[p,d,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[BG(t,r[0]),BG(t,r[1]),P({},r[2])];return g[2].type=g[2].type||null,k(g[2],g[0]),k(g[2],g[1]),g};function tW(t){return!isNaN(t)&&!isFinite(t)}function eW(t,e,n,i){var r=1-t,o=i.dimensions[t];return tW(e[r])&&tW(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function nW(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(eW(1,n,i,t)||eW(0,n,i,t)))return!0}return GG(t,e[0])&&GG(t,e[1])}function iW(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Hr(s.get("x"),r.getWidth()),u=Hr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(sw(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y");h=a.dimensions,tW(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):tW(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var rW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=OG.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=JG(e).from,o=JG(e).to;r.each(function(e){iW(r,e,!0,t,n),iW(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new Pk);this.group.add(l.group);var u=function(t,e,n){var i;i=t?V(t&&t.dimensions,function(t){return P(P({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var r=new Mb(i,n),o=new Mb(i,n),a=new Mb([],n),s=V(n.get("data"),H(QG,e,t,n));t&&(s=F(s,H(nW,t)));var l=WG(!!t,i);return r.initData(V(s,function(t){return t[0]}),null,l),o.initData(V(s,function(t){return t[1]}),null,l),a.initData(V(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,p=u.line;JG(e).from=h,JG(e).to=c,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);iW(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Gy(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:nt(o.get("symbolOffset",!0),y[r?0:1]),symbolRotate:nt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:nt(o.get("symbolSize"),f[r?0:1]),symbol:nt(o.get("symbol",!0),d[r?0:1]),style:s})}Y(d)||(d=[d,d]),Y(f)||(f=[f,f]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),u.from.each(function(t){v(h,t,!0),v(c,t,!1)}),p.each(function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol"),style:e})}),l.updateData(p),u.line.eachItemGraphicEl(function(t){Qs(t).dataModel=e,t.traverse(function(t){Qs(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(UG);const oW=rW;var aW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(OG);const sW=aW;var lW=Io(),uW=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=BG(t,r),s=BG(t,o),l=a.coord,u=s.coord;l[0]=et(l[0],-1/0),l[1]=et(l[1],-1/0),u[0]=et(u[0],1/0),u[1]=et(u[1],1/0);var h=L([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function hW(t){return!isNaN(t)&&!isFinite(t)}function cW(t,e,n,i){var r=1-t;return hW(e[r])&&hW(n[r])}function pW(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return sw(t,"cartesian2d")?!(!n||!i||!cW(1,n,i)&&!cW(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!EG(e)&&!EG(n))||t.containZone(e.coord,n.coord)}(t,r,o):GG(t,r)||GG(t,o)}function dW(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Hr(s.get(n[0]),r.getWidth()),u=Hr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),p=a.clampData(h),d=a.clampData(c),f=[];"x0"===n[0]?f[0]=p[0]>d[0]?c[0]:h[0]:f[0]=p[0]>d[0]?h[0]:c[0],"y0"===n[1]?f[1]=p[1]>d[1]?c[1]:h[1]:f[1]=p[1]>d[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[m=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(sw(a,"cartesian2d")){var y=a.getAxis("x"),v=a.getAxis("y"),m=t.get(n[0],e),x=t.get(n[1],e);hW(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):hW(x)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var fW=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],gW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=OG.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=V(fW,function(r){return dW(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Er});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;if(t){var o=V(t&&t.dimensions,function(t){var n=e.getData();return P(P({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})});r=V(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),i=new Mb(r,n)}else i=new Mb(r=[{name:"value",type:"float"}],n);var a=V(n.get("data"),H(uW,e,t,n));t&&(a=F(a,H(pW,t)));var s=t?function(t,e,n,i){return kp(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return kp(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each(function(e){var n=V(fW,function(n){return dW(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Xr(c),Xr(p);var d=!!(l[0]>c[1]||l[1]p[1]||h[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Hh);const mW=vW;var xW=H,_W=z,bW=Er,wW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return o(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new bW),this.group.add(this._selectorGroup=new bW),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=Nh(l,u,h),p=this.layoutInner(t,r,c,i,a,s),d=Nh(O({width:p.width,height:p.height},l),u,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=TB(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=ft(),u=e.get("selectedMode"),h=[];n.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),_W(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new bW;return c.newline=!0,void s.add(c)}var p=n.getSeriesByName(a)[0];if(!l.get(a))if(p){var d=p.getData(),f=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),v=this._createItem(p,a,o,r,e,t,f,y,g,u,i);v.on("click",xW(SW,a,null,i,h)).on("mouseover",xW(IW,p.name,null,i,h)).on("mouseout",xW(TW,p.name,null,i,h)),n.ssr&&v.eachChild(function(t){var e=Qs(t);e.seriesIndex=p.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}else n.eachRawSeries(function(s){if(!l.get(a)&&s.legendVisualProvider){var c=s.legendVisualProvider;if(!c.containName(a))return;var p=c.indexOfName(a),d=c.getItemVisual(p,"style"),f=c.getItemVisual(p,"legendIcon"),g=jn(d.fill);g&&0===g[3]&&(g[3]=.2,d=P(P({},d),{fill:ei(g,"rgba")}));var y=this._createItem(s,a,o,r,e,t,{},d,f,u,i);y.on("click",xW(SW,null,a,i,h)).on("mouseover",xW(IW,null,a,i,h)).on("mouseout",xW(TW,null,a,i,h)),n.ssr&&y.eachChild(function(t){var e=Qs(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"}),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();_W(t,function(t){var i=t.type,r=new Js({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),uu(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Fl(r)})},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f=t.visualDrawType,g=r.get("itemWidth"),y=r.get("itemHeight"),v=r.isSelected(e),m=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),_=i.get("icon"),b=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),_W(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?Lv(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(l=_||l||"roundRect",i,a,s,f,v,h),w=new bW,S=i.getModel("textStyle");if(!X(t.getLegendIcon)||_&&"inherit"!==_){var M="inherit"===_&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;w.add((c={itemWidth:g,itemHeight:y,icon:l,iconRotate:M,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:x},(d=rv(p=c.icon||"roundRect",0,0,c.itemWidth,c.itemHeight,c.itemStyle.fill,c.symbolKeepAspect)).setStyle(c.itemStyle),d.rotation=(c.iconRotate||0)*Math.PI/180,d.setOrigin([c.itemWidth/2,c.itemHeight/2]),p.indexOf("empty")>-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),d))}else w.add(t.getLegendIcon({itemWidth:g,itemHeight:y,icon:l,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:x}));var I="left"===o?g+5:-5,T=o,C=r.get("formatter"),D=e;U(C)&&C?D=C.replace("{name}",null!=e?e:""):X(C)&&(D=C(e));var A=v?S.getTextColor():i.get("inactiveColor");w.add(new Js({style:cu(S,{text:D,x:I,y:y/2,fill:A,align:T,verticalAlign:"middle"},{inheritColor:A})}));var k=new Es({shape:w.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&zg({el:k,componentModel:r,itemName:e,itemTooltipOption:L.option}),w.add(k),w.eachChild(function(t){t.silent=!0}),k.silent=!u,this.getContentGroup().add(w),Fl(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Rh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Rh("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Bd);function SW(t,e,n,i){TW(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),IW(t,e,n,i)}function MW(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=nt(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-p[r]:g[i]+=p[r]+v),y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=d?n[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var x={x:0,y:0};x[r]=Math.max(n[r]-p[r]-v,0),x[o]=m[o],u.setClipPath(new Es({shape:x})),u.__rectSize=x[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(t);return null!=_.pageIndex&&Ql(l,{x:_.contentPosition[0],y:_.contentPosition[1]},d?t:null),this._updatePageInfoView(t,_),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;z(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",U(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=EW[r],a=zW[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=h;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(f=s-1,g=d,y=d,v=null;f>=-1;--f)(v=m(l[f]))&&x(y,v.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(CW);const BW=VW;function FW(t){Gm(LW),t.registerComponentModel(RW),t.registerComponentView(BW),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}var GW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.inside",e.defaultOption=Vu(oB.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(oB);const WW=GW;var HW=Io();function YW(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function XW(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function UW(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var ZW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return o(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){HW(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}(i,e,{pan:W(jW.pan,this),zoom:W(jW.zoom,this),scrollMove:W(jW.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=HW(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return EL(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:qW(function(t,e,n,i,r,o){var a=KW[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:qW(function(t,e,n,i,r,o){return KW[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function qW(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return EL(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var KW={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const $W=ZW;function JW(t){mB(t),t.registerComponentModel(WW),t.registerComponentView($W),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=HW(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=ft());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){z(eB(t).infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:H(UW,e),dispatchAction:H(XW,t),dataZoomInfoMap:null,controller:null},i=n.controller=new xT(t.getZr());return z(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=ft())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each(function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Qg(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else YW(i,t)})})}(t)}var QW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Vu(oB.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(oB);const tH=QW;var eH=Es,nH="horizontal",iH="vertical",rH=["line","bar","candlestick","scatter"],oH={easing:"cubicOut",duration:100,delay:0},aH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return o(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Qg(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ty(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Er;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===nH?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Bh(t.option);z(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=Nh(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===iH&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==nH||r?n===nH&&r?{scaleY:a?1:-1,scaleX:-1}:n!==iH||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new eH({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new eH({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),h=.3*(u[1]-u[0]);u=[u[0]-h,u[1]+h];var c,p=[0,e[1]],d=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=d[1]/(r.count()-1),v=0,m=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,i=n?0:Wr(t,u,p,!0);n&&!c&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&c&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=y,c=n}}),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=w(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new Er,i=new Nf({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Vf({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){z(t.getAxisProxy(r,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&R(rH,t.get("type"))<0)){var a,s=i.getComponent(tB(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new eH({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new eH({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),z([0,1],function(e){var o=a.get("handleIcon");!ev[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=rv(o,-1,0,2,2,null,!0);s.attr({cursor:sH(this._orient),draggable:!0,drift:W(this._onDragMove,this,e),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Hr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Fl(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;t.add(i[e]=new Js({silent:!0,invisible:!p,style:cu(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=Hr(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new Es({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=rv(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(p,10));(c=e.moveZone=new Es({invisible:!0,shape:{y:o[1]-y,height:p+y}})).on("mouseover",function(){s.enterEmphasis(d)}).on("mouseout",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:sH(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Wr(t[0],[0,100],e,!0),Wr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];EL(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?Wr(o.minSpan,a,r,!0):null,null!=o.maxSpan?Wr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Xr([Wr(i[0],r,a,!0),Wr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Xr(n.slice()),r=this._size;z([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Me(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=Xr([Wr(n.x,i,r,!0),Wr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(he(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new eH({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?oH:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=eB(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(uB);function sH(t){return"vertical"===t?"ns-resize":"ew-resize"}const lH=aH;function uH(t){t.registerComponentModel(tH),t.registerComponentView(lH),mB(t)}var hH={get:function(t,e,n){var i=A((cH[t]||{})[e]);return n&&Y(i)?i[i.length-1]:i}},cH={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const pH=hH;var dH=MA.mapVisual,fH=MA.eachVisual,gH=Y,yH=z,vH=Xr,mH=Wr,xH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&HF(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=W(t,this),this.controllerVisuals=WF(this.option.controller,e,t),this.targetVisuals=WF(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=po(t),e},e.prototype.eachTargetSeries=function(t,e){z(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],Y(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return U(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):X(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=vH([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});k(i,n),k(r,n);var o=this.isCategory();function a(n){gH(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},yH(i,function(t,e){if(MA.isValidType(e)){var n=pH.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";yH(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&A(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&A(n)||(o?s[0]:[s[0],s[0]])),l.symbol=dH(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var h=-1/0;fH(u,function(t){t>h&&(h=t)}),l.symbolSize=dH(u,function(t){return mH(t,[0,h],[0,s[0]],!0)})}},this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Hh);const _H=xH;var bH=[20,140],wH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=bH[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=bH[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):Y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),z(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Xr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=SH(0,0,this.getExtent()),n=SH(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Er("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);LH([0,1],function(u){var h=r[u];h.setStyle("fill",e.handlesColor[u]),h.y=t[u];var c=kH(t[u],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=p/a[0],h.x=a[0]-p/2;var d=Cg(n.handleLabelPoints[u],Tg(h,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(a[0]-p)/2:(a[0]-p)/-2;d[1]+=f}o[u].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=kH(t,o,s,!0),d=a[0]-c/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=Cg(l.indicatorLabelPoint,Tg(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:d,y:p,style:{fill:h}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Sr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var h=this._hoverLinkDataIndices,c=[];(e||EH(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function WH(t,e,n,i){for(var r=e.targetVisuals[i],o=MA.prepareVisualTypes(r),a={color:Gy(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(BH,FH),z(GH,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(YH))}function jH(t){t.registerComponentModel(MH),t.registerComponentView(VH),ZH(t)}var qH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return o(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],KH[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=A(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=V(this._pieceList,function(t){return t=A(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=MA.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}z(e.pieces,function(t){z(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),z(n,function(t,n){var i=!1;z(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),!i&&z(this.stateList,function(t){(e[t]||(e[t]={}))[n]=pH.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,z(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;z(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=A(t)},e.prototype.getValueState=function(t){var e=MA.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){MA.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return z(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Vu(_H.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(_H),KH={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function $H(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const JH=qH;var QH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=et(e.get("showLabel",!0),!u),c=!e.get("selectedMode");u&&this._renderEndsText(t,u[0],s,h,a),z(l.viewPieceList,function(i){var l=i.piece,u=new Er;u.onclick=W(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]],c),h){var d=this.visualMapModel.getValueState(p);u.add(new Js({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1},silent:c}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),Rh(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:AH(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return DH(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new Er,a=this.visualMapModel.textStyleModel;o.add(new Js({style:cu(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=V(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=rv(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=A(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,z(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(TH);const tY=QH;function eY(t){t.registerComponentModel(JH),t.registerComponentView(tY),ZH(t)}var nY={label:{enabled:!0},decal:{show:!1}},iY=Io(),rY={};function oY(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=A(nY);k(i.label,t.getLocaleModel().get("aria"),!1),k(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=ft();t.eachSeries(function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),iY(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e))if(X(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=gc(e.ecModel,e.name,rY,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=iY(e).scope;n.each(function(t){var e=n.getRawIndex(t);a[e]=t});var l=o.count();o.each(function(t){var i=a[t],r=o.getName(t)||t+"",h=gc(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))})}}function u(t,e){var n=t?P(P({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i=e.getZr().dom;if(i){var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=O(a.option,o),a.get("enabled"))if(i.setAttribute("role","img"),a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var s,l=t.getSeriesCount(),u=a.get(["data","maxCount"])||10,h=a.get(["series","maxCount"])||10,c=Math.min(l,h);if(!(l<1)){var p=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=p?r(a.get(["general","withTitle"]),{title:p}):a.get(["general","withoutTitle"]);var d=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries(function(e,n){if(n1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,b=t.getLocaleModel().get(["series","typeNames"]),b[_]||b.chart)});var s=e.getData();s.count()>u?i+=r(a.get(["data","partialData"]),{displayCnt:u}):i+=a.get(["data","allData"]);for(var h=a.get(["data","separator","middle"]),p=a.get(["data","separator","end"]),f=a.get(["data","excludeDimensionId"]),g=[],y=0;y":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},lY=function(){function t(t){var e;null==(this._condVal=U(t)?new RegExp(t):(e=t,"[object RegExp]"===v.call(e)?t:null))&&Ap("")}return t.prototype.evaluate=function(t){var e=typeof t;return U(e)?this._condVal.test(t):!!j(e)&&this._condVal.test(t+"")},t}(),uY=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),hY=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function f(t,n,i,r){SY(t,i)&&SY(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nM:C2&&l.push(e),l}function IY(t,e,n,i,r,o,a,s,l,u){if(SY(t,n)&&SY(e,i)&&SY(r,a)&&SY(o,s))l.push(a,s);else{var h=2/u,c=h*h,p=a-t,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=n-t,y=i-e,v=r-a,m=o-s,x=g*g+y*y,_=v*v+m*m;if(x=0&&_-w*w=0)l.push(a,s);else{var S=[],M=[];_n(t,n,r,a,.5,S),_n(e,i,o,s,.5,M),IY(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),IY(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function TY(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),c=TY([l,u],h?0:1,e),p=(h?s:u)/c.length,d=0;d1?null:new Me(d*l+t,d*u+e)}function kY(t,e,n){var i=new Me;Me.sub(i,n,e),i.normalize();var r=new Me;return Me.sub(r,t,e),r.dot(i)}function LY(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function PY(t){var e=t.points,n=[],i=[];Ca(e,n,i);var r=new Re(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new Me,h=new Me;return o>a?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function jY(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=V(t,function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]});return V(o,function(o,a){return{cp:o,z:ZY(o[0],o[1],e,n,i,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function qY(t){return function(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=TY([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,p=0;p=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var JY={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);KY(t)&&(s=t,l=e),KY(e)&&(s=e,l=t);for(var c=s?s===t:t.length>e.length,p=s?$Y(l,s):$Y(c?e:t,[c?t:e]),d=0,f=0;f1e4))for(var r=n.getIndices(),o=0;o0&&i.group.traverse(function(t){t instanceof bs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function lX(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function uX(t){return Y(t)?t.sort().join(","):t}function hX(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function cX(t,e){for(var n=0;n=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:hX(e.oldData[n]),groupIdDim:t.dimension})}),z(po(t.to),function(t){var i=cX(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:hX(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&sX(r,o,i)}(t,i,n,e)});else{var o=function(t,e){var n=ft(),i=ft(),r=ft();return z(t.oldSeries,function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=lX(e),l=uX(s);i.set(l,{dataGroupId:o,data:a}),Y(s)&&z(s,function(t){r.set(t,{key:l,dataGroupId:o,data:a})})}),z(e.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=lX(t),s=uX(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:hX(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:hX(o),data:o}]});else if(Y(a)){var u=[];z(a,function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:hX(e.data),data:e.data})}),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:hX(o)}]})}else{var h=r.get(a);if(h){var c=n.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:hX(h.data)}],newSeries:[]},n.set(h.key,c)),c.newSeries.push({dataGroupId:e,data:o,divide:hX(o)})}}}}),n}(i,n);z(o.keys(),function(t){var n=o.get(t);sX(n.oldSeries,n.newSeries,e)})}z(n.updatedSeries,function(t){t[Dd]&&(t[Dd]=!1)})}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],h=0;hA});var r=n(40366),a=n(88206),i=n(15076),o=n(11446);const c=(0,n(23218).n9)(function(){return{"panel-camera-root":{position:"relative",height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},"camera-btn-container":{position:"absolute",bottom:"24px",right:"24px"},"camera-btn-item":{display:"inline-block",cursor:"pointer",textAlign:"center",width:"32px",height:"32px",lineHeight:"32px",background:"#343C4D",borderRadius:"6px",marginTop:"12px",fontSize:"16px"},"camera-canvas-container":{width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",display:"flex",justifyContent:"center",alignItems:"center"},"panel-camera-canvas":{},"layer-menu-container":{width:"158px",height:"94px"},"layer-menu-header":{height:"40px",paddingLeft:"24px",display:"flex",alignItems:"center",borderBottom:"1px solid #383B45",fontFamily:"PingFangSC-Medium",fontSize:"16px",color:"#FFFFFF",fontWeight:"500"},"layer-menu-content-right":{height:"54px",paddingLeft:"24px",display:"flex",alignItems:"center",fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#A6B5CC",fontWeight:"400"}}});var l=n(83517),u=new Map([["ST_UNKNOWN","rgba(96, 96, 96, 1.000)"],["ST_UNKNOWN_MOVABLE","rgba(96, 96, 96, 1.000)"],["ST_UNKNOWN_UNMOVABLE","rgba(96, 96, 96, 1.000)"],["ST_CAR","rgba(243, 187, 37, 1.000)"],["ST_VAN","rgba(243, 187, 37, 1.000)"],["ST_TRUCK","rgba(243, 187, 37, 1.000)"],["ST_BUS","rgba(243, 187, 37, 1.000)"],["ST_CYCLIST","rgba(231, 91, 135, 1.000)"],["ST_MOTORCYCLIST","rgba(231, 91, 135, 1.000)"],["ST_TRICYCLIST","rgba(231, 91, 135, 1.000)"],["ST_PEDESTRIAN","#35DACF"],["ST_TRAFFICCONE","#35DACF"]]),s=n(47960),f={"":{boundingbox:{defaultVisible:!1,currentVisible:!1,vizKey:"Boundingbox"}}};function m(e){return m="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},m(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0){var r=j.kImageScale,a=new Uint8Array(j.image),o=new Blob([a],{type:"image/jpeg"});createImageBitmap(o).then(function(e){var a=I.current;if(a){var i={},o=e.width/e.height>d.viewPortWidth/d.viewPortHeight,c=d.viewPortWidth/e.width,l=d.viewPortHeight/e.height,s=o?c:l;i.drawImageWidth=e.width*s,i.drawImageHeight=e.height*s,a.width=i.drawImageWidth,a.height=i.drawImageHeight;var f=a.getContext("2d");f.drawImage(e,0,0,i.drawImageWidth,i.drawImageHeight),j.bbox2d&&j.bbox2d.length>0&&b&&(t.debug(n,"has obstacles"),j.bbox2d.forEach(function(e,a){var i=j.obstaclesId[a],o=j.obstaclesSubType[a];f.strokeStyle=u.get(o)||"red";var c=e.xmin,l=e.ymin,m=e.xmax,y=e.ymax;if(c!==l||l!==m||m!==y){var b=O([c,l,m,y].map(function(e){return e*(null!=r?r:1)*s}),4);c=b[0],l=b[1],m=b[2],y=b[3],f.strokeRect(c,l,m-c,y-l),f.fillStyle=u.get(o)||"white",f.font="12px Arial",f.fillText("".concat(o.substring(3),":").concat(i),c,l)}else t.debug(n,"bbox is empty")}))}}).catch(function(e){t.error(e)})}},[j,b,d]);var A=c().classes;return r.createElement("div",{className:A["panel-camera-root"]},r.createElement("div",{className:A["camera-btn-container"]},r.createElement(a.AM,{placement:"leftTop",content:r.createElement(v,{setShowBoundingBox:g}),trigger:"click"},r.createElement("span",{className:A["camera-btn-item"]},r.createElement(a.Av,{name:"IcCoverageHover"})))),r.createElement(x.A,{className:A["camera-canvas-container"]},r.createElement("canvas",{ref:I,id:"camera-".concat(n),className:A["panel-camera-canvas"]})))}function I(e){var t=(0,r.useMemo)(function(){return(0,w.A)({PanelComponent:C,panelId:e.panelId,subscribeInfo:[{name:S.lt.CAMERA,needChannel:!0}]})},[]);return r.createElement(t,e)}C.displayName="InternalCameraView";const A=r.memo(I)}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/973.101e605f6f5b7163c122.js b/modules/dreamview_plus/frontend/dist/973.101e605f6f5b7163c122.js new file mode 100644 index 00000000000..9a2a1d5b3d3 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/973.101e605f6f5b7163c122.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[973],{11973(e,t,r){r.r(t),r.d(t,{default:()=>Ar});var n=r(40366),o=r(88206),a=r(27878),i=r(47960),l=r(46533),c=r(83517),u=r(60346),s=function(e){return e.PLANNING="PLANNING",e.CONTROL="CONTROL",e.LATENCY="LATENCY",e}({}),f=r(23218);function y(e){return y="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},y(e)}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r-2})}]),series:[].concat(he(e.series),[{datasetId:n,smooth:!0,name:n,type:"line",showSymbol:!1,encode:{x:"x",y:"y"}}])}},{dataset:[],series:[]})).dataset,a=t.series,r((0,T.B3)({dataset:n,series:a,scale:!0,xAxis:{type:"value",name:"time (s)",max:10,min:-2},xAxisFormatter:function(e){return e.toString().replace(/\..*/g,"")},yAxis:{name:"Speed (m/s)",type:"value",max:40,min:-5,interval:5}}))},[o]),n.createElement(T.Ay,{options:t,title:"Planning Speed"})}const je=n.memo(Ae);function xe(e){return function(e){if(Array.isArray(e))return Ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Oe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Oe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e,t){if(e){if("string"==typeof e)return Ee(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ee(e,t):void 0}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r-2})}]),series:[].concat(xe(e.series),[{datasetId:n,smooth:!0,name:n,type:"line",showSymbol:!1,encode:{x:"x",y:"y"}}])}},{dataset:[],series:[]})).dataset,a=t.series,r((0,T.B3)({dataset:n,series:a,xAxis:{type:"value",name:"Time (s)",max:10,min:-2},yAxis:{interval:1,name:"Acceleration (m/s^2)",min:-4,max:4}}))},[o]),n.createElement(T.Ay,{options:t,title:"Planning Acceleration"})}const Ie=n.memo(Pe);function Te(e){return function(e){if(Array.isArray(e))return ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||De(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||De(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(e,t){if(e){if("string"==typeof e)return ke(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ke(e,t):void 0}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?"":"-";return"".concat(t,"0.").concat((0,Ne._E)(100*Math.abs(e),2))}}))},[o]),n.createElement(T.Ay,{labelRotateBoundary:550,title:"Planning Kappa",options:t})}const Fe=n.memo(He);function _e(e){return function(e){if(Array.isArray(e))return Ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){if(e){if("string"==typeof e)return Ze(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ze(e,t):void 0}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0?"":"-";return"".concat(t,"0.").concat((0,Ne._E)(1e3*Math.abs(e),3))}}))},[o]),n.createElement(T.Ay,{labelRotateBoundary:550,title:"Planning Kappa Derivative",options:t})}const We=n.memo(Ve);function Ye(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Xe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||Xe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){if(e){if("string"==typeof e)return Je(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(e,t):void 0}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r0?"":"-";return"".concat(t,"0.").concat((0,Ne._E)(100*Math.abs(e),2))}}))},[o]),n.createElement(T.Ay,{title:"Reference Line Kappa",options:t})}const at=n.memo(ot);function it(e){return function(e){if(Array.isArray(e))return ut(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ct(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||ct(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ct(e,t){if(e){if("string"==typeof e)return ut(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(e,t):void 0}}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r0?"":"-";return"".concat(t,"0.").concat((0,Ne._E)(1e3*Math.abs(e),3))}}))},[o]),n.createElement(T.Ay,{title:"Reference Line Kappa Derivative",options:t})}const ft=n.memo(st);function yt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],c=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||mt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mt(e,t){if(e){if("string"==typeof e)return pt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r div":Tt({},e.util.textEllipsis)},"moniter-item-right":{minWidth:"25%","& > div":Tt({},e.util.textEllipsis)},time:{width:"20%"},scenarioPluginType:{width:"40%"},stagePluginType:{width:"40%"}}});function kt(){var e=(0,i.Bd)("pncMonitor").t,t=I().planningData,r=Dt().classes;return n.createElement("div",{className:r["moniter-item-container"]},n.createElement("div",{className:r["moniter-item-title"]},e("scenarioHistory")),n.createElement("div",{className:r["moniter-item-content"]},n.createElement("div",{className:r["moniter-item-left"]},t.scenarioHistory.map(function(e){return n.createElement("div",{title:e.timeString,key:e.timeString},e.timeString)})),n.createElement("div",{className:r["moniter-item-mid"]},t.scenarioHistory.map(function(e){return n.createElement("div",{title:e.timeString,key:e.timeString},e.scenarioPluginType)})),n.createElement("div",{className:r["moniter-item-right"]},t.scenarioHistory.map(function(e){return n.createElement("div",{title:e.timeString,key:e.timeString},e.stagePluginType)}))))}var Mt=r(36242);function Rt(e){return function(e){if(Array.isArray(e))return Lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Nt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){if(e){if("string"==typeof e)return Lt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lt(e,t):void 0}}function Lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);re.length)&&(t=e.length);for(var r=0,n=Array(t);r5&&e.current.scenarioHistory.shift())}}(c.scenario,u),o=u,t.current=o),c||(e.current={vt:{},theta:{},st:{},speedHeuristic:{},customChart:[],speed:{},referenceTheta:{},referenceKappa:{},referenceDKappa:{},kappa:{},DKappa:{},acceleration:{},scenarioHistory:[],vehicle:{}}),function(e){for(var t=1;tl)}).sort(function(e,t){return lr(e,1)[0]-lr(t,1)[0]});var s=null===(i=e.plan)||void 0===i||null===(i=i[1])||void 0===i?void 0:i[0];e.target=e.target.sort(function(e,t){return lr(e,1)[0]-lr(t,1)[0]}).filter(function(e){return lr(e,1)[0]1e-4?r.wheelBase/Math.tan(o):1e5;var a=t.heading,i=Math.abs(n),l=7200/(2*Math.PI*i)*Math.PI/180,c=null,u=null,s=null,f=null;n>=0?(s=Math.PI/2+a,f=a-Math.PI/2,c=0,u=l):(s=a-Math.PI/2,f=Math.PI/2+a,c=-l,u=0);var y=t.positionX+Math.cos(s)*i,m=t.positionY+Math.sin(s)*i,p=new Jt.EllipseCurve(y,m,i,i,c,u,!1,f);e.steerCurve=p.getPoints(25).map(function(e){return[e.x,e.y]})}(e.current.trajectory,u,r.vehicleParam)),r.vehicleParam&&(l=r.vehicleParam,e.current.polygon=Mt.yZ.calculateCarPolygonPoints(e.current.pose.x,e.current.pose.y,e.current.pose.heading,l)),c&&u&&(function(e,t,r,n,o){var a=r.timestampSec,i=e.target.length>0&&a=80;if(i?(e.target=[],e.real=[],e.autoModeZone=[]):l&&(e.target.shift(),e.real.shift(),e.autoModeZone.shift()),0===e.target.length||a!==e.target[e.target.length-1].t){e.plan=(t||[]).reduce(function(e,t){return ur(e,[t[n],t[o]]),e},[]),ur(e.target,[(0,T.s$)(t,a,n),(0,T.s$)(t,a,o)]),ur(e.real,[r[n],r[o]]);var c="DISENGAGE_NONE"===r.disengageType;ur(e.autoModeZone,[r[n],c?r[o]:void 0])}}(e.current.trajectory,c,u,"positionX","positionY"),o(e.current.speed,c,u,"timestampSec","speed"),o(e.current.curvature,c,u,"timestampSec","kappa"),o(e.current.acceleration,c,u,"timestampSec","speedAcceleration")),r.controlData){var s=r.controlData,f=s.timestampSec;i("stationError",f,s.stationError),i("lateralError",f,s.lateralError),i("headingError",f,s.headingError)}return function(e){for(var t=1;t0){var a=n-o[0][0];n300&&o.shift()}0!==o.length&&o[o.length-1][0]===n||o.push([n,r.totalTimeMs])}}(r,t.latency[r])}),function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:2,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=Number(e);if(n>Math.pow(10,t-1))return String(n);var o="0".repeat(t-String(n).length);if("number"!=typeof n)throw new Error("fill0 recived an invidate value");return r?"".concat(o).concat(n):"".concat(n).concat(o)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Date(e),o=n(r.getHours()),a=n(r.getMinutes()),i=n(r.getSeconds()),l=n(r.getMilliseconds(),3),c="".concat(o,":").concat(a,":").concat(i);return t&&(c+=":".concat(l)),c}function a(e){var t=n(Math.floor(e%1e3),3),r=n(Math.floor(e/1e3%60)),o=n(Math.floor(e/6e4));return"".concat(o,":").concat(r,".").concat(t)}r.d(t,{Dy:()=>a,_E:()=>n,eh:()=>o})}}]); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/997.06c57a55619417923f4f.js b/modules/dreamview_plus/frontend/dist/997.06c57a55619417923f4f.js new file mode 100644 index 00000000000..e2a135a5a78 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/997.06c57a55619417923f4f.js @@ -0,0 +1,2 @@ +/*! For license information please see 997.06c57a55619417923f4f.js.LICENSE.txt */ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[997],{27470(q,e,t){t.d(e,{Ay:()=>n,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},S={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},_={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],S=e.getLaneLineColor(O),_=S.r,M=S.g,E=S.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(_,M,E,_,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(_e=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),S=f?1:1*Math.sin(A),_=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return Sn.apply(this,arguments)}function Sn(){return(Sn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function _n(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,_?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",_n(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");_=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,_),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),_n(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(_l);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Sr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Sr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Sr(u,"constructor",s),Sr(s,"constructor",a),a.displayName="GeneratorFunction",Sr(s,l,"GeneratorFunction"),Sr(u),Sr(u,l,"Generator"),Sr(u,n,function(){return this}),Sr(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function Sr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Sr=function(q,e,t,n){function o(e,t){Sr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Sr(q,e,t,n)}function _r(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updateSignal",function(q){n.map.updateTrafficStatus(q)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},_={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},S={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],_=e.getLaneLineColor(O),S=_.r,M=_.g,E=_.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(S,M,E,S,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(Se=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),_=f?1:1*Math.sin(A),S=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return _n.apply(this,arguments)}function _n(){return(_n=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function Sn(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,S?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",Sn(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");S=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,S),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),Sn(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Sl);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(_r(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,_r(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,_r(u,"constructor",s),_r(s,"constructor",a),a.displayName="GeneratorFunction",_r(s,l,"GeneratorFunction"),_r(u),_r(u,l,"Generator"),_r(u,n,function(){return this}),_r(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function _r(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}_r=function(q,e,t,n){function o(e,t){_r(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},_r(q,e,t,n)}function Sr(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},_={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},S={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],_=e.getLaneLineColor(O),S=_.r,M=_.g,E=_.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(S,M,E,S,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(Se=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),_=f?1:1*Math.sin(A),S=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return _n.apply(this,arguments)}function _n(){return(_n=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function Sn(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,S?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",Sn(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");S=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,S),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),Sn(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Sl);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(_r(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,_r(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,_r(u,"constructor",s),_r(s,"constructor",a),a.displayName="GeneratorFunction",_r(s,l,"GeneratorFunction"),_r(u),_r(u,l,"Generator"),_r(u,n,function(){return this}),_r(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function _r(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}_r=function(q,e,t,n){function o(e,t){_r(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},_r(q,e,t,n)}function Sr(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updateSignal",function(q){n.map.updateTrafficStatus(q)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},S={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},_={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],S=e.getLaneLineColor(O),_=S.r,M=S.g,E=S.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(_,M,E,_,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t> ",t),Object.keys(this.baseSignalMeshs).forEach(function(q){if(q in t){var n=e.baseSignalMeshs[q],l=t[q],o=Jq[l];if(o){var r=e.trafficMaterials[l].LIGHT,i=n.children[o];i.material=r,i.subsignal=l,e.signalStatusMeshs.push(i)}}})}}},{key:"drawTrafficSignals",value:function(q){var e=this;this.currentTrafficSignalIds=[],q&&0!==q.length?this.trafficBaseMeshTemplate&&this.coordinates.isInitialized()&&(q.forEach(function(q){var t=q.id.id;if(e.currentTrafficSignalIds.push(t),!e.baseSignalMeshs[t]){var n=Tq(q).position,l=Tq(q).heading;if(n){n=e.coordinates.applyOffset(n);var o=e.trafficBaseMeshTemplate.clone();o.rotation.y=l||0,o.position.set(n.x,n.y,0),o.scale.set(2.3,2.3,2.3),e.baseSignalMeshs[q.id.id]=o,e.scene.add(o),q.stopLine.forEach(function(q){var n;Pq(q,e.coordinates,null===(n=e.colors)||void 0===n?void 0:n.colorMapping.PURE_WHITE).forEach(function(q){e.stopLineMeshs[t]=e.stopLineMeshs[t]||[],e.stopLineMeshs[t].push(q),e.scene.add(q)})})}}}),this.removeOldTrafficSignals()):this.dispose()}},{key:"dispose",value:function(){var q=this;Object.values(this.baseSignalMeshs).forEach(function(e){B(e),q.scene.remove(e)}),Object.keys(this.stopLineMeshs).forEach(function(e){q.stopLineMeshs[e].forEach(function(e){B(e),q.scene.remove(e)})}),this.baseSignalMeshs={},this.stopLineMeshs={},this.currentTrafficSignalIds=[]}},{key:"clearSignalStatus",value:function(){var q=this;this.signalStatusMeshs.forEach(function(e){var t=q.trafficMaterials[e.subsignal].DARK;t&&(e.material=t)}),this.signalStatusMeshs=[]}},{key:"removeOldTrafficSignals",value:function(){var q=this,e=Object.keys(this.baseSignalMeshs),t=c.without.apply(void 0,[e].concat(function(q){return function(q){if(Array.isArray(q))return Hq(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||Qq(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentTrafficSignalIds)));t&&t.length&&t.forEach(function(e){var t=q.baseSignalMeshs[e];B(t),q.scene.remove(t),delete q.baseSignalMeshs[e],q.stopLineMeshs[e].forEach(function(e){B(e),q.scene.remove(e)}),delete q.stopLineMeshs[e]})}}],e&&Wq(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const $q=t.p+"5033c297a85516654b48ecd109848ba2.mtl",qe=t.p+"10167062c9e9670a4a2070913d5d7622.obj";function ee(q){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ee(q)}function te(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(_e=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),S=f?1:1*Math.sin(A),_=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return Sn.apply(this,arguments)}function Sn(){return(Sn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function _n(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,_?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",_n(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");_=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,_),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),_n(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(_l);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Sr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Sr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Sr(u,"constructor",s),Sr(s,"constructor",a),a.displayName="GeneratorFunction",Sr(s,l,"GeneratorFunction"),Sr(u),Sr(u,l,"Generator"),Sr(u,n,function(){return this}),Sr(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function Sr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Sr=function(q,e,t,n){function o(e,t){Sr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Sr(q,e,t,n)}function _r(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updateSignal",function(q){n.map.updateTrafficStatus(q)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},_={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},S={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],_=e.getLaneLineColor(O),S=_.r,M=_.g,E=_.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(S,M,E,S,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(Se=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&(e.trafficSignal.drawTrafficSignals(l),console.log(l));break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),_=f?1:1*Math.sin(A),S=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return _n.apply(this,arguments)}function _n(){return(_n=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function Sn(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,S?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",Sn(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");S=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,S),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),Sn(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Sl);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(_r(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,_r(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,_r(u,"constructor",s),_r(s,"constructor",a),a.displayName="GeneratorFunction",_r(s,l,"GeneratorFunction"),_r(u),_r(u,l,"Generator"),_r(u,n,function(){return this}),_r(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function _r(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}_r=function(q,e,t,n){function o(e,t){_r(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},_r(q,e,t,n)}function Sr(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},_={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},S={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],_=e.getLaneLineColor(O),S=_.r,M=_.g,E=_.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(S,M,E,S,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(Se=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),_=f?1:1*Math.sin(A),S=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return _n.apply(this,arguments)}function _n(){return(_n=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function Sn(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,S?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",Sn(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");S=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,S),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),Sn(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Sl);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(_r(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,_r(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,_r(u,"constructor",s),_r(s,"constructor",a),a.displayName="GeneratorFunction",_r(s,l,"GeneratorFunction"),_r(u),_r(u,l,"Generator"),_r(u,n,function(){return this}),_r(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function _r(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}_r=function(q,e,t,n){function o(e,t){_r(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},_r(q,e,t,n)}function Sr(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1),console.log("updateMap",q)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},S={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},_={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],S=e.getLaneLineColor(O),_=S.r,M=S.g,E=S.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(_,M,E,_,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t> ",t),Object.keys(this.baseSignalMeshs).forEach(function(q){if(q in t){var n=e.baseSignalMeshs[q],l=t[q],o=Jq[l];if(o){var r=e.trafficMaterials[l].LIGHT,i=n.children[o];i.material=r,i.subsignal=l,e.signalStatusMeshs.push(i)}}})}}},{key:"drawTrafficSignals",value:function(q){var e=this;this.currentTrafficSignalIds=[],q&&0!==q.length?this.trafficBaseMeshTemplate&&this.coordinates.isInitialized()&&(q.forEach(function(q){var t=q.id.id;if(e.currentTrafficSignalIds.push(t),!e.baseSignalMeshs[t]){var n=Tq(q).position,l=Tq(q).heading;if(n){n=e.coordinates.applyOffset(n);var o=e.trafficBaseMeshTemplate.clone();o.rotation.y=l||0,o.position.set(n.x,n.y,0),o.scale.set(2.3,2.3,2.3),e.baseSignalMeshs[q.id.id]=o,e.scene.add(o),q.stopLine.forEach(function(q){var n;Pq(q,e.coordinates,null===(n=e.colors)||void 0===n?void 0:n.colorMapping.PURE_WHITE).forEach(function(q){e.stopLineMeshs[t]=e.stopLineMeshs[t]||[],e.stopLineMeshs[t].push(q),e.scene.add(q)})})}}}),this.removeOldTrafficSignals()):this.dispose()}},{key:"dispose",value:function(){var q=this;Object.values(this.baseSignalMeshs).forEach(function(e){B(e),q.scene.remove(e)}),Object.keys(this.stopLineMeshs).forEach(function(e){q.stopLineMeshs[e].forEach(function(e){B(e),q.scene.remove(e)})}),this.baseSignalMeshs={},this.stopLineMeshs={},this.currentTrafficSignalIds=[]}},{key:"clearSignalStatus",value:function(){var q=this;this.signalStatusMeshs.forEach(function(e){var t=q.trafficMaterials[e.subsignal].DARK;t&&(e.material=t)}),this.signalStatusMeshs=[]}},{key:"removeOldTrafficSignals",value:function(){var q=this,e=Object.keys(this.baseSignalMeshs),t=c.without.apply(void 0,[e].concat(function(q){return function(q){if(Array.isArray(q))return Hq(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||Qq(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentTrafficSignalIds)));t&&t.length&&t.forEach(function(e){var t=q.baseSignalMeshs[e];B(t),q.scene.remove(t),delete q.baseSignalMeshs[e],q.stopLineMeshs[e].forEach(function(e){B(e),q.scene.remove(e)}),delete q.stopLineMeshs[e]})}}],e&&Wq(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const $q=t.p+"5033c297a85516654b48ecd109848ba2.mtl",qe=t.p+"10167062c9e9670a4a2070913d5d7622.obj";function ee(q){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ee(q)}function te(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(_e=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),S=f?1:1*Math.sin(A),_=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*S,z:w.z+M*_}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return Sn.apply(this,arguments)}function Sn(){return(Sn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function _n(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,_?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",_n(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");_=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,_),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),_n(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(_l);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Sr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Sr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Sr(u,"constructor",s),Sr(s,"constructor",a),a.displayName="GeneratorFunction",Sr(s,l,"GeneratorFunction"),Sr(u),Sr(u,l,"Generator"),Sr(u,n,function(){return this}),Sr(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function Sr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Sr=function(q,e,t,n){function o(e,t){Sr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Sr(q,e,t,n)}function _r(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updateSignal",function(q){n.map.updateTrafficStatus(q)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tn,e_:()=>l,uW:()=>o});var n=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.FAVORITE="favorite",q.INDOOR_LOCALIZATION="indoor_localization",q.RULE="Rule",q.COPY="Copy",q}({}),l=function(q){return q.RELOCATE="relocate",q.WAYPOINT="waypoint",q.LOOP="loop",q.RULE="Rule",q.COPY="Copy",q.INDOOR_LOCALIZATION="indoor_localization",q}({}),o=function(q){return q.FROM_NOT_FULLSCREEN="NOT_FULLSCREEN",q.FROM_FULLSCREEN="FULLSCREEN",q}({})},2975(q,e,t){t.d(e,{A:()=>c});var n=t(40366),l=t(88206),o=t(47960),r=t(38129),i=t(27470);function a(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tu});var n=t(40366),l=t(47960),o=t(11446),r=t(38129);function i(q){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},i(q)}function a(q,e,t){return(e=function(q){var e=function(q){if("object"!=i(q)||!q)return q;var e=q[Symbol.toPrimitive];if(void 0!==e){var t=e.call(q,"string");if("object"!=i(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}(q);return"symbol"==i(e)?e:e+""}(e))in q?Object.defineProperty(q,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):q[e]=t,q}function s(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tsi,f:()=>ci});var n=t(40366),l=t(75508),o=t(63739),r=t(15983),i=t(93125),a=t.n(i),s=t(66029),c=t(15076),u=t(11446);const m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",h=t.p+"assets/f2a309ab7c8b57acb02a.png",f=t.p+"assets/1e24994cc32187c50741.png",p=t.p+"assets/141914dc879a0f82314f.png",d=t.p+"assets/62cbc4fe65e3bf4b8051.png";var y={YELLOW:14329120,WHITE:13421772,CORAL:16744272,RED:16737894,GREEN:25600,BLUE:3188223,PURE_WHITE:16777215,DEFAULT:12632256,MIDWAY:16744272,END:16767673,PULLOVER:27391,DEEP_RED:9109504},v=.04,x=.04,A=.04,b={PEDESTRIAN:16771584,BICYCLE:56555,VEHICLE:65340,VIRTUAL:8388608,CIPV:16750950,DEFAULT:16711932,TRAFFICCONE:14770204,UNKNOWN:10494192,UNKNOWN_MOVABLE:14315734,UNKNOWN_UNMOVABLE:16711935},g={.5:{r:255,g:0,b:0},1:{r:255,g:127,b:0},1.5:{r:255,g:255,b:0},2:{r:0,g:255,b:0},2.5:{r:0,g:0,b:255},3:{r:75,g:0,b:130},10:{r:148,g:0,b:211}},w={STOP:16724016,FOLLOW:1757281,YIELD:16724215,OVERTAKE:3188223},O={STOP_REASON_HEAD_VEHICLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABdpJREFUeAHtWmtoHFUUPnd2ZjbZ3aRNm0YxrbYkAa1QrCAYFGyKFmu1okJFsKCIUhCLolLxl+ADResDBIWqVP2htmKpgu3aUhCsrS2t0h8hKaYqTWuJzatJNruzOzOeM3GXndnduXP3ZbYzB4bd+5jz+ObMmXPPvWzsrTYTfEySj223TA8ACDzA5wgEr4DPHQACDwg8wOcIBK+Azx0A5KoDoMRA7boTlO71IC3sAqnlKmDNi4ExJiTKNE0wZ0fBmDoPxsQQpH/fB9rQfoD0tBAf3mRWrcUQU1uhqfd5CN/wGDC5iSe3rHEzk4TUbx9D8sibYGqXyuLhvKkqAChd6yGy7l2QIkuc/GvSNhL/QOLAM+gV31fMv+IgGF79OETv/bxuxpPFBHR042cQXv1ExQBUFAPCN26BSN9rBUqY6VnQBr4G7fR3YIwOgJEYATAyBfNcO1gIGBoaausCpeduCK98EFi4NXcLYxJE1r4OgL+pkx/m+kX/lP0KyJ03Q2zTtyjfjmH6zA+QOPgcBq9hUV1c51MgbV7zKgKxyTbPRGCnd22EzLmjtn6vjfJeAbkZohs+KjA++esOmN7zUNWNJ2Poi5DYtwVmf3rFZhs9ANIFUKdyqCwAKNLT5y2ftKE4zB7ahl21rbAlf3kbUqc+zRdt6UI6lUPiACDSTTdttckytSlIxJ+09dWykTj0gpUf5MuwdCrDC4QBUJb3YRRuz5cNyZM70EXHbH01begpSB57xyaCdCLdREkcgBV3FMigiF9v0ga+AdM0bGKVIrrZJhRpCAMgX32bjY0xfcH61Nk669Awk+Ogj5yySXLqZhss0RAGQGrptLEyLp21tevZcMp26uZFFyEAWFMbsJBi42vU8923SZ77NOZ3kW6kowjZsxjOnfI1awpmyEuuB3XVo2CMDWJkPodZ32jVV2w5oXIEA/Bi/Ox1gtTWDZSMOYl0TA/ucXaXbHvOBGUMMDHM+VlILcksO2DqaVytTeGFS9dMAig1Bozc1A8GXqaOFy53/wtilNZaRFmlhE8RL5BVXFVicoMXU1swDcbLk2wNpvduhswfB7LquP56AoAh4gseOYKKxFyZzZdBAn5yZy+Y6JE88hQDImvfaBjjyWB6UJE+XCh5IC4A9K6p3Xd5YDW/pqg9G6w4wdOKC4B67QM8HvN23IvuXAAUR+Izb60topgX3bkASK1Li7BujC4vunMBYLErG8PaIlp60Z2bCDkrPlZpGquz8tJekKJXFBFb/y7KRq2KUGYW8t97p+7FNOMCkH+TkZyEmb0PYxIztwoLta+Eplte/N++Eumzh7FC9DLo54/l1Ax1rILQop5cm/dHCABIz+SMJ8b6xX4LkNTy2yF2zyd1yxWoDpiIbwWt/8sC+ygDFSFuDPDCLPPnQZjafR+YqepsVrjJNHUNQd9c1Hi3+0qNVQUAYq5fOAFUqqo1JY9uh/SZeNXEiAEghVwFk0um//rRdU4lg/roYEEprIAf7ieIkBAALNIBUusyV/6Z4cOu45UMZoZ/dt1gYeEFGAC7hUQIBUHa4Y3dvwufwntAJakCwk1RFXdwakUKrklU3AApFmtouUxbZUyJConnLofbnq1jtVdIdW+Tx7cvcp0o9Aq4cmrQwQCABn1wVVNbKAiWkmpmUnhg4Wmr5ifh4kmKdmANbyFWaPHCyMwUqu1F5k6OyGE8LoOOR/W/7CeLts6xTmjVCJEXnQTJ1hLN1CQG3AkMfBNgzIwA7UMwJWIdyMjVEksp5qGfCwBVenn1dq3/C8zMvvIgrnpTVNwmV5bd6sqQdOcRNwZo/btdeVClN3niA9c5tRhMHX+fy5anOzEIbVvX/JIbJ0o+mBrFE18rLNfLzqVTXMbYaZiJPwX638ez3XX7pZNjxvgQhNqvszZD8k+hGYmLuIW+c+4sgWP/0KkgNw9w3nC5tbmvwOVmsNOeAAAnIn5rBx7gtyfutDfwACcifmsHHuC3J+60N/AAJyJ+a/veA/4FAZrMWAyIcJEAAAAASUVORK5CYII=",STOP_REASON_DESTINATION:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAlxJREFUeAHtmz0sQ1EUx8+jFRWa+AgJFh8hTAQJE4mQkJgwYGMnIhGbr81iK2FgoQOLxeBjsEm0TQdLhXRBQnyEioqi8p5cibc8Se+957y82+X23pvec/6/+7/3tC+p5t3oSoKDX2kO1m5IVwCUAxxOQB0BhxsAHO8AF28HPA3u/lly7+oEpkIrcBG7+jNOpSPcAZ0lTXDc7YO5umHIdnmo6P7NQzgAPVJGuhvGavsg1LMKA2Xtv8EpvJECgAkt8uTBcssEHHYuQkN+FRtGbaUCYEobC6oNCL7mcSjMzGXDKC0KAF2ppmkwVN5hHIvRml5wp3G/j/8FFA0Ayy7HnQXz9SPGRdlR3MiGpbXoAJjSSm8pbLfNwVbrLFTklLBh4S0ZAEyp7LJJDoAOQmbZJAmAuUFG2SQNgIEQWTZtAUAHIaps2gYAcwPvsmk7AAwErxbn61cK2ccSr7Bw6oelyA4kvj5SWOnno7YBkEwmwR89hOnwGty+PaYsnC1gCwCBuwhMBpcgeH/G8ubWkgZwE3+AmfA6bEYPuAk2L0QSwPtnwjjj+ll/+Yibc+baJwdA9jNEMgDOny+Nh6f71wGuO2y1GDoA3mXNSrB5Hg2AqLJmFmjVRwEgsqxZCTbPSwUgo6yZBVr1pQCQWdasBJvnhQOQXdbMAq36wgH0H01b5YA67/ifwwoAqv8IBFcOILAJqCkoB6DiJxBcOYDAJqCmoByAip9AcOUAApuAmoJyACp+AsGVAwhsAmoKygGo+AkE19T/BgnsAmYK6g7ApE8htnIAhV3AzEE5AJM+hdjf7T6owZOkweQAAAAASUVORK5CYII=",STOP_REASON_PEDESTRIAN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABPhJREFUeAHtWmtoHFUU/nZ39pndDSFtTVsfpdamTbaFan2DCjbapK1gpGmV0opCxV+iFFTESgv+8IdaUAhYqUhRUP9JFUFTKWJpS7VgUpsWIqJ9JE3Jpml2N/uM90ycdGeyd3e6c2ecdefAZe7MvXP2nO+ee865Z9bV+ubINOqY3HWsu6y6A4BjAXWOgLMF6twA4FiAYwF1joBkJ/2XzvNg12NhrLnFi0RmGkfOpfHeDwkk0uYlqy67pMKtN0n4cmcT/F6Xak2GRnPo7h1DOqd6LOzGNk5w98bwHOVJy9vnS3juwZAwhbWMbAGA1wOsvtmrlW32/p4lvtm+6I4tABCt1I3wswUA2Tzw2/ksV+4Tf2a4Y0YHbAEAKbH30CTS2bnenpzggZ+TRvXkvm8bAM6O5PAk8/aHB9OIJws4H8/js+NJ9HwUNy0CECq2CYPcJTJ5wDYWYLKeXPb/WSZIoW/DqgA23xWQY72HLcXRoQze/nYSl68VuAKLHrAcgJaoG1vvDmLL2iCaGtQG+Hh7AK0tErYfGLcMBMsAWHubF9vuC6JjpR8etzrdLV7VJc0S9m2J4pmPx4sfm9Y3FYAAS+42rQ5g270heWX1anHnrT55a3z1y5TeV6qeZxoALz4cwrMPhNAYVJu5XknpVNjHQuJYYm5uoJeHnnnVSaeD80a28jzlE+nKTo7e3bMpquOXjE0xDQCtWJncNL4bmMLzn45jX19CO1zyvqPNz6woWHJM1EPTtoBWQMroBodnDvVdqyLaYe79ro4w8sxgDh5LcecYGbDMAoqrOu2L9OMueVx4oyuC93uioBAqmsRzrCAhJUDLWJGDRylWCtt76BoKBbXz64wF0PdKMz58uhGdMT/aFkqIBPjhlMdf+5wviXamoHtKdGhVeXRmOIvPT6RwNVXAO91R1VzKH9axPIKaQit2X1a6VV0tt4B2tnLl6PTFGT/xTX8aW/fH0V+mTlCOj94xywFoW8QvfZHQCgDUH2Bg9DAQ3vp6An9cMacqWn45SArBVMkBnr6orgxNM1fwxckpua1g26eL7f+VzIpaGj1YKMApmgbAhg/G5kAnMXtbvoD/k1OsIjQ0yupjHKIwqoRSzpQbfmzpFljGlPdJfAfoZ9jQ8dhKshSASg7Q5XJhzxNR7Ljf3OyvGGBrAdCZAL3eGQEdpqwgSwHQRgAKcQePla74vvRoGC+vazAdA8sAoBoIefFi+vWvrFwC2/9T6cPRCw81IOTj+4xiXtX21RJVweWR5T681hnGwIUc+i9k5dj9OwtlKXU0A335DWg+fJ76e2bSu98nkGQpMK261WQYgNhiL6iMRY1qAESUxw9dycuA9DNgBhgw2tWneQoA1O89kgSFwVfX6z8p0ntGyTAApRIbN7P3O1jIo9a9prSIl67mMTKhLox8cjSFnczsm0KW7Uzj/xEqBUBpldVPT7H9bwcybAFP9cYRWywhxnJ8AoPa/Ag781agYvOvMNXUYcMAjE4W8OPZjNwUSRdE3LOgxGRQvGgOq836f2MBitLFV/qyc3gwIzflOVVzyDrIaZJDPPNveUwZV67mBj3lV65fDVvAdVble8PM4Q1PZFipu/y3fnUdqDxPEaNquxTBscZ4OADU2IIJF9exAOGQ1hjDurcA5z9CNWaxwsWt+y3gACDcpmqMoWMBNbZgwsV1LEA4pDXGsO4t4B/AQkKoYRDNggAAAABJRU5ErkJggg==",STOP_REASON_OBSTACLE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAttJREFUeAHtWstO3DAUdZiolRBI0MVU0B9ggWAD31Sx5jfaddVfAhZU7YI1ixkeEg+pPARJ0zgaR84J9tgeXysk9sZ27iP3nlzbR1aSm2/rBRtwWxpw7lXqEYBYAQNHIC6BgRcAixUQK2DgCMQlMPACiJvg4JdAGmIJJCubbO3rH6tX3f3cZsXfiZWNi3KQCkg3961jc7GxfklpEAFwQc3WJt1wqAAHG9u4uD79HjD6wEafdxux3f3YYsXjVeNZsjxmawdn9bPKprRl+Uv9jGJAvgRG412W8ERmLb8/byXPRRwQLhON23Bb6kYOAG5m+eRImRPK0FZpuIAgOADZ9FgZLsr6AcDGXiPhbHLSmMsTlKVgK+v6GpNWACdAS6tf6liL1yeWX/+u5zjgMq4jGrflPigbKQBYwvnlL8b+Zep8SlmlI2mgD0nkZRgUgGyq3gBFNqjzvgEAMpNN1BtgDQDouJAo4cukp6uA6hzfacTgAsBoXPqQeETDoYcJGQAVAUo/1iGqCFCtMBu0CFHpg5IQkQGAaxdJDiYuz1EXfcm6i47pAIAzPJuqz39MAnUp+QAdAHAHYLL+BRCo++4qwJYAicRFH5IQkVQAfrG5BEhkLvqAhCgIAEhuRJ66Hm0QVJ2tjYwGAAcChEG39gHwifquc/8AvEWALE4AkQieBFSEyDsAbxKgh0uRl3FflDaNGyIiQuQdADyzc80FyDw00BZ9z7M3kfsHYIHzHwNu7QPgG/Vd5hEAF9RUNi0ClD1rb4BUfsTzihCVPkSjuCHyWgF4VucXp/obIJGZqueEiPuQGr5DEjkNSQFAMuMSIfroNgBAVnATcwKA+IbIXwV4IkAIEjUhSkz/Fl8/vMHYOj2//f7JKD5/FWD0uu4pRQC6903CRhQrICze3Xub8R8iprtq91LURxSXgB6f/ktjBfT/G+szjBWgx6f/0lgB/f/G+gxjBejx6b908BXwH6yY7LKOKWteAAAAAElFTkSuQmCC",STOP_REASON_SIGNAL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAxlJREFUeAHtWT1oFFEQnpe7nDEIFyGYwxRKREEhhUQEsRCxEkEbG8GfXrCx0U7stLER7P0BG5sIYiViIYIYLCIKikGLyEUUcyBnvNy57vfkuM3s7N3u68zMd82+3ffN3Xxv5u33ONf8/iYixRhSnLtP3QSwClCugLWA8gIgqwCrAOUKWAsoLwDbBK0FrAWUK2AtoLwA7C1gLWAtoFwBawHlBUDlQQK8//WV7i/N0bPGB1r83fDTJzdU6VB1J52amKFdG7cMCrHmebu5QCv1WWr9eEGdlbp/VhqpUWXzARqpnaDy6NSa+YMG7vMilR89paG5eXJL3/z0aGKc/sxMU/vYYYq2TfYN4bL+GFmNOnT102O6XX9JUfyR4MjRudp+urL9KA27kjSldy9q08+PN6j55UF8T45HcbzRrSdp046L8eWAtWl3aPjWXSo9fEIukuNFzlHn+BFaPX+GqCz/PlEAJH/63R163ljoJdDn6mB1iu7tPpstQpz88vwFai2/6hOl96gyto/Gpm9mixAnX7l8nUqv3/ZIfa46e/dQ69olUQRxE8TK500e34u54GQBK583ecTAXHCy4Fc+Z/KIAaHAkZASAD2Psi8KcMDlQM//K3v+pP8YHHA50PMo+6LwrRJzOVICYMPL6nlOTo7BAZcDG152z/PZyXHkN8vkHVxjw8vqeT43OQYHXI6UANjtQyFxsduHQuJitw+FxE0J0H3VhXyJxO2+6kLiSdzuqy4knsRNCRAS+H/mpASAyQmFxIXJCYXEhckJhcRNCQCHFwqJC4cXCokLhxcKiZsSAPYWDq8owAGXA/YWDq84nLfGnOftbezwigKuEFyOlADw9rC3RQGOdC6At4e9LQpwpHMBvD3sbVGAI50LUgIgMLw97G1eYC44WYC3h73NC8z154EMArw97G1eYK4/DwgE8SyAeaoPQ0mh1B6HkyKs52txD1jPCfPcTACuiLaxVYC2Fef5WgVwRbSNrQK0rTjP1yqAK6JtbBWgbcV5vlYBXBFtY6sAbSvO87UK4IpoG1sFaFtxnq9VAFdE2/gvim4/0JCgAWwAAAAASUVORK5CYII=",STOP_REASON_STOP_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",STOP_REASON_YIELD_SIGN:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABFJJREFUeAHtmUtP1UAUxwchPjCY+IoawNy4MCKEqFHDVuMO4ydwoyvdunFj4sa1e/Ub+EiMce3KJxo0QXBBMEajcHnIArmivJz/hMHTudPOtMx0mtyeTaftnEf/d/q7p23T0/7Hq6yBbVMDX7u49FKAcgU0uALlLdDgC4CVK6BcAQ2uQHkLNPgCYC0mAU7eOM329R0wTSvk+errcfbu1kBibcZbYPjeR7b8dzkxSBFPombUbjKjAL+rNTZ2f9QUp3DnUTNqN5lRAAQYezTKahPzpliFOY9aUbONGRmAICuLK2z4zhA7dbMvEvPD7UH2/dm3yLG8d9rPdrJj105E0qJW1GxjVisAgSbfVhmgQq3r0lHW0mqlIXVzNkZu1EANNaJWW7MWAAFVIG7ZuZUdvnjENpfzeciNGqTZgk/OxzaVADogVvoPsbbKDhozlzFyIjc1W/BRn9TrF3DpONfJWvdvF3GamptYz9Ve9ur6cxqXVS5wYQ62RY5l3Zn7Ose+PPkccUdO5JaWBnzSB9tUKwAOEogYS9vVvZsBRtTGX/xgqw5etyIGYlFDLuSklgZ81C+1AHAWQHwzQeMIGFEg/plZYLMjM5E5WXYQA7GkacHHa0kDPhkL20wCwHH47lCkQ9QBscoLs/07QkzV4IsY1LTg47VktcwC2ABxqbbEpt5PZq1N+CKGNFfgk/GwzSwAnNUOUQIR56RND06xxflFuWu9hQ98qbkCH425IQFsgLiyVL+MaQFxY3H7cF9pLsEnY2K7IQEQwAaIs59+soXp/yCDX5JhLnykuQafjIvthgVAECMQ8Vf2MvpXBr84E3PJX6hr8NG8TgQQQHwQffpSO8RfvJlBQ2MyzMFcaVrw8Vw2j7oyRtLWiQBIMPYw+sisA6KpOdI1PVrw8VyuzJkANkAUzRG5t9WLwH1Pmx5f4KN5nQmAoDZAxOOqrjkSTQ953PYJPm8CILAJiHHNERom2vT4BJ9XAWyAqDZHatPjG3xeBUBwExDV5khtenyDz7sAsUA807GeWzZHatPTzue4etRdT5YwcApBmkcLxMvdrGXb2juYteaINj0CfHwONayOrI+6NE7c2JsASDhyL/mRGQ0PbXp04EMMn+ZVgNoE/6iidojn9e8Q48CHGD7NqwAoXAvEK71119TDj9W943PY8dUlXDvgXQAtEHv4O0QCRAE+foxa1nd8NIbN2LsAKCIJiIBiV87go8Kkfi1OndOMAbM9x/ey5s3Nwo2+Q1Q/bvgGH607lxWAhHFArHAoUgM0fYOP5stNACTVATEE+IIJoAMiLSYv8NGcua4AJBZAHIi+68fxKj/ms+NDDp3lLgCKGFE+quCrLo6FsCACqEDMG3xU6CACoAAJRPFVN4eOj140HefWB9CkGFMgYhzKggmACw4BPVXoYLeAWkio/VKAUMoXJW+5AoryS4Sqo1wBoZQvSt5yBRTllwhVR7kCQilflLz/AF8gjG5XSBXFAAAAAElFTkSuQmCC",STOP_REASON_CLEAR_ZONE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAqRJREFUeAHtmjFOwzAUQJ2QgrgAEodg4wbcgBkxcAUGTsDATleWIrUzsLICEyzcAQRiBbUgir+loJb6O479vx1qW6qUfjeJ/8vPi5O0eH97nIqEW5lw7ir1DCBXQOIE8imQeAGIXAG5AhInkE+BxAsgrgTLm3sBn5itirbzyafo9Qdq9+PtLSFWe1GGEs0B1fBClM+v6gPLsVoUAMXTi6hGV785wzLEYrQoAHqnA1HIU6BusAyxGC04AJDeyt3DQq4QiyHEsABmxLdAQAaUFGcqQ/cb6lhQALX4sCRAiqGFGAzAX/FhEEILMRiAv+LDAIQWYhAA5a1efBgEJUS5TojGD8DxEqcuiwGEyA6gSXzYUQ4lRFYAtuLDIIQQIuvNkEl8H9fnc3mv7+zNfYcvtRAnx4cLfVQBtgpoKz4sIW4h8gBwFB8GgVOILACq0aW6zcUSahtXQpTb5GjkAJT4hvSDreQ2OW6ZyQGYxOdzBGsh+mxDty4pACrx6QYKMQ4h0gEgFh8GgVqIZACoxYcBoBYiCQAu8WEQKIVIAoBLfBgASiF6A+AWHwaBSoh+AEB8/fk5PTZgjrjat+ctsxcAJb5Iz/MBaKneL/hNugrX/wmC+NYOjuae73Mc5aZtTuUrtfHZiZhubjT9VNvvXAGhxacdvQz6CtEJQCzxYRB8hNgeQGTxYRBchdj6iRCV+GyeCGHJ6uK1EL/2d3XdaKxVBYSe8aGjRjpcZoitAHRFfEj+TkK0BlDKt7cgm643JcQW47SbB0jxwTUfzrP/0L7lnADmBjZ/u7GqACrxhYJXC9Fmf40Aui4+LElbITYC6Lr4MAC2M0Q7B2B7WYJ4YwUsQY7GFDIAI54EOnMFJHCQjSnmCjDiSaAzV0ACB9mYYq4AI54EOn8AaDoXxfpMdlgAAAAASUVORK5CYII=",STOP_REASON_CROSSWALK:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABglJREFUeAHtWmtsFFUUPjs73d3uo08gWJpSK7SgVREVRGktQtCWGmuM/lGCUWrRIBoTY0QgYBWDj2gsaUDUaPARYkhMWkqViPIIQppg02JACM+iUqAtdHfLbne36z1TZ3Zm7szsTEubsjvnz87OPXPvnO+e7zzurqVodWcUkliYJLadM90EwPSAJEfApECSOwCYHmB6QJIjYFIgyR3ADIImBUwKJDkCJgWS3AHiZ4GKYjt8uSQDrAZ9ZVIGA1sWp8Os/BRDGOM6zz/ghHerPIaeQ+XbJ7Hw3dIMmJim/2VZtVXQgLWPeqBkqp1TeWZ2Knz9+zU1deE+GvDs/U5YXuaCVJsFbkq3QlV9N4QHBBXVCzSg9jEPTJs4CFpDWwAOngqp6vMDLrLOqwtc8PSsVGAYC7xZ7oZXtvXyw5qfilDNnWKDxuXZgvE4w8sPuWC8W1FdWIAlwz/UZMLrC92c8TgwZQILS+Y4BR21CwR4W3WmYDzqran0QIpV7YnB+7jbTSuyYPF9Ts54vPvwbQ5AG/SIokXtf4cgEJKelbrtDLzxiFtzTtzl1nP0jr1U5oQJHsWlhPlazoRAuiJAwTiW8yZBSeHiQu8AdHRHqJFVi9xxwcOHFN/q6rUofLjLR01aeYcDZt+szemPf/FDl0/q7y4CHrqllvzVGYZvD9EUe/FBV1xOv93ohXBECl9+NsvFEq01cUwRABzYfjgArR30bq5e5AF0dTXxBqLwwc80eOXFDphToA3ep7v9cMkr3U0n4ffKCm3wjl+MwNaDNHjLCHg56RovS4zQHF3X4IWBASmyejj9Y2sADp/tpzBC8LQ47QtG4f2faPAW3hqf0xt/9cNFGXiOFAu8VaGdTTQBOHohDN+30Mjq4fS6Rh9EZOAVjI/P6Ya2ILScocGLx2l/fxQ2NNPgzZ9uh9Kp6gGRuStP2y0/uYE4vaM9SNKmMfCYNSRajiSnL8sCoh5OnxgGp2t3eCEkC4h5WSxUlyinYmZYnI6Tp5HTG5q9VCwYSU6fvBQhBVsftWZNiQuwuJMLqZsAhsxpHXl6tDmNBtb/1gedvdJsYicBcRUJwnJhLAQBvXn6m1HO01qctqkW8QB9JCC+t5MOiPOK7DCvSBoQOQ9AVPTk6boh5ukR4fRcZU7zO9z8ZxAOnKQDIqZFuwg8CSnGYp5W4/QLKpzmAcDPWlIh9oeldUxuphVqSl2CGkcB/ttYzNP4bkY4zduCn6e7IvDVATogLiXek5c12GURADAMxmQka+/R4HTMksGr+j1++PeqNCDaWBIQ/y+vmaHU3mOZ03IAAqSdWd9EB8TSQjvMn2YDa3Tma2sxL4vlFlKyYiN0TqHN5PVwvGqGA7BN5oW1WgA51nQkyN+iPnv6oiTrWGBmnjQaz8hNgcb2APSSZkpN2s6H4Kl7UsnpVMxr01IZiJJHDp2mGzd+nlOXI3BnLguTSYcoluIcFpjh5GmlxiVe7Y0voMbpeI2LHk6LDRRfv7PDRwXEceSAh9u+ofbTY5HTYqPF12eJN3++XxoQMQNwACQKpxdMl9JKDABeb97rh/M9sYCI8V8gMPbT8vJRTz890nlabgR+33U0CPtO0HFmZbkHHBrNbTBMAuLOWG+CoUQAAPvp681ppdpbbND15nROhhWWiYoc8Vr89e5j/bDn+CB4Eg9AhRud02jDc+Q3hfxs7aNkDIhBcuiLuUTwAHwYRamfziCpppAcb2uJWu19b742L9XyNFalWa5YulNaW85p1MHfJe6Oc8jTQeLAFhIQJRTgF5Bzuonk5oq6bjjyDyFQHBHX3hhsqrdeUaSVfBoxp/F094v9fqjc2AXdfvWaAOeQc7qd1AlPbOqB7X8E5EtQ3z/bRwLilQhYlP4sjac2+LPWpr19JNjQHRU1m+jGCvIDCnZbdSSo4u7qlcmkNl//uId4oA+OkbNII/LRk2lc4YbtOhZFeqWs0KYMgN4JEkGPigGJYJQRG0wAjKCViLqmByTirhqxyfQAI2gloq7pAYm4q0ZsMj3ACFqJqGt6QCLuqhGbTA8wglYi6poekIi7asSm/wDfS9rSdT1aGAAAAABJRU5ErkJggg==",STOP_REASON_EMERGENCY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA4hJREFUeAHtmr8yNEEUxe/yIZGSEKkSkwqwAU8gESLhBXgFIRmeAIGQV5B5AUIhoURRvjq6bnXvnd7pnt7+U3bmVk3N3Z6e7T5ne35zZ3d7P6urP9TimGix9l/pnQHdCmi5A90l0PIFQN0K6FZAyx3oLoGWL4DCENzcJMJWMP4VG3t6muj4WA3/+Ej0+VlkKuUYcHBAtLCgNuSFoowBEL63pyUjR1uBKGPAyQnRzIyWixxtBSK/AYDexkZVKtoKADGvASb4qhYoKKJPxshrAIOPBX59EX1/86siQMxngAQfZN/eEt3caAOQZQZiPgMk+N7eiC4u1IacIzMQ8xgAwEnwnZ0RfXyoDbkZtv7m8Yh5egMANXmLe3oienjQMpCjzQyckwGI6Q2Q4AP0Tk9NqSpHWwEgpjXABj5A7+WlagDaCgAxrQHDwMfyl5aIsHEAipmBmM4AG8gYfBDc6xFtbakNOQJQzAzENAb4gG9lhWh+Xm3IOTIDMY0B+/uDT3cSfFNTRP0+S1Y52jhsQMR7Joj4BgB8crISfGtrRLOzWg5ytHHYgChN5b4j7uMb4AKfFMsCpCmZgBjXABf4IBZL31zubIC8LDIBMZ4BPuCbmyMygcfieY9j6MORAYjxDJDXqAQfRG1vq9sfC5R73A7Rx4zEQIxjgA/4ZNFjijRz2S8xEOMY4AIfFz2m0LocBRIXR+iXEIijG+ADPi566kSbx1AgmaxICMTRDAD4+McNFiAfdSXduZ9r3+8P3i1sQMTYIz4yj2YAwLe4qKXYwCfv77p3fWarFyQQMbYsuurftXI03AAf8NlEVKZQ0yDNSwDEcANc4IMuuYxrtFoP2S6fyEAMM8AGvvNz9TjLSlxFD/dz7WVxBCBiLDNs8zGP1+TNDRgGvvv7wWFcRc9g7+GvbMURxpLfIQYCsdf4v8KHh0RHR3rCAN/urv1rLt0rfra8THR9TTQ5qd/78pLo6kq/9siarQAf8HkMGqXL83P1O0RZjnsM1MwACb73d1WleQyUpAuAiDlwBPyo4m/A+vrwHzd4Arn3wypEzNUz/BgA8N3dDRY9ngMU6fb6SrSz4/W3G78VICu+IqoaDNqgQnQbYANfg7kU6+oJRLcBEnzFFDUc2BOIfgxoOPZf6u5eAX9JTcBcOwMCTBurU7oVMFYfZ4CYbgUEmDZWp3QrYKw+zgAx3QoIMG2sTvkPenEcTPFCdPwAAAAASUVORK5CYII=",STOP_REASON_NOT_READY:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnFJREFUeAHtmb1KxEAQx+e+4AQRYido4ccjaKFXWmhjI9j4CLaC+Agi+hqCCNZaWKqFr+BHoWB3ByoonOfHBDYsMTGT29m9XHYWJNFMZuf/2382u7HSPgi+weNW9Vh7KF0AiAM8JyCPgOcGAHGAOMBzAnWq/mC7TQ0tRFzncJxUh8wBJEwlDhIHlHhwSdK8dwD5LZA2q8bfDmlxpOEgBHH3570DBADBdaUOEQeUengJ4sQBBEi5QmoTC7ni8wTbyM3ugLHNcxhdPwHOYjEX5sTc3I28EMrTcWN6GfCn+3AB79f70Hu+yXN7FIvCRxZ3wlzRH5lPjB3werwG3cfLxLIQQj+O0EcccyQ17BP7Nm0Vrn+N1Sdb0FzahcZUK7WmLEdQRhyFf1ztwedTMvTUzlMusAFQ+fsBMQjhql52ACoxFQTGp9kcr3GPOObUmzUAqhMKCBWrH20LV31ZB6A6ooJwJVzVZfwWUImG9WjdAdSRjwN05QRrACjC8bWIrVSTIFW4vkIsxWuwH+Fx2w8ChPEjwCF8kCCMAcS/0upispa+emzSOcURpl+hrewGTYUrGLiLfDvdCLfWtnaF7ABejlZI299qMAeN2dVQa/fuDL46t0r3n6MOgvubADuArL2/El4LZiKhtfkt6HXugQIiuonphB1AWl1JwvVYBEIFod9nem4dQJbwuADXIKwByCt8UCDYAZgKzwIRv276OzuA5u+EZqOpR4M7t2yHqR9F/1vxcY8KRz7qCtF7BwgADrsNcw5xwDCPHkft5HUAdVblKMplDnkEXNIuYl/igCKOisuaxAEuaRexL3FAEUfFZU3eO+AHlhM7Xp1xi3cAAAAASUVORK5CYII=",STOP_REASON_PULL_OVER:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAAXwAAAF8AXZndiwAADFVJREFUeNrVm11sXEcVx38z9+6uPza2Y8eOGiexHZvU/UibNBFtk7ZUQv0QtAhBKbwgIZB4AYEQoi95QDzkCSEEgje+VPoALUUVX0ppK0RpmqLmqx80br5sJ7GT2LEd25uNvXvvDA9n7np3vXa867WTHGll771z787/P2fOnDPnjKKKYq0FUO6jgRiwHrgPuAe4A+gB2oAkUOceTQMpYAQ4BRwH3geOAJeALGAAC1ilVNX6XJU3OeCRNAAPAk8A29z3JFDvANc6Yjz3AQjdJwtcc4RcdaRMAR8ArwIH3XfpfBWIWNYb8oBrYDvwFPAJoBsZ6dZqEAyMIppxGjgJ/A04hmjFsogo+8mi0Y4DO4BHEDV/DGipEuiFZAx4DZkebwJHgUwOUJlklNW6CPztDvwXgc8D/kLPpbOQmrXMZC2zIQQhhNZi3Ou0Ak8pfA8SHtTEFMmEoi62aHcC4BXgZUfCx5WQsOSWeQauFugEfgA8TYkRDwzMBpbZQIAPXLH0jxlGUobxtGVqRu5ljbSPaUj40FCjaK5TtCU1XS2aziYhIuFDwlf4umTXxoC/Aj8GBhAbsmRDWQ4BGjFoDwH7EA2I578jNAJqcMLQN2I4MRpydsKQzkJoLNaCsWLKif5GL1Bu6VCgFHhaNGDzWs3WVo/eNk3HWk1Mg1dIhEWmwMfAXuAtYEopZapGgBv9DuCrwNfc/wUqnw3h+IjhQH9A/7iRUQ4tmaAI6FJ+L6993IeEp2ioUXQ1a/Z0+dzRpol58x4LgEHgd8DvgcGlaMF1Wzjw9zjgX3DgczIbwOkxw6FzAacuG4anLOmMxbqXL3elsk5TFFAXV2xoUPSs0+za5NPdoknMtzyDwJ8dEe9fj4QF7+YZvHuBrwNfAm7LbzOSshwbCjk8FHLmsiGVsVUBfT0yknHFlnWane0e29s92pLzfvAC8BLwG+A9WNgwqtI/lDN4HcB3gS8Xgz93xfDOYMjbAyFDkwZfrxzwUkQEBtobNbs7PR7o8NjUNM9CXgD+CPwM0YqShnEhAhTQCHwH+AawObqXDWFoyrK/L8vRoZCpGYteJeDFYqysHDvaPZ7sjdHeoIptw1ng18DPgUmllC1+x7yuu9GvBz4N/BToitplQxiYMLx4LMvpMcNsMO99N0QSvqK7RfPs9hidawsMpAX6ge8BbwBXi7Wg1MqqHOh9yMjnnhiasjcdeBCf4/SYDMzQVEG/lMOwj7yBXJAAN/pbgecQnz5nY89PGvb33Xzgi0nY35fl/GSBC+A7LM8BW4u82XkaUA/sQoKaeHTx0rTl7YGQo0PhTQk+n4SjQ2KYL03Pi1mectjqSxLgmNkGPAOsxanLtSy8NxxycEAM3s0uUzOWgwMh7w2HXMvmLiuH6RlgW74W5GtALfAo4t/npH/ccPi8LHWVWPvI/Q3L/Jh8t7kM0QqGJg2Hh0L6x+d5w087jLXRBT+PjbuRkDZnQzMhHDoXcGbMLBSILCqegpq4osYv30cwVn5/JmsJluTVz4mv4cxl8U571sWJz60KnsN4t7X2XZgzcgr4HBLPAxLY9I0YTjkPr9zRNxZa6xWPdPvs7vSoi6klk2AMTM4YPrpkONAfcvaKKYsEpSCVsZy6LEHZXet1fgD1GBI4HQKs78A3AlvcX0CiugP9AcNTtqJto9DA+gbNp7o9mut02e9YUyPP9azTvH4i4OBgWB4JwPCU5UB/wNbWeD4B+VgntWv7MLKFpSLwgxOG/nFDOmMrcnEtUONDSwXgQeZyMqHobvF4tMdnR7tHWIZBUArSGUv/uGFwwuT2HhzGHiSsVz5iCB93FwHIBJa+EQlpo0isEin13MVpw6Vp2RtYqON1MWhNahprZNpsadHs3Ohx8rJh8ppdsmG0yKrQN2LY2KiIxXM96kE2bff7yBp5F9Ac3Z0N4MRoyGxYmfrnd6BYTowY/tMfEIQlGLKgNaxJKDrXaj652aNtjSbuKTY1aXpaNEeGwgXJKzUAs6HlxGjIw10e9TnPhmaHOe4jUV4yumOsbGOdnTBkgupHeJfTlhOjopKlXh3tFh0bCgmt5dGeGC11isZaRfc6zbHhMLeXeF0CFGQCODthSM1ammpVvjFPArdpxDvKETCThYErlnS2/DV4qaOi1MLTKrofWjh0zjCaksmbTMCGxqWvJPmEph2mmWzBrSSwSyPeX849TGVkAzNcKs0rJMbC8JThakb64WtF0s3hcnsWGsGUyhQ8WQ9s08CdzKWomMlaRlIGa6uUNlqGiCMk/yvmdobL6ZdCvNGRlGEmW0BAHXCnRrI4OddwNoTxtF3yPFtJ0YoCBywCU64YK5hmw4LLtUC3j6SvcimIICS3/N1IUUBtDGpjc2qfCSobmGg5DAoJiAGtGpkLOW85tJK0WCkGLHObmwu2cc5HV4tHQ40QEBqYzlTYLStLe1ioPh5Q7yOqkHMUjRVPcKU0QKk51S7hBkhyRIsXuKfTo22NtEpnLKPONlVCetZQrD0aqPWRtLTHKtm8Ol/SXznXtAiQp6E1qXigw2NHu0e9mwJXrlnOjFVGwCK8hD6Si49cYrSSXF0YrowW3N/hcXubLv1uKxoS86CpVhVEkJemDcdHTEU2QCGYiiJaA6R9YBpZEnyQLG3Ch5kVsgNNtYqm2vKUbWDCcOh8yES6QuOsJPnqFXpRATCtgWHy8uu+J3vtN9oHAJmzp8dC/nUq4IMLhjL3RfLx01Aj6fc8yQDDPlJxsQXJ/JLwoLlOMTzJivgCE2nLlZnFgyyLZH7GrhrePRvy4SWzrASMVoIpUUjANeCkjxQkPRxdrYlJfl6pcFmh8EJydCjkQH+AtwgaYy1XsxI6Z4I5EJWIRexKW1JTEyt4SRo47iO1NqnoajKu6GrRvHnGRSRVlpGU5aMRUyq9XdhxWz0N9LRgSsYLCEgBx3ykHC0dXa2JQWeTFCcURU9VkdDKJudq5RMVssHS2aSoKSy5SQPva2Acqc8LYG4ravNaTdyvzPe+XodWy8BaKzsem9dqkomCvYAAqT8c1+7LISSdDMiSsbXVI+GpGx4TLIsApLpka6tXXEhxwWEONOIQvIbU4AEQ9xW9bfqmWQ4rlWj5623TxP0CJKeB1wETEXDEXcyCeE0dazVdzZq6uKr6NFgNsVZKarqa54qrnGQd1iMRAQCzSK3dYNQqpmFPl8+GhltzGlhgQ4NiT5efDx6H8ajDXJAb/AdSRABIUNLbJomJ5C2mBdbKct6zTtPbpovL6t5wWAHQSqmogOgccBi4GN2Me7Brk8+WFl12fi7avcmGspGRCSzGONdihQ1LYGCLqySLF/obFx3GcxHufNsYAP9GSk+/FV3sapakxEjKcnF66RliT0t26bfvzu1iaAUnxwzeChJgrBRP7Wz36Gqel9F92WEMogs5ApRSWGtPIvW3jyHZE10bg3s3eFyZsbxx0pKaXdpc0Eq8vuETQcF1X6+sE9RQo3iw0+PeDR61c46PQarNXwFO5tcJFVNkkdjgeWDSfWf9GsXuTtmgSPhL771WMo3yPysJPuFLxdjuTo/1a3I/ZB2W5x22ghEsIMAxMwS8ABwgz0Xe2Kh5sjfmqjNvPu8gqhR7sjfGxsYCWGmH5QVgaClVYiB7BHuBPpgLw9sbFM9uv/lIyC+Ta28o6JdxGPY6TPNksUrRBJJB/SFSVQHccoWSR4AfIcdtZsupFI3+TQLPIqvCffltboFS2SPAL4EXceF+KQJKnvJwKwLuwb8g2vBN5FwQAJuaZBo01CiOnA85M7bKxdItmvs2imEuUSx9DPiV6/uC4GHp5fKtyNGYbyN59ZzMBnBqzHB4lcvld27y6SldLv8/4BfImj9acbl8CRKakWLDvUg+sWC23QQHJkIkyNmHnCobr8qBiTwSFGITHkKKqLspmkI36MgMiGd3GimKfgtIlaoMXy4BUfs6ZBr8xJExvzere2gKB/r7iPqnWYlDU3kkgKj/duAryEmSjsWeW6FjcyCh7UvAHxDDF8IKHZsrQQLINLgfeAD4LJJfWA05A/wdeAf4L3m7WSt6cHIRMjYghch3ISW3W4F1VQZ9GTgBfIio+p9w3t2qHp1dhIRIHgc+A/QiFdot7m90aDoqziyVHbeI+xodop5ADkZOIC7tP4B/FgBY5jpbVZfFkaGZS7dvRCq0n0CmRytSkBFlo6Pfj4AHyKnxUUTNX0VOhZ53bULAVPP4/P8BKEhqWtWK9ZsAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTgtMDktMDVUMTU6NTE6MzQtMDc6MDBI21RJAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE4LTA5LTA1VDE1OjUwOjQxLTA3OjAwjrmhdQAAAABJRU5ErkJggg=="},_={LEFT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAH5QTFRFDqVJUr59EaZL2fDidcuX////H6tV7fjyl9ixNLNm+/38uuXL2PDhdcuWntu2uuXKyerWXcKEEKZL4PPoeMyZG6lSQ7lxr+HD/P388fr1k9atK69fLLBflNeuruHCQrhwec2a4fToyuvXXsOF1O/eqd++/f7+3vPms+LGAAAAyn1ojQAAAAFiS0dEKcq3hSQAAAAJcEhZcwAAAF8AAABfAF2Z3YsAAADUSURBVFjD7dLZDoJADEDRshSGTRRBwQUV3P7/C2WGPfEBOjExYe4jSU8yLQCq/03T5OZ1w9ClABPRlJm3bETbkgAYVjH6vONywHXIgIcijzqvYRPxlLrfAj7tlAF2BZR5fsK2wSlXVdMAhoPYfKA+YVt/yslAiKPC+U8Q8dnxFwUoYLnAehPJAYjbOKECu30qiOxwpAEAp3MmiDS/0ACA5HqrX1KUEQkAiMqiWwYJ4MvIm2XcHzSgX8bz9aYB1TLiZhlUoFsGHYBvP7cCFLBMQKX6aR/RmQ+8JC+M9gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOC0wMy0xM1QxNzoyNTo1Ny0wNzowMFby/jIAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTgtMDMtMTNUMDA6NTI6MDUtMDc6MDDTS7AXAAAAAElFTkSuQmCC",RIGHT:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAuxJREFUeAHtW01IVFEUPu/NlOXPjPZf+FLwZwxxIxbo2qjMRpRWZa4maKEgrty1s21QUeukFi0KJ5BqYyuDgpYxQkGYGyMI/wqqGXvnCcLMu4/rvHfv3MN798DAu+fee36++5179A1jJJ5c2oYIixnh3J3UNQCaARFHQJcAZQL0n+wB/MiUuEzjQWzHDBPudN90TCzMf4T8diGIOc+9ZEsg0zYI7UnL+eCzLCEJQMP+Wpjuur6bMz6jToaQBGC6axQOVdXt5ovPqJMh5ABoT1iQabvsyhV1OCdayAEwY198cTPmyhN1OCdaSAGALe/8Ke+2h3Oi2yIZALDtzXRnuAeMa3CtKBFnKWBEWOOp5GmuFVzDuiO4Gz0WCP9D6O65iSJXk+/vFY1Zg522t/dbHjvCs68L8PPPJstcWToSDChte7wMRLZF5QB4tT0eCKLaonIA8FJjtT0eADttkX9pcu3wFsiev/r2NtPF2rX5In3y6UDRWNRAOQNEJeLXjgbAL3Jh2acZEJaT9JuHZoBf5MKyTzMgLCfpNw/NAL/IhWWf8PcBQYAx7Tc9Vxp7YbxjJIiZsvaSAKAufhButFyAW6khaKo9XlYCQRcrBcCqPmYnnYax1ouQ2FftyiVfyMPLlXdwP/fcNSdKoQSAnsMpGD8zAunGPogxXoGv//0Fs19ew6OlOVje+i4qV6adigGA9Z22+pz6PnukgxnM8taqnXQWHn9+BRv/fjPXiFZKB2Av9f3hR86hefbbIhQkfQvsBZw0AGriB6Czvhk+Dc961nd2ZREe5F4AAqBKhANwtKoeOhuaoanmBJiG4cqrkvXtcs5QCAdg0OpluAH7MluFh7k553KrVH0zAylRCgegxL5Db2xjKuq7NBbWWDoA/W+mWH7J6PQ/Q2SOQlEgmgGKgCfjVjOAzFEoCkQzQBHwZNxqBpA5CkWBRJ4Bhv7VmCLqUXEb+RLQAFChoqo4NANUIU/Fr2YAlZNQFUfkGfAfDNeSXGrzDRgAAAAASUVORK5CYII="},S={STOP:h,FOLLOW:f,YIELD:p,OVERTAKE:d,MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAQAAABfVGE1AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAABgAAAAXwCotWjzAAAakklEQVR42sXd+XtU5Rk38M+ZEKCgCIgsylr2VRZZZA+1Wq1tbWvVurdqFb3w9/f9iet6/wYVcK/WpW7V1q3a1opa29rdAtk3CHtYZAmQzHl/mDMz50wmIQkJvblIJmfOnOec5/4+93PvE4ShzmmHL5QUOR7qb5rLtBhov21apJxvCpWaYbxW/7TnfzA+odHmGqDBNq2C8z5+2iBzjHLcPxzqYPy00b7R0QX6Ya8vo4chLPgZ2qVBEL0WO36R1Qb5gy9NsdQYf7A3Nyn5a/QtDXGV/j52sTHq/P08jJiklAVGq7LfDEP9ztE+hkCAQBCNEmCUMmkfm+Ay9apz7waxc0O7tOSOxK8w1tB+qPKolFAoLR39TEd/t0HsWPb9i/zQQG97xT4X+r6rDPUreyJwtEVn9SWFhrrdAG96zjgPuMROn0ift1UYKrHCNSpt1uAuS5V6p48hEEgJlEhFTBzjJ0Ive9ciNxvldyoFSqLzUtHrQOBdqdzrlJSUAN8yo1902RKE2qSkBVI5VmdfBdFDB9K42I0W2eoVh5Q64XVtvmWgx+0WSkdn9uVUhIa7yzofe9p+e6Q9ZL1SW7WdFwiE+lnlPids8oXQk0LXGegZh/tw/DhbGeses7znLSd8LHSLn3heRcTeVIzVQcTjQIrc+6QEJRs3avCnHKPzgjsu8sW2gLQRbjbfx15xNDr3tAqB5SapcoQ+3wJCI/zEWh95UrMUdqsz33LNGs7DRhAqtdb9jnjM3wUCJ2wzXJnhKhzvMwgEuX9McK8ZfuNNLVLSdjpiobl2OxA7L0h8TqQnZY9PNqJk40aN/hTt8llG54GQjrE+RNpIN5nr9153jNxkn1EptNxEtZqjSeq76R/pJ1b60LOx9bZXg9lWOaKujyEQ6u8b7nXAFv/MTXGLbYZY62KVfQaBPCMnuddUb3rLmWiN0+SweebaZx8FIEjCIfM/zAKgwWcxAOT/S0iEdDT1N5vpQ792PDoje9YZlVqtMEmdZn0pAUa5z5Xe87zDCc1/j3qzrHRCbR/qH6H+rnG3fTb5d4LRLXYYZJ2RKpzoo9EzbJziPpO87m2nE2xuctB8sx0sgABJ5bAIAPKsTJOQAvnjodFuNc0HfpN7wPj20Kpai5WmqdbcR+wPjXG/xd7xC0cKDL/APjXmWK5FdR/pAqEBrnWn3R6xrWCEwEnlBipzme19JAUCKVM8aJxXvOtMOwbvts98cx20t8AaSDKfQGhKBgD1Ps1JgDj70wUQuMyPTfKed5yMEJTcHkKtqp1wpdmqHeiT6R/rAQu85QXHitj9gQMqzLTaKTV9YJeHBrreHeo8qqLI1QOn7NDfWhNUONIHEAjM9JBRXvKe1pyCl9/p2WuPORY4ZA8J9kucR2iKSzIA2JpjKO0t/ozqN87NxnvX+05FR4ptFW1qHLfUHPX29fIEhCa43xxveDmCYLEJalZpsjVaVUVGbO+N/zXfc6tKm1V1OP4ZO5RYY7zqPrAI5lhvhBf8VltMrUsK+P32mm6ho5oiayxvkcUhkM5LgE8EMaYnN4HMv/Fudpm3fRixv7imEMpA4IgrzbEz5xrqHZpovRle82qH7M88XLNqk6xBldZeGz00yA/cZIctqjr1OrYqx1oTexkCgXnWG+Y5H0oX7O/JHX+/PaZb4HgOAiJTPqkDTM1IgDqfRAfyzExHKzxzZIJbjfKWPzidO1boOcwfa1ProOUu19iLEJhogyl+6Q0nz+L0DRxSYZI1Uiqc6RUWhAa70Y22e0zdWZ3OZ1Ros8ZUlb0GgcA8G1zoWX+I3F2Z/6kYEDLnBQIH7DLDfCfszLG+/TNNzW4BH0slJEB+/08Lfd2thnnTR84o3CKIwyF7tE2dA5ZarNHuXpn+aTYY7yW/cqoLPv/AEdtNtEapSqfPmQWhC9zs+/7tUbu6NH6rSmesMlO15l6AQGChh5V6ykfSBUxvrwcEOKTeVIu02Jnzj4axrSCMS4CtuROSfoA0prrZEG/aqjUREyiMGmQ/n44+2eCAhRbbo+mcH3+mB13mBb/u8noOfGW7S5UZoOIcIRAa4hbf9YXHNXV5/DaVWqwwU50D5wiBlKUeFHjSx7LOnPzeH9/h4+reYY0mWuyUxog/ybtIm2pkycaNav0xx9rkNsA0N7nA6z7VSk7xS5qJaWERQIQa7LXYFfbbeQ4PH5hlvVGe8063dvTAV8qNss5g5dHW1TMa6jbf9mdPaupWxDGtynGrzNBwTjZRypV+hi0+jZ4sLvgLjbzsHWakwE4TLNamIeEZyTr5phlRsvH/qLG1YG1nf073YwO96nNt2ssH7V6lE/KAXXZZbLH9GmPipzsUmGWDiz3r/W6bdRkIjFRmiB1aejR+aKg7Xe0zT9jb7YBzmxpHrTJHnf09GD0bcrpfq03+HD1VfJUXWviF7x1Sb4JFQg0F8xdKm2ZkycYF/qMmpgRm3gwFZrlVyqv+XNQuKHQdk9QPMtSk0QLLHcyJoe6xcJ6HXeBpH/bIsRM4bpsRygxV7kS3rxC62N2+YasnHOxBvkEgrc4hyyxSZ1+3Px/qZ7X1jtnkr7Rjb9KxU2jnZ14dVWO8K1AfbeKZK2c0q0tKNt5gv5qCN0KBeW6S9oovEr7AYspf0l1c6ATebac5VjqsvpsQCCzyoIGeyum93aeMj36oMsNUdhMC2ZDT7zzdYbLF2ccP1TlssYV2dVMhDpVa5z6HbPG3GFuTql9c98+/lz8z8JVaYyyVUh9totktYLqRJRt/qFlNdDjL0JT5fqjNL/2jYI3nLYRCC6Bwe8jTbo3mWO6Y2m5AIGWx+w3whD/2QHbE6aQdLrTOJcqd7MbnRrrHCh94zqFzyjYK1TtgqQX2dkMhDvX3TXdrtikXcspSx4I/iBl92b8CX6k30lL91TqTu36YBcBBNcQYnLLQj5z2on8lWJuOnESFzuJCCVHIrsBeNeZZ7rjaLorylCXWS9nsk3OY+uz4J5UbZJ0xXfbRh0a7zzLve64g5NQTCjXYY5mF9kSumbN/or+r3W2/R3xZ1OmcZ35YsDUkzwtzUmCUJQaojbnyIgAcUB19NBQqcYWbHPOi/7Zb2cm/49Kg4/WfoQMqzLLKyS5AINTPcg85bbPPe6g8Fk5Xi+0GWmusii5k7YQudb9F3va8r3op13CnJldYZl8XbKLQANe5W6NH7Sh6t0mBH7Zjf1wPyEDguCojLDVIXaQQh2Zkt4DaKEUoVGqpHzrsZf+FhEMouerbi36dAICDqk2xxmk1nfroM7k29ztui7/QC+zPTMMZ25VaY6zqs4RpQuP8zHxvebEHimPHtEuTy7ugEIcG+o7b1dhcNOSUfaLi/+PvJ89vUW2YpQard0oqD4ADkRWQVmqF72n2kvJIuBTq/3kHcTZrMHvThfp/+xs+qMZka6Q7CdOESpW5xzGb/K3Xpj5Dp5ULrDVeVacQGG+9OV73Sq+yH5rscrllnSrEoUG+5xZVNqvoRPp0rP4VbgJ5p3GLGkMsM0SdFmkzjMrqAIFQqZW+66AXoi0hnxyWDRNnd/m04spfulNkZyN1q1FR1KrP6L33OOKRdorPuVPgjAqhtSZ3Eqyd4CHTveo1J/og0Xy3Ogssc1RdUcsmNMj33aTSo2rPGvPI/CwM9hZKgri90KLWhZYapsZJM/MAoL/Vvmu3F3IpVRlzsL2S19G2cPY0sMBh202yVonKdm7djOJzj70eLar4nDsFUZhmtemqiph2oSkeMtnLXu+zOodM0spKX6lrpw2FBvuRG33pUY1nnYFCszDzKkwcT3oNA4EWNQZZ6hK1xmcBUG2gMter97L62OUK9/S4DlCo/jnL+s/e0lE7jLVWaYGPPpNrc7edNrfLtek9yvjoT1tlmjoHC3xj0603wYve7KUYYnHar9Z0q51QU5C6dqGb3eDvHrezS5ZCMg6YfcJ84DeIdLu8HEgJnFFtoMVGGGhwBgBNrvItdV7REGO9xKpOev7TOWjEj3SNBUdUGG2dgcpjVulA17tdvU2293GNT5sqJ602Tb2DseMzrXeZ5/2mF7MIitN+taZZnVCIQ0Pc6ju+8ISdXZyBUFzw52c4Gy9IJWRA/ppn1OpnifFOlWz8geMmu0atlzVFBSL5y4u2gWSqdzoGh46s/44pcFS50coMVu6UQGig77pVnUdVnocSrzbVjlltttooTBOYaYORnvNen67+7AwcUGWGVVpVRQ7ai9zhWn/2uN3dmoGg4Hc+7z/K/M/9i0uGM+qVWGBEycabTTNbhZfskc0doX3cP+yA/Zkj3cvCDRyzLQrTlDthsO+7RblH1fb55GfGz4Rpllug1j6BuR52UY9CTj29g2Y7TI1sotOGu9PVPrXF/m4ugMIYQLYkROJ13BbInNmqxlgzSjb+X2P83WtFM/hCoaQ2kBT9cduguxNw0jYXK3OR3a71I1/aHOkf54MCoVpHLDHfHpda7wLPRKlW5+sODqswwVopR9zqGz7ydIFW0hUKExDIiv088/OZg0llkNPGGBGEB3xhk31SCld70rxrywn8bKVg+hxrAEPD3alMg3H+5QkN572+N2WNe7QKlXjqnGMO3ae08X5mngbj/d5zPYo4kmd8Sa4ALJCvESwR3wrkJELaDealtPhvVFpdWM0XiCuE2SnLnpNRQM6l/CNwwBsaLHTKL9X/D8q722z1gXEm+MDWPi5mLUYp9V5zzEK7vOZAj2cg45CLfzoQFOhySUUxqz6mUwaaZngXrPggBojkhXpKoWGuNV6FgW4w5rwzIFRisXX22WOdxf+T/gaXud6Fyl3m24b2ygzkOdI+LJT8G4KSjbcb52saolTrPIuLJX22Dw0HegqC0FB3+JbPPKrVWpeq6vP6+uT4/az0gFM2+bMFltlv53ndBEKXudciv/G0odYZrLKHeUvZcu/s77jyF08fR2wbCM0yp2RjmTbjjVDXrp4t6QYqHvgJegyB4e5ylY89o1GFfsqMVXneIJDJtblXi03+YqcmCyxx6LzUFmdprAdc7k0v26vccOtcpNypbl8nz+z8Th8rAI9JtrxSCAOss6hk4w22abTUKDW5kq/MFMW9dEE7OZC5YM/6AIQu9lNlPvK0A0qi8vIyk5SfFwhkyrvvddyj/i5Ak3qLLHFY/XmyBMZ5yGxveMVxJY4rN1yZi23vtOylPcXZn80XTgIhmT+UXf8DrHMNJRtvtNuHSi12qXpfJTzJcS9gPN0rjJSILFy6JwVCI91rpQ89HSVbBM4oF/ZyKUXH45f6hvsc8Jh/5cbaq9Y8Kx05DxAIfd1DpnnFq1GZS+Ck7YYoM1J5NwpL86s+yfSs3l8oGbI8+5pvugYNGVdwuTopV7hUYwSBfIZg5nco6RLODt+T1T/aPZZ5389jqz3QpkKrVaaq7ZVSio7HH+BqP7XbFv9JjLNPnZlWOaauTxXS0FTrfd3L3ohFQwKnbDPYWqNUOtbFGUjlGF3YDyB5JA+MQGCwq11th0b9MwCo1aZOGEHgaO5G84ZeoTO4fepBV1k2xv2u8LYXEtIG2lQ6ZbWp7cI0vTn5A1zrDk02+W+7MfapN90qJ9uFaXqTpltvvBe81a5g5ZQdBlhntIqo/0LnlHf6xtkstxkU1g9mfl/gWuts96phRuczglrVa7XEBPWORJOVlwTZxJDCOlOK6QwdT/9l1pvv114qmmqVKS9fHRVU9T5lQ047PaK8yP0G9qs200qnVfVRh4HpNrjU894uEnMItKhQap3xdrRbIIVUuNPn2V/YGiLuBhrsemX+61V7k/kAtKp3xkKTNTqc0P+Lif2wQyh0PP3jPWiON7zUQbJFxkd/zHLz1fR6h4FseXeVR6KUl2J3cFC56VZrVd0HcYHZNhjh597t4NqB08qVWGPSWbShfIwvKexTion/rBk41Het8m+vaCabEZRJCQsE0hqdMt9kTbFOP4VBx7wqkfREd74NhCZ5wAyvecWpDs8MpNX4ylKXa7SnFxmQybW5xXabOw05BQ6pNOksqWs9o8s9aKhnour+jsbPlJevMVFNJxBIJQAgpgsk7f94RsBFbrDC37weXTcCQLOanLnQpt4JC2MQyH44+0riVdK/1JkEmGx9VN59NmdHqNYhy83VZE8vTX3oAje60Ze2dCHVqlmVCVHeUm/lBgQWeMCFnvK7s+oXrVF5+dfVdFCSkl/pqQ5WfirRJC4QGOYHlvmLXzkUwaIgKTQzUWk7HbPQNE2ac6s9PnShTzn5ujgIJttgohe91cnqj1+p3gHLze92NU1H17vATb7vPzZ1KeSU6TAwwRqlynslPyCw0EO+5kkfdcnIbFXptDWmqywKgVTBii9UBgtdQoHhfmSJz/3K4Vzr31xaeF2M0ZnWokfMN0dTrLC5eMpxsUdpD4GM4vMLv+5yoXZag72WWKLpnCGQKe/+nr/Z1OVki8BR24yz1kAVXQJtZ5Sy2AaBJ2ztoo8h0KpKi5XmqG5nE3W0+pMSIK8UMsJNFvnEm47FwsLTC+sCsh8LNTlijtn2x0oaO3b75jWBYu/Ott7IqLy76w4OGu2zwFJ77TqHyQ9d5Dbf9idPdkunyBSWjlJmkMpzgECoxJXWa/O4T3XdXA6kVTthudkaCrI1goIV3xEAsuwf5SbzfOw3TsS2hpgOUFeQLBBgt2bzzIp6zmUehfgW0FHWYDIiNdd6Izzr/R4oVDvttshizT2qLc7QMHe4xiee7kE/8WPKjbDOhT3y0Weon5V+ptVmn3f7s2k1jlphlsbEQoy3gU3Kg0LLICUw2i1m+8g7Tsb0gkxhyKiSjbc6lJMAyejRbvvNM9vBqNNPIePzfyVrCMRuda4NhvS4vJtdGl1hiWYNPXDQhoa721W2eqrbqVaZ+89AoMww23sQqctUOf3MSY/5a4+ev02dw1aYpyGCQHDW9R8HAmPcZrrfe8/JXJvprMo/3ciSjT932tZcJ+lkccE+e8w2X7O9HYj+Yl6AvLdwgYcN8JTfn4N3fbd6l1vuULd99KERfmqNP3iyx/W9mS7Aw5S5uFs++sz4pcrc75DH/KOHz5/pMHDQMldojDr/JYV9HAzJ9Z/CWLeb7EPvOxXjcdY4nG5kycb/pyEGgMK60/32mmaBw5oKIBBf82ERiRBY4kElnvTHLnkJO6a9GsyyytFudQEOjfRTK3zg2XNq2ZjvAjyiW12AQ/1d5R77bImFnHoyfqjBAVe4wm67ZeN+cQjEIRFn83g/NtFvfZBoKpmHx/RMj6B6nxZIgMzAIgjsMd18xyIItIdBPH08C4WUZe6XssWnvRBh36PBLCu65aPPlHe/6xe9UN7dYoevWWeU8i52AQ4N8C132WtTQcipJxRqsM9iC+3XJBvSLbYZ5LeDEhPdarx3/a4d+7OfmJYFwCdKJHvOZCjz1/6o59xxu3JBYUV/Zz4TRuxP29QDxacYBfapNseKLnYBDo3xgEXe9kK7jsI9Gz/bBXis7V2I1GVDTrs9YnsveBHIlJcvscgBu8j1/i9u9wdSJrrDGG/7SGtMvieDx9OyfQI/ib6CIJ40lH30jH+8wVSLnLCzXRuYeGsZSCux0gNO2OSv5yj84yw4oMKMqJqmc3MyNM4D5nvTC473UqZfpgtwqbXGn7ULcKa8+w51HlHZS89PRiFe5EoH7RIWkQBxOTDFXUb4tT9qK2B/fvuQBUCDTxOZI8Xi/M12mmixFo0x52ixVrH9rHaPwx73RZHrnAsLmlX5urVn6QKc6Sg82xte7mGGXUfjn7FDyloTOm0Bmw05VdjUYcipp7RHk7mWO2ynQnUwDoXpbjfMm9FX6AQJsMTjhjkJ8FkkATrqMgHNGk2w2BkNuW8SSpqDIUqVudNhm3us93bGgmZVJiqjEx99JuT0qte6mVrVFWpVLrS2kzBNaLAfuMl2W1T3QZ7xHrvMtcwxDVFwvtABVGKW21zkdZ9FPUVTRTaIjBUwNSsB/pTzBOYrgdr79g+pM8libepi3abiECi1zh0O2uQ/fZJcmY/UlXTgo59kg8le9qteXf15ynwtxlpTVRSBQKaj8A+72FG4ZzOwT715ljquIdoI4vp/iVnuNNirPhcm7IPkK3EdoDECQBICScdPho6qNsESYQEEMj/7+6bbNdlsex88evaejthmgjX6t2sBm+koPM6L3jxn733H47eqctpKs1QVpK6FLnSTH/inx7rUUbgno6cEDqiObKJ6YWxlU2Kuu5V61V+Q9A3EbYTslWISoCQaoH2AN2nvH1VjjGUCtVrlZUDaANf4sTpP5toa9U2CdeArO1xqrYEFPvpZ1kchp74s8Ay0qSrSBTg0xI99x189bnefwS/DuGa1pljhlDphjsklFrhDyi99IanwUegtyBydkv3SqM8jTTFOYQc/j6ozypVK1TgtGwIa6Fo3qvGUSoFC51BvT0OmBWy8C3BgtvVG+bl3ejmJoxilVTlmlZkaci1gh7rNdT73VDfLu7tDefYdUmeyFdJRq5lAicVuw4v+Id8fIG4ZFEoE2W8MyQKgvZMn2T00mwF0VI1RrjRAddRzbqDr3KDG42rFm8r0FRV2AU6ZbYPhnvHb81Tene0CPFed/dKGudM1PvNkDzoKd+e58+v3kGpTrBCq1aqfpe7Q6hf+VUTfbx8kTgBgp89zYeAk29sXiGUgcEyFka40SI2TBrne9+yI6nvD8wCAbLA20wW42jQPG+SZHoecejJ+Wq1DrrRIvTD6EsvHe1zf29VR42w8qsIkywV2ucKdjnvef2KGfN7cSwIhvxlMMaKfeM5v1786dr9n3Wy1wLtWucY//TwK2cZLyfuW9ntMi7WGG63Eli7m2vQetfnAGT/xsJ3med9zPe4o3FVKS0lHXttAoMFmd7nOONMd9KJtuXRwQqmczA6Ryn3RRGY7SCMtDMIw9uXRyez/zFou/uXRpA2z2hh1xjvoY7tym8j5kACiOx7uOhO0+tRn52G89pSywjL91Xq3j1c/YmubbLhunG+6xAl/tL3AmZc9NzTE7HZHYayhQY+/Pj5j9c41wlf+VvRL3PqeAsPMcIHQ7ljDqfNJ/U0zRuCYHX1SyXD2GRhtmgHa1KntQP3t9Ovj/z+aq5+WpNxDOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNy0xMS0zMFQxMToxNzoxOS0wODowMNer8+AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTctMTEtMTVUMTM6MTk6NDUtMDg6MDD5RudlAAAAAElFTkSuQmCC"},M={STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACKJJREFUeAHlW2tsVUUQ/vZSrESMPCQQxQdQBARBCv4AQTHwRxKhNRZTlfAWJBhEBQTCUwV5iArIK6BAFaNVBFQIITxMNBASWkJQhFYQVCCAgBKe2h7nO9v1nnvP6bnn3rZybztJ7+6ZnZ2zMzs7M7tnq1BJYGVmvoTS0rehVCksq9QuAdZLXDigRF4bptP0Xrhwfyc9UIQmTYapzZuvVXT4qqIM2N968MFXpZhbGbwC81BqEzIyslV+/vXAfTwIK6wAEX6C8J3pwbvqUUptRCj0lNq79+9EXxZKtCP7WR07TpbixghvD8Dqg5KST60ePdL4mAgkrAARfrqs7xmJvLSS+2TjwoW1Vk5OrUT4JqQAEX6mCD8lkRdWUZ8cFBfnJaKEuBUga36OCM91n1xgWbkoKlplTZsWl0xxOUERfr5IPSa5JHeNZhUKCwcrpSxXiwcisLbE7BdK/2QXniIORGbmcsuyAk1uTCKbUWbmYjH7ER4KTF6UUktVYeELsQboq4Ay4ZeL8ENjMUrKdqUWiRJe9BtbuUvAdiYdO36QssJTassaJX7rHT8FeFqAHU6Kiz8UBv39OqdQ21y1b984r/G6LKBM+LxqJDzlHmvnLh4aiLAAO6WUrErocjxoUx+l1OviEyISuP8UYHXqVJt5tUiZnfqS+kig1BRRwuuGwl4CYvY3yV7+82ovPKWW/UvZDtbWgbIefzwdp06tk4beNqbm/IwVxzhPiTbyRObnao7cDklDoTFcAi0dqJpVlSO8kJzXuUJhjdGCnF9S+JqrADmMDYnzq7kKsC1AqYSOkqrJMqnhFiDfLNJsJ2jFODypXRt4+GHgrruAevWAs2eB48eBXbvkc0WpNoZbbgHatw9uGL/+Cvz2WyS9ksT0nnskLklgatECOHcOOHxYPoMUAZcuRdLyiePq3NmNJ+b8eeDkSeDPP73biZUlwONkfx/wxBPA6NFAw4ZuRhTgzTeB3buBu+8GFi9205SHWboUWLYs3Nq0KTBrFtCuXRhnalevAvPlNC4/32B0edttsd+5fz+wYAGwd29kXz6JE2QidEiq97lbBdOrFzBnjp7l7duBgwchWSPQuDFAxTRvDly+DAwYAFy8CAwaFMkmIwPo1Ak4fRrYsSOy7bvvAP4RunUD3noLoBX9/jvw/ffAzz8D9esD998PdO/O2dI8XnmFA9f9br8d2LpV19evB65d03XSNmgAORrTJfHPPAMcOaLbza9SfyjZJhYLQ7E3D1i+HHjoIeAdOVNYsyaSgOa3ciXwwAPAxo3A1KmR7Xzq1w+YMAHYswcYPtzdTkydOsCGDUCjRsCWLcD06cCVK5G0VNBM+f5y663AG28AX3yh250KeOwxyPeByH7p6dpCqIjNm4GJEyPblTrjHwa5HgmcjWj4W75GUQGcec5SojB4sBb+2DFg0iS38ORLS1m0SL9h5Eigbt1gb+PMf849ngD9ihtK/DPBH3/UXUbIeSjNPhq+/RZ45BE5PajA8QGXGYHKLCnRda/fdeu08zWm7UXjhaPTJqSl6TLyN0YmuGSJNis6pq++At57T699mmJlQC1JQe68U3M6cMCf4z//6GhAKmOZ/j10a9++uvSyYnGCab6ZIEMQHRydG2eKs80/mj89P5WybVs4FAYZkJPmjjt0KCPuxAlni3fdhE0vBWRlaYfMniEJbLSULl2AVq30+D7+2M3TDoPMBI1XdZPoeE/HRCfUtSvQsyfw6KPaM9M7//QTwHXJuBsvMLwZoFM1Xtzgoks6NYKzn8boUG3qzpIRiJZbWOjE6npMC3B24axzzfOPpkvhX3sNaN1ae9rcXCd1sPqZM9rpMRIwD6Ay/YA0BDrMaHj//bAFsI0TQqti6L5+PZpaPyvlkwkyq2PoYtYXHeLorHbuBA4dAr75RiuBWSKzu3jhl1+ANm10pumnAOYEpCMcPapL5y+9fXQYdLZ71332AkwjafJ9+oQdVTQT0piXMo4nAmvX6l70NczsyoMhQ3TOQL/kldWV188Pb2+Hy0uFaZ6cYQLTXc6AE5i1DRum8fTQJmQ6aYLUv/4aYARgZMnLC8+y6UvfMG4c8OyzGsPM1M9nmX5ByjInyGTIm3z8eJ0BduigM6kfftBr6957gWbNtLdlz3nzvB2TN1c3ltkiU+G2bQFaBNcuN0D05Eyn6SPoIJmRVtbscxRlTlA8WjlAZzN0qP6j92dK6QQqZPXqcD7ubIunzvA2cKD2Ob17AwyP/CNwr8FUevZsdy6vKRL/FQvgXuCyaEJUHANuvllng8y///pLb4qYBlcFMNXlRovbYRP7q+I9wD7uBhmM06uGf5JzVarAfy+Q5OOvhOHF2AtUwhuSmoUdBmv8qXAo9HJSz1LVDq5Ikb84wlelmFu170oy7rxs3aTJk7JvlOM2+UoqxcQkG2LVDYeXrHnTXK7b2xZg3iQ5wWTJCWaY52pafim72afNDXPbAoyg9s0JpaqzAvLlu0Y/IzzljlAAEaKEqXIEPYv1agVKfSIHo7lq507ZuYUhYgmE0bZjlG0XxjpxKVz/SIQfKP9dIgcZkeCyANNcdq/uXfOcwuUqZGUN8BKeMpVrAUZgcYwLxTGOMs8pVSq1AgUFz/vdHI+pAAosSlgiShiRYsIvFeFH+glPeYIpgFfP5Qq6KEEOB1IAAlySNlIEUgCJ7ZvjvDzN+/jJDe+K/xoTdIjlOsFoBrYpZWUNEfxH0W1J9MxL0YGF57gDW4AR0nGZOtfgkqKU3EVymLjT+cAWYIS0w0lGRn95zje4G17qS9BxC89xx20BRtiym+WfyXO2wd2QMuryc7xjSFgBfJF9w5yXrC35D84bAxNlzVcobY97CTjltDcVGRk5snfY5MT/T3Vedq6Q8BxnhSzACGrfOD95coU8txRlUKn65on+8mwOXoPh9BGd7mNZtWx+xDn5yimWKiiolDT9X2WUArFwNF68AAAAAElFTkSuQmCC",FOLLOW:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABRtJREFUeAHtWmtoHFUU/mZ38zJp0hWzabCpeZikiS0alaa0Qkjqg0pbtVFSUClEwarQgP/ESkOKFv9VUn8qghYVYxVBEJXagqWtiIq26b+1QsWYKttK7Cskdb61s9xJdnbvzN47s7LzwbAz555z7jnf3LlzzrBG7YGN11DCiJRw7unUQwLCFVDiDISPQIkvAIQrIFwBJc5AoI/ASNej4BEkYkFN/njrfRjrGU5P/+eVCziQ/DKQUAJZARtv7sX4mp2ZhHlOWRDwnYB19avw9j0vIhqJZvLlOWUc8xu+ErBqaQve79uNymj5ojwp4xh1/IRvBLTULMPB/j2oK692zI9j1KGuX/CFgERlHB8PvIKGqhttee3+8S3wEEEd6tLGD2gnoLbshut3tdGWz/jpj7BvciJ98FxES01j2oa2uqGVgIpIGT7oG8XqeKstj/eSX2HXD29mZDynTARtaEsfOqGNgIgR+W9nT9h39s9/O4HnT+xblBNlHBOxzrTl24G+dEGb5/29I3hw+Vpb3MemT2H7N3sxd23eJucFZRyjjgj6oC9d0ELA2B3DYKUn4mTqFwwdGcXluaui2HbOMepQV0S6ajR96oByAnZ2DWKk217fn5mZwtavd+HC7D95c6AOdWkjgj7pWzWUEsA7tafnKVuM05dSeOTQS/jjcsomz3VBXdrQVgR9L1xZ4riXc2UELKzvGczfsxcxePhlJGd+dx0bbWhLHyJU9w1KCMhW3/N53mY+zz+lkmL8rs5pSx/ivqG6byiYgGz1/dz8HIaPvoaj0yddJZxNmT7oiz4tqOwbCiKg2aG+H/l2HJ+dPWbFW/AvfdGnCKtvYAyFwDMBrNU/cajv30l+IRXTvY13gYcM6DNb38AYCukbohWD7aMyAYg6rNE/3bAXnXUrRDH2nz6IV39+1yZzulhb342tt/Sho64J56/O4OzFc06qGfnxc5NYEqvCmvqujCxevgT9y3ow8ethXJmfzchlT1wTwNp8on8Md9+00jYHa/kXvnvDJnO6uD3ehida74dhGGmV28xvAFOX/pJ6VR6a+h7N1Q22/qKhKo5ek5SJM0eyVplOcVDu6hGw6vv1idU2n071vU3p+kV77XI82fZAJnmKSQRlHJNBtr6BMXnpG1wR4La+X5jMiuoEnm7fhJjwOczSoYxj1MkHlX2DNAHZ6vtT5/PX91Yy3Kie6diCimiZJVr0yzHqyGxqVt/AGES47RsMP/4hEi+vMfuDx7DU/JUBN8XXJz9EyvzVDekV4DWQ6lglnu18WDp5zkOiaENb3dBKAN8YOzofQsLcpd2CNrT9334RihnmptaxCU0Sm5oTObSlD/rSBS0rwICB7bfKv9ZyJcdXI33Rpw5oIWBby4BZqLQpi5e+6FMHlBOwpWm9WZV1K4+VPulbNZQSsKHxTgyYhy7QN+dQCWUEsLnZrOEOLUyWc3AuVVBCAJuboeYBVTHl9cO5OKcKFExAtuZGRWC5fLhtnnL5KoiAXM1NrklVjLlpnnLN55kAmeYm18Qqxtw0T07zeSKAzc1zK81avazKya9vcsbAWBiTF7gmgA3KDpfNjZfA3NiweWJMXponVwRYzQ0/QRUbGJOX5kmaABXNjW7SvDRPUgSobG50k+C2eZIiYEhxc6ObBDZPjFkGeQlgA6Ky9JQJSoUOY5Zpnnz5JqgiIV0+8q4AXRMXi9+QgGK5E0HFEa6AoJgvlnnDFVAsdyKoOMIVEBTzxTLvv15LeJaPZjL8AAAAAElFTkSuQmCC",YIELD:m,OVERTAKE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAnZJREFUeAHtWc1OwkAQXgryIxA9AGeCEkz0ijcS8YQX7/oK+gByUKOv4hv4EMZHMDE8gJh4McYTaL8WrIWW1d1pMm13kia7MzuzO9/O7ldopnP58iVSLFaKc3dSNwCYCkg5AuYIpLwAhKkAUwEpR8AcgZQXQDSXYK+dF3jiIDnqRWbtQzUcVJywD6M3MZlSz0Abj/wOON0viVY95zxocxdSADZKGXF2UP7JGW3oOAspAOf9sthc90KiDR1n8VarucpWLStOusslDx1sXIUMgOFRReSyy+UOHWxchQQAl/YKoTn22gW2tKgNAGjvYkZ7oQjYBozBWG6ivSSc8S2b9mSCMUF3hMwvarsWAKC4/9zyGMuNFrUAWKQ92W5xpEVlAMJoTwYCN1pUBgCXWhDtyQCAz18uTVkcKnuG+svQ023Dt7adq7Gvr9JpN9wXqefxRMV9pY/8+l7pHr3Rst+tBrtFZ6LR64eYEn/IUz4C0afuztBtrola1XIetKmFNQAlO9/DjveGiTZ0lMIagL6dcDHv/b5AGzpKYQtAvWKJbnP5bzXoYKMSukhUK5rFGewVhBWwOuhgo5KAKahCq8cB7W03wgkKtjk1qs/ierID4DftrUoO1IixusIOgDntyRIDNVLQIisAFmlPBgIFLbICYJH2ZABQ0CIbAMJoTwaCLi2yASCM9mQA6NJiONfIZia23z1+Bka8Oa769Nf3776+bodNBegmoupvAFBFLil+pgKSspOqeZgKUEUuKX6mApKyk6p5mApQRS4pfqYCkrKTqnmYClBFLil+5F+H4waMOQJx2zHq9ZoKoEY0bvFMBcRtx6jXm/oK+AZfij5yUi3OcwAAAABJRU5ErkJggg==",MAIN_STOP:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACeVJREFUeAHlWw2QVMUR/ubt3t4eIMcdBFGUX/HnDsskmphKijJ/FRNJSEECRAoDJBIBMYIRqUBBFBRCDAklRI3BiqglGowolsSkqEopZcpgYpTkTglBJPxH7w6M3N3e232Tr2d/sm/37e3bvYXbO6Zq783r6emZ7unp7pnXp1Ci0t7SuEBrvRbQDqAcaPBp6jEoODoJB+EaMQ5r2pUibrweg07VHSTgGglcnaBLXKWwN1wTmq3UmEhXp6+6SkD6tzY13E5m7y0FLb80KLjt4RpMVKq+w28fLzzLC1gIrK254YdnmnmZH7XturYWbOGzopD5ZuJ2SQBtLf9YxgmsyiR6xt61ntDW3PgU5xAsdsyiBdDW1HAXd+WKYgcuXT89kUJ4gkIIFEOzKAFQ7VfRqC0vZsDT00dPbm9567FihFCwEWxvbviJo/Wi08NI16jSMD4erqmbkfAsvogVJIDWpsaf0Qst9EW5m5AU1CPh2rrvUAj0oPmLbwG0Njesp+mdn59k92MoCxvDA+q/50cIea0n95VikHM/n3O6nzV/M6BxvpFzjhJ7br4enWqAYf5Ew0NCMB+hsmxXakOf2vpbOptbTgGQeau9ufFhWvuZnRHoAW3r+gwcm9NuebpBMh+gCj3SC5iX9VkgnivXQmVpQJx58anO9bk69UQ4DeLqqtr6JZlzdwmAzAclqmKkPTkTsTe8K1grqwbWuQK4lADIfIXE1WR+Ym9gNhcPdJHLq2rGrky2GwFo3RCSkxX9/IRkQ29+cjss4XZYLTwqrfdWtrd0PEMNuK43M53Nm1rUZ2D9TxUPNnKImJ6N0PshlmUttLTGmN7PqjeHXPi1jAO0Zyzg3aW3QbVj8fLxLBaAogCAs1cAvLkm88VdJfWOzcAtwAuEs1cDoGJBfqTILwA7CmvXm7COHAdO/he6dgD0BUPgXHU5N1Ci+6k2WG/t9a0Y+vxzIT9XoUtSB4/C2n8Q6t1D0AOqoUcPgzPyQqBvlQvVvMi83mzMhhOiq/tDnzsI6N/Ps90A+cGGFyKde4HA73ei4ldPQrWczCLknDcY9oJZRhDq8DFULs556Mrqa8+YhOi3J6XgisIN3XM/rLf3pWDJiq4MwZ4zDbEJX0yC4s8PPsw7plN3Eewbp8K54jJ3X77J1yrF6+09rFyc1UqA9dIuhFbcZ1bZGXcVnDEjoQcPhHqvGYE/7IR14DB0VSUi6+8E+vVBcPPzLjJq/yEEdr8NPagGsc9c6WqLXf1ROPxJsf78BkJ3b4BqbYcz5CNwPnkFnBFDoaht1p79sF79G7+u8RsZaXTctYDxa+II03QCVVPit3TRr1wDhBLfSHgbqE58AItjy1MTHnnwbujhQ814qT9KNQUZDAcoCs8S3LbDDGzPnorolPEunOg3vozKhSup9vsQ3LId9h03wf7+TBdO4LkdRgDOhedltaUQ2yIIrd1omI9+9lOwb58NUKjpxQiI2hF45a8IvPBHxL76+fRmU7dnfwuoPscNj3QgtHgNAn/fg+Djz8JeerO7nTe83MC5jaB16Kjp4Iy4ILMjUBGEPe3r0H37mFXKRvAHCW7eBsWVdGhT7CVzs5gXKqIp9nfjJ/SKXz8NnGr1R5xbJ/a1Lxhc652D2X34kVYsWMKKZbc7F480wIpNz1Dtm7IQnE9/HO3bHkLk4R9ntfkFBF7eZVCjFCYCuT/uxMZ/jsa3OqXafumL0TYlJh+ks4qJA3IKwJ75TWhaUTFMldN/gNDStRCjiA9PZVEqCsBJqaPvma7OpaM6JxEMwhk1zOBYh451jpvWGnzxZfOmvbSYRjDIW28KwNsIiAsSAxd88nnISgVojOSnZTJXjkXs2nGIjfuEMZJpY/quqmPvQ0Xl9pozoPHLVzS9jhRxlZkl+LuXaJDDcbDD9AIav8BfdsPad4BpBwpiszIL7wXEDSK33rFR/L0YJvvWWbBe243AztcQ+NPrCNByy8+5aDgiaxYDA/pn0s/7Lu4tVUQQ6e+phrRKRyIVIOw2koIhrtqriAcSA+lcfolXc/44INWLRk/2vPxsqq71Kl3X+k2w/nWAvngNIr+8J4Xqu8LJaTKj2iNQR/4DPWZEp10FR4oYzMxiz+J2TWqANHJB9JBBxnWn3GNmJ2hGgnIaZASWWazGvQhu2go9sNq4OFc7jZVDnxzh6ldOW2CEoA4fhx6aEdm5Onm/aLpItfddBBhpRjsTgPh14knRw843z/Q/UbH2mW4wHcGrzpQcMYDyyyrO4EFmDwVp9NTRuOQzkUyomRhUNbVkNvt6j0661uAFn3oBYGSXq1Q8QXdJTRFD6BXV5eqXB96JF6B6OqOHm/4Vqx4AuAKuwtg/+NizJlrTohEJl+nC8fES+9I4OJeOhqJvr7z5R1D/3O/uxXi/YsOjCP72RQO359/w/0jQjVnEG72AohdgKOzZuWPZfFTOvxMBbofw9bfCuWSU2Vvq30dgfomtY8+bDngYJk+iHsCOpfMYCv+CAdU7CM9dBoeHGM2VVidOQsJpWXkJZ+2bppVy9UWQxgjm9AKyPyM/X8ow8rm49WdImV5EINGp4xG75up0cMF1ORVG7luO4KNbEdjxCqzj7wPyY5GzRuxjdbBvmZEdyxc8UlYHcxhqpQZ4nDUzkMVS8xCkmk9An9PXHIrQr28GUoleuR3MQUsseeaRuURDGDJKvSHX4u28Hc12rKUcqFxpKfW6RIGeXqBc51zSefELMJnPfRos6WBlSayTOKAs51v6SfFSVKnbSk+3Z1CUpGtzt9Qdyc7dLSIuPJOtQ5OMATRfSfnJuLsndcbGV2pbPNN8TCRxuxgf2iQ/l0X+7+kUhdpaVVs3lRpgyyguFyiZE/xQsuJ0Dt+9tNUWMj8lybzMxaUBycmZZGit+X8Avafw1L85XHPZDWTedTnoKQBhu5yTogtdFjItSdQzM5kXOq4tkE44XFt/B9/XpcN6Yt0kT8czyF0rn+QlpwYkEXpSknRyzsknY9y8SdN5BSDEaBMe4IFpTpJwT3hS3R+k2s/j0/uyI8FEzi2QzqQhRGmmw8q6ziRppsHNzce88OBLAELI5N/znxHKmvH45NblyxBP58HXFkh24DawmES9iU/egZVf4cHm3oTx9j05XxqQpEZNcOLuxNqchJXLk3NbXSjzMveCBCAdOFBMAgrWtsh7ORSTBO2RCe5nbgVtgXSC3AaSWf4b3ih1a3I1XZ0r+Tl9jn7qRQtAiFMIFW0tjU93V5I1tTGV9OyHWS+cgrdAOhFOwK6qwWQ+t6fDz0xdLUpmfHdlvC5pQHLgRMb5xnjeMS9Z49mnFK4OmDQ8k4kml69UWEnJid9DSjtzlc2dJGGufpZ8sJH+8T5iqxL9abco8NtojEsSpv8Ps5SZXXnFueYAAAAASUVORK5CYII="},E={Default:{fov:60,near:1,far:300},Near:{fov:60,near:1,far:200},Overhead:{fov:60,near:1,far:100},Map:{fov:70,near:1,far:4e3}};function P(q){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},P(q)}function k(q,e){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];this.viewType=q,e&&this.viewLocalStorage.set(q)}},{key:"setView",value:function(){var q;if(this.adc){var e=null===(q=this.adc)||void 0===q?void 0:q.adc;this.camera.fov=E[this.viewType].fov,this.camera.near=E[this.viewType].near,this.camera.far=E[this.viewType].far;var t=(null==e?void 0:e.position)||{},n=t.x,o=void 0===n?0:n,r=t.y,i=void 0===r?0:r,a=t.z,s=void 0===a?0:a,u=(null==e?void 0:e.rotation.y)||0,m=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.cos(u)*Math.cos(this.viewAngle),h=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(u)*Math.cos(this.viewAngle),f=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")]*Math.sin(this.viewAngle);switch(this.viewType){case"Default":case"Near":this.camera.position.set(o-m,i-h,s+f),this.camera.up.set(0,0,1),this.camera.lookAt(o+m,i+h,0),this.controls.enabled=!1;break;case"Overhead":this.camera.position.set(o,i,s+f),this.camera.up.set(0,1,0),this.camera.lookAt(o,i+h/8,s),this.controls.enabled=!1;break;case"Map":this.controls.enabled||(this.camera.position.set(o,i,s+this.mapViewDistance),this.camera.up.set(0,0,1),this.camera.lookAt(o,i,0),this.controls.enabled=!0,this.controls.enabledRotate=!0,this.controls.zoom0=this.camera.zoom,this.controls.target0=new l.Vector3(o,i,0),this.controls.position0=this.camera.position.clone(),this.controls.reset())}this.camera.updateProjectionMatrix()}}},{key:"updateViewDistance",value:function(q){"Map"===this.viewType&&(this.controls.enabled=!1);var e=E[this.viewType].near,t=E[this.viewType].far,n=this["".concat((0,c.lowerFirst)(this.viewType),"ViewDistance")],l=Math.min(t,n+q);l=Math.max(e,n+q),this["set".concat(this.viewType,"ViewDistance")](l),this.setView()}},{key:"changeViewType",value:function(q){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setViewType(q,e),this.setView()}}],e&&k(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),j=t(90947);function I(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.dashSize,a=void 0===i?4:i,s=e.gapSize,c=void 0===s?2:s,u=e.zOffset,m=void 0===u?0:u,h=e.opacity,f=void 0===h?1:h,p=e.matrixAutoUpdate,d=void 0===p||p,y=(new l.BufferGeometry).setFromPoints(q),v=new l.LineDashedMaterial({color:n,dashSize:a,linewidth:r,gapSize:c,transparent:!0,opacity:f});v.depthTest=!0,v.transparent=!0,v.side=l.DoubleSide;var x=new l.Line(y,v);return x.computeLineDistances(),x.position.z=m,x.matrixAutoUpdate=d,d||x.updateMatrix(),x}function L(q,e){var t=e.color,n=void 0===t?16711680:t,o=e.linewidth,r=void 0===o?1:o,i=e.zOffset,a=void 0===i?0:i,s=e.opacity,c=void 0===s?1:s,u=e.matrixAutoUpdate,m=void 0===u||u,h=(new l.BufferGeometry).setFromPoints(q),f=new l.LineBasicMaterial({color:n,linewidth:r,transparent:!0,opacity:c}),p=new l.Line(h,f);return p.position.z=a,p.matrixAutoUpdate=m,!1===m&&p.updateMatrix(),p}var D=function(q,e){return q.x===e.x&&q.y===e.y&&q.z===e.z},B=function(q){var e,t;null==q||null===(e=q.geometry)||void 0===e||e.dispose(),null==q||null===(t=q.material)||void 0===t||t.dispose()},N=function(q){q.traverse(function(q){B(q)})},R=function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,n=new l.CircleGeometry(q,t);return new l.Mesh(n,e)},z=function(q,e,t){var n=new l.TextureLoader,o=new l.MeshBasicMaterial({map:n.load(q),transparent:!0,depthWrite:!1,side:l.DoubleSide});return new l.Mesh(new l.PlaneGeometry(e,t),o)},U=function(q,e){var t=e.color,n=void 0===t?16777215:t,o=e.opacity,r=void 0===o?1:o,i=e.lineWidth,a=void 0===i?.5:i;if(!q||0===q.length)return null;var s=(new l.BufferGeometry).setFromPoints(q),c=new j.wU;c.setGeometry(s);var u=new j.Xu({color:n,lineWidth:a,opacity:r});return u.depthTest=!0,u.transparent=!0,u.side=l.DoubleSide,new l.Mesh(c.geometry,u)},G=function(q,e){var t=new l.Shape;t.setFromPoints(q);var n=new l.ShapeGeometry(t),o=new l.MeshBasicMaterial({color:e});return new l.Mesh(n,o)};function F(q){for(var e=0;e-1,b=p.indexOf("YELLOW")>-1,g=A?i:b?o:t,w=A?a:b?r:n;q.rightBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(g.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),w.push(y,v,x,y,v,x))})});var O=q.leftBoundary.boundaryType[0].types[0],_=e.getLaneLineColor(O),S=_.r,M=_.g,E=_.b,P=O.indexOf("SOLID")>-1,k=P?i:b?o:t,C=P?a:b?r:n;q.leftBoundary.curve.segment.forEach(function(q){var t=e.coordinates.applyOffsetToArray(q.lineSegment.point);t.forEach(function(q,e){e!==t.length-1&&(k.push(new l.Vector3(q.x,q.y,q.z),new l.Vector3(t[e+1].x,t[e+1].y,t[e+1].z)),C.push(S,M,E,S,M,E))})})}),this.laneSolidLine=this.updateLaneLineGeometry(this.laneSolidGeometry,this.laneSolidMaterial,this.laneSolidLine,i,a),this.laneYellowDashedLine=this.updateLaneLineGeometry(this.laneYellowDashedGeometry,this.laneYellowDashMaterial,this.laneYellowDashedLine,o,r),this.laneWhiteDashedLine=this.updateLaneLineGeometry(this.laneWhiteDashedGeometry,this.laneWhiteDashMaterial,this.laneWhiteDashedLine,t,n),this.width=this.xmax-this.xmin,this.height=this.ymax-this.ymin,this.center=new l.Vector3((this.xmax+this.xmin)/2,(this.ymax+this.ymin)/2,0)}}},{key:"drawLaneId",value:function(q){var e,t,n=q.id.id;if(!this.laneIdMeshMap[n]){var l=q.centralCurve.segment,o=this.coordinates.applyOffset(null==l||null===(e=l[0])||void 0===e?void 0:e.startPosition);o&&(o.z=.04);var r=null==l||null===(t=l[0].lineSegment)||void 0===t?void 0:t.point,i=0;if(r&&r.length>=2){var a=r[0],s=r[1];i=Math.atan2(s.y-a.y,s.x-a.x)}var c=this.text.drawText(n,this.colors.WHITE,o);c&&(c.rotation.z=i,this.laneIdMeshMap[n]=c,this.scene.add(c))}}},{key:"initLineGeometry",value:function(){this.laneYellowDashedGeometry=new l.BufferGeometry,this.laneYellowDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneYellowDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry=new l.BufferGeometry,this.laneWhiteDashedGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneWhiteDashedGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry=new l.BufferGeometry,this.laneSolidGeometry.setAttribute("position",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3)),this.laneSolidGeometry.setAttribute("color",new l.BufferAttribute(new Float32Array(3*this.MAX_POINTS),3))}},{key:"initLineMaterial",value:function(){this.laneSolidMaterial=new l.LineBasicMaterial({transparent:!0,vertexColors:!0}),this.laneWhiteDashMaterial=new l.LineDashedMaterial({dashSize:.5,gapSize:.25,transparent:!0,opacity:.4,vertexColors:!0}),this.laneYellowDashMaterial=new l.LineDashedMaterial({dashSize:3,gapSize:3,transparent:!0,opacity:1,vertexColors:!0})}},{key:"updateLaneLineGeometry",value:function(q,e,t,n,o){if(!n.length||!o.length)return null;n.length>this.MAX_POINTS&&(this.dispose(),this.MAX_POINTS=n.length,this.initLineGeometry(),this.initLineMaterial());var r=q.attributes.position,i=q.attributes.color;if(n.forEach(function(q,e){r.setXYZ(e,n[e].x,n[e].y,n[e].z),i.setXYZ(e,o[3*e],o[3*e+1],o[3*e+2])}),q.setDrawRange(0,n.length),q.getAttribute("color").needsUpdate=!0,q.getAttribute("position").needsUpdate=!0,!t){var a=new l.LineSegments(q,e);t=a,this.scene.add(a)}return t.computeLineDistances(),t.position.z=v,t}},{key:"dispose",value:function(){this.xmax=-1/0,this.xmin=1/0,this.ymax=-1/0,this.ymin=1/0,this.width=0,this.height=0,this.center=new l.Vector3(0,0,0),this.disposeLaneIds(),this.disposeLanes()}},{key:"disposeLanes",value:function(){this.currentLaneIds=[],B(this.laneSolidLine),B(this.laneWhiteDashedLine),B(this.laneYellowDashedLine),this.laneSolidLine=null,this.laneWhiteDashedLine=null,this.laneYellowDashedLine=null}},{key:"disposeLaneIds",value:function(){var q,e=this;this.currentLaneIds=[],null===(q=this.text)||void 0===q||q.reset(),Object.keys(this.laneIdMeshMap).forEach(function(q){var t=e.laneIdMeshMap[q];e.scene.remove(t)}),this.laneIdMeshMap={}}}])&&Q(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),W=function(q,e){var t=e.color,n=void 0===t?y.WHITE:t,l=e.linewidth,o=void 0===l?1:l,r=e.zOffset,i=void 0===r?0:r,a=e.opacity,s=void 0===a?1:a,c=e.matrixAutoUpdate,u=void 0===c||c;if(q.length<3)throw new Error("there are less than 3 points, the polygon cannot be drawn");var m=q.length;return D(q[0],q[m-1])||q.push(q[0]),L(q,{color:n,linewidth:o,zOffset:i,opacity:s,matrixAutoUpdate:u})};function X(q){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},X(q)}function J(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=2){var n=t.length,l=Math.atan2(t[n-1].y-t[0].y,t[n-1].x-t[0].x);return 1.5*Math.PI+l}return NaN},Tq=function(q){var e,t=[];if(q.position&&q.heading)return{position:q.position,heading:q.heading};if(!q.subsignal||0===q.subsignal.length)return{};if(q.subsignal.forEach(function(q){q.location&&t.push(q.location)}),0===t.length){var n;if(null===(n=q.boundary)||void 0===n||null===(n=n.point)||void 0===n||!n.length)return console.warn("unable to determine signal location,skip."),{};console.warn("subsignal locations not found,use signal bounday instead."),t.push.apply(t,function(q){if(Array.isArray(q))return kq(q)}(e=q.boundary.point)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(e)||function(q,e){if(q){if("string"==typeof q)return kq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?kq(q,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var o=function(q){var e,t=q.boundary.point;if(t.length<3)return console.warn("cannot get three points from boundary,signal_id:".concat(q.id.id)),q.stopLine[0]?Cq(q.stopLine[0]):NaN;var n=t[0],l=t[1],o=t[2],r=(l.x-n.x)*(o.z-n.z)-(o.x-n.x)*(l.z-n.z),i=(l.y-n.y)*(o.z-n.z)-(o.y-n.y)*(l.z-n.z),a=-r*n.x-i*n.y,s=null===(e=q.stopLine[0])||void 0===e||null===(e=e.segment[0])||void 0===e||null===(e=e.lineSegment)||void 0===e?void 0:e.point,c=s.length;if(c<2)return console.warn("Cannot get any stop line, signal_id: ".concat(q.id.id)),NaN;var u=s[c-1].y-s[0].y,m=s[0].x-s[c-1].x,h=-u*s[0].x-m*s[0].y;if(Math.abs(u*i-r*m)<1e-9)return console.warn("The signal orthogonal direction is parallel to the stop line,","signal_id: ".concat(q.id.id)),Cq(q.stopLine[0]);var f=(m*a-i*h)/(u*i-r*m),p=0!==m?(-u*f-h)/m:(-r*f-a)/i,d=Math.atan2(-r,i);return(d<0&&p>n.y||d>0&&pq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Fq(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Fq(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Fq(u,"constructor",s),Fq(s,"constructor",a),a.displayName="GeneratorFunction",Fq(s,l,"GeneratorFunction"),Fq(u),Fq(u,l,"Generator"),Fq(u,n,function(){return this}),Fq(u,"toString",function(){return"[object Generator]"}),(Gq=function(){return{w:o,m}})()}function Fq(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Fq=function(q,e,t,n){function o(e,t){Fq(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Fq(q,e,t,n)}function Vq(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||Qq(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qq(q,e){if(q){if("string"==typeof q)return Hq(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Hq(q,e):void 0}}function Hq(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t=3){var l=n[0],o=n[1],r=n[2],i={x:(l.x+r.x)/2,y:(l.y+r.y)/2,z:.04},a=Math.atan2(o.y-l.y,o.x-l.x),s=this.text.drawText(t,this.colors.WHITE,i);s.rotation.z=a,this.ids[t]=s,this.scene.add(s)}}}},{key:"dispose",value:function(){this.disposeParkingSpaceIds(),this.disposeParkingSpaces()}},{key:"disposeParkingSpaces",value:function(){var q=this;Object.values(this.meshs).forEach(function(e){B(e),q.scene.remove(e)}),this.meshs={}}},{key:"disposeParkingSpaceIds",value:function(){var q=this;Object.values(this.ids).forEach(function(e){B(e),q.scene.remove(e)}),this.ids={},this.currentIds=[]}},{key:"removeOldGroups",value:function(){var q=this,e=c.without.apply(void 0,[Object.keys(this.meshs)].concat(function(q){return function(q){if(Array.isArray(q))return he(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return he(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.currentIds)));e&&e.length&&e.forEach(function(e){var t=q.meshs[e];B(t),q.scene.remove(t),delete q.meshs[e];var n=q.ids[e];B(n),q.scene.remove(n),delete q.ids[e]})}}])&&fe(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function ye(q){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},ye(q)}function ve(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);tq.length)&&(e=q.length);for(var t=0,n=Array(e);t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Me(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Me(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Me(u,"constructor",s),Me(s,"constructor",a),a.displayName="GeneratorFunction",Me(s,l,"GeneratorFunction"),Me(u),Me(u,l,"Generator"),Me(u,n,function(){return this}),Me(u,"toString",function(){return"[object Generator]"}),(Se=function(){return{w:o,m}})()}function Me(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Me=function(q,e,t,n){function o(e,t){Me(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Me(q,e,t,n)}function Ee(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Pe(q,e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1];if(t&&this.dispose(),Object.keys(q).forEach(function(n){var l=q[n],o=e.option.layerOption.Map,r=o.crosswalk,i=o.clearArea,a=o.junction,s=o.pncJunction,c=o.lane,u=o.road,m=o.signal,h=o.stopSign,f=o.yieldSign,p=o.speedBump,d=o.parkingSpace,y=o.area,v=o.barrierGate;switch(t||(q.lane&&c||e.lane.dispose(),q.junction&&a||e.junction.dispose(),q.crosswalk&&r||e.crosswalk.dispose(),q.clearArea&&i||e.clearArea.dispose(),q.pncJunction&&s||e.pncJunction.dispose(),q.road&&u||e.road.dispose(),q.stopSign&&h||e.stopSign.dispose(),q.signal&&m||e.trafficSignal.dispose(),q.speedBump&&p||e.speedBump.dispose(),q.parkingSpace&&d||e.parkingSpace.dispose(),q.adArea&&y||e.area.dispose(),q.barrierGate&&v||e.barrierGate.dispose()),n){case"lane":c&&e.lane.drawLanes(l);break;case"junction":a&&e.junction.drawJunctions(l);break;case"crosswalk":r&&e.crosswalk.drawCrosswalk(l);break;case"clearArea":i&&e.clearArea.drawClearAreas(l);break;case"pncJunction":s&&e.pncJunction.drawPncJunctions(l);break;case"road":u&&e.road.drawRoads(l);break;case"yield":f&&e.yieldSignal.drawYieldSigns(l);break;case"signal":m&&e.trafficSignal.drawTrafficSignals(l);break;case"stopSign":h&&e.stopSign.drawStopSigns(l);break;case"speedBump":p&&e.speedBump.drawSpeedBumps(l);break;case"parkingSpace":d&&e.parkingSpace.drawParkingSpaces(l);break;case"adArea":y&&e.area.drawAreas(l);break;case"barrierGate":v&&e.barrierGate.drawBarrierGates(l)}}),0!==this.lane.currentLaneIds.length){var n=this.lane,l=n.width,o=n.height,r=n.center,i=Math.max(l,o),a={x:r.x,y:r.y,z:0};this.grid.drawGrid({size:i,divisions:i/5,colorCenterLine:this.colors.gridColor,colorGrid:this.colors.gridColor},a)}}},{key:"updateTrafficStatus",value:function(q){this.trafficSignal.updateTrafficStatus(q)}},{key:"dispose",value:function(){this.trafficSignal.dispose(),this.stopSign.dispose(),this.yieldSignal.dispose(),this.clearArea.dispose(),this.crosswalk.dispose(),this.lane.dispose(),this.junction.dispose(),this.pncJunction.dispose(),this.parkingSpace.dispose(),this.road.dispose(),this.speedBump.dispose(),this.grid.dispose(),this.area.dispose(),this.barrierGate.dispose()}}],e&&je(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const De=Le,Be=t.p+"5fbe9eaf9265cc5cbf665a59e3ca15b7.mtl",Ne=t.p+"0e93390ef55c539c9a069a917e8d9948.obj";function Re(q){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Re(q)}function ze(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Qe(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Qe(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Qe(u,"constructor",s),Qe(s,"constructor",a),a.displayName="GeneratorFunction",Qe(s,l,"GeneratorFunction"),Qe(u),Qe(u,l,"Generator"),Qe(u,n,function(){return this}),Qe(u,"toString",function(){return"[object Generator]"}),(Ve=function(){return{w:o,m}})()}function Qe(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Qe=function(q,e,t,n){function o(e,t){Qe(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Qe(q,e,t,n)}function He(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ye(q,e){for(var t=0;t0?e=this.pool.pop():(e=this.syncFactory(),null===(t=this.initialize)||void 0===t||t.call(this,e),e instanceof l.Object3D&&(e.userData.type=this.type)),this.pool.length+1>this.maxSize)throw new Error("".concat(this.type," Object pool reached its maximum size."));return null===(q=this.reset)||void 0===q||q.call(this,e),e}},{key:"acquireAsync",value:(t=Ve().m(function q(){var e,t,n;return Ve().w(function(q){for(;;)switch(q.n){case 0:if(this.asyncFactory){q.n=1;break}throw new Error("Async factory is not defined.");case 1:if(!(this.pool.length>0)){q.n=2;break}t=this.pool.pop(),q.n=4;break;case 2:return q.n=3,this.asyncFactory();case 3:t=q.v,null===(n=this.initialize)||void 0===n||n.call(this,t),t instanceof l.Object3D&&(t.userData.type=this.type);case 4:if(!(this.pool.length+1>this.maxSize)){q.n=5;break}throw new Error("Object pool reached its maximum size.");case 5:return null===(e=this.reset)||void 0===e||e.call(this,t),q.a(2,t)}},q,this)}),n=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){He(o,n,l,r,i,"next",q)}function i(q){He(o,n,l,r,i,"throw",q)}r(void 0)})},function(){return n.apply(this,arguments)})},{key:"release",value:function(q){var e;this.pool.lengthq.length)&&(e=q.length);for(var t=0,n=Array(e);t0){var f=new l.BoxGeometry(t,n,u<1?o*u:o),p=new l.MeshBasicMaterial({color:m}),d=new l.BoxHelper(new l.Mesh(f,p));d.material.color.set(m),d.position.z=u<1?(o||et)/2*u:(o||et)/2,e.add(d)}if(u<1){var y=function(q,e,t,n){var o=new l.BoxGeometry(q,e,t),r=new l.EdgesGeometry(o),i=new l.LineSegments(r,new l.LineDashedMaterial({color:n,dashSize:.1,gapSize:.1}));return i.computeLineDistances(),i}(t,n,o*(1-u),m);y.position.z=(o||et)/2*(1-u),e.add(y)}return e.position.set(h.x,h.y,0),e.rotation.set(0,0,s),e}},{key:"getTexts",value:function(q,e){var t=q.positionX,n=q.positionY,o=q.height,r=q.id,i=q.source,a=this.option.layerOption.Perception,s=a.obstacleDistanceAndSpeed,c=a.obstacleId,u=a.obstaclePriority,m=a.obstacleInteractiveTag,h=a.v2x,f="Overhead"===this.view.viewType||"Map"===this.view.viewType,p="v2x"===i,d=[],y=null!=e?e:{},v=y.positionX,x=y.positionY,A=y.heading,b=new l.Vector3(v,x,0),g=new l.Vector3(t,n,(o||et)/2),w=this.coordinates.applyOffset({x:t,y:n,z:o||et}),O=f?0:1*Math.cos(A),_=f?1:1*Math.sin(A),S=f?0:1,M=0;if(s){var E=b.distanceTo(g).toFixed(1),P=q.speed.toFixed(1),k={str:"(".concat(E,"m,").concat(P,"m/s)"),position:w};d.push(k),M+=1}if(c){var C={str:r,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(C),M+=1}if(u){var T,j=null===(T=q.obstaclePriority)||void 0===T?void 0:T.priority;if(j&&"NORMAL"!==j){var I={str:j,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(I)}M+=1}if(m){var L,D=null===(L=q.interactiveTag)||void 0===L?void 0:L.interactiveTag;if(D&&"NONINTERACTION"!==D){var B={str:D,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(B)}M+=1}if(p&&h){var N,R=null===(N=q.v2xInfo)||void 0===N?void 0:N.v2xType;R&&(R.forEach(function(q){var e={str:q,position:{x:w.x+M*O,y:w.y+M*_,z:w.z+M*S}};d.push(e)}),M+=1)}return d}},{key:"generateTextCanvas",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",t=0,n=[],o=0,r=0,i=document.createElement("canvas");i.style.background="rgba(255, 0, 0, 1)";var a=i.getContext("2d");a.font="".concat(24,"px sans-serif");for(var s=0;s":{"x_min":35.953125,"x_max":594.796875,"ha":631,"o":"m 594 430 q 589 410 592 421 q 582 388 586 399 q 575 366 579 377 q 569 347 571 355 l 57 163 l 35 185 q 41 204 37 192 q 47 229 44 216 q 55 254 51 242 q 61 272 59 266 l 417 401 l 52 532 l 35 562 q 70 593 50 575 q 107 624 89 611 l 573 457 l 594 430 "},"Ệ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 456 -184 q 448 -230 456 -209 q 425 -268 439 -252 q 391 -294 411 -285 q 350 -304 372 -304 q 290 -283 311 -304 q 269 -221 269 -262 q 278 -174 269 -196 q 302 -136 287 -152 q 336 -111 316 -120 q 376 -102 355 -102 q 435 -122 414 -102 q 456 -184 456 -143 m 592 962 q 574 938 584 949 q 553 922 564 927 l 362 1032 l 173 922 q 152 938 162 927 q 132 962 142 949 l 322 1183 l 404 1183 l 592 962 "},"Ḃ":{"x_min":20.265625,"x_max":766,"ha":835,"o":"m 766 241 q 741 136 766 183 q 672 57 717 90 q 562 7 626 25 q 415 -10 497 -10 q 378 -9 400 -10 q 330 -8 356 -9 q 275 -7 303 -7 q 219 -5 246 -6 q 83 0 155 -2 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 790 q 72 784 96 787 q 29 777 48 780 l 20 834 q 92 848 50 841 q 179 861 133 856 q 271 871 225 867 q 358 875 318 875 q 498 862 437 875 q 602 826 559 849 q 668 768 645 802 q 691 691 691 734 q 651 566 691 618 q 536 490 612 514 q 629 459 586 482 q 701 404 671 437 q 749 329 732 371 q 766 241 766 288 m 383 433 q 331 430 352 433 q 292 424 311 427 l 292 86 q 295 77 292 81 q 339 66 315 69 q 390 63 363 63 q 538 107 488 63 q 588 228 588 151 q 578 302 588 265 q 544 367 568 338 q 481 415 520 397 q 383 433 442 433 m 316 803 l 304 803 q 292 802 298 803 l 292 502 l 304 502 q 414 515 372 502 q 479 551 455 529 q 510 601 502 573 q 519 658 519 629 q 509 719 519 692 q 475 764 499 746 q 412 793 451 783 q 316 803 373 803 m 485 1050 q 477 1003 485 1024 q 454 965 468 981 q 421 939 440 949 q 379 930 401 930 q 319 951 340 930 q 298 1012 298 972 q 307 1059 298 1037 q 331 1097 316 1081 q 365 1122 345 1113 q 405 1132 384 1132 q 464 1111 443 1132 q 485 1050 485 1091 "},"Ŵ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 823 962 q 805 938 815 949 q 784 922 795 927 l 593 1032 l 404 922 q 382 938 392 927 q 363 962 373 949 l 552 1183 l 635 1183 l 823 962 "},"Ð":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"r":{"x_min":32.5625,"x_max":597.515625,"ha":617,"o":"m 593 621 q 597 604 597 618 q 594 568 597 589 q 585 521 591 547 q 574 471 580 496 q 561 426 568 447 q 549 393 554 405 l 499 393 q 491 444 497 420 q 476 487 485 469 q 454 515 467 504 q 424 526 440 526 q 395 520 411 526 q 361 501 379 515 q 324 459 343 486 q 284 387 305 432 l 284 90 q 313 69 284 80 q 404 49 341 59 l 404 0 l 32 0 l 32 49 q 122 90 122 69 l 122 450 q 120 487 122 472 q 117 512 119 503 q 112 527 115 522 q 106 536 109 533 q 96 544 101 541 q 83 549 91 547 q 63 552 75 551 q 32 554 51 553 l 32 602 q 97 612 69 607 q 148 622 124 617 q 194 634 172 627 q 246 651 217 641 l 274 622 l 283 524 q 324 573 301 550 q 374 614 347 596 q 428 641 400 631 q 486 651 457 651 q 540 643 512 651 q 593 621 568 635 "},"Ø":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 "},"ǐ":{"x_min":-19,"x_max":445.59375,"ha":417,"o":"m 43 0 l 43 49 q 110 70 88 59 q 132 90 132 81 l 132 439 q 131 495 132 474 q 122 528 130 516 q 96 545 115 540 q 43 554 78 551 l 43 602 q 153 622 101 610 q 251 651 205 634 l 295 651 l 295 90 q 315 70 295 82 q 385 49 335 59 l 385 0 l 43 0 m 257 722 l 164 722 l -19 979 q -1 1007 -10 993 q 20 1026 8 1020 l 211 878 l 400 1026 q 423 1007 411 1020 q 445 979 436 993 l 257 722 "},"Ỳ":{"x_min":-0.46875,"x_max":828.078125,"ha":851,"o":"m 233 0 l 233 49 q 284 62 264 55 q 317 75 305 69 q 334 87 329 81 q 340 98 340 93 l 340 358 q 285 470 315 412 q 223 581 254 527 q 162 681 192 635 q 108 759 132 727 q 95 773 102 766 q 77 783 89 779 q 48 789 66 787 q 2 792 30 792 l 0 841 q 44 848 19 844 q 95 854 70 851 q 142 858 120 856 q 178 861 164 861 q 216 852 197 861 q 247 829 235 844 q 299 752 272 795 q 355 660 327 709 q 410 560 383 611 q 461 460 437 509 l 619 760 q 613 788 630 778 q 544 805 596 798 l 544 855 l 828 855 l 828 805 q 759 787 781 796 q 727 760 737 777 l 510 354 l 510 98 q 514 88 510 94 q 531 76 519 82 q 564 62 543 69 q 617 49 585 55 l 617 0 l 233 0 m 555 962 q 536 938 545 949 q 514 922 526 927 l 189 1080 l 196 1123 q 216 1139 201 1128 q 249 1162 231 1150 q 284 1183 267 1173 q 307 1198 300 1193 l 555 962 "},"Ẽ":{"x_min":29.15625,"x_max":697.890625,"ha":730,"o":"m 697 205 q 691 144 695 176 q 684 83 688 112 q 676 32 680 54 q 670 0 672 10 l 29 0 l 29 49 q 98 70 75 59 q 122 90 122 81 l 122 763 q 100 783 122 771 q 29 805 78 795 l 29 855 l 626 855 l 653 833 q 649 788 652 815 q 642 734 647 762 q 634 681 638 706 q 626 644 630 656 l 575 644 q 558 740 571 707 q 519 774 544 774 l 291 774 l 291 499 l 561 499 l 583 475 q 570 453 578 465 q 554 428 562 440 q 537 405 545 416 q 521 389 529 395 q 499 406 511 399 q 472 418 487 413 q 436 424 457 422 q 387 427 415 427 l 291 427 l 291 124 q 296 106 291 114 q 316 92 301 98 q 358 84 330 87 q 430 81 385 81 l 497 81 q 550 88 528 81 q 589 112 572 95 q 620 156 606 129 q 648 223 634 183 l 697 205 m 630 1123 q 600 1063 618 1096 q 560 1001 583 1030 q 511 954 538 973 q 452 935 483 935 q 396 946 423 935 q 345 970 370 957 q 295 994 320 983 q 244 1005 270 1005 q 217 1000 229 1005 q 193 985 204 994 q 171 961 182 975 q 147 928 160 946 l 96 946 q 126 1007 109 974 q 166 1069 143 1040 q 215 1117 188 1098 q 274 1137 242 1137 q 333 1126 305 1137 q 386 1102 361 1115 q 435 1078 412 1089 q 480 1067 458 1067 q 533 1085 510 1067 q 578 1144 555 1104 l 630 1123 "},"÷":{"x_min":35.953125,"x_max":549.359375,"ha":585,"o":"m 365 220 q 358 183 365 200 q 341 152 352 165 q 315 131 330 139 q 283 124 300 124 q 238 141 252 124 q 225 192 225 159 q 231 229 225 211 q 249 259 237 246 q 274 279 260 272 q 306 287 289 287 q 365 220 365 287 m 365 573 q 358 536 365 553 q 341 505 352 519 q 315 484 330 492 q 283 477 300 477 q 238 494 252 477 q 225 544 225 512 q 231 581 225 564 q 249 612 237 599 q 274 632 260 625 q 306 640 289 640 q 365 573 365 640 m 549 408 q 543 391 547 401 q 534 369 539 380 q 525 348 529 358 q 518 333 520 338 l 57 333 l 35 354 q 41 371 37 361 q 50 392 45 381 q 59 413 54 403 q 67 430 63 423 l 526 430 l 549 408 "},"h":{"x_min":33,"x_max":792.21875,"ha":807,"o":"m 449 0 l 449 49 q 518 71 498 62 q 539 90 539 81 l 539 388 q 534 457 539 430 q 521 499 530 483 q 497 521 511 515 q 462 528 482 528 q 381 503 423 528 q 285 433 339 479 l 285 90 q 308 69 285 80 q 375 49 331 59 l 375 0 l 33 0 l 33 49 q 99 70 77 61 q 122 90 122 79 l 122 859 q 120 904 122 888 q 110 928 118 920 q 83 941 101 937 q 33 949 65 945 l 33 996 q 101 1007 70 1002 q 156 1019 131 1013 q 206 1033 182 1025 q 255 1051 230 1040 l 285 1023 l 285 530 q 431 622 363 594 q 552 651 499 651 q 608 641 581 651 q 656 612 635 632 q 689 558 676 591 q 702 477 702 524 l 702 90 q 706 81 702 86 q 720 72 710 77 q 748 62 730 67 q 792 49 765 56 l 792 0 l 449 0 "},"ṃ":{"x_min":32.484375,"x_max":1157.625,"ha":1172,"o":"m 820 0 l 820 49 q 860 61 844 55 q 884 72 875 67 q 895 81 892 77 q 899 90 899 86 l 899 408 q 894 475 899 449 q 881 512 890 500 q 859 529 873 525 q 827 534 846 534 q 758 512 798 534 q 674 449 718 491 l 674 90 q 677 81 674 86 q 689 72 680 77 q 716 62 699 67 q 759 49 733 56 l 759 0 l 431 0 l 431 49 q 471 61 456 55 q 495 72 487 67 q 507 81 504 77 q 511 90 511 86 l 511 408 q 507 475 511 449 q 496 512 504 500 q 476 529 488 525 q 444 534 463 534 q 374 513 413 534 q 285 449 335 493 l 285 90 q 305 69 285 80 q 369 49 325 58 l 369 0 l 32 0 l 32 49 q 99 70 77 61 q 122 90 122 79 l 122 467 q 120 509 122 494 q 110 534 118 525 q 83 546 101 542 q 32 554 65 550 l 32 602 q 96 610 67 606 q 150 621 124 615 q 198 635 175 627 q 246 651 221 642 l 274 622 l 282 538 q 352 593 320 571 q 413 628 384 615 q 467 645 441 640 q 517 651 493 651 q 575 642 550 651 q 618 620 600 634 q 646 588 635 606 q 661 547 657 569 l 663 538 q 734 593 701 571 q 795 627 766 614 q 850 645 824 640 q 901 651 876 651 q 962 641 933 651 q 1014 612 992 632 q 1049 558 1036 591 q 1062 477 1062 524 l 1062 90 q 1083 72 1062 81 q 1157 49 1104 63 l 1157 0 l 820 0 m 687 -184 q 678 -230 687 -209 q 656 -268 670 -252 q 622 -294 641 -285 q 581 -304 603 -304 q 521 -283 541 -304 q 500 -221 500 -262 q 509 -174 500 -196 q 532 -136 518 -152 q 566 -111 547 -120 q 607 -102 586 -102 q 666 -122 645 -102 q 687 -184 687 -143 "},"f":{"x_min":25.296875,"x_max":604.046875,"ha":472,"o":"m 604 985 q 597 968 604 978 q 580 945 591 957 q 557 921 570 933 q 532 899 545 909 q 509 881 520 889 q 492 870 498 873 q 429 928 459 910 q 376 946 398 946 q 343 935 359 946 q 315 895 327 924 q 295 817 302 867 q 288 689 288 767 l 288 631 l 456 631 l 481 606 q 466 582 475 594 q 448 557 457 569 q 430 536 439 546 q 415 522 421 527 q 371 538 399 530 q 288 546 342 546 l 288 89 q 294 81 288 85 q 316 72 300 77 q 358 62 332 68 q 425 49 384 56 l 425 0 l 35 0 l 35 49 q 103 69 82 57 q 125 89 125 81 l 125 546 l 44 546 l 25 570 l 78 631 l 125 631 l 125 652 q 132 752 125 707 q 155 835 140 798 q 191 902 169 872 q 239 958 212 932 q 291 999 264 982 q 344 1028 318 1017 q 395 1045 370 1040 q 440 1051 420 1051 q 500 1042 471 1051 q 552 1024 530 1034 q 589 1002 575 1013 q 604 985 604 992 "},"“":{"x_min":52,"x_max":636.828125,"ha":686,"o":"m 310 651 q 293 638 306 645 q 260 622 279 630 q 220 606 242 614 q 179 592 199 598 q 144 582 160 586 q 120 580 128 579 q 68 639 85 605 q 52 717 52 672 q 65 792 52 754 q 100 866 78 831 q 153 931 123 901 q 215 983 183 961 l 259 949 q 218 874 234 916 q 203 788 203 833 q 228 727 203 751 q 300 702 253 703 l 310 651 m 636 651 q 619 638 632 645 q 586 622 605 630 q 546 606 568 614 q 505 592 525 598 q 470 582 486 586 q 446 580 454 579 q 394 639 411 605 q 378 717 378 672 q 391 792 378 754 q 426 866 404 831 q 479 931 449 901 q 541 983 508 961 l 585 949 q 544 874 560 916 q 529 788 529 833 q 553 727 529 751 q 625 702 578 703 l 636 651 "},"Ǘ":{"x_min":29.078125,"x_max":889.59375,"ha":928,"o":"m 889 805 q 819 784 843 795 q 796 763 796 772 l 796 355 q 771 197 796 266 q 701 79 746 127 q 595 5 657 30 q 461 -20 534 -20 q 329 0 391 -20 q 221 58 268 18 q 148 158 175 98 q 122 301 122 218 l 122 763 q 99 783 122 771 q 29 805 77 795 l 29 855 l 385 855 l 385 805 q 315 784 339 795 q 292 763 292 772 l 292 345 q 303 230 292 280 q 339 146 314 180 q 405 95 364 112 q 503 78 445 78 q 584 99 551 78 q 638 157 617 121 q 667 240 658 193 q 677 337 677 287 l 677 763 q 654 783 677 771 q 584 805 632 795 l 584 855 l 889 855 l 889 805 m 705 1050 q 697 1003 705 1024 q 673 965 688 981 q 639 939 659 949 q 598 930 620 930 q 539 951 559 930 q 518 1012 518 972 q 527 1059 518 1037 q 550 1097 536 1081 q 584 1122 565 1113 q 624 1132 603 1132 q 684 1111 662 1132 q 705 1050 705 1091 m 419 1050 q 411 1003 419 1024 q 388 965 402 981 q 354 939 374 949 q 313 930 335 930 q 253 951 274 930 q 232 1012 232 972 q 241 1059 232 1037 q 264 1097 250 1081 q 298 1122 279 1113 q 338 1132 318 1132 q 398 1111 377 1132 q 419 1050 419 1091 m 379 1144 q 355 1163 368 1149 q 333 1189 343 1177 l 581 1420 q 615 1401 596 1412 q 652 1379 634 1389 q 682 1359 669 1368 q 701 1344 696 1349 l 708 1309 l 379 1144 "},"̇":{"x_min":-443,"x_max":-256,"ha":0,"o":"m -256 859 q -264 813 -256 834 q -287 775 -273 791 q -320 749 -301 758 q -362 740 -340 740 q -422 761 -401 740 q -443 822 -443 782 q -434 869 -443 847 q -410 907 -425 891 q -376 932 -396 923 q -336 942 -357 942 q -277 921 -298 942 q -256 859 -256 901 "},"A":{"x_min":0,"x_max":858.625,"ha":873,"o":"m 506 373 l 394 688 l 293 373 l 506 373 m 265 292 l 200 95 q 217 65 193 74 q 296 49 240 55 l 296 0 l 0 0 l 0 49 q 70 66 46 57 q 102 95 95 75 l 339 818 q 374 843 355 831 q 412 864 392 855 q 452 880 432 873 q 489 893 472 887 l 774 95 q 783 78 777 86 q 798 65 788 71 q 822 56 807 60 q 858 49 836 52 l 858 0 l 521 0 l 521 49 q 593 63 574 52 q 604 95 611 73 l 535 292 l 265 292 "},"Ɓ":{"x_min":16,"x_max":957,"ha":1027,"o":"m 663 765 q 639 781 653 774 q 606 792 626 788 q 556 799 586 797 q 484 803 526 802 l 484 502 l 496 502 q 607 515 565 502 q 672 551 649 529 q 702 601 695 573 q 710 658 710 629 q 698 718 710 691 q 663 765 687 744 m 575 430 q 527 427 549 430 q 484 421 504 424 l 484 90 q 489 80 484 87 q 581 63 528 63 q 729 107 679 63 q 780 228 780 151 q 770 302 780 265 q 736 366 760 338 q 673 412 712 395 q 575 430 634 430 m 16 659 q 44 749 16 709 q 131 817 72 789 q 280 860 190 845 q 496 875 371 875 q 601 871 554 875 q 687 861 649 868 q 756 843 726 854 q 810 816 786 832 q 861 763 841 795 q 882 691 882 730 q 843 568 882 618 q 727 490 805 517 q 821 457 779 480 q 893 402 864 435 q 940 329 923 370 q 957 241 957 288 q 933 137 957 183 q 864 57 909 90 q 753 7 818 25 q 606 -10 688 -10 q 568 -9 591 -10 q 519 -8 545 -9 q 463 -7 493 -7 q 406 -5 434 -6 q 265 0 339 -2 l 220 0 l 220 49 q 290 70 266 59 q 314 90 314 81 l 314 790 q 221 753 255 778 q 188 687 188 728 q 203 634 188 658 q 239 600 218 609 q 217 585 237 596 q 171 563 197 575 q 118 542 144 552 q 78 529 92 532 q 54 547 66 535 q 34 577 43 560 q 21 616 26 595 q 16 659 16 637 "},"Ṩ":{"x_min":69.75,"x_max":656,"ha":712,"o":"m 656 255 q 646 193 656 225 q 619 130 637 161 q 573 72 601 100 q 508 24 545 45 q 423 -7 470 4 q 318 -20 376 -20 q 262 -15 294 -20 q 198 -2 231 -10 q 134 18 165 6 q 79 46 102 30 q 73 59 75 47 q 70 89 71 71 q 69 130 69 107 q 71 176 70 152 q 76 221 73 199 q 84 260 79 243 l 132 257 q 169 184 147 217 q 220 127 192 150 q 279 90 247 103 q 345 77 311 77 q 404 85 376 77 q 454 111 433 94 q 489 152 476 127 q 503 209 503 177 q 484 281 503 251 q 436 334 466 311 q 368 377 406 358 q 289 414 329 396 q 211 454 249 433 q 142 502 172 474 q 94 565 112 529 q 76 651 76 601 q 93 722 76 683 q 149 794 111 761 q 245 851 186 828 q 386 875 304 875 q 457 870 422 875 q 523 857 493 865 q 577 837 554 849 q 613 812 600 826 q 614 800 616 809 q 608 778 613 790 q 597 750 604 765 q 582 721 590 735 q 567 697 575 708 q 554 681 560 686 l 510 685 q 475 739 495 717 q 435 773 456 760 q 392 791 414 786 q 351 797 370 797 q 294 788 318 797 q 254 764 270 779 q 232 730 239 749 q 225 693 225 712 q 243 636 225 661 q 292 590 262 611 q 361 550 322 569 q 440 510 399 531 q 519 466 481 490 q 588 413 558 443 q 637 344 618 383 q 656 255 656 306 m 456 -184 q 447 -230 456 -209 q 424 -268 439 -252 q 391 -294 410 -285 q 350 -304 371 -304 q 289 -283 310 -304 q 269 -221 269 -262 q 277 -174 269 -196 q 301 -136 286 -152 q 335 -111 316 -120 q 375 -102 354 -102 q 435 -122 413 -102 q 456 -184 456 -143 m 456 1050 q 447 1003 456 1024 q 424 965 439 981 q 391 939 410 949 q 350 930 371 930 q 289 951 310 930 q 269 1012 269 972 q 277 1059 269 1037 q 301 1097 286 1081 q 335 1122 316 1113 q 375 1132 354 1132 q 435 1111 413 1132 q 456 1050 456 1091 "},"O":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 624 562 641 496 q 577 677 607 627 q 504 757 546 727 q 409 787 461 787 q 323 762 360 787 q 260 693 285 738 q 221 583 234 648 q 209 435 209 517 q 226 292 209 359 q 275 177 244 226 q 347 100 306 128 q 435 72 388 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 812 439 q 797 319 812 377 q 755 210 782 262 q 691 117 728 159 q 608 44 654 74 q 511 -3 563 13 q 405 -20 460 -20 q 251 15 319 -20 q 135 112 182 51 q 62 251 87 172 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 280 837 205 800 q 444 875 355 875 q 602 838 534 875 q 717 740 670 801 q 788 600 764 679 q 812 439 812 521 "},"Đ":{"x_min":18.90625,"x_max":828,"ha":884,"o":"m 828 458 q 810 306 828 373 q 763 188 793 240 q 693 102 733 137 q 608 43 653 66 q 514 10 562 21 q 419 0 465 0 l 29 0 l 29 49 q 98 70 75 58 q 122 90 122 81 l 122 417 l 33 417 l 18 433 q 23 446 20 437 q 29 465 26 455 q 36 483 33 475 q 41 498 39 492 l 122 498 l 122 784 l 29 771 l 20 834 q 99 849 53 842 q 195 863 145 857 q 296 871 246 868 q 391 875 347 875 q 577 846 495 875 q 714 765 658 818 q 798 634 769 711 q 828 458 828 556 m 343 803 q 318 802 331 803 q 292 802 305 802 l 292 498 l 455 498 l 472 482 l 447 417 l 292 417 l 292 113 q 293 104 292 108 q 300 90 295 96 q 317 81 305 85 q 347 75 328 77 q 394 73 366 73 q 449 81 420 73 q 506 109 477 90 q 559 157 534 128 q 603 226 585 186 q 634 317 622 266 q 646 432 646 368 q 626 591 646 522 q 568 707 606 660 q 473 778 530 754 q 343 803 417 803 "},"Ǿ":{"x_min":37,"x_max":812,"ha":864,"o":"m 641 427 q 633 516 641 473 q 612 600 626 560 l 289 156 q 355 94 318 116 q 434 72 392 72 q 517 93 479 72 q 582 159 555 115 q 625 270 609 204 q 641 427 641 337 m 209 434 q 216 340 209 386 q 237 256 224 295 l 561 700 q 493 763 531 740 q 409 787 454 787 q 322 762 360 787 q 259 693 285 738 q 221 583 234 648 q 209 434 209 517 m 715 741 q 787 601 763 680 q 812 438 812 522 q 797 319 812 377 q 755 210 782 261 q 691 117 728 159 q 608 44 654 74 q 512 -3 563 13 q 405 -20 460 -20 q 298 -3 348 -20 q 208 43 248 12 l 175 -1 q 154 -11 169 -6 q 122 -22 139 -17 q 89 -31 105 -27 q 64 -36 73 -34 l 43 -11 l 133 113 q 62 251 87 174 q 37 415 37 329 q 67 590 37 507 q 151 737 97 674 q 279 837 205 800 q 444 875 354 875 q 552 858 503 875 q 642 813 601 842 l 674 857 q 698 868 684 862 q 728 878 712 873 q 759 886 744 883 q 784 891 774 889 l 806 865 l 715 741 m 335 922 q 311 941 324 927 q 289 967 299 954 l 537 1198 q 571 1178 552 1189 q 608 1157 590 1167 q 638 1137 625 1146 q 657 1122 652 1127 l 663 1086 l 335 922 "},"Ǝ":{"x_min":39.34375,"x_max":697.890625,"ha":739,"o":"m 66 0 l 39 22 q 42 51 40 33 q 48 91 44 70 q 55 136 51 113 q 64 179 60 158 q 72 216 68 200 q 78 241 75 232 l 129 241 q 133 181 130 210 q 140 129 135 152 q 153 94 145 107 q 173 81 161 81 l 299 81 q 369 83 342 81 q 411 92 396 86 q 430 107 425 97 q 435 130 435 117 l 435 424 l 297 424 q 261 422 282 424 q 219 419 240 421 q 180 415 198 417 q 150 410 161 413 l 132 429 q 148 453 138 438 q 169 483 158 468 q 191 511 181 498 q 210 530 202 524 q 232 514 220 520 q 259 505 244 508 q 295 501 274 502 q 344 501 316 501 l 435 501 l 435 774 l 285 774 q 233 769 254 774 q 196 752 212 765 q 168 716 181 740 q 141 652 155 691 l 92 669 q 98 727 94 698 q 104 781 101 757 q 111 825 108 806 q 118 855 115 844 l 697 855 l 697 805 q 628 784 651 795 q 604 764 604 773 l 604 91 q 627 71 604 83 q 697 49 649 59 l 697 0 l 66 0 "},"Ẁ":{"x_min":13.5625,"x_max":1174.6875,"ha":1181,"o":"m 1174 805 q 1125 793 1144 799 q 1093 783 1105 788 q 1077 773 1082 778 q 1071 763 1072 768 l 916 40 q 901 15 912 26 q 873 -2 889 5 q 843 -13 858 -9 q 817 -20 827 -17 l 585 595 l 391 40 q 374 15 386 26 q 346 -1 362 5 q 314 -12 330 -8 q 283 -20 297 -17 l 107 758 q 82 785 103 774 q 13 805 61 796 l 13 855 l 345 855 l 345 805 q 293 797 311 802 q 267 785 275 791 q 258 772 259 779 q 258 758 257 765 l 374 261 l 572 855 l 640 855 l 867 261 l 976 763 q 970 777 978 771 q 948 788 963 783 q 914 797 934 793 q 872 805 895 801 l 872 855 l 1174 855 l 1174 805 m 724 962 q 705 938 714 949 q 683 922 695 927 l 358 1080 l 365 1123 q 385 1139 370 1128 q 418 1162 400 1150 q 453 1183 436 1173 q 476 1198 469 1193 l 724 962 "},"Ť":{"x_min":1.765625,"x_max":780.8125,"ha":806,"o":"m 203 0 l 203 49 q 254 62 234 55 q 287 75 275 69 q 304 87 299 82 q 309 98 309 93 l 309 774 l 136 774 q 117 766 126 774 q 98 742 108 759 q 77 698 89 725 q 51 631 66 670 l 1 649 q 6 697 3 669 q 13 754 9 724 q 21 810 17 783 q 28 855 25 837 l 755 855 l 780 833 q 777 791 780 815 q 771 739 775 766 q 763 685 767 712 q 755 638 759 659 l 704 638 q 692 694 697 669 q 683 737 688 720 q 669 764 677 754 q 646 774 660 774 l 479 774 l 479 98 q 483 88 479 94 q 500 76 488 82 q 533 62 512 69 q 585 49 554 55 l 585 0 l 203 0 m 437 939 l 344 939 l 160 1162 q 179 1186 169 1175 q 200 1204 189 1197 l 392 1076 l 580 1204 q 601 1186 592 1197 q 619 1162 611 1175 l 437 939 "},"ơ":{"x_min":44,"x_max":818,"ha":819,"o":"m 514 298 q 502 400 514 352 q 471 485 491 448 q 422 544 451 522 q 358 566 393 566 q 289 547 316 566 q 245 495 261 528 q 222 418 228 463 q 216 320 216 373 q 228 220 216 267 q 262 139 241 174 q 311 84 283 104 q 371 65 339 65 q 438 80 411 65 q 482 125 465 96 q 506 199 499 155 q 514 298 514 242 m 818 706 q 774 611 818 663 q 637 509 730 559 q 672 425 660 471 q 685 329 685 380 q 672 240 685 283 q 638 158 660 196 q 585 86 616 119 q 518 30 555 53 q 439 -6 481 6 q 351 -20 396 -20 q 225 4 282 -20 q 128 71 168 28 q 66 173 88 114 q 44 301 44 232 q 68 431 44 368 q 138 543 93 494 q 243 621 182 592 q 378 651 305 651 q 498 629 444 651 q 592 568 552 607 q 630 613 621 591 q 640 652 640 635 q 627 689 640 671 q 595 722 614 706 l 772 802 q 804 761 791 787 q 818 706 818 734 "},"꞉":{"x_min":58,"x_max":280,"ha":331,"o":"m 280 488 q 270 439 280 461 q 243 402 260 417 q 204 379 227 387 q 156 372 181 372 q 118 377 136 372 q 87 393 100 382 q 65 421 73 404 q 58 463 58 439 q 68 512 58 490 q 95 548 78 533 q 135 571 112 563 q 182 580 158 580 q 219 574 201 580 q 250 557 236 569 q 271 529 263 546 q 280 488 280 512 m 280 160 q 270 111 280 133 q 243 74 260 89 q 204 51 227 59 q 156 44 181 44 q 118 49 136 44 q 87 65 100 54 q 65 93 73 76 q 58 135 58 111 q 68 184 58 162 q 95 220 78 205 q 135 243 112 235 q 182 252 158 252 q 219 246 201 252 q 250 229 236 241 q 271 201 263 218 q 280 160 280 184 "}},"cssFontWeight":"bold","ascender":1214,"underlinePosition":-250,"cssFontStyle":"normal","boundingBox":{"yMin":-497,"xMin":-698.5625,"yMax":1496.453125,"xMax":1453},"resolution":1000,"original_font_information":{"postscript_name":"Gentilis-Bold","version_string":"Version 1.100","vendor_url":"http://scripts.sil.org/","full_font_name":"Gentilis Bold","font_family_name":"Gentilis","copyright":"Copyright (c) SIL International, 2003-2008.","description":"","trademark":"Gentium is a trademark of SIL International.","designer":"J. Victor Gaultney and Annie Olsen","designer_url":"http://www.sil.org/~gaultney","unique_font_identifier":"SIL International:Gentilis Bold:2-3-108","license_url":"http://scripts.sil.org/OFL","license_description":"Copyright (c) 2003-2008, SIL International (http://www.sil.org/) with Reserved Font Names \\"Gentium\\" and \\"SIL\\".\\r\\n\\r\\nThis Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\\r\\n\\r\\n\\r\\n-----------------------------------------------------------\\r\\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\\r\\n-----------------------------------------------------------\\r\\n\\r\\nPREAMBLE\\r\\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\\r\\n\\r\\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\\r\\n\\r\\nDEFINITIONS\\r\\n\\"Font Software\\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\\r\\n\\r\\n\\"Reserved Font Name\\" refers to any names specified as such after the copyright statement(s).\\r\\n\\r\\n\\"Original Version\\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\\r\\n\\r\\n\\"Modified Version\\" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\\r\\n\\r\\n\\"Author\\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\\r\\n\\r\\nPERMISSION & CONDITIONS\\r\\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\\r\\n\\r\\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\\r\\n\\r\\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\\r\\n\\r\\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\\r\\n\\r\\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\\r\\n\\r\\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\\r\\n\\r\\nTERMINATION\\r\\nThis license becomes null and void if any of the above conditions are not met.\\r\\n\\r\\nDISCLAIMER\\r\\nTHE FONT SOFTWARE IS PROVIDED \\"AS IS\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.","manufacturer_name":"SIL International","font_sub_family_name":"Bold"},"descender":-394,"familyName":"Gentilis","lineHeight":1607,"underlineThickness":100}');function at(q){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},at(q)}function st(q,e){for(var t=0;t0)s=this.charMeshes[i][0].clone();else{var u=this.drawChar3D(q[r],e),m=u.charMesh,h=u.charWidth;s=m,this.charWidths[i]=Number.isFinite(h)?h:.2}this.charMeshes[i].push(s)}s.position.set(o,0,0),o=o+this.charWidths[i]+.05,this.charPointers[i]+=1,n.add(s)}var f=o/2;return n.children.forEach(function(q){q.position.setX(q.position.x-f)}),n}},{key:"drawChar3D",value:function(q,e){arguments.length>2&&void 0!==arguments[2]||mt.gentilis_bold;var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=this.getText(q,t,n),r=this.getMeshBasicMaterial(e),i=new l.Mesh(o,r);o.computeBoundingBox();var a=o.boundingBox,s=a.max,c=a.min;return{charMesh:i,charWidth:s.x-c.x}}}],e&&st(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function pt(q){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},pt(q)}function dt(q,e){for(var t=0;t.001&&q.ellipseB>.001){var t=new l.MeshBasicMaterial({color:e,transparent:!0,opacity:.5}),n=(o=q.ellipseA,r=q.ellipseB,(i=new l.Shape).absellipse(0,0,o,r,0,2*Math.PI,!1,0),new l.ShapeGeometry(i));return new l.Mesh(n,t)}var o,r,i;return null}},{key:"drawCircle",value:function(){var q=new l.MeshBasicMaterial({color:16777215,transparent:!0,opacity:.5});return R(.2,q)}},{key:"dispose",value:function(){this.disposeMajorMeshs(),this.disposeMinorMeshs(),this.disposeGaussMeshs()}}])&&Ct(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),It={newMinInterval:.05,minInterval:.1,defaults:{width:1.4},pathProperties:{default:{width:.1,color:16764501,opacity:1,zOffset:.5,renderOrder:.3},PIECEWISE_JERK_PATH_OPTIMIZER:{width:.2,color:3580651,opacity:1,zOffset:.5,renderOrder:.4},"planning_path_boundary_1_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"candidate_path_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_2_regular/pullover":{width:.1,color:16764501,opacity:1,zOffset:.4,renderOrder:.5},"planning_path_boundary_1_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_regular/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_regular/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_1_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"candidate_path_fallback/self":{width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},"planning_path_boundary_2_fallback/self":{style:"dash",width:.1,color:15793920,opacity:1,zOffset:.4,renderOrder:.6},DpPolyPathOptimizer:{width:.4,color:9305268,opacity:.6,zOffset:.3,renderOrder:.7},"Planning PathData":{width:.4,color:16764501,opacity:.6,zOffset:.3,renderOrder:.7},trajectory:{width:.8,color:119233,opacity:.65,zOffset:.2,renderOrder:.8},planning_reference_line:{width:.8,color:14177878,opacity:.7,zOffset:0,renderOrder:.9},follow_planning_line:{width:.8,color:119233,opacity:.65,zOffset:0}}};function Lt(q){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Lt(q)}function Dt(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:1.5,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=new l.Vector3(e,0,0);return L([new l.Vector3(0,0,0),o,new l.Vector3(e-n,t/2,0),o,new l.Vector3(e-n,-t/2,0)],{color:q,linewidth:1,zOffset:1,opacity:1,matrixAutoUpdate:!0})}(i,1.5,.5,.5);return u.position.z=0,u.material.linewidth=2,r.add(u),r}var Ut=function(){return q=function q(e,t,n){!function(q,e){if(!(q instanceof e))throw new TypeError("Cannot call a class as a function")}(this,q),this.paths={},this.scene=e,this.option=t,this.oldOptions={},this.coordinates=n,this.pathsGeometry={},this.pathsMeshLine={},this.pullOverBox=null,this.lastPullOver={},this.dashLineNames=["planning_path_boundary_1_regular/self","planning_path_boundary_2_regular/self","planning_path_boundary_1_fallback/self","planning_path_boundary_2_fallback/self"]},(e=[{key:"update",value:function(q,e,t){var n=this;if(this.coordinates.isInitialized()){this.updatePullOver(e);var o=null;null!=t&&t.width?o=t.width:(console.warn("Unable to get the auto driving car's width, planning line width has been set to default: ".concat(Nt," m.")),o=Nt);var r,i={};q&&q.length&&(i.trajectory=q.map(function(q){return{x:q.positionX,y:q.positionY}})),e&&e.path&&(null===(r=e.path)||void 0===r||r.forEach(function(q){var e;null!==(e=q.pathPoint)&&void 0!==e&&e.length&&(i[q.name]=q.pathPoint)})),(0,c.union)(Object.keys(this.paths),Object.keys(i)).forEach(function(q){var e=It.pathProperties[q];if(e||(e=It.pathProperties.default),i[q]){var t=function(q){var e=[];if(!q||0===q.length)return[];for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)1&&void 0!==arguments[1]&&arguments[1];return null===this.offset?null:(0,c.isNaN)(null===(e=this.offset)||void 0===e?void 0:e.x)||(0,c.isNaN)(null===(t=this.offset)||void 0===t?void 0:t.y)?(console.error("Offset contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.x)||(0,c.isNaN)(null==q?void 0:q.y)?(console.warn("Point contains NaN!"),null):(0,c.isNaN)(null==q?void 0:q.z)?new l.Vector2(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y):new l.Vector3(n?q.x+this.offset.x:q.x-this.offset.x,n?q.y+this.offset.y:q.y-this.offset.y,q.z)}},{key:"applyOffsetToArray",value:function(q){var e=this;return(0,c.isArray)(q)?q.map(function(q){return e.applyOffset(q)}):null}},{key:"offsetToVector3",value:function(q){return new l.Vector3(q.x,q.y,0)}}],e&&qn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();const nn=t.p+"assets/1fe58add92fed45ab92f.png",ln=t.p+"assets/57aa8c7f4d8b59e7499b.png",on=t.p+"assets/78278ed6c8385f3acc87.png",rn=t.p+"assets/b9cf07d3689b546f664c.png",an=t.p+"assets/f2448b3abbe2488a8edc.png",sn=t.p+"assets/b7373cd9afa7a084249d.png";function cn(q){return new Promise(function(e,t){(new l.TextureLoader).load(q,function(q){e(q)},void 0,function(q){t(q)})})}function un(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return mn(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(mn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,mn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,mn(u,"constructor",s),mn(s,"constructor",a),a.displayName="GeneratorFunction",mn(s,l,"GeneratorFunction"),mn(u),mn(u,l,"Generator"),mn(u,n,function(){return this}),mn(u,"toString",function(){return"[object Generator]"}),(un=function(){return{w:o,m}})()}function mn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}mn=function(q,e,t,n){function o(e,t){mn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},mn(q,e,t,n)}function hn(q){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},hn(q)}function fn(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function pn(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){fn(o,n,l,r,i,"next",q)}function i(q){fn(o,n,l,r,i,"throw",q)}r(void 0)})}}function dn(q,e,t){return yn.apply(this,arguments)}function yn(){return yn=pn(un().m(function q(e,t,n){var o,r,i,a,s,c,u=arguments;return un().w(function(q){for(;;)switch(q.n){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:[0,.084],s=l.MeshBasicMaterial,q.n=1,cn(t);case 1:return c=q.v,(r=new s({map:c,transparent:!0})).map.offset.set(o[0],o[1]),i=new l.CircleGeometry(e,32),a=new l.Mesh(i,r),n&&Object.keys(n).forEach(function(q){a.userData[q]=n[q]}),q.a(2,a)}},q)})),yn.apply(this,arguments)}function vn(q,e,t){return xn.apply(this,arguments)}function xn(){return(xn=pn(un().m(function q(e,t,n){var o,r,i,a,s;return un().w(function(q){for(;;)switch(q.n){case 0:return(o=new l.PlaneGeometry(e,t)).rotateZ(-Math.PI/2),o.translate(e/2,0,0),i=l.MeshBasicMaterial,q.n=1,cn(n);case 1:return a=q.v,s=l.DoubleSide,r=new i({map:a,transparent:!0,side:s}),q.a(2,new l.Mesh(o,r))}},q)}))).apply(this,arguments)}function An(){return(An=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,nn))},q)}))).apply(this,arguments)}function bn(){return(bn=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,on))},q)}))).apply(this,arguments)}function gn(q){return wn.apply(this,arguments)}function wn(){return(wn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,ln))},q)}))).apply(this,arguments)}function On(q,e){return _n.apply(this,arguments)}function _n(){return(_n=pn(un().m(function q(e,t){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,vn(e,t,rn))},q)}))).apply(this,arguments)}function Sn(q){return Mn.apply(this,arguments)}function Mn(){return(Mn=pn(un().m(function q(e){return un().w(function(q){for(;;)if(0===q.n)return q.a(2,dn(e,an,null,[0,0]))},q)}))).apply(this,arguments)}function En(q){return function(q,e){if(!Array.isArray(q)||q.length<2)return console.warn("At least two points are required to draw a line."),null;if("object"!==hn(e))return console.warn("Invalid attribute parameter provided."),null;var t=e.color,n=void 0===t?16777215:t,o=e.lineWidth,r=void 0===o?.5:o,i=new j.wU;i.setPoints(q);var a=q[0].distanceTo(q[1]);if(0===a)return console.warn("The provided points are too close or identical."),null;var s=1/a*.5,c=new j.Xu({color:n,lineWidth:r,dashArray:s});return new l.Mesh(i.geometry,c)}(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2})}var Pn=t(9827),kn=t(40366);function Cn(q){var e=q.coordinate,t=void 0===e?{x:0,y:0}:e,l=(0,n.useRef)(null);return(0,n.useEffect)(function(){l.current&&(l.current.style.transform="translate(-60%, 50%)")},[]),kn.createElement("div",{ref:l,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},"[",t.x,", ",t.y,"]")}const Tn=(0,n.memo)(Cn);var jn=t(47960),In=t(40366);function Ln(q){var e=q.length,t=q.totalLength,l=(0,jn.Bd)("carviz").t,o=(0,n.useMemo)(function(){return e?"".concat(l("Length"),": ").concat(e.toFixed(2),"m"):t?"".concat(l("TotalLength"),": ").concat(t.toFixed(2),"m"):""},[e,l,t]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){r.current&&(e&&(r.current.style.transform="translate(-60%, 50%)"),t&&(r.current.style.transform="translate(80%, -50%)"))},[e,t]),In.createElement("div",{ref:r,style:{fontFamily:"PingFangSC-Regular",fontSize:"14px",color:"#fff",lineHeight:"22px",fontWeight:400,padding:"5px 8px",background:"#505866",borderRadius:"6px",boxShadow:"0 6px 12px 6px rgb(0 0 0 / 20%)"}},o)}const Dn=(0,n.memo)(Ln);var Bn=t(40366);function Nn(q){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Nn(q)}function Rn(q,e){for(var t=0;t0,this.lengthLabelVisible?this.lengthLabel?this.createOrUpdateLengthLabel(q,this.lengthLabel.element):(this.lengthLabel=this.createOrUpdateLengthLabel(q),e.add(this.lengthLabel)):e.remove(this.lengthLabel),this}},{key:"updatePosition",value:function(q){return this.position.copy(q),this}},{key:"updateDirection",value:function(q){return this.direction=q,this.setArrowVisible(!0),this}},{key:"createOrUpdateLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Tn,{coordinate:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.pointLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"createOrUpdateLengthLabel",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=Bn.createElement(Dn,{length:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),this.lengthLabel.position.set(0,0,0),e}var l=document.createElement("div"),o=(0,Pn.H)(l);this.roots.set(l,o),o.render(t);var i=new r.v(l);return i.position.set(0,0,0),i}},{key:"addToScene",value:function(){var q=this.context,e=q.scene,t=q.marker,n=q.arrow;return e.add(t),n&&this.arrowVisible&&e.add(n),this}},{key:"render",value:function(){var q=this.context,e=q.scene,t=q.renderer,n=q.camera,l=q.marker,o=q.arrow,r=q.CSS2DRenderer;return l.position.copy(this.position),o&&this.arrowVisible?(o.position.copy(this.position),o.position.z-=.1,o.rotation.z=this.direction):o&&e.remove(o),t.render(e,n),r.render(e,n),this}},{key:"remove",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.marker,r=e.arrow,i=e.CSS2DRenderer;this.pointLabel&&(this.pointLabel.element.remove(),o.remove(this.pointLabel)),this.lengthLabel&&(this.lengthLabel.element.remove(),o.remove(this.lengthLabel)),o.geometry.dispose(),null===(q=o.material)||void 0===q||q.dispose(),t.remove(o),r&&t.remove(r),n.render(t,l),i.render(t,l)}}],e&&Rn(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}(),Fn=function(){return null};function Vn(q){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Vn(q)}function Qn(q,e){for(var t=0;t3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Zn(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Zn(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Zn(u,"constructor",s),Zn(s,"constructor",a),a.displayName="GeneratorFunction",Zn(s,l,"GeneratorFunction"),Zn(u),Zn(u,l,"Generator"),Zn(u,n,function(){return this}),Zn(u,"toString",function(){return"[object Generator]"}),(Kn=function(){return{w:o,m}})()}function Zn(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Zn=function(q,e,t,n){function o(e,t){Zn(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Zn(q,e,t,n)}function $n(q){return function(q){if(Array.isArray(q))return ql(q)}(q)||function(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function(q,e){if(q){if("string"==typeof q)return ql(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ql(q,e):void 0}}(q)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ql(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t2&&void 0!==arguments[2]?arguments[2]:{priority:0,once:!1};this.events[q]||(this.events[q]=[]);var n=t.priority,l=void 0===n?0:n,o=t.once,r=void 0!==o&&o;this.events[q].push({callback:e,priority:l,once:r}),this.events[q].sort(function(q,e){return e.priority-q.priority})}},{key:"off",value:function(q,e){this.events[q]&&(this.events[q]=this.events[q].filter(function(q){return q.callback!==e}))}},{key:"emit",value:(t=Kn().m(function q(e,t){var n,l,o,r,i,a,s;return Kn().w(function(q){for(;;)switch(q.p=q.n){case 0:if(l=(n=null!=t?t:{}).data,o=n.nativeEvent,!this.events[e]){q.n=8;break}r=0,i=$n(this.events[e]);case 1:if(!(rq.length)&&(e=q.length);for(var t=0,n=Array(e);twindow.innerWidth&&(r=q.clientX-20-n),i+o>window.innerHeight&&(i=q.clientY-20-o),p({x:r,y:i})}(e),i(s),u(!0)})(q,e),u(!0)},100),e=null,t=function(){q.cancel&&q.cancel(),clearTimeout(e),e=setTimeout(function(){u(!1)},100)};return rl.on(il.CURRENT_COORDINATES,q),rl.on(il.CURRENT_LENGTH,q),rl.on(il.HIDE_CURRENT_COORDINATES,t),function(){rl.off(il.CURRENT_COORDINATES,q),rl.off(il.CURRENT_LENGTH,q),rl.off(il.HIDE_CURRENT_COORDINATES,t)}},[]),!s&&0===m.opacity.get())return null;var C=f.x,T=f.y;return al.createElement(Xn.CS.div,{ref:l,className:"dvc-floating-layer",style:ul(ul({},m),{},{transform:(0,Xn.GW)([C,T],function(q,e){return"translate(".concat(q,"px, ").concat(e,"px)")})})},al.createElement("div",{className:"dvc-floating-layer__coordinates"},al.createElement("span",null,S?P:E)),al.createElement("div",{className:"dvc-floating-layer__tooltip"},t(k)))}const dl=(0,n.memo)(pl);var yl=t(88206);function vl(){var q=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{success:!1}).success,e=(0,jn.Bd)("carviz").t;return(0,n.useEffect)(function(){q?(0,yl.iU)({type:"success",content:e("CopySuccessful"),duration:3}):(0,yl.iU)({type:"error",content:e("CopyFailed"),duration:3})},[q,e]),null}function xl(q){return xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},xl(q)}function Al(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return bl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(bl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,bl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,bl(u,"constructor",s),bl(s,"constructor",a),a.displayName="GeneratorFunction",bl(s,l,"GeneratorFunction"),bl(u),bl(u,l,"Generator"),bl(u,n,function(){return this}),bl(u,"toString",function(){return"[object Generator]"}),(Al=function(){return{w:o,m}})()}function bl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}bl=function(q,e,t,n){function o(e,t){bl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},bl(q,e,t,n)}function gl(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function wl(q,e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"Start",n=t.context,l=(n.renderer,n.camera,n.coordinates),o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:e},nativeEvent:q})}),Ol(this,"handleMouseMoveDragging",function(q,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Start",l=t.context.coordinates,o=t.computeRaycasterIntersects(q.clientX,q.clientY);if(!o||"number"!=typeof o.x||"number"!=typeof o.y)throw new Error("Invalid world position");var r=l.applyOffset(o,!0);if(!r||"number"!=typeof r.x||"number"!=typeof r.y)throw new Error("Invalid coordinates after applying offset");rl.emit(il.CURRENT_COORDINATES,{data:{x:r.x.toFixed(2),y:r.y.toFixed(2),phase:n,heading:e},nativeEvent:q})}),this.context=e},e=[{key:"active",value:function(){this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer);var q=document.createElement("div");this.activeState=!0,this.reactRoot=(0,Pn.H)(q),q.className="floating-layer",q.style.width="".concat(window.innerWidth,"px"),q.style.height="".concat(window.innerHeight,"px"),q.style.position="absolute",q.style.top="0",q.style.pointerEvents="none",document.body.appendChild(q),this.reactRoot.render(n.createElement(dl,{name:this.name})),this.floatLayer=q}},{key:"deactive",value:function(){this.activeState=!1,this.floatLayer&&this.floatLayer.parentNode&&this.floatLayer.parentNode.removeChild(this.floatLayer)}},{key:"computeWorldSizeForPixelSize",value:function(q){var e,t=this.context.camera,n=t.position.distanceTo(new l.Vector3(0,0,0)),o=l.MathUtils.degToRad(t.fov);return q*(2*Math.tan(o/2)*n/((null===(e=this.context.renderer)||void 0===e||null===(e=e.domElement)||void 0===e?void 0:e.clientHeight)||window.innerHeight))}},{key:"hiddenCurrentMovePosition",value:function(){rl.emit(il.HIDE_CURRENT_COORDINATES)}},{key:"copyMessage",value:(t=Al().m(function q(e){var t;return Al().w(function(q){for(;;)switch(q.p=q.n){case 0:return q.p=0,q.n=1,navigator.clipboard.writeText(e);case 1:this.renderReactComponent(n.createElement(vl,{success:!0})),q.n=3;break;case 2:q.p=2,t=q.v,console.error("复制失败: ",t),this.renderReactComponent(n.createElement(vl,null));case 3:return q.a(2)}},q,this,[[0,2]])}),o=function(){var q=this,e=arguments;return new Promise(function(n,l){var o=t.apply(q,e);function r(q){gl(o,n,l,r,i,"next",q)}function i(q){gl(o,n,l,r,i,"throw",q)}r(void 0)})},function(q){return o.apply(this,arguments)})},{key:"computeRaycasterIntersects",value:function(q,e){var t=this.context,n=t.camera,o=(t.scene,this.computeNormalizationPosition(q,e)),r=o.x,i=o.y;this.raycaster.setFromCamera(new l.Vector2(r,i),n);var a=new l.Plane(new l.Vector3(0,0,1),0),s=new l.Vector3;return this.raycaster.ray.intersectPlane(a,s),s}},{key:"computeRaycasterObject",value:function(q,e){var t=this.context,n=t.camera,o=t.scene,r=this.computeNormalizationPosition(q,e),i=r.x,a=r.y,s=new l.Raycaster;s.setFromCamera(new l.Vector2(i,a),n);var c=[];o.children.forEach(function(q){"ParkingSpace"===q.name&&c.push(q)});var u=this.createShapeMesh();o.add(u);for(var m=0;m0)return B(u),h}B(u)}},{key:"createShapeMesh",value:function(){var q=[new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0),new l.Vector2(0,0)],e=new l.Shape(q),t=new l.ShapeGeometry(e),n=new l.MeshBasicMaterial({color:16711680,visible:!1});return new l.Mesh(t,n)}},{key:"computeNormalizationPosition",value:function(q,e){var t=this.context.renderer.domElement.getBoundingClientRect();return{x:(q-t.left)/t.width*2-1,y:-(e-t.top)/t.height*2+1}}},{key:"renderReactComponent",value:function(q){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,t=document.createElement("div"),n=(0,Pn.H)(t);n.render(q),document.body.appendChild(t),setTimeout(function(){n.unmount(),document.body.removeChild(t)},e)}}],e&&wl(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e,t,o}();function Ml(q){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Ml(q)}function El(){var q,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",l=t.toStringTag||"@@toStringTag";function o(t,n,l,o){var a=n&&n.prototype instanceof i?n:i,s=Object.create(a.prototype);return Pl(s,"_invoke",function(t,n,l){var o,i,a,s=0,c=l||[],u=!1,m={p:0,n:0,v:q,a:h,f:h.bind(q,4),d:function(e,t){return o=e,i=0,a=q,m.n=t,r}};function h(t,n){for(i=t,a=n,e=0;!u&&s&&!l&&e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Pl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Pl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Pl(u,"constructor",s),Pl(s,"constructor",a),a.displayName="GeneratorFunction",Pl(s,l,"GeneratorFunction"),Pl(u),Pl(u,l,"Generator"),Pl(u,n,function(){return this}),Pl(u,"toString",function(){return"[object Generator]"}),(El=function(){return{w:o,m}})()}function Pl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Pl=function(q,e,t,n){function o(e,t){Pl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Pl(q,e,t,n)}function kl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Cl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(Yl(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,Yl(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,Yl(u,"constructor",s),Yl(s,"constructor",a),a.displayName="GeneratorFunction",Yl(s,l,"GeneratorFunction"),Yl(u),Yl(u,l,"Generator"),Yl(u,n,function(){return this}),Yl(u,"toString",function(){return"[object Generator]"}),(Hl=function(){return{w:o,m}})()}function Yl(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}Yl=function(q,e,t,n){function o(e,t){Yl(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},Yl(q,e,t,n)}function Wl(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Xl(q){for(var e=1;e3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(vo(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,vo(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,vo(u,"constructor",s),vo(s,"constructor",a),a.displayName="GeneratorFunction",vo(s,l,"GeneratorFunction"),vo(u),vo(u,l,"Generator"),vo(u,n,function(){return this}),vo(u,"toString",function(){return"[object Generator]"}),(yo=function(){return{w:o,m}})()}function vo(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}vo=function(q,e,t,n){function o(e,t){vo(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},vo(q,e,t,n)}function xo(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function Ao(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){xo(o,n,l,r,i,"next",q)}function i(q){xo(o,n,l,r,i,"throw",q)}r(void 0)})}}function bo(q,e){for(var t=0;t2&&t.positions.pop().instance.remove(),t.isInitiation=!0,o.remove(t.dashedLine),q.n=2,t.copyMessage(t.positions.map(function(q){return r.applyOffset(q.coordinate,!0)}).map(function(q){return"(".concat(q.x,",").concat(q.y,")")}).join("\n"));case 2:return t.updateSolidLine(),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="CopyMarker",Sn(.5).then(function(q){t.marker=q}),t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&Mo(q,e)}(e,q),t=e,n=[{key:"active",value:function(){Oo(e,"active",this,3)([]);var q=this.context.renderer;this.eventHandler=new mo(q.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),q.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAQCAYAAAGHNqTJAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAADAAAAAAQAAAMAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAABAAAAAAZLTd3wAAAAlwSFlzAAAdhwAAHYcBj+XxZQAAAjdJREFUOBGFVE1IVFEUPuemZAQhFQjWokTfKw0LMly4E6QkknATbYsKWtjPGO1i3KXOzENXibhqE+6CCCOIbBklZIjNZEFG2WYoaiPlvNN37p13Z6YiL5x7fr7vnHvfuWeGCEuywbpqklx4wups2wyLENNoyw6L+E1ywUNLyQQXlWEsItRvNdMUM4mLZYNZVH6WOC4KD0FxaRZyWx3UeyCHyfz8QDHFrHEZP3iITOm148gjIu6DbUj4Kg/nJ1gyre24xBKnCjbBEct0nAMrbSi1sqwhGQ2bHfTnbh77bNzhOeBjniJU5OHCbvUrpEzbII6NUHMbZIxTbzOegApFODsha5CvkHYI6R0Z/buFBo3Qj+Z6Tj/dUECXNgX1F/FpAJnuVoOWwfEAsE7XuZhf2mD1xvUv1FXCJ2JJq1OzpDStvqG4IYRulGzoq8C+g/Incc1e1/ooaME7vKupwHyGr+dnfR8UFEe8B7PStJosJVGRDF/W5ARyp4x3biezrg+83wG8APY59OpVQpRoXyPFW28jfqkc0/no4xv5J25Kc8FHAHsg32iDO/hm/nOS/C+NN3jgvlVR02MoCo/D0gI4hNObFbA83nLBaruVzqOrpVUfMHLU2/8z5FdXBeZV15NkRBwyh1E59dc0lLMEP0NMy5R1MT50rXDEv47kWjsoNvMg7KqcQl/wxov4zr2IHYBU/RblCiZ5Urm+iDq67N9BFJxG484C7kakCeHvkDdg36e6eJqHVtT36zeItMgPBIUYewAAAABJRU5ErkJggg==","'), default")}},{key:"deactive",value:function(){var q;Oo(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q=this.context.scene;this.positions.forEach(function(q){q.instance?q.instance.remove():console.error("CopyMarker","position.instance is null")}),this.positions=[],q.remove(this.dashedLine),this.solidLine&&(q.remove(this.solidLine),this.solidLine.geometry.dispose(),Array.isArray(this.solidLine.material)?this.solidLine.material.forEach(function(q){return q.dispose()}):this.solidLine.material.dispose(),this.solidLine=null),this.render()}},{key:"updateSolidLine",value:function(){var q=this.context.scene,e=[];this.positions.forEach(function(q){e.push(new l.Vector3(q.coordinate.x,q.coordinate.y,q.coordinate.z-.01))}),this.solidLine?this.updateMeshLine(this.solidLine,e):this.solidLine=function(q){return U(q,{color:arguments.length>2&&void 0!==arguments[2]?arguments[2]:3442680,lineWidth:arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2,opacity:1})}(e),q.add(this.solidLine)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=1/q[0].distanceTo(q[1])*.5;if(this.dashedLine){var t=new j.Xu({color:3311866,lineWidth:.2,dashArray:e});this.updateMeshLine(this.dashedLine,q,t)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a0?((q.x<=0&&q.y>=0||q.x<=0&&q.y<=0)&&(n+=Math.PI),n):((e.x<=0&&e.y>=0||e.x<=0&&e.y<=0)&&(o+=Math.PI),o)}},{key:"createFan",value:function(){var q=this.context,e=q.scene,t=q.radius,n=this.calculateAngles(),o=new l.CircleGeometry(t||this.radius,32,n.startAngle,n.degree),r=new l.MeshBasicMaterial({color:this.context.fanColor,transparent:!0,opacity:.2,depthTest:!1});this.fan=new l.Mesh(o,r),this.fan.position.copy(n.center),this.fanLabel=this.createOrUpdateLabel(n.degree*(180/Math.PI),n.center),this.fan.add(this.fanLabel),e.add(this.fan)}},{key:"updateFan",value:function(){if(this.fan){var q=this.calculateAngles();this.fan.geometry=new l.CircleGeometry(this.context.radius||this.radius,32,q.startAngle,q.degree),this.fan.position.copy(q.center),this.createOrUpdateLabel(q.degree*(180/Math.PI),q.center,this.fanLabel.element)}else this.createFan()}},{key:"createBorder",value:function(){var q=this.context,e=q.scene,t=q.radius,n=q.borderType,o=q.borderColor,r=void 0===o?0:o,i=q.borderTransparent,a=void 0!==i&&i,s=q.borderOpacity,c=void 0===s?1:s,u=q.dashSize,m=void 0===u?.1:u,h=q.depthTest,f=void 0!==h&&h,p=q.borderWidth,d=void 0===p?.2:p,y=this.calculateAngles(),v=t||this.radius+d/2,x=y.startAngle+.01,A=y.degree+.01,b=new l.CircleGeometry(v,64,x,A);b.deleteAttribute("normal"),b.deleteAttribute("uv");for(var g=b.attributes.position.array,w=[],O=3;O0))throw new Error("Border width must be greater than 0");S=new j.Xu(Bo(Bo({},E),{},{lineWidth:d,sizeAttenuation:!0,dashArray:"dashed"===n?m:0,resolution:new l.Vector2(window.innerWidth,window.innerHeight),alphaTest:.5})),M=new l.Mesh(P,S),this.border=M,e.add(M)}},{key:"updateBorder",value:function(){var q=this.context.scene;this.border&&(q.remove(this.border),this.createBorder())}},{key:"createOrUpdateLabel",value:function(q,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io.createElement(jo,{angle:q}),o=this.calculateAngles(),i=o.degree/2,a=(this.context.radius||this.radius)+1.5,s=new l.Vector3(a*Math.cos(o.startAngle+i),a*Math.sin(o.startAngle+i),0);if(t){var c=this.roots.get(t);return c||(c=(0,Pn.H)(t),this.roots.set(t,c)),c.render(n),this.fanLabel.position.copy(s),t}var u=document.createElement("div"),m=(0,Pn.H)(u);this.roots.set(u,m),m.render(n);var h=new r.v(u);return h.position.copy(s),h}},{key:"render",value:function(){var q=this.context,e=q.renderer,t=q.scene,n=q.camera,l=q.CSS2DRenderer;return e.render(t,n),l.render(t,n),this}},{key:"remove",value:function(){var q=this.context.scene;this.fanLabel&&this.fan.remove(this.fanLabel),this.fan&&q.remove(this.fan),this.border&&q.remove(this.border),this.render()}}],e&&No(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Go(q){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Go(q)}function Fo(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Vo(q){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1];return 0===q.length||(this.vertices=q,this.createPoints(),this.createLine(),n&&(null===(e=this.fans.pop())||void 0===e||e.remove(),null===(t=this.points.pop())||void 0===t||t.remove()),this.vertices.length>=2&&this.createAngle()),this}},{key:"createPoints",value:function(){for(var q=this.context.label,e=0;e=2){var n=this.points[this.points.length-1],o=this.points[this.points.length-2],r=n.position.distanceTo(o.position);n.setLengthLabelVisible(Number(r.toFixed(2)))}return this}},{key:"createLine",value:function(){var q=this.context.scene,e=new j.wU,t=(new l.BufferGeometry).setFromPoints(this.vertices);if(e.setGeometry(t),this.line)return this.line.geometry=e.geometry,this;var n=new j.Xu({color:this.context.polylineColor||16777215,lineWidth:this.context.lineWidth});return this.line=new l.Mesh(e,n),q.add(this.line),this}},{key:"createAngle",value:function(){for(var q=1;q3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(nr(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,nr(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,nr(u,"constructor",s),nr(s,"constructor",a),a.displayName="GeneratorFunction",nr(s,l,"GeneratorFunction"),nr(u),nr(u,l,"Generator"),nr(u,n,function(){return this}),nr(u,"toString",function(){return"[object Generator]"}),(tr=function(){return{w:o,m}})()}function nr(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}nr=function(q,e,t,n){function o(e,t){nr(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},nr(q,e,t,n)}function lr(q,e,t,n,l,o,r){try{var i=q[o](r),a=i.value}catch(q){return void t(q)}i.done?e(a):Promise.resolve(a).then(n,l)}function or(q){return function(){var e=this,t=arguments;return new Promise(function(n,l){var o=q.apply(e,t);function r(q){lr(o,n,l,r,i,"next",q)}function i(q){lr(o,n,l,r,i,"throw",q)}r(void 0)})}}function rr(q,e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:"Start";rl.emit(il.CURRENT_LENGTH,{data:{length:e,phase:t},nativeEvent:q})}),hr(t,"handleMouseMove",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a,s,u,m;return tr().w(function(q){for(;;)switch(q.n){case 0:if(e.preventDefault(),o=null===(l=t.polylines.slice(-1)[0])||void 0===l?void 0:l.coordinates,!(r=null==o?void 0:o.slice(-1)[0])){q.n=2;break}if(i=t.computeRaycasterIntersects(e.clientX,e.clientY)){q.n=1;break}return q.a(2);case 1:a=[r,i],s=r.distanceTo(i),(0,c.isNumber)(s)&&s>0&&(t.handleMouseMoveDragging(e,s.toFixed(2),"End"),t.updateDashedLine(a));case 2:return(null==o?void 0:o.length)>=2&&(u=o.slice(-2))&&2===u.length&&(m=t.computeRaycasterIntersects(e.clientX,e.clientY))&&t.updateFan(u[0],u[1],m),q.n=3,t.render();case 3:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),hr(t,"handleMouseUp",function(){var q=or(tr().m(function q(e,n){var l,o,r,i,a;return tr().w(function(q){for(;;)switch(q.n){case 0:return l=t.context.scene,o=t.computeRaycasterIntersects(e.clientX,e.clientY),"click"===n?(0===t.polylines.length&&(t.polylines=[{coordinates:[]}]),t.polylines[t.polylines.length-1].coordinates.push(o)):"doubleClick"!==n&&"rightClick"!==n||(i=t.polylines[t.polylines.length-1],"doubleClick"===n&&i.coordinates.length>2&&(i.coordinates.pop(),null==i||i.instance.updateVertices(i.coordinates,!0)),null===(r=t.fan)||void 0===r||r.remove(),t.fan=null,a=0,i.coordinates.forEach(function(q,e){e>=1&&(a+=q.distanceTo(i.coordinates[e-1]))}),t.totalLengthLabels.push(t.createOrUpdateTotalLengthLabel(a)),t.closeLabels.push(t.createOrUpdateCloseLabel(i)),t.renderLabel(),l.remove(t.dashedLine),t.currentDashedVertices=[],t.dashedLine=null,t.polylines.push({coordinates:[]})),q.n=1,t.render();case 1:return q.a(2)}},q)}));return function(e,t){return q.apply(this,arguments)}}()),t.context=q,t.name="RulerMarker",t}return function(q,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(e&&e.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),e&&mr(q,e)}(e,q),t=e,n=[{key:"active",value:function(){var q=this;sr(e,"active",this,3)([]),Sn(this.computeWorldSizeForPixelSize(10)).then(function(e){q.marker=e});var t=this.context.renderer;this.eventHandler=new mo(t.domElement,{handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,handleMouseUp:this.handleMouseUp,handleMouseMoveNotDragging:this.handleMouseMoveNotDragging,handleMouseLeave:this.hiddenCurrentMovePosition},this),t.domElement.style.cursor="url('".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAMCAYAAAHzImYpAAAAAXNSR0IArs4c6QAAAHhlWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAAJAAAAACwAAAkAAAAALAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABGgAwAEAAAAAQAAAAwAAAAAIAbxLwAAAAlwSFlzAAAIDgAACA4BcxBFhQAAAWdJREFUKBWFkjFLw1AQxy9pbMFNHAQdBKENioOLk4ig4OoHcBJEkPoFHB0rRuoquDg4dHDS2oq6lIL4KXR0cHPo0p6/S/JSU8Ee/Pr+7+6f63uXiNbCWVWtiQs2xVhrQwouKWSvf2+WSHQTW1R5ySoIXzzvguqJS3pOkLxEz4tGYduSGlWOSTZj7frZZjQwFeEAtq3Gmvz5qDEtmvk1q2lUbsFVWixRnMmKiEAmdEf6/jqFEvtN+EBzEe/TjD7FOSkM3tC3sA8BTLtO2RVJ2uGeWXpgxin48vnJgrZbbKzDCrzDMvwNOt2DmeNh3Wg9DFNd1fPyXqw5NKYmHEEXcrczjwtfVBrSH5wy+aqotyte0LKHMdit7fU8crw1Vrvcv83wDAOzDf0JDqEDISyagzX+XFizk+UmNmyTKIz2CT6ATXISvqHOyXrUVtFn6A3W8WHNwOZzB3atNiRDHf943sGD1mwhnxX5Aaq+3A6UiHzyAAAAAElFTkSuQmCC","'), default")}},{key:"deactive",value:function(){var q;sr(e,"deactive",this,3)([]),this.context.renderer.domElement.style.cursor="default",null===(q=this.eventHandler)||void 0===q||q.destroy(),this.reset()}},{key:"reset",value:function(){var q,e=this.context,t=e.scene,n=e.renderer,l=e.camera,o=e.CSS2DRenderer;this.polylines.forEach(function(q){q.instance.remove()}),this.polylines=[],null==t||t.remove(this.dashedLine),this.dashedLine=null,null===(q=this.fan)||void 0===q||q.remove(),this.totalLengthLabels.forEach(function(q){t.remove(q)}),this.totalLengthLabels=[],this.closeLabels.forEach(function(q){t.remove(q)}),this.closeLabels=[],n.render(t,l),o.render(t,l)}},{key:"updateDashedLine",value:function(q){if(2===q.length)if(!1!==F(q)){if(2!==this.currentDashedVertices.length||!this.currentDashedVertices[0].equals(q[0])||!this.currentDashedVertices[1].equals(q[1])){this.currentDashedVertices=q.slice();var e=q[0].distanceTo(q[1]),t=this.computeWorldSizeForPixelSize(6),n=1/e*.5;if(this.dashedLine){var l=new j.Xu({color:3311866,lineWidth:t,dashArray:n});this.updateMeshLine(this.dashedLine,q,l)}else this.dashedLine=En(q)}}else console.error("Invalid vertices detected:",q);else console.error("updateDashedLine expects exactly two vertices")}},{key:"updateFan",value:function(q,e,t){this.fan?this.fan.updatePoints(q,e,t):this.fan=new Uo(er(er({},this.context),{},{fanColor:2083917,borderWidth:this.computeWorldSizeForPixelSize(6),borderColor:2083917,borderType:"dashed"}))}},{key:"updateMeshLine",value:function(q,e,t){var n=this.context.scene;if(!1!==F(e)){var o;if(q.geometry){for(var r=(o=q.geometry).getAttribute("position"),i=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:null,t=Zo.createElement(Dn,{totalLength:q});if(e){var n=this.roots.get(e);return n||(n=(0,Pn.H)(e),this.roots.set(e,n)),n.render(t),e}var l=document.createElement("div"),o=(0,Pn.H)(l);return this.roots.set(l,o),o.render(t),new r.v(l)}},{key:"clearThePolyline",value:function(q){var e=this.context,t=e.scene,n=e.camera,l=e.CSS2DRenderer,o=this.polylines.findIndex(function(e){return e===q});if(o>-1){this.polylines.splice(o,1)[0].instance.remove();var r=this.closeLabels.splice(o,1)[0],i=this.totalLengthLabels.splice(o,1)[0];t.remove(r,i)}l.render(t,n)}},{key:"createOrUpdateCloseLabel",value:function(q){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Zo.createElement(Ko,{polyline:q,clearThePolyline:function(q){return e.clearThePolyline(q)}});if(t){var l=this.roots.get(t);return l||(l=(0,Pn.H)(t),this.roots.set(t,l)),l.render(n),t}var o=document.createElement("div"),i=(0,Pn.H)(o);return this.roots.set(o,i),i.render(n),new r.v(o)}},{key:"computeScreenPosition",value:function(q){var e=this.context,t=e.camera,n=e.renderer,l=q.clone().project(t);return l.x=Math.round((l.x+1)*n.domElement.offsetWidth/2),l.y=Math.round((1-l.y)*n.domElement.offsetHeight/2),l}},{key:"render",value:(o=or(tr().m(function q(){var e,t,n;return tr().w(function(q){for(;;)switch(q.n){case 0:if(0!==this.polylines.length){q.n=1;break}return q.a(2);case 1:(e=this.polylines[this.polylines.length-1]).instance?e.instance.updateVertices(e.coordinates).render():(n=null===(t=this.marker)||void 0===t?void 0:t.clone(),e.instance=new Wo(er(er({},this.context),{},{polylineColor:3311866,lineWidth:this.computeWorldSizeForPixelSize(6),fanColor:2083917,marker:n,label:"length"})).updateVertices(e.coordinates).render());case 2:return q.a(2)}},q,this)})),function(){return o.apply(this,arguments)})},{key:"renderLabel",value:function(){var q=this.context,e=q.scene,t=q.camera,n=q.CSS2DRenderer;if(this.totalLengthLabels.length>0){var l=this.totalLengthLabels[this.totalLengthLabels.length-1],o=this.closeLabels[this.closeLabels.length-1];if(l){var r,i=null===(r=this.polylines[this.totalLengthLabels.length-1])||void 0===r?void 0:r.coordinates.splice(-1)[0];if(i){var a=i.clone(),s=i.clone();a.x-=.4,a.y-=1,a.z=0,l.position.copy(a),s.x+=1.5,s.y-=1.5,s.z=0,o.position.copy(s),e.add(l,o)}}n.render(e,t)}}}],n&&rr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}(Sl);function dr(q){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},dr(q)}function yr(q,e){for(var t=0;t0){var o=e[e.length-1];if(Math.abs(o.x-n.x)+Math.abs(o.y-n.y)3?(l=f===n)&&(a=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=q):o[0]<=h&&((l=t<2&&hn||n>f)&&(o[4]=t,o[5]=n,m.n=f,i=0))}if(l||t>1)return r;throw u=!0,n}return function(l,c,f){if(s>1)throw TypeError("Generator is already running");for(u&&1===c&&h(c,f),i=c,a=f;(e=i<2?q:a)||!u;){o||(i?i<3?(i>1&&(m.n=-1),h(i,a)):m.n=a:m.v=a);try{if(s=2,o){if(i||(l="next"),e=o[l]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=o.return)&&e.call(o),i<2&&(a=TypeError("The iterator does not provide a '"+l+"' method"),i=1);o=q}else if((e=(u=m.n<0)?a:t.call(n,m))!==r)break}catch(e){o=q,i=1,a=e}finally{s=1}}return{value:e,done:u}}}(t,l,o),!0),s}var r={};function i(){}function a(){}function s(){}e=Object.getPrototypeOf;var c=[][n]?e(e([][n]())):(_r(e={},n,function(){return this}),e),u=s.prototype=i.prototype=Object.create(c);function m(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,s):(q.__proto__=s,_r(q,l,"GeneratorFunction")),q.prototype=Object.create(u),q}return a.prototype=s,_r(u,"constructor",s),_r(s,"constructor",a),a.displayName="GeneratorFunction",_r(s,l,"GeneratorFunction"),_r(u),_r(u,l,"Generator"),_r(u,n,function(){return this}),_r(u,"toString",function(){return"[object Generator]"}),(Or=function(){return{w:o,m}})()}function _r(q,e,t,n){var l=Object.defineProperty;try{l({},"",{})}catch(q){l=0}_r=function(q,e,t,n){function o(e,t){_r(q,e,function(q){return this._invoke(e,t,q)})}e?l?l(q,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):q[e]=t:(o("next",0),o("throw",1),o("return",2))},_r(q,e,t,n)}function Sr(q,e){var t=Object.keys(q);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(q);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(q,e).enumerable})),t.push.apply(t,n)}return t}function Mr(q){for(var e=1;e0)return s[0].point;var c=new l.Plane(new l.Vector3(0,0,1),0),u=new l.Vector3;return o.ray.intersectPlane(c,u),u}(q,{camera:n.camera,scene:n.scene,renderer:n.renderer,raycaster:n.raycaster});if(!e||"number"!=typeof e.x||"number"!=typeof e.y)throw new Error("Invalid world position");var t=n.coordinates.applyOffset(e,!0);if(!t||"number"!=typeof t.x||"number"!=typeof t.y)throw new Error("Invalid coordinates after applying offset");n.coordinateDiv.innerText="X: ".concat(t.x.toFixed(2),", Y: ").concat(t.y.toFixed(2))}catch(q){}}),Vr(this,"ifDispose",function(q,e,t,l){q[e]?(t(),n.prevDataStatus[e]=Hr.EXIT):n.prevDataStatus[e]===Hr.EXIT&&(l(),n.prevDataStatus[e]=Hr.UNEXIT)}),Vr(this,"updateMap",function(q){n.map.update(q,!1)}),Vr(this,"updatePointCloud",function(q){n.pointCloud.update(q)}),Vr(this,"updataCoordinates",function(q){n.adc.updateOffset(q,"adc")}),this.canvasId=e,this.initialized=!1,t&&(this.colors=t)},(e=[{key:"render",value:function(){var q;s.kn.mark("carvizRenderStart"),this.initialized&&(null===(q=this.view)||void 0===q||q.setView(),this.renderer.render(this.scene,this.camera),s.PW.logData("renderer",{calls:this.renderer.info.render.calls,frame:this.renderer.info.render.frame}),s.PW.logData("renderer",{triangles:this.renderer.info.render.triangles,geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures},{useStatistics:{useMax:!0}}),s.PW.logData("scene",{objects:this.scene.children.length},{useStatistics:{useMax:!0}}),this.CSS2DRenderer.render(this.scene,this.camera)),s.kn.mark("carvizRenderEnd"),s.kn.measure("carvizRender","carvizRenderStart","carvizRenderEnd")}},{key:"updateDimention",value:function(){var q;this.camera.aspect=this.width/this.height,null===(q=this.camera)||void 0===q||q.updateProjectionMatrix(),this.renderer.setSize(this.width,this.height),this.CSS2DRenderer.setSize(this.width,this.height),this.render()}},{key:"initDom",value:function(){if(this.canvasDom=document.getElementById(this.canvasId),!this.canvasDom||!this.canvasId)throw new Error("no canvas container");this.width=this.canvasDom.clientWidth,this.height=this.canvasDom.clientHeight,this.canvasDom.addEventListener("contextmenu",function(q){q.preventDefault()})}},{key:"resetScence",value:function(){this.scene&&(this.scene=null),this.scene=new l.Scene;var q=new l.DirectionalLight(16772829,2);q.position.set(0,0,10),this.scene.add(q),this.initModule()}},{key:"initThree",value:function(){var q=this;this.scene=new l.Scene,navigator,function(){try{return gr.A.isWebGLAvailable()}catch(q){return!1}}()?(this.renderer=new l.WebGLRenderer({alpha:!0,antialias:!0}),this.renderer.shadowMap.autoUpdate=!1,this.renderer.debug.checkShaderErrors=!1,this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setSize(this.width,this.height),this.renderer.setClearColor(this.colors.bgColor),this.canvasDom.appendChild(this.renderer.domElement)):(this.renderer={},this.handleNoSupport()),this.camera=new l.PerspectiveCamera(E.Default.fov,this.width/this.height,E.Default.near,E.Default.far),this.camera.up.set(0,0,1);var e=new l.DirectionalLight(16772829,2);e.position.set(0,0,10);var t=new l.AmbientLight(16772829,2);t.position.set(0,0,10),this.scene.add(e),this.scene.add(t),this.controls=new o.N(this.camera,this.renderer.domElement),this.controls.enabled=!1,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.listenToKeyEvents(window),this.controls.addEventListener("change",function(){var e;null===(e=q.view)||void 0===e||e.setView(),q.render()}),this.controls.minDistance=2,this.controls.minPolarAngle=0,this.controls.maxPolarAngle=Math.PI/2,this.controls.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.controls.mouseButtons={LEFT:l.MOUSE.ROTATE,MIDDLE:l.MOUSE.DOLLY,RIGHT:l.MOUSE.PAN},new ResizeObserver(function(){var e,t;q.width=null===(e=q.canvasDom)||void 0===e?void 0:e.clientWidth,q.height=null===(t=q.canvasDom)||void 0===t?void 0:t.clientHeight,q.updateDimention()}).observe(this.canvasDom),this.initCSS2DRenderer(),this.updateDimention(),this.render()}},{key:"updateColors",value:function(q){this.colors=q,this.renderer.setClearColor(q.bgColor)}},{key:"initCSS2DRenderer",value:function(){this.CSS2DRenderer=new r.B,this.CSS2DRenderer.setSize(this.width,this.height),this.CSS2DRenderer.domElement.style.position="absolute",this.CSS2DRenderer.domElement.style.top="0",this.CSS2DRenderer.domElement.style.pointerEvents="none",this.canvasDom.appendChild(this.CSS2DRenderer.domElement)}},{key:"initModule",value:function(){this.coordinates=new tn,this.option=new Zt,this.adc=new Ge(this.scene,this.option,this.coordinates),this.view=new T(this.camera,this.controls,this.adc),this.text=new ft(this.camera),this.map=new De(this.scene,this.text,this.option,this.coordinates,this.colors),this.obstacles=new lt(this.scene,this.view,this.text,this.option,this.coordinates,this.colors),this.pointCloud=new xt(this.scene,this.adc,this.option,this.colors),this.routing=new wt(this.scene,this.option,this.coordinates),this.decision=new Pt(this.scene,this.option,this.coordinates,this.colors),this.prediction=new jt(this.scene,this.option,this.coordinates,this.colors),this.planning=new Ut(this.scene,this.option,this.coordinates),this.gps=new Qt(this.scene,this.adc,this.option,this.coordinates),this.follow=new br(this.scene,this.coordinates);var q={scene:this.scene,renderer:this.renderer,camera:this.camera,coordinates:this.coordinates,CSS2DRenderer:this.CSS2DRenderer};this.initiationMarker=new Fl(q),this.pathwayMarker=new io(q),this.copyMarker=new ko(q),this.rulerMarker=new pr(q),this.indoorLocalizationMarker=new Rr(q)}},{key:"init",value:function(){this.initDom(),this.initThree(),this.initModule(),this.initCoordinateDisplay(),this.initMouseHoverEvent(),this.initialized=!0}},{key:"initCoordinateDisplay",value:function(){this.coordinateDiv=document.createElement("div"),this.coordinateDiv.style.position="absolute",this.coordinateDiv.style.right="10px",this.coordinateDiv.style.bottom="10px",this.coordinateDiv.style.backgroundColor="rgba(0, 0, 0, 0.5)",this.coordinateDiv.style.color="white",this.coordinateDiv.style.padding="5px",this.coordinateDiv.style.borderRadius="5px",this.coordinateDiv.style.userSelect="none",this.coordinateDiv.style.pointerEvents="none",this.canvasDom.appendChild(this.coordinateDiv)}},{key:"initMouseHoverEvent",value:function(){var q=this;this.canvasDom.addEventListener("mousemove",function(e){return q.handleMouseMove(e)})}},{key:"updateData",value:function(q){var e=this;this.ifDispose(q,"autoDrivingCar",function(){e.adc.update(Gr(Gr({},q.autoDrivingCar),{},{boudingBox:q.boudingBox}),"adc")},a()),this.ifDispose(q,"shadowLocalization",function(){e.adc.update(q.shadowLocalization,"shadowAdc")},a()),this.ifDispose(q,"vehicleParam",function(){e.adc.updateVehicleParam(q.vehicleParam)},a()),this.ifDispose(q,"planningData",function(){var t;e.adc.update(null===(t=q.planningData.initPoint)||void 0===t?void 0:t.pathPoint,"planningAdc")},a()),this.ifDispose(q,"mainDecision",function(){e.decision.updateMainDecision(q.mainDecision)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"mainStop",function(){e.decision.updateMainDecision(q.mainStop)},function(){e.decision.disposeMainDecisionMeshs()}),this.ifDispose(q,"object",function(){e.decision.updateObstacleDecision(q.object),e.obstacles.update(q.object,q.sensorMeasurements,q.autoDrivingCar||q.CopyAutoDrivingCar||{}),e.prediction.update(q.object)},function(){e.decision.disposeObstacleDecisionMeshs(),e.obstacles.dispose(),e.prediction.dispose()}),this.ifDispose(q,"gps",function(){e.gps.update(q.gps,q.autoDrivingCar)},a()),this.ifDispose(q,"planningTrajectory",function(){e.planning.update(q.planningTrajectory,q.planningData,q.autoDrivingCar)},a()),this.ifDispose(q,"routePath",function(){e.routing.update(q.routingTime,q.routePath)},a()),this.ifDispose(q,"followPlanningData",function(){e.follow.update(q.followPlanningData,q.autoDrivingCar)},a())}},{key:"removeAll",value:function(){this.map.dispose(),this.obstacles.dispose(),this.pointCloud.dispose(),this.routing.dispose(),this.decision.dispose(),this.prediction.dispose(),this.planning.dispose(),this.gps.dispose(),this.follow.dispose()}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}},{key:"handleNoSupport",value:function(){var q=document.createElement("div");q.style.position="absolute",q.style.top="50%",q.style.left="50%",q.style.transform="translate(-50%, -50%)",q.style.fontSize="20px",q.style.color="red",q.innerText="Your browser may not support WebGL or WebGPU. If you are using Firefox, to enable WebGL, please type webgl.disabled into the search box on the about:config page and set it to false.",document.body.appendChild(q),this.canvasDom&&(this.canvasDom.style.display="none")}}])&&Fr(q.prototype,e),Object.defineProperty(q,"prototype",{writable:!1}),q;var q,e}();function Wr(q){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(q){return typeof q}:function(q){return q&&"function"==typeof Symbol&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},Wr(q)}function Xr(q,e){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:100,e=new l.Vector3(0,0,-1).applyQuaternion(this.camera.quaternion);return(new l.Vector3).addVectors(this.camera.position,e.multiplyScalar(q))}},{key:"setCameraUpdateCallback",value:function(q){this.cameraUpdateCallback=q}},{key:"deactiveAll",value:function(){this.initiationMarker.deactive(),this.pathwayMarker.deactive(),this.copyMarker.deactive(),this.rulerMarker.deactive(),this.indoorLocalizationMarker.deactive()}}],n&&Xr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(Yr),li=t(23218),oi=t(52274),ri=t.n(oi);function ii(q,e){return function(q){if(Array.isArray(q))return q}(q)||function(q,e){var t=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=t){var n,l,o,r,i=[],a=!0,s=!1;try{if(o=(t=t.call(q)).next,0===e){if(Object(t)!==t)return;a=!1}else for(;!(a=(n=o.call(t)).done)&&(i.push(n.value),i.length!==e);a=!0);}catch(q){s=!0,l=q}finally{try{if(!a&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(s)throw l}}return i}}(q,e)||function(q,e){if(q){if("string"==typeof q)return ai(q,e);var t={}.toString.call(q).slice(8,-1);return"Object"===t&&q.constructor&&(t=q.constructor.name),"Map"===t||"Set"===t?Array.from(q):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ai(q,e):void 0}}(q,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ai(q,e){(null==e||e>q.length)&&(e=q.length);for(var t=0,n=Array(e);t{var t={310(t){"use strict";t.exports=function(t,n){for(var e=new Array(arguments.length-1),r=0,o=2,i=!0;o1&&"="===t.charAt(n);)++e;return Math.ceil(3*t.length)/4-e};for(var r=new Array(64),o=new Array(123),i=0;i<64;)o[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;e.encode=function(t,n,e){for(var o,i=null,u=[],a=0,c=0;n>2],o=(3&f)<<4,c=1;break;case 1:u[a++]=r[o|f>>4],o=(15&f)<<2,c=2;break;case 2:u[a++]=r[o|f>>6],u[a++]=r[63&f],c=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,u)),a=0)}return c&&(u[a++]=r[o],u[a++]=61,1===c&&(u[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,u.slice(0,a))),i.join("")):String.fromCharCode.apply(String,u.slice(0,a))};var u="invalid encoding";e.decode=function(t,n,e){for(var r,i=e,a=0,c=0;c1)break;if(void 0===(f=o[f]))throw Error(u);switch(a){case 0:r=f,a=1;break;case 1:n[e++]=r<<2|(48&f)>>4,r=f,a=2;break;case 2:n[e++]=(15&r)<<4|(60&f)>>2,r=f,a=3;break;case 3:n[e++]=(3&r)<<6|f,a=0}}if(1===a)throw Error(u);return e-i},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},707(t){"use strict";function n(){this._listeners={}}t.exports=n,n.prototype.on=function(t,n,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:n,ctx:e||this}),this},n.prototype.off=function(t,n){if(void 0===t)this._listeners={};else if(void 0===n)this._listeners[t]=[];else for(var e=this._listeners[t],r=0;r0?0:2147483648,e,r);else if(isNaN(n))t(2143289344,e,r);else if(n>34028234663852886e22)t((o<<31|2139095040)>>>0,e,r);else if(n<11754943508222875e-54)t((o<<31|Math.round(n/1401298464324817e-60))>>>0,e,r);else{var i=Math.floor(Math.log(n)/Math.LN2);t((o<<31|i+127<<23|8388607&Math.round(n*Math.pow(2,-i)*8388608))>>>0,e,r)}}function u(t,n,e){var r=t(n,e),o=2*(r>>31)+1,i=r>>>23&255,u=8388607&r;return 255===i?u?NaN:o*(1/0):0===i?1401298464324817e-60*o*u:o*Math.pow(2,i-150)*(u+8388608)}t.writeFloatLE=n.bind(null,e),t.writeFloatBE=n.bind(null,r),t.readFloatLE=u.bind(null,o),t.readFloatBE=u.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var n=new Float64Array([-0]),e=new Uint8Array(n.buffer),r=128===e[7];function o(t,r,o){n[0]=t,r[o]=e[0],r[o+1]=e[1],r[o+2]=e[2],r[o+3]=e[3],r[o+4]=e[4],r[o+5]=e[5],r[o+6]=e[6],r[o+7]=e[7]}function i(t,r,o){n[0]=t,r[o]=e[7],r[o+1]=e[6],r[o+2]=e[5],r[o+3]=e[4],r[o+4]=e[3],r[o+5]=e[2],r[o+6]=e[1],r[o+7]=e[0]}function u(t,r){return e[0]=t[r],e[1]=t[r+1],e[2]=t[r+2],e[3]=t[r+3],e[4]=t[r+4],e[5]=t[r+5],e[6]=t[r+6],e[7]=t[r+7],n[0]}function a(t,r){return e[7]=t[r],e[6]=t[r+1],e[5]=t[r+2],e[4]=t[r+3],e[3]=t[r+4],e[2]=t[r+5],e[1]=t[r+6],e[0]=t[r+7],n[0]}t.writeDoubleLE=r?o:i,t.writeDoubleBE=r?i:o,t.readDoubleLE=r?u:a,t.readDoubleBE=r?a:u}():function(){function n(t,n,e,r,o,i){var u=r<0?1:0;if(u&&(r=-r),0===r)t(0,o,i+n),t(1/r>0?0:2147483648,o,i+e);else if(isNaN(r))t(0,o,i+n),t(2146959360,o,i+e);else if(r>17976931348623157e292)t(0,o,i+n),t((u<<31|2146435072)>>>0,o,i+e);else{var a;if(r<22250738585072014e-324)t((a=r/5e-324)>>>0,o,i+n),t((u<<31|a/4294967296)>>>0,o,i+e);else{var c=Math.floor(Math.log(r)/Math.LN2);1024===c&&(c=1023),t(4503599627370496*(a=r*Math.pow(2,-c))>>>0,o,i+n),t((u<<31|c+1023<<20|1048576*a&1048575)>>>0,o,i+e)}}}function u(t,n,e,r,o){var i=t(r,o+n),u=t(r,o+e),a=2*(u>>31)+1,c=u>>>20&2047,f=4294967296*(1048575&u)+i;return 2047===c?f?NaN:a*(1/0):0===c?5e-324*a*f:a*Math.pow(2,c-1075)*(f+4503599627370496)}t.writeDoubleLE=n.bind(null,e,0,4),t.writeDoubleBE=n.bind(null,r,4,0),t.readDoubleLE=u.bind(null,o,0,4),t.readDoubleBE=u.bind(null,i,4,0)}(),t}function e(t,n,e){n[e]=255&t,n[e+1]=t>>>8&255,n[e+2]=t>>>16&255,n[e+3]=t>>>24}function r(t,n,e){n[e]=t>>>24,n[e+1]=t>>>16&255,n[e+2]=t>>>8&255,n[e+3]=255&t}function o(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0}function i(t,n){return(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3])>>>0}t.exports=n(n)},230(t,n,e){"use strict";t.exports=function(t){try{var n=e(31)(t);return n&&(n.length||Object.keys(n).length)?n:null}catch(t){return null}}},31(t){function n(t){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=()=>[],n.resolve=n,n.id=31,t.exports=n},319(t){"use strict";t.exports=function(t,n,e){var r=e||8192,o=r>>>1,i=null,u=r;return function(e){if(e<1||e>o)return t(e);u+e>r&&(i=t(r),u=0);var a=n.call(i,u,u+=e);return 7&u&&(u=1+(7|u)),a}}},742(t,n){"use strict";var e=n;e.length=function(t){for(var n=0,e=0,r=0;r=192&&i<224){var u=(31&i)<<6|63&t[o++];r+=u>=128?String.fromCharCode(u):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&t[o++])<<6|63&t[o++];r+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var c=(7&i)<<18|(63&t[o++])<<12|(63&t[o++])<<6|63&t[o++];c<65536||c>1114111?r+="�":(c-=65536,r+=String.fromCharCode(55296+(c>>10)),r+=String.fromCharCode(56320+(1023&c)))}}return r},e.write=function(t,n,e){for(var r,o,i=e,u=0;u>6|192,n[e++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=t.charCodeAt(u+1)))?(r=65536+((1023&r)<<10)+(1023&o),++u,n[e++]=r>>18|240,n[e++]=r>>12&63|128,n[e++]=r>>6&63|128,n[e++]=63&r|128):(n[e++]=r>>12|224,n[e++]=r>>6&63|128,n[e++]=63&r|128);return e-i}},275(t,n,e){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var o,i,u=e(199),a=u.Reader,c=u.Writer,f=u.util,s=u.roots.default||(u.roots.default={});s.apollo=((i={}).dreamview=((o={}).WebsocketInfo=function(){function t(t){if(t)for(var n=Object.keys(t),e=0;e>>3){case 1:r.websocketName=t.string();break;case 2:r.websocketPipe=t.string();break;default:t.skipType(7&o)}}return r},t.decodeDelimited=function(t){return t instanceof a||(t=new a(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!==r(t)||null===t?"object expected":null!=t.websocketName&&t.hasOwnProperty("websocketName")&&!f.isString(t.websocketName)?"websocketName: string expected":null!=t.websocketPipe&&t.hasOwnProperty("websocketPipe")&&!f.isString(t.websocketPipe)?"websocketPipe: string expected":null},t.fromObject=function(t){if(t instanceof s.apollo.dreamview.WebsocketInfo)return t;var n=new s.apollo.dreamview.WebsocketInfo;return null!=t.websocketName&&(n.websocketName=String(t.websocketName)),null!=t.websocketPipe&&(n.websocketPipe=String(t.websocketPipe)),n},t.toObject=function(t,n){n||(n={});var e={};return n.defaults&&(e.websocketName="",e.websocketPipe=""),null!=t.websocketName&&t.hasOwnProperty("websocketName")&&(e.websocketName=t.websocketName),null!=t.websocketPipe&&t.hasOwnProperty("websocketPipe")&&(e.websocketPipe=t.websocketPipe),e},t.prototype.toJSON=function(){return this.constructor.toObject(this,u.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/apollo.dreamview.WebsocketInfo"},t}(),o.ChannelInfo=function(){function t(t){if(t)for(var n=Object.keys(t),e=0;e>>3){case 1:r.channelName=t.string();break;case 2:r.protoPath=t.string();break;case 3:r.msgType=t.string();break;default:t.skipType(7&o)}}return r},t.decodeDelimited=function(t){return t instanceof a||(t=new a(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!==r(t)||null===t?"object expected":null!=t.channelName&&t.hasOwnProperty("channelName")&&!f.isString(t.channelName)?"channelName: string expected":null!=t.protoPath&&t.hasOwnProperty("protoPath")&&!f.isString(t.protoPath)?"protoPath: string expected":null!=t.msgType&&t.hasOwnProperty("msgType")&&!f.isString(t.msgType)?"msgType: string expected":null},t.fromObject=function(t){if(t instanceof s.apollo.dreamview.ChannelInfo)return t;var n=new s.apollo.dreamview.ChannelInfo;return null!=t.channelName&&(n.channelName=String(t.channelName)),null!=t.protoPath&&(n.protoPath=String(t.protoPath)),null!=t.msgType&&(n.msgType=String(t.msgType)),n},t.toObject=function(t,n){n||(n={});var e={};return n.defaults&&(e.channelName="",e.protoPath="",e.msgType=""),null!=t.channelName&&t.hasOwnProperty("channelName")&&(e.channelName=t.channelName),null!=t.protoPath&&t.hasOwnProperty("protoPath")&&(e.protoPath=t.protoPath),null!=t.msgType&&t.hasOwnProperty("msgType")&&(e.msgType=t.msgType),e},t.prototype.toJSON=function(){return this.constructor.toObject(this,u.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/apollo.dreamview.ChannelInfo"},t}(),o.DataHandlerInfo=function(){function t(t){if(this.channels=[],t)for(var n=Object.keys(t),e=0;e>>3){case 1:r.dataName=t.string();break;case 2:r.protoPath=t.string();break;case 3:r.msgType=t.string();break;case 4:r.websocketInfo=s.apollo.dreamview.WebsocketInfo.decode(t,t.uint32());break;case 5:r.differentForChannels=t.bool();break;case 6:r.channels&&r.channels.length||(r.channels=[]),r.channels.push(s.apollo.dreamview.ChannelInfo.decode(t,t.uint32()));break;default:t.skipType(7&o)}}return r},t.decodeDelimited=function(t){return t instanceof a||(t=new a(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!==r(t)||null===t)return"object expected";if(null!=t.dataName&&t.hasOwnProperty("dataName")&&!f.isString(t.dataName))return"dataName: string expected";if(null!=t.protoPath&&t.hasOwnProperty("protoPath")&&!f.isString(t.protoPath))return"protoPath: string expected";if(null!=t.msgType&&t.hasOwnProperty("msgType")&&!f.isString(t.msgType))return"msgType: string expected";if(null!=t.websocketInfo&&t.hasOwnProperty("websocketInfo")&&(e=s.apollo.dreamview.WebsocketInfo.verify(t.websocketInfo)))return"websocketInfo."+e;if(null!=t.differentForChannels&&t.hasOwnProperty("differentForChannels")&&"boolean"!=typeof t.differentForChannels)return"differentForChannels: boolean expected";if(null!=t.channels&&t.hasOwnProperty("channels")){if(!Array.isArray(t.channels))return"channels: array expected";for(var n=0;n>>3==1){i.dataHandlerInfo===f.emptyObject&&(i.dataHandlerInfo={});var c=t.uint32()+t.pos;for(e="",r=null;t.pos>>3){case 1:e=t.string();break;case 2:r=s.apollo.dreamview.DataHandlerInfo.decode(t,t.uint32());break;default:t.skipType(7&l)}}i.dataHandlerInfo[e]=r}else t.skipType(7&u)}return i},t.decodeDelimited=function(t){return t instanceof a||(t=new a(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!==r(t)||null===t)return"object expected";if(null!=t.dataHandlerInfo&&t.hasOwnProperty("dataHandlerInfo")){if(!f.isObject(t.dataHandlerInfo))return"dataHandlerInfo: object expected";for(var n=Object.keys(t.dataHandlerInfo),e=0;e>>3){case 1:r.type=t.string();break;case 2:r.action=t.string();break;case 3:r.dataName=t.string();break;case 4:r.channelName=t.string();break;case 5:r.data=t.bytes();break;default:t.skipType(7&o)}}return r},t.decodeDelimited=function(t){return t instanceof a||(t=new a(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!==r(t)||null===t?"object expected":null!=t.type&&t.hasOwnProperty("type")&&!f.isString(t.type)?"type: string expected":null!=t.action&&t.hasOwnProperty("action")&&!f.isString(t.action)?"action: string expected":null!=t.dataName&&t.hasOwnProperty("dataName")&&!f.isString(t.dataName)?"dataName: string expected":null!=t.channelName&&t.hasOwnProperty("channelName")&&!f.isString(t.channelName)?"channelName: string expected":null!=t.data&&t.hasOwnProperty("data")&&!(t.data&&"number"==typeof t.data.length||f.isString(t.data))?"data: buffer expected":null},t.fromObject=function(t){if(t instanceof s.apollo.dreamview.StreamData)return t;var n=new s.apollo.dreamview.StreamData;return null!=t.type&&(n.type=String(t.type)),null!=t.action&&(n.action=String(t.action)),null!=t.dataName&&(n.dataName=String(t.dataName)),null!=t.channelName&&(n.channelName=String(t.channelName)),null!=t.data&&("string"==typeof t.data?f.base64.decode(t.data,n.data=f.newBuffer(f.base64.length(t.data)),0):t.data.length>=0&&(n.data=t.data)),n},t.toObject=function(t,n){n||(n={});var e={};return n.defaults&&(e.type="",e.action="",e.dataName="",e.channelName="",n.bytes===String?e.data="":(e.data=[],n.bytes!==Array&&(e.data=f.newBuffer(e.data)))),null!=t.type&&t.hasOwnProperty("type")&&(e.type=t.type),null!=t.action&&t.hasOwnProperty("action")&&(e.action=t.action),null!=t.dataName&&t.hasOwnProperty("dataName")&&(e.dataName=t.dataName),null!=t.channelName&&t.hasOwnProperty("channelName")&&(e.channelName=t.channelName),null!=t.data&&t.hasOwnProperty("data")&&(e.data=n.bytes===String?f.base64.encode(t.data,0,t.data.length):n.bytes===Array?Array.prototype.slice.call(t.data):t.data),e},t.prototype.toJSON=function(){return this.constructor.toObject(this,u.util.toJSONOptions)},t.getTypeUrl=function(t){return void 0===t&&(t="type.googleapis.com"),t+"/apollo.dreamview.StreamData"},t}(),o),i),t.exports=s},76(t,n,e){var r;t=e.nmd(t),function(){var o,i="Expected a function",u="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,f=128,s=1/0,l=9007199254740991,h=NaN,p=4294967295,d=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],v="[object Arguments]",y="[object Array]",g="[object Boolean]",b="[object Date]",_="[object Error]",m="[object Function]",w="[object GeneratorFunction]",O="[object Map]",k="[object Number]",x="[object Object]",S="[object Promise]",j="[object RegExp]",I="[object Set]",E="[object String]",N="[object Symbol]",A="[object WeakMap]",P="[object ArrayBuffer]",T="[object DataView]",C="[object Float32Array]",L="[object Float64Array]",B="[object Int8Array]",R="[object Int16Array]",D="[object Int32Array]",z="[object Uint8Array]",W="[object Uint8ClampedArray]",F="[object Uint16Array]",U="[object Uint32Array]",M=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,G=RegExp(q.source),K=RegExp(J.source),Z=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(nt.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,mt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Ot="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",xt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\ufe0e\\ufe0f",It="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="["+wt+"]",Nt="["+It+"]",At="["+Ot+"]",Pt="\\d+",Tt="["+kt+"]",Ct="["+xt+"]",Lt="[^"+wt+It+Pt+kt+xt+St+"]",Bt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+wt+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+St+"]",Ft="\\u200d",Ut="(?:"+Ct+"|"+Lt+")",Mt="(?:"+Wt+"|"+Lt+")",Ht="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+At+"|"+Bt+")?",Jt="["+jt+"]?",Gt=Jt+qt+"(?:"+Ft+"(?:"+[Rt,Dt,zt].join("|")+")"+Jt+qt+")*",Kt="(?:"+[Tt,Dt,zt].join("|")+")"+Gt,Zt="(?:"+[Rt+At+"?",At,Dt,zt,Et].join("|")+")",Yt=RegExp("['’]","g"),Vt=RegExp(At,"g"),Qt=RegExp(Bt+"(?="+Bt+")|"+Zt+Gt,"g"),Xt=RegExp([Wt+"?"+Ct+"+"+Ht+"(?="+[Nt,Wt,"$"].join("|")+")",Mt+"+"+$t+"(?="+[Nt,Wt+Ut,"$"].join("|")+")",Wt+"?"+Ut+"+"+Ht,Wt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Kt].join("|"),"g"),tn=RegExp("["+Ft+wt+Ot+jt+"]"),nn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,en=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,on={};on[C]=on[L]=on[B]=on[R]=on[D]=on[z]=on[W]=on[F]=on[U]=!0,on[v]=on[y]=on[P]=on[g]=on[T]=on[b]=on[_]=on[m]=on[O]=on[k]=on[x]=on[j]=on[I]=on[E]=on[A]=!1;var un={};un[v]=un[y]=un[P]=un[T]=un[g]=un[b]=un[C]=un[L]=un[B]=un[R]=un[D]=un[O]=un[k]=un[x]=un[j]=un[I]=un[E]=un[N]=un[z]=un[W]=un[F]=un[U]=!0,un[_]=un[m]=un[A]=!1;var an={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cn=parseFloat,fn=parseInt,sn="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,ln="object"==typeof self&&self&&self.Object===Object&&self,hn=sn||ln||Function("return this")(),pn=n&&!n.nodeType&&n,dn=pn&&t&&!t.nodeType&&t,vn=dn&&dn.exports===pn,yn=vn&&sn.process,gn=function(){try{return dn&&dn.require&&dn.require("util").types||yn&&yn.binding&&yn.binding("util")}catch(t){}}(),bn=gn&&gn.isArrayBuffer,_n=gn&&gn.isDate,mn=gn&&gn.isMap,wn=gn&&gn.isRegExp,On=gn&&gn.isSet,kn=gn&&gn.isTypedArray;function xn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function Sn(t,n,e,r){for(var o=-1,i=null==t?0:t.length;++o-1}function Pn(t,n,e){for(var r=-1,o=null==t?0:t.length;++r-1;);return e}function te(t,n){for(var e=t.length;e--&&Fn(n,t[e],0)>-1;);return e}var ne=qn({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ee=qn({"&":"&","<":"<",">":">",'"':""","'":"'"});function re(t){return"\\"+an[t]}function oe(t){return tn.test(t)}function ie(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function ue(t,n){return function(e){return t(n(e))}}function ae(t,n){for(var e=-1,r=t.length,o=0,i=[];++e",""":'"',"'":"'"}),de=function t(n){var e,r=(n=null==n?hn:de.defaults(hn.Object(),n,de.pick(hn,en))).Array,ot=n.Date,wt=n.Error,Ot=n.Function,kt=n.Math,xt=n.Object,St=n.RegExp,jt=n.String,It=n.TypeError,Et=r.prototype,Nt=Ot.prototype,At=xt.prototype,Pt=n["__core-js_shared__"],Tt=Nt.toString,Ct=At.hasOwnProperty,Lt=0,Bt=(e=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Rt=At.toString,Dt=Tt.call(xt),zt=hn._,Wt=St("^"+Tt.call(Ct).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=vn?n.Buffer:o,Ut=n.Symbol,Mt=n.Uint8Array,Ht=Ft?Ft.allocUnsafe:o,$t=ue(xt.getPrototypeOf,xt),qt=xt.create,Jt=At.propertyIsEnumerable,Gt=Et.splice,Kt=Ut?Ut.isConcatSpreadable:o,Zt=Ut?Ut.iterator:o,Qt=Ut?Ut.toStringTag:o,tn=function(){try{var t=fi(xt,"defineProperty");return t({},"",{}),t}catch(t){}}(),an=n.clearTimeout!==hn.clearTimeout&&n.clearTimeout,sn=ot&&ot.now!==hn.Date.now&&ot.now,ln=n.setTimeout!==hn.setTimeout&&n.setTimeout,pn=kt.ceil,dn=kt.floor,yn=xt.getOwnPropertySymbols,gn=Ft?Ft.isBuffer:o,Dn=n.isFinite,qn=Et.join,ve=ue(xt.keys,xt),ye=kt.max,ge=kt.min,be=ot.now,_e=n.parseInt,me=kt.random,we=Et.reverse,Oe=fi(n,"DataView"),ke=fi(n,"Map"),xe=fi(n,"Promise"),Se=fi(n,"Set"),je=fi(n,"WeakMap"),Ie=fi(xt,"create"),Ee=je&&new je,Ne={},Ae=Di(Oe),Pe=Di(ke),Te=Di(xe),Ce=Di(Se),Le=Di(je),Be=Ut?Ut.prototype:o,Re=Be?Be.valueOf:o,De=Be?Be.toString:o;function ze(t){if(ta(t)&&!Hu(t)&&!(t instanceof Me)){if(t instanceof Ue)return t;if(Ct.call(t,"__wrapped__"))return zi(t)}return new Ue(t)}var We=function(){function t(){}return function(n){if(!Xu(n))return{};if(qt)return qt(n);t.prototype=n;var e=new t;return t.prototype=o,e}}();function Fe(){}function Ue(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=o}function Me(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function He(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function ur(t,n,e,r,i,u){var a,c=1&n,f=2&n,s=4&n;if(e&&(a=i?e(t,r,i,u):e(t)),a!==o)return a;if(!Xu(t))return t;var l=Hu(t);if(l){if(a=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&Ct.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return Io(t,a)}else{var h=hi(t),p=h==m||h==w;if(Gu(t))return wo(t,c);if(h==x||h==v||p&&!i){if(a=f||p?{}:di(t),!c)return f?function(t,n){return Eo(t,li(t),n)}(t,function(t,n){return t&&Eo(n,Pa(n),t)}(a,t)):function(t,n){return Eo(t,si(t),n)}(t,er(a,t))}else{if(!un[h])return i?t:{};a=function(t,n,e){var r,o=t.constructor;switch(n){case P:return Oo(t);case g:case b:return new o(+t);case T:return function(t,n){var e=n?Oo(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case C:case L:case B:case R:case D:case z:case W:case F:case U:return ko(t,e);case O:return new o;case k:case E:return new o(t);case j:return function(t){var n=new t.constructor(t.source,ht.exec(t));return n.lastIndex=t.lastIndex,n}(t);case I:return new o;case N:return r=t,Re?xt(Re.call(r)):{}}}(t,h,c)}}u||(u=new Ge);var d=u.get(t);if(d)return d;u.set(t,a),ia(t)?t.forEach(function(r){a.add(ur(r,n,e,r,t,u))}):na(t)&&t.forEach(function(r,o){a.set(o,ur(r,n,e,o,t,u))});var y=l?o:(s?f?ei:ni:f?Pa:Aa)(t);return jn(y||t,function(r,o){y&&(r=t[o=r]),Xe(a,o,ur(r,n,e,o,t,u))}),a}function ar(t,n,e){var r=e.length;if(null==t)return!r;for(t=xt(t);r--;){var i=e[r],u=n[i],a=t[i];if(a===o&&!(i in t)||!u(a))return!1}return!0}function cr(t,n,e){if("function"!=typeof t)throw new It(i);return Ei(function(){t.apply(o,e)},n)}function fr(t,n,e,r){var o=-1,i=An,u=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=Tn(n,Yn(e))),r?(i=Pn,u=!1):n.length>=200&&(i=Qn,u=!1,n=new Je(n));t:for(;++o-1},$e.prototype.set=function(t,n){var e=this.__data__,r=tr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},qe.prototype.clear=function(){this.size=0,this.__data__={hash:new He,map:new(ke||$e),string:new He}},qe.prototype.delete=function(t){var n=ai(this,t).delete(t);return this.size-=n?1:0,n},qe.prototype.get=function(t){return ai(this,t).get(t)},qe.prototype.has=function(t){return ai(this,t).has(t)},qe.prototype.set=function(t,n){var e=ai(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},Je.prototype.add=Je.prototype.push=function(t){return this.__data__.set(t,u),this},Je.prototype.has=function(t){return this.__data__.has(t)},Ge.prototype.clear=function(){this.__data__=new $e,this.size=0},Ge.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},Ge.prototype.get=function(t){return this.__data__.get(t)},Ge.prototype.has=function(t){return this.__data__.has(t)},Ge.prototype.set=function(t,n){var e=this.__data__;if(e instanceof $e){var r=e.__data__;if(!ke||r.length<199)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new qe(r)}return e.set(t,n),this.size=e.size,this};var sr=Po(br),lr=Po(_r,!0);function hr(t,n){var e=!0;return sr(t,function(t,r,o){return e=!!n(t,r,o)}),e}function pr(t,n,e){for(var r=-1,i=t.length;++r0&&e(a)?n>1?vr(a,n-1,e,r,o):Cn(o,a):r||(o[o.length]=a)}return o}var yr=To(),gr=To(!0);function br(t,n){return t&&yr(t,n,Aa)}function _r(t,n){return t&&gr(t,n,Aa)}function mr(t,n){return Nn(n,function(n){return Yu(t[n])})}function wr(t,n){for(var e=0,r=(n=go(n,t)).length;null!=t&&en}function Sr(t,n){return null!=t&&Ct.call(t,n)}function jr(t,n){return null!=t&&n in xt(t)}function Ir(t,n,e){for(var i=e?Pn:An,u=t[0].length,a=t.length,c=a,f=r(a),s=1/0,l=[];c--;){var h=t[c];c&&n&&(h=Tn(h,Yn(n))),s=ge(h.length,s),f[c]=!e&&(n||u>=120&&h.length>=120)?new Je(c&&h):o}h=t[0];var p=-1,d=f[0];t:for(;++p=a?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)});n--;)t[n]=t[n].value;return t}(o)}function Mr(t,n,e){for(var r=-1,o=n.length,i={};++r-1;)a!==t&&Gt.call(a,c,1),Gt.call(t,c,1);return t}function $r(t,n){for(var e=t?n.length:0,r=e-1;e--;){var o=n[e];if(e==r||o!==i){var i=o;yi(o)?Gt.call(t,o,1):co(t,o)}}return t}function qr(t,n){return t+dn(me()*(n-t+1))}function Jr(t,n){var e="";if(!t||n<1||n>l)return e;do{n%2&&(e+=t),(n=dn(n/2))&&(t+=t)}while(n);return e}function Gr(t,n){return Ni(xi(t,n,ec),t+"")}function Kr(t){return Ze(Wa(t))}function Zr(t,n){var e=Wa(t);return Ti(e,ir(n,0,e.length))}function Yr(t,n,e,r){if(!Xu(t))return t;for(var i=-1,u=(n=go(n,t)).length,a=u-1,c=t;null!=c&&++ii?0:i+n),(e=e>i?i:e)<0&&(e+=i),i=n>e?0:e-n>>>0,n>>>=0;for(var u=r(i);++o>>1,u=t[i];null!==u&&!aa(u)&&(e?u<=n:u=200){var f=n?null:Go(t);if(f)return ce(f);u=!1,o=Qn,c=new Je}else c=n?[]:a;t:for(;++r=r?t:to(t,n,e)}var mo=an||function(t){return hn.clearTimeout(t)};function wo(t,n){if(n)return t.slice();var e=t.length,r=Ht?Ht(e):new t.constructor(e);return t.copy(r),r}function Oo(t){var n=new t.constructor(t.byteLength);return new Mt(n).set(new Mt(t)),n}function ko(t,n){var e=n?Oo(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function xo(t,n){if(t!==n){var e=t!==o,r=null===t,i=t==t,u=aa(t),a=n!==o,c=null===n,f=n==n,s=aa(n);if(!c&&!s&&!u&&t>n||u&&a&&f&&!c&&!s||r&&a&&f||!e&&f||!i)return 1;if(!r&&!u&&!s&&t1?e[i-1]:o,a=i>2?e[2]:o;for(u=t.length>3&&"function"==typeof u?(i--,u):o,a&&gi(e[0],e[1],a)&&(u=i<3?o:u,i=1),n=xt(n);++r-1?i[u?n[a]:a]:o}}function Do(t){return ti(function(n){var e=n.length,r=e,u=Ue.prototype.thru;for(t&&n.reverse();r--;){var a=n[r];if("function"!=typeof a)throw new It(i);if(u&&!c&&"wrapper"==oi(a))var c=new Ue([],!0)}for(r=c?r:e;++r1&&m.reverse(),p&&l<_&&(m.length=l),this&&this!==hn&&this instanceof f&&(j=b||Bo(j)),j.apply(S,m)}}function Wo(t,n){return function(e,r){return function(t,n,e,r){return br(t,function(t,o,i){n(r,e(t),o,i)}),r}(e,t,n(r),{})}}function Fo(t,n){return function(e,r){var i;if(e===o&&r===o)return n;if(e!==o&&(i=e),r!==o){if(i===o)return r;"string"==typeof e||"string"==typeof r?(e=uo(e),r=uo(r)):(e=io(e),r=io(r)),i=t(e,r)}return i}}function Uo(t){return ti(function(n){return n=Tn(n,Yn(ui())),Gr(function(e){var r=this;return t(n,function(t){return xn(t,r,e)})})})}function Mo(t,n){var e=(n=n===o?" ":uo(n)).length;if(e<2)return e?Jr(n,t):n;var r=Jr(n,pn(t/se(n)));return oe(n)?_o(le(r),0,t).join(""):r.slice(0,t)}function Ho(t){return function(n,e,i){return i&&"number"!=typeof i&&gi(n,e,i)&&(e=i=o),n=ha(n),e===o?(e=n,n=0):e=ha(e),function(t,n,e,o){for(var i=-1,u=ye(pn((n-t)/(e||1)),0),a=r(u);u--;)a[o?u:++i]=t,t+=e;return a}(n,e,i=i===o?nc))return!1;var s=u.get(t),l=u.get(n);if(s&&l)return s==n&&l==t;var h=-1,p=!0,d=2&e?new Je:o;for(u.set(t,n),u.set(n,t);++h-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return jn(d,function(e){var r="_."+e[0];n&e[1]&&!An(t,r)&&t.push(r)}),t.sort()}(function(t){var n=t.match(ut);return n?n[1].split(at):[]}(r),e)))}function Pi(t){var n=0,e=0;return function(){var r=be(),i=16-(r-e);if(e=r,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(o,arguments)}}function Ti(t,n){var e=-1,r=t.length,i=r-1;for(n=n===o?r:n;++e1?t[n-1]:o;return e="function"==typeof e?(t.pop(),e):o,ou(t,e)});function lu(t){var n=ze(t);return n.__chain__=!0,n}function hu(t,n){return n(t)}var pu=ti(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return or(n,t)};return!(n>1||this.__actions__.length)&&r instanceof Me&&yi(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:hu,args:[i],thisArg:o}),new Ue(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(o),t})):this.thru(i)}),du=No(function(t,n,e){Ct.call(t,e)?++t[e]:rr(t,e,1)}),vu=Ro(Mi),yu=Ro(Hi);function gu(t,n){return(Hu(t)?jn:sr)(t,ui(n,3))}function bu(t,n){return(Hu(t)?In:lr)(t,ui(n,3))}var _u=No(function(t,n,e){Ct.call(t,e)?t[e].push(n):rr(t,e,[n])}),mu=Gr(function(t,n,e){var o=-1,i="function"==typeof n,u=qu(t)?r(t.length):[];return sr(t,function(t){u[++o]=i?xn(n,t,e):Er(t,n,e)}),u}),wu=No(function(t,n,e){rr(t,e,n)});function Ou(t,n){return(Hu(t)?Tn:Rr)(t,ui(n,3))}var ku=No(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),xu=Gr(function(t,n){if(null==t)return[];var e=n.length;return e>1&&gi(t,n[0],n[1])?n=[]:e>2&&gi(n[0],n[1],n[2])&&(n=[n[0]]),Ur(t,vr(n,1),[])}),Su=sn||function(){return hn.Date.now()};function ju(t,n,e){return n=e?o:n,n=t&&null==n?t.length:n,Zo(t,f,o,o,o,o,n)}function Iu(t,n){var e;if("function"!=typeof n)throw new It(i);return t=pa(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=o),e}}var Eu=Gr(function(t,n,e){var r=1;if(e.length){var o=ae(e,ii(Eu));r|=c}return Zo(t,r,n,e,o)}),Nu=Gr(function(t,n,e){var r=3;if(e.length){var o=ae(e,ii(Nu));r|=c}return Zo(n,r,t,e,o)});function Au(t,n,e){var r,u,a,c,f,s,l=0,h=!1,p=!1,d=!0;if("function"!=typeof t)throw new It(i);function v(n){var e=r,i=u;return r=u=o,l=n,c=t.apply(i,e)}function y(t){var e=t-s;return s===o||e>=n||e<0||p&&t-l>=a}function g(){var t=Su();if(y(t))return b(t);f=Ei(g,function(t){var e=n-(t-s);return p?ge(e,a-(t-l)):e}(t))}function b(t){return f=o,d&&r?v(t):(r=u=o,c)}function _(){var t=Su(),e=y(t);if(r=arguments,u=this,s=t,e){if(f===o)return function(t){return l=t,f=Ei(g,n),h?v(t):c}(s);if(p)return mo(f),f=Ei(g,n),v(s)}return f===o&&(f=Ei(g,n)),c}return n=va(n)||0,Xu(e)&&(h=!!e.leading,a=(p="maxWait"in e)?ye(va(e.maxWait)||0,n):a,d="trailing"in e?!!e.trailing:d),_.cancel=function(){f!==o&&mo(f),l=0,r=s=u=f=o},_.flush=function(){return f===o?c:b(Su())},_}var Pu=Gr(function(t,n){return cr(t,1,n)}),Tu=Gr(function(t,n,e){return cr(t,va(n)||0,e)});function Cu(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new It(i);var e=function(){var r=arguments,o=n?n.apply(this,r):r[0],i=e.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return e.cache=i.set(o,u)||i,u};return e.cache=new(Cu.Cache||qe),e}function Lu(t){if("function"!=typeof t)throw new It(i);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Cu.Cache=qe;var Bu=bo(function(t,n){var e=(n=1==n.length&&Hu(n[0])?Tn(n[0],Yn(ui())):Tn(vr(n,1),Yn(ui()))).length;return Gr(function(r){for(var o=-1,i=ge(r.length,e);++o=n}),Mu=Nr(function(){return arguments}())?Nr:function(t){return ta(t)&&Ct.call(t,"callee")&&!Jt.call(t,"callee")},Hu=r.isArray,$u=bn?Yn(bn):function(t){return ta(t)&&kr(t)==P};function qu(t){return null!=t&&Qu(t.length)&&!Yu(t)}function Ju(t){return ta(t)&&qu(t)}var Gu=gn||vc,Ku=_n?Yn(_n):function(t){return ta(t)&&kr(t)==b};function Zu(t){if(!ta(t))return!1;var n=kr(t);return n==_||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Yu(t){if(!Xu(t))return!1;var n=kr(t);return n==m||n==w||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Vu(t){return"number"==typeof t&&t==pa(t)}function Qu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=l}function Xu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ta(t){return null!=t&&"object"==typeof t}var na=mn?Yn(mn):function(t){return ta(t)&&hi(t)==O};function ea(t){return"number"==typeof t||ta(t)&&kr(t)==k}function ra(t){if(!ta(t)||kr(t)!=x)return!1;var n=$t(t);if(null===n)return!0;var e=Ct.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Tt.call(e)==Dt}var oa=wn?Yn(wn):function(t){return ta(t)&&kr(t)==j},ia=On?Yn(On):function(t){return ta(t)&&hi(t)==I};function ua(t){return"string"==typeof t||!Hu(t)&&ta(t)&&kr(t)==E}function aa(t){return"symbol"==typeof t||ta(t)&&kr(t)==N}var ca=kn?Yn(kn):function(t){return ta(t)&&Qu(t.length)&&!!on[kr(t)]},fa=$o(Br),sa=$o(function(t,n){return t<=n});function la(t){if(!t)return[];if(qu(t))return ua(t)?le(t):Io(t);if(Zt&&t[Zt])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Zt]());var n=hi(t);return(n==O?ie:n==I?ce:Wa)(t)}function ha(t){return t?(t=va(t))===s||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function pa(t){var n=ha(t),e=n%1;return n==n?e?n-e:n:0}function da(t){return t?ir(pa(t),0,p):0}function va(t){if("number"==typeof t)return t;if(aa(t))return h;if(Xu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Xu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Zn(t);var e=dt.test(t);return e||yt.test(t)?fn(t.slice(2),e?2:8):pt.test(t)?h:+t}function ya(t){return Eo(t,Pa(t))}function ga(t){return null==t?"":uo(t)}var ba=Ao(function(t,n){if(wi(n)||qu(n))Eo(n,Aa(n),t);else for(var e in n)Ct.call(n,e)&&Xe(t,e,n[e])}),_a=Ao(function(t,n){Eo(n,Pa(n),t)}),ma=Ao(function(t,n,e,r){Eo(n,Pa(n),t,r)}),wa=Ao(function(t,n,e,r){Eo(n,Aa(n),t,r)}),Oa=ti(or),ka=Gr(function(t,n){t=xt(t);var e=-1,r=n.length,i=r>2?n[2]:o;for(i&&gi(n[0],n[1],i)&&(r=1);++e1),n}),Eo(t,ei(t),e),r&&(e=ur(e,7,Qo));for(var o=n.length;o--;)co(e,n[o]);return e}),Ba=ti(function(t,n){return null==t?{}:function(t,n){return Mr(t,n,function(n,e){return ja(t,e)})}(t,n)});function Ra(t,n){if(null==t)return{};var e=Tn(ei(t),function(t){return[t]});return n=ui(n),Mr(t,e,function(t,e){return n(t,e[0])})}var Da=Ko(Aa),za=Ko(Pa);function Wa(t){return null==t?[]:Vn(t,Aa(t))}var Fa=Lo(function(t,n,e){return n=n.toLowerCase(),t+(e?Ua(n):n)});function Ua(t){return Za(ga(t).toLowerCase())}function Ma(t){return(t=ga(t))&&t.replace(bt,ne).replace(Vt,"")}var Ha=Lo(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),$a=Lo(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),qa=Co("toLowerCase"),Ja=Lo(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),Ga=Lo(function(t,n,e){return t+(e?" ":"")+Za(n)}),Ka=Lo(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),Za=Co("toUpperCase");function Ya(t,n,e){return t=ga(t),(n=e?o:n)===o?function(t){return nn.test(t)}(t)?function(t){return t.match(Xt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(n)||[]}var Va=Gr(function(t,n){try{return xn(t,o,n)}catch(t){return Zu(t)?t:new wt(t)}}),Qa=ti(function(t,n){return jn(n,function(n){n=Ri(n),rr(t,n,Eu(t[n],t))}),t});function Xa(t){return function(){return t}}var tc=Do(),nc=Do(!0);function ec(t){return t}function rc(t){return Cr("function"==typeof t?t:ur(t,1))}var oc=Gr(function(t,n){return function(e){return Er(e,t,n)}}),ic=Gr(function(t,n){return function(e){return Er(t,e,n)}});function uc(t,n,e){var r=Aa(n),o=mr(n,r);null!=e||Xu(n)&&(o.length||!r.length)||(e=n,n=t,t=this,o=mr(n,Aa(n)));var i=!(Xu(e)&&"chain"in e&&!e.chain),u=Yu(t);return jn(o,function(e){var r=n[e];t[e]=r,u&&(t.prototype[e]=function(){var n=this.__chain__;if(i||n){var e=t(this.__wrapped__);return(e.__actions__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,Cn([this.value()],arguments))})}),t}function ac(){}var cc=Uo(Tn),fc=Uo(En),sc=Uo(Rn);function lc(t){return bi(t)?$n(Ri(t)):function(t){return function(n){return wr(n,t)}}(t)}var hc=Ho(),pc=Ho(!0);function dc(){return[]}function vc(){return!1}var yc,gc=Fo(function(t,n){return t+n},0),bc=Jo("ceil"),_c=Fo(function(t,n){return t/n},1),mc=Jo("floor"),wc=Fo(function(t,n){return t*n},1),Oc=Jo("round"),kc=Fo(function(t,n){return t-n},0);return ze.after=function(t,n){if("function"!=typeof n)throw new It(i);return t=pa(t),function(){if(--t<1)return n.apply(this,arguments)}},ze.ary=ju,ze.assign=ba,ze.assignIn=_a,ze.assignInWith=ma,ze.assignWith=wa,ze.at=Oa,ze.before=Iu,ze.bind=Eu,ze.bindAll=Qa,ze.bindKey=Nu,ze.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hu(t)?t:[t]},ze.chain=lu,ze.chunk=function(t,n,e){n=(e?gi(t,n,e):n===o)?1:ye(pa(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var u=0,a=0,c=r(pn(i/n));ui?0:i+e),(r=r===o||r>i?i:pa(r))<0&&(r+=i),r=e>r?0:da(r);e>>0)?(t=ga(t))&&("string"==typeof n||null!=n&&!oa(n))&&!(n=uo(n))&&oe(t)?_o(le(t),0,e):t.split(n,e):[]},ze.spread=function(t,n){if("function"!=typeof t)throw new It(i);return n=null==n?0:ye(pa(n),0),Gr(function(e){var r=e[n],o=_o(e,0,n);return r&&Cn(o,r),xn(t,this,o)})},ze.tail=function(t){var n=null==t?0:t.length;return n?to(t,1,n):[]},ze.take=function(t,n,e){return t&&t.length?to(t,0,(n=e||n===o?1:pa(n))<0?0:n):[]},ze.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?to(t,(n=r-(n=e||n===o?1:pa(n)))<0?0:n,r):[]},ze.takeRightWhile=function(t,n){return t&&t.length?so(t,ui(n,3),!1,!0):[]},ze.takeWhile=function(t,n){return t&&t.length?so(t,ui(n,3)):[]},ze.tap=function(t,n){return n(t),t},ze.throttle=function(t,n,e){var r=!0,o=!0;if("function"!=typeof t)throw new It(i);return Xu(e)&&(r="leading"in e?!!e.leading:r,o="trailing"in e?!!e.trailing:o),Au(t,n,{leading:r,maxWait:n,trailing:o})},ze.thru=hu,ze.toArray=la,ze.toPairs=Da,ze.toPairsIn=za,ze.toPath=function(t){return Hu(t)?Tn(t,Ri):aa(t)?[t]:Io(Bi(ga(t)))},ze.toPlainObject=ya,ze.transform=function(t,n,e){var r=Hu(t),o=r||Gu(t)||ca(t);if(n=ui(n,4),null==e){var i=t&&t.constructor;e=o?r?new i:[]:Xu(t)&&Yu(i)?We($t(t)):{}}return(o?jn:br)(t,function(t,r,o){return n(e,t,r,o)}),e},ze.unary=function(t){return ju(t,1)},ze.union=tu,ze.unionBy=nu,ze.unionWith=eu,ze.uniq=function(t){return t&&t.length?ao(t):[]},ze.uniqBy=function(t,n){return t&&t.length?ao(t,ui(n,2)):[]},ze.uniqWith=function(t,n){return n="function"==typeof n?n:o,t&&t.length?ao(t,o,n):[]},ze.unset=function(t,n){return null==t||co(t,n)},ze.unzip=ru,ze.unzipWith=ou,ze.update=function(t,n,e){return null==t?t:fo(t,n,yo(e))},ze.updateWith=function(t,n,e,r){return r="function"==typeof r?r:o,null==t?t:fo(t,n,yo(e),r)},ze.values=Wa,ze.valuesIn=function(t){return null==t?[]:Vn(t,Pa(t))},ze.without=iu,ze.words=Ya,ze.wrap=function(t,n){return Ru(yo(n),t)},ze.xor=uu,ze.xorBy=au,ze.xorWith=cu,ze.zip=fu,ze.zipObject=function(t,n){return po(t||[],n||[],Xe)},ze.zipObjectDeep=function(t,n){return po(t||[],n||[],Yr)},ze.zipWith=su,ze.entries=Da,ze.entriesIn=za,ze.extend=_a,ze.extendWith=ma,uc(ze,ze),ze.add=gc,ze.attempt=Va,ze.camelCase=Fa,ze.capitalize=Ua,ze.ceil=bc,ze.clamp=function(t,n,e){return e===o&&(e=n,n=o),e!==o&&(e=(e=va(e))==e?e:0),n!==o&&(n=(n=va(n))==n?n:0),ir(va(t),n,e)},ze.clone=function(t){return ur(t,4)},ze.cloneDeep=function(t){return ur(t,5)},ze.cloneDeepWith=function(t,n){return ur(t,5,n="function"==typeof n?n:o)},ze.cloneWith=function(t,n){return ur(t,4,n="function"==typeof n?n:o)},ze.conformsTo=function(t,n){return null==n||ar(t,n,Aa(n))},ze.deburr=Ma,ze.defaultTo=function(t,n){return null==t||t!=t?n:t},ze.divide=_c,ze.endsWith=function(t,n,e){t=ga(t),n=uo(n);var r=t.length,i=e=e===o?r:ir(pa(e),0,r);return(e-=n.length)>=0&&t.slice(e,i)==n},ze.eq=Wu,ze.escape=function(t){return(t=ga(t))&&K.test(t)?t.replace(J,ee):t},ze.escapeRegExp=function(t){return(t=ga(t))&&et.test(t)?t.replace(nt,"\\$&"):t},ze.every=function(t,n,e){var r=Hu(t)?En:hr;return e&&gi(t,n,e)&&(n=o),r(t,ui(n,3))},ze.find=vu,ze.findIndex=Mi,ze.findKey=function(t,n){return zn(t,ui(n,3),br)},ze.findLast=yu,ze.findLastIndex=Hi,ze.findLastKey=function(t,n){return zn(t,ui(n,3),_r)},ze.floor=mc,ze.forEach=gu,ze.forEachRight=bu,ze.forIn=function(t,n){return null==t?t:yr(t,ui(n,3),Pa)},ze.forInRight=function(t,n){return null==t?t:gr(t,ui(n,3),Pa)},ze.forOwn=function(t,n){return t&&br(t,ui(n,3))},ze.forOwnRight=function(t,n){return t&&_r(t,ui(n,3))},ze.get=Sa,ze.gt=Fu,ze.gte=Uu,ze.has=function(t,n){return null!=t&&pi(t,n,Sr)},ze.hasIn=ja,ze.head=qi,ze.identity=ec,ze.includes=function(t,n,e,r){t=qu(t)?t:Wa(t),e=e&&!r?pa(e):0;var o=t.length;return e<0&&(e=ye(o+e,0)),ua(t)?e<=o&&t.indexOf(n,e)>-1:!!o&&Fn(t,n,e)>-1},ze.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=null==e?0:pa(e);return o<0&&(o=ye(r+o,0)),Fn(t,n,o)},ze.inRange=function(t,n,e){return n=ha(n),e===o?(e=n,n=0):e=ha(e),function(t,n,e){return t>=ge(n,e)&&t=-9007199254740991&&t<=l},ze.isSet=ia,ze.isString=ua,ze.isSymbol=aa,ze.isTypedArray=ca,ze.isUndefined=function(t){return t===o},ze.isWeakMap=function(t){return ta(t)&&hi(t)==A},ze.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==kr(t)},ze.join=function(t,n){return null==t?"":qn.call(t,n)},ze.kebabCase=Ha,ze.last=Zi,ze.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=r;return e!==o&&(i=(i=pa(e))<0?ye(r+i,0):ge(i,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,i):Wn(t,Mn,i,!0)},ze.lowerCase=$a,ze.lowerFirst=qa,ze.lt=fa,ze.lte=sa,ze.max=function(t){return t&&t.length?pr(t,ec,xr):o},ze.maxBy=function(t,n){return t&&t.length?pr(t,ui(n,2),xr):o},ze.mean=function(t){return Hn(t,ec)},ze.meanBy=function(t,n){return Hn(t,ui(n,2))},ze.min=function(t){return t&&t.length?pr(t,ec,Br):o},ze.minBy=function(t,n){return t&&t.length?pr(t,ui(n,2),Br):o},ze.stubArray=dc,ze.stubFalse=vc,ze.stubObject=function(){return{}},ze.stubString=function(){return""},ze.stubTrue=function(){return!0},ze.multiply=wc,ze.nth=function(t,n){return t&&t.length?Fr(t,pa(n)):o},ze.noConflict=function(){return hn._===this&&(hn._=zt),this},ze.noop=ac,ze.now=Su,ze.pad=function(t,n,e){t=ga(t);var r=(n=pa(n))?se(t):0;if(!n||r>=n)return t;var o=(n-r)/2;return Mo(dn(o),e)+t+Mo(pn(o),e)},ze.padEnd=function(t,n,e){t=ga(t);var r=(n=pa(n))?se(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var i=me();return ge(t+i*(n-t+cn("1e-"+((i+"").length-1))),n)}return qr(t,n)},ze.reduce=function(t,n,e){var r=Hu(t)?Ln:Jn,o=arguments.length<3;return r(t,ui(n,4),e,o,sr)},ze.reduceRight=function(t,n,e){var r=Hu(t)?Bn:Jn,o=arguments.length<3;return r(t,ui(n,4),e,o,lr)},ze.repeat=function(t,n,e){return n=(e?gi(t,n,e):n===o)?1:pa(n),Jr(ga(t),n)},ze.replace=function(){var t=arguments,n=ga(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ze.result=function(t,n,e){var r=-1,i=(n=go(n,t)).length;for(i||(i=1,t=o);++rl)return[];var e=p,r=ge(t,p);n=ui(n),t-=p;for(var o=Kn(r,n);++e=u)return t;var c=e-se(r);if(c<1)return r;var f=a?_o(a,0,c).join(""):t.slice(0,c);if(i===o)return f+r;if(a&&(c+=f.length-c),oa(i)){if(t.slice(c).search(i)){var s,l=f;for(i.global||(i=St(i.source,ga(ht.exec(i))+"g")),i.lastIndex=0;s=i.exec(l);)var h=s.index;f=f.slice(0,h===o?c:h)}}else if(t.indexOf(uo(i),c)!=c){var p=f.lastIndexOf(i);p>-1&&(f=f.slice(0,p))}return f+r},ze.unescape=function(t){return(t=ga(t))&&G.test(t)?t.replace(q,pe):t},ze.uniqueId=function(t){var n=++Lt;return ga(t)+n},ze.upperCase=Ka,ze.upperFirst=Za,ze.each=gu,ze.eachRight=bu,ze.first=qi,uc(ze,(yc={},br(ze,function(t,n){Ct.call(ze.prototype,n)||(yc[n]=t)}),yc),{chain:!1}),ze.VERSION="4.18.1",jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){ze[t].placeholder=ze}),jn(["drop","take"],function(t,n){Me.prototype[t]=function(e){e=e===o?1:ye(pa(e),0);var r=this.__filtered__&&!n?new Me(this):this.clone();return r.__filtered__?r.__takeCount__=ge(e,r.__takeCount__):r.__views__.push({size:ge(e,p),type:t+(r.__dir__<0?"Right":"")}),r},Me.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),jn(["filter","map","takeWhile"],function(t,n){var e=n+1,r=1==e||3==e;Me.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:ui(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),jn(["head","last"],function(t,n){var e="take"+(n?"Right":"");Me.prototype[t]=function(){return this[e](1).value()[0]}}),jn(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");Me.prototype[t]=function(){return this.__filtered__?new Me(this):this[e](1)}}),Me.prototype.compact=function(){return this.filter(ec)},Me.prototype.find=function(t){return this.filter(t).head()},Me.prototype.findLast=function(t){return this.reverse().find(t)},Me.prototype.invokeMap=Gr(function(t,n){return"function"==typeof t?new Me(this):this.map(function(e){return Er(e,t,n)})}),Me.prototype.reject=function(t){return this.filter(Lu(ui(t)))},Me.prototype.slice=function(t,n){t=pa(t);var e=this;return e.__filtered__&&(t>0||n<0)?new Me(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==o&&(e=(n=pa(n))<0?e.dropRight(-n):e.take(n-t)),e)},Me.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Me.prototype.toArray=function(){return this.take(p)},br(Me.prototype,function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),i=ze[r?"take"+("last"==n?"Right":""):n],u=r||/^find/.test(n);i&&(ze.prototype[n]=function(){var n=this.__wrapped__,a=r?[1]:arguments,c=n instanceof Me,f=a[0],s=c||Hu(n),l=function(t){var n=i.apply(ze,Cn([t],a));return r&&h?n[0]:n};s&&e&&"function"==typeof f&&1!=f.length&&(c=s=!1);var h=this.__chain__,p=!!this.__actions__.length,d=u&&!h,v=c&&!p;if(!u&&s){n=v?n:new Me(this);var y=t.apply(n,a);return y.__actions__.push({func:hu,args:[l],thisArg:o}),new Ue(y,h)}return d&&v?t.apply(this,a):(y=this.thru(l),d?r?y.value()[0]:y.value():y)})}),jn(["pop","push","shift","sort","splice","unshift"],function(t){var n=Et[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ze.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return n.apply(Hu(o)?o:[],t)}return this[e](function(e){return n.apply(Hu(e)?e:[],t)})}}),br(Me.prototype,function(t,n){var e=ze[n];if(e){var r=e.name+"";Ct.call(Ne,r)||(Ne[r]=[]),Ne[r].push({name:n,func:e})}}),Ne[zo(o,2).name]=[{name:"wrapper",func:o}],Me.prototype.clone=function(){var t=new Me(this.__wrapped__);return t.__actions__=Io(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Io(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Io(this.__views__),t},Me.prototype.reverse=function(){if(this.__filtered__){var t=new Me(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Me.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=Hu(t),r=n<0,o=e?t.length:0,i=function(t,n,e){for(var r=-1,o=e.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},ze.prototype.plant=function(t){for(var n,e=this;e instanceof Fe;){var r=zi(e);r.__index__=0,r.__values__=o,n?i.__wrapped__=r:n=r;var i=r;e=e.__wrapped__}return i.__wrapped__=t,n},ze.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Me){var n=t;return this.__actions__.length&&(n=new Me(this)),(n=n.reverse()).__actions__.push({func:hu,args:[Xi],thisArg:o}),new Ue(n,this.__chain__)}return this.thru(Xi)},ze.prototype.toJSON=ze.prototype.valueOf=ze.prototype.value=function(){return lo(this.__wrapped__,this.__actions__)},ze.prototype.first=ze.prototype.head,Zt&&(ze.prototype[Zt]=function(){return this}),ze}();hn._=de,(r=function(){return de}.call(n,e,n,t))===o||(t.exports=r)}.call(this)},858(t,n,e){var r,o;!function(){"use strict";r=function(){var t=function(){},n="undefined",e=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],o={},i=null;function u(t,n){var e=t[n];if("function"==typeof e.bind)return e.bind(t);try{return Function.prototype.bind.call(e,t)}catch(n){return function(){return Function.prototype.apply.apply(e,[t,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function c(){for(var e=this.getLevel(),o=0;o=0&&n<=l.levels.SILENT)return n;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?h+=":"+t:"symbol"==typeof t&&(h=void 0),l.name=t,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=e||s,l.getLevel=function(){return null!=f?f:null!=a?a:u},l.setLevel=function(t,e){return f=d(t),!1!==e&&function(t){var e=(r[t]||"silent").toUpperCase();if(typeof window!==n&&h){try{return void(window.localStorage[h]=e)}catch(t){}try{window.document.cookie=encodeURIComponent(h)+"="+e+";"}catch(t){}}}(f),c.call(l)},l.setDefaultLevel=function(t){a=d(t),p()||l.setLevel(t,!1)},l.resetLevel=function(){f=null,function(){if(typeof window!==n&&h){try{window.localStorage.removeItem(h)}catch(t){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),c.call(l)},l.enableAll=function(t){l.setLevel(l.levels.TRACE,t)},l.disableAll=function(t){l.setLevel(l.levels.SILENT,t)},l.rebuild=function(){if(i!==l&&(u=d(i.getLevel())),c.call(l),i===l)for(var t in o)o[t].rebuild()},u=d(i?i.getLevel():"WARN");var v=p();null!=v&&(f=d(v)),c.call(l)}(i=new l).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var n=o[t];return n||(n=o[t]=new l(t,i.methodFactory)),n};var h=typeof window!==n?window.log:void 0;return i.noConflict=function(){return typeof window!==n&&window.log===i&&(window.log=h),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=r.call(n,e,n,t))||(t.exports=o)}()},199(t,n,e){"use strict";t.exports=e(995)},995(t,n,e){"use strict";var r=n;function o(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=e(6),r.BufferWriter=e(623),r.Reader=e(366),r.BufferReader=e(895),r.util=e(737),r.rpc=e(178),r.roots=e(156),r.configure=o,o()},366(t,n,e){"use strict";t.exports=c;var r,o=e(737),i=o.LongBits,u=o.utf8;function a(t,n){return RangeError("index out of range: "+t.pos+" + "+(n||1)+" > "+t.len)}function c(t){this.buf=t,this.pos=0,this.len=t.length}var f,s="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new c(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new c(t);throw Error("illegal buffer")},l=function(){return o.Buffer?function(t){return(c.create=function(t){return o.Buffer.isBuffer(t)?new r(t):s(t)})(t)}:s};function h(){var t=new i(0,0),n=0;if(!(this.len-this.pos>4)){for(;n<3;++n){if(this.pos>=this.len)throw a(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*n)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*n)>>>0,t}for(;n<4;++n)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*n)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(n=0,this.len-this.pos>4){for(;n<5;++n)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*n+3)>>>0,this.buf[this.pos++]<128)return t}else for(;n<5;++n){if(this.pos>=this.len)throw a(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*n+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,n){return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=l(),c.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,c.prototype.uint32=(f=4294967295,function(){if(f=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return f;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return f}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},c.prototype.bytes=function(){var t=this.uint32(),n=this.pos,e=this.pos+t;if(e>this.len)throw a(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(n,e);if(n===e){var r=o.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,n,e)},c.prototype.string=function(){var t=this.bytes();return u.read(t,0,t.length)},c.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw a(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.recursionLimit=o.recursionLimit,c.prototype.skipType=function(t,n){if(void 0===n&&(n=0),n>c.recursionLimit)throw Error("maximum nesting depth exceeded");switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t,n+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},c._configure=function(t){r=t,c.create=l(),r._configure();var n=o.Long?"toLong":"toNumber";o.merge(c.prototype,{int64:function(){return h.call(this)[n](!1)},uint64:function(){return h.call(this)[n](!0)},sint64:function(){return h.call(this).zzDecode()[n](!1)},fixed64:function(){return d.call(this)[n](!0)},sfixed64:function(){return d.call(this)[n](!1)}})}},895(t,n,e){"use strict";t.exports=i;var r=e(366);(i.prototype=Object.create(r.prototype)).constructor=i;var o=e(737);function i(t){r.call(this,t)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},i._configure()},156(t){"use strict";t.exports={}},178(t,n,e){"use strict";n.Service=e(418)},418(t,n,e){"use strict";t.exports=o;var r=e(737);function o(t,n,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(n),this.responseDelimited=Boolean(e)}(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(n,e,o,i,u){if(!i)throw TypeError("request must be specified");var a=this;if(!u)return r.asPromise(t,a,n,e,o,i);if(a.rpcImpl)try{return a.rpcImpl(n,e[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(t,e){if(t)return a.emit("error",t,n),u(t);if(null!==e){if(!(e instanceof o))try{e=o[a.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return a.emit("error",t,n),u(t)}return a.emit("data",e,n),u(null,e)}a.end(!0)})}catch(t){return a.emit("error",t,n),void setTimeout(function(){u(t)},0)}else setTimeout(function(){u(Error("already ended"))},0)},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},130(t,n,e){"use strict";t.exports=o;var r=e(737);function o(t,n){this.lo=t>>>0,this.hi=n>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var u=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return i;var n=t<0;n&&(t=-t);var e=t>>>0,r=(t-e)/4294967296>>>0;return n&&(r=~r>>>0,e=~e>>>0,++e>4294967295&&(e=0,++r>4294967295&&(r=0))),new o(e,r)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(r.isString(t)){if(!r.Long)return o.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):i},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var n=1+~this.lo>>>0,e=~this.hi>>>0;return n||(e=e+1>>>0),-(n+4294967296*e)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var a=String.prototype.charCodeAt;o.fromHash=function(t){return t===u?i:new o((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,n=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===n?t<16384?t<128?1:2:t<2097152?3:4:n<16384?n<128?5:6:n<2097152?7:8:e<128?9:10}},737(t,n,e){"use strict";var r=n;function o(t,n,e){for(var r=Object.keys(n),o=0;o0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"==typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,n){var e=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(e.lo,e.hi,n):e.toNumber(Boolean(n))},r.merge=o,r.recursionLimit=100,r.makeProp=function(t,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,writable:!0})},r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(t){for(var n={},e=0;e-1;--e)if(1===n[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},r.oneOfSetter=function(t){return function(n){for(var e=0;e>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)n[e++]=127&t.lo|128,t.lo=t.lo>>>7;n[e++]=t.lo}function y(t,n,e){n[e]=255&t,n[e+1]=t>>>8&255,n[e+2]=t>>>16&255,n[e+3]=t>>>24}l.create=h(),l.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(l.alloc=o.pool(l.alloc,o.Array.prototype.subarray)),l.prototype._push=function(t,n,e){return this.tail=this.tail.next=new c(t,n,e),this.len+=n,this},d.prototype=Object.create(c.prototype),d.prototype.fn=function(t,n,e){for(;t>127;)n[e++]=127&t|128,t>>>=7;n[e]=t},l.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},l.prototype.int32=function(t){return t<0?this._push(v,10,i.fromNumber(t)):this.uint32(t)},l.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},l.prototype.uint64=function(t){var n=i.from(t);return this._push(v,n.length(),n)},l.prototype.int64=l.prototype.uint64,l.prototype.sint64=function(t){var n=i.from(t).zzEncode();return this._push(v,n.length(),n)},l.prototype.bool=function(t){return this._push(p,1,t?1:0)},l.prototype.fixed32=function(t){return this._push(y,4,t>>>0)},l.prototype.sfixed32=l.prototype.fixed32,l.prototype.fixed64=function(t){var n=i.from(t);return this._push(y,4,n.lo)._push(y,4,n.hi)},l.prototype.sfixed64=l.prototype.fixed64,l.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},l.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var g=o.Array.prototype.set?function(t,n,e){n.set(t,e)}:function(t,n,e){for(var r=0;r>>0;if(!n)return this._push(p,1,0);if(o.isString(t)){var e=l.alloc(n=u.length(t));u.decode(t,e,0),t=e}return this.uint32(n)._push(g,n,t)},l.prototype.string=function(t){var n=a.length(t);return n?this.uint32(n)._push(a.write,n,t):this._push(p,1,0)},l.prototype.fork=function(){return this.states=new s(this),this.head=this.tail=new c(f,0,0),this.len=0,this},l.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(f,0,0),this.len=0),this},l.prototype.ldelim=function(){var t=this.head,n=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=n,this.len+=e),this},l.prototype.finish=function(){for(var t=this.head.next,n=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,n,e),e+=t.len,t=t.next;return n},l._configure=function(t){r=t,l.create=h(),r._configure()}},623(t,n,e){"use strict";t.exports=i;var r=e(6);(i.prototype=Object.create(r.prototype)).constructor=i;var o=e(737);function i(){r.call(this)}function u(t,n,e){t.length<40?o.utf8.write(t,n,e):n.utf8Write?n.utf8Write(t,e):n.write(t,e)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,n,e){n.set(t,e)}:function(t,n,e){if(t.copy)t.copy(n,e,0,t.length);else for(var r=0;r>>0;return this.uint32(n),n&&this._push(i.writeBytesBuffer,n,t),this},i.prototype.string=function(t){var n=o.Buffer.byteLength(t);return this.uint32(n),n&&this._push(u,n,t),this},i._configure()}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=e(275),n=e(858),r=e.n(n);function o(t){return"function"==typeof t}function i(t){return t&&o(t.schedule)}function u(t){return i((n=t)[n.length-1])?t.pop():void 0;var n}var a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},a(t,n)};function c(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var f=function(){return f=Object.assign||function(t){for(var n,e=1,r=arguments.length;e0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function p(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o1||a(t,n)})},n&&(r[t]=n(r[t])))}function a(t,n){try{(e=o[t](n)).value instanceof d?Promise.resolve(e.value.v).then(c,f):s(i[0][2],e)}catch(t){s(i[0][3],t)}var e}function c(t){a("next",t)}function f(t){a("throw",t)}function s(t,n){t(n),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var n,e,r;return s(this,function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,d(n.read())];case 3:return e=o.sent(),r=e.value,e.done?[4,d(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,d(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function tt(t){return o(null==t?void 0:t.getReader)}function nt(t){if(t instanceof J)return t;if(null!=t){if(K(t))return i=t,new J(function(t){var n=i[$]();if(o(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(v(t))return r=t,new J(function(t){for(var n=0;nn,wt=t=>t instanceof yt?yt(t):t,Ot=(t,n)=>typeof n===gt?new yt(n):n,kt=(t,n,e)=>{const r=yt(n.push(e)-1);return t.set(e,r),r},xt=(t,n,e)=>{const r=n&&typeof n===_t?(t,e)=>""===t||-1[').concat(t,"]
"),i=''.concat(r,""),u=document.createElement("div");for(u.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(u),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var t=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var n=document.createDocumentFragment();t.logBuffer.length>0;){var e=t.logBuffer.shift();n.insertBefore(e,n.firstChild)}t.logElement.firstChild?t.logElement.insertBefore(n,t.logElement.firstChild):t.logElement.appendChild(n),t.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),e=0;e1?r-1:0),i=1;i{const e=pt(t,Ot).map(wt),r=n||mt;let o=e[0];if(typeof o===_t&&o){const t=[],n=((t,n,e,r)=>o=>{for(let i=vt(o),{length:u}=i,a=0;a=2))}(function(t,n){return"".concat(t," ").concat(n)},"")).subscribe(function(n){switch(t){case"DEBUG":e.logger.debug(e.formatMessage("DEBUG",n));break;case"INFO":default:e.logger.info(e.formatMessage("INFO",n));break;case"WARN":e.logger.warn(e.formatMessage("WARN",n));break;case"ERROR":e.logger.error(e.formatMessage("ERROR",n))}e.logElement&&e.logToElement(t,n)})}},{key:"formatMessage",value:function(t,n){var e=(new Date).toISOString();if(this.getLevel()===At.DEBUG&&"default"!==this.getName()){var r=this.getName();return"".concat(e," [").concat(r,"] [").concat(t,"] ").concat(n)}return"".concat(e," [").concat(t,"] ").concat(n)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(n){return this.instances||(this.instances=new Map),this.instances.has(n)||this.instances.set(n,new t(n)),this.instances.get(n)}}],e&&It(n.prototype,e),o&&It(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,o}();if(void 0===St.setLogLevel){var Tt=St.matchMedia&&St.matchMedia("(prefers-color-scheme: dark)").matches,Ct=Tt?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Lt=Tt?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",Ct),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Lt,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Lt,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Lt,"color: blue"),console.log("%cshowLogNames 使用方法:",Ct),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Lt,"color: blue")),St.setLogLevel=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";t?(Pt.getInstance(t).setLevel(n),console.log("已将".concat(t,"的日志级别设置为").concat(n))):Pt.getAllInstances().forEach(function(t,e){t.setLevel(n),console.log("已将".concat(e,"的日志级别设置为").concat(n))})},St.showLogNames=function(){var t=Pt.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",Ct),t.forEach(function(t){return console.log("%c- ".concat(t),Lt)})}}var Bt=g(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Rt=function(t){function n(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return c(n,t),n.prototype.lift=function(t){var n=new Dt(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new Bt},n.prototype.next=function(t){var n=this;B(function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=l(n.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(t)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}})},n.prototype.error=function(t){var n=this;B(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},n.prototype.complete=function(){var t=this;B(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?w:(this.currentObservers=null,i.push(t),new m(function(){n.currentObservers=null,_(i,t)}))},n.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},n.prototype.asObservable=function(){var t=new J;return t.source=this,t},n.create=function(t,n){return new Dt(t,n)},n}(J),Dt=function(t){function n(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return c(n,t),n.prototype.next=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===e||e.call(n,t)},n.prototype.error=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===e||e.call(n,t)},n.prototype.complete=function(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)},n.prototype._subscribe=function(t){var n,e;return null!==(e=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==e?e:w},n}(Rt),zt=new J(function(t){return t.complete()});function Wt(t){return t<=0?function(){return zt}:ot(function(n,e){var r=0;n.subscribe(it(e,function(n){++r<=t&&(e.next(n),t<=r&&e.complete())}))})}var Ft=function(t){function n(n,e){return t.call(this)||this}return c(n,t),n.prototype.schedule=function(t,n){return void 0===n&&(n=0),this},n}(m),Ut={setInterval:function(t,n){for(var e=[],r=2;r + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js new file mode 100644 index 00000000000..b5f2776d7ea --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.08568614683c7e1f95eb.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.23"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.08568614683c7e1f95eb.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js new file mode 100644 index 00000000000..1a45b1ca4a3 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.13581ed11d447297fbb4.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.18"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.13581ed11d447297fbb4.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js new file mode 100644 index 00000000000..fee125f04a8 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.2ca0abf6238e51cde8d0.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.21"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.2ca0abf6238e51cde8d0.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js new file mode 100644 index 00000000000..77d78bf13cd --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.3be3f935f22ee8988bff.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.17"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.3be3f935f22ee8988bff.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js new file mode 100644 index 00000000000..f761e9079aa --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.3f8271faf7d1d34a06cb.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.19"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.3f8271faf7d1d34a06cb.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js new file mode 100644 index 00000000000..7b0b6599081 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.761349d3fa54b837ccba.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.15"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.761349d3fa54b837ccba.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js new file mode 100644 index 00000000000..3ff457dce3e --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.91fd690c24f3384721e7.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.25"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.91fd690c24f3384721e7.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js new file mode 100644 index 00000000000..77fc1caa39b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.c02961d6ed7e2de8bed4.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.14"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c02961d6ed7e2de8bed4.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js new file mode 100644 index 00000000000..fecafd43fd4 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.c09a115dddf36d899e64.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.20"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c09a115dddf36d899e64.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js new file mode 100644 index 00000000000..b3f17fda0ae --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.c1ab248e980c0ae9a6ca.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.24"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c1ab248e980c0ae9a6ca.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js new file mode 100644 index 00000000000..62f90adfd31 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.c417bd1f78f6a50fa95c.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.22"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.c417bd1f78f6a50fa95c.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js new file mode 100644 index 00000000000..f795a064012 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.d0b46bd25ffbe3e30d6a.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.13"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.d0b46bd25ffbe3e30d6a.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js b/modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js new file mode 100644 index 00000000000..1959aa81b46 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see decoder.worker.e5ab3e94774d990ec5ac.worker.js.LICENSE.txt */ +(()=>{var e={310(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},642(e){"use strict";e.exports=r;var t=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function r(e,n){"string"==typeof e&&(n=e,e=void 0);var o=[];function i(e){if("string"!=typeof e){var t=s();if(r.verbose&&console.log("codegen: "+t),t="return "+t,e){for(var n=Object.keys(e),a=new Array(n.length+1),u=new Array(n.length),c=0;c0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},230(e,t,r){"use strict";e.exports=function(e){try{var t=r(31)(e);return t&&(t.length||Object.keys(t).length)?t:null}catch(e){return null}}},31(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=31,e.exports=t},370(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},319(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},742(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n=192&&i<224){var s=(31&i)<<6|63&e[o++];n+=s>=128?String.fromCharCode(s):"�"}else if(i>=224&&i<240){var a=(15&i)<<12|(63&e[o++])<<6|63&e[o++];n+=a>=2048?String.fromCharCode(a):"�"}else if(i>=240){var u=(7&i)<<18|(63&e[o++])<<12|(63&e[o++])<<6|63&e[o++];u<65536||u>1114111?n+="�":(u-=65536,n+=String.fromCharCode(55296+(u>>10)),n+=String.fromCharCode(56320+(1023&u)))}}return n},r.write=function(e,t,r){for(var n,o,i=r,s=0;s>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},858(e,t,r){var n,o;!function(){"use strict";n=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(){for(var r=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?p+=":"+e:"symbol"==typeof e&&(p=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||l,f.getLevel=function(){return null!=c?c:null!=a?a:s},f.setLevel=function(e,r){return c=d(e),!1!==r&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&p){try{return void(window.localStorage[p]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"="+r+";"}catch(e){}}}(c),u.call(f)},f.setDefaultLevel=function(e){a=d(e),h()||f.setLevel(e,!1)},f.resetLevel=function(){c=null,function(){if(typeof window!==t&&p){try{window.localStorage.removeItem(p)}catch(e){}try{window.document.cookie=encodeURIComponent(p)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),u.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(i!==f&&(s=d(i.getLevel())),u.call(f),i===f)for(var e in o)o[e].rebuild()},s=d(i?i.getLevel():"WARN");var y=h();null!=y&&(c=d(y)),u.call(f)}(i=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,i.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=p),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(t,r,t,e))||(e.exports=o)}()},720(e,t,r){"use strict";e.exports=r(953)},600(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},589(e,t,r){"use strict";var n=t,o=r(339),i=r(769);function s(e,t,r,n){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":c=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,c)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,c?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d","n"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")');if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;nReader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):("string"===a.keyType&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(339),o=r(112),i=r(769);function s(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},339(e,t,r){"use strict";e.exports=s;var n=r(122);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(874),i=r(769);function s(e,t,r,o,i,s){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,n){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if("__proto__"===e)return this;if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return n&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=n||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},665(e,t,r){"use strict";e.exports=c;var n=r(122);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(339),s=r(112),a=r(769),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}c.fromJSON=function(e,t){var r=new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(c.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(c.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(c.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(c.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(c.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),c.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},c.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},912(e,t,r){"use strict";var n=e.exports=r(995);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(673),n.decoder=r(357),n.verifier=r(732),n.converter=r(589),n.ReflectionObject=r(122),n.Namespace=r(874),n.Root=r(489),n.Enum=r(339),n.Type=r(957),n.Field=r(665),n.OneOf=r(416),n.MapField=r(159),n.Service=r(74),n.Method=r(452),n.Message=r(82),n.wrappers=r(837),n.types=r(112),n.util=r(769),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},995(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(6),n.BufferWriter=r(623),n.Reader=r(366),n.BufferReader=r(895),n.util=r(737),n.rpc=r(178),n.roots=r(156),n.configure=o,o()},953(e,t,r){"use strict";var n=e.exports=r(912);n.build="full",n.tokenize=r(300),n.parse=r(246),n.common=r(600),n.Root._configure(n.Type,n.parse,n.common)},159(e,t,r){"use strict";e.exports=s;var n=r(665);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(112),i=r(769);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},82(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var i=this;i.parent;){if((o=i.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;i=i.parent}return null},f.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof f&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t=2023))throw n;e.push(r)}else{var o=z();if(e.push(o),C>=2023)throw $(o,"id")}}while(L(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Z(i,function(e){if("option"!==e)throw $(e);re(i,e),L(";")},function(){ie(i)})}function q(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw $(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw $(e,"id")}function W(){if(void 0!==S)throw $("package");if(S=N(),!j.test(S))throw $(S,"name");B=B.define(S),L(";")}function H(){var e,t=I();switch(t){case"weak":e=x||(x=[]),N();break;case"public":N();default:e=E||(E=[])}t=z(),L(";"),e.push(t)}function K(){if(L("="),(C=z())<2023)throw $(C,"syntax");L(";")}function X(){if(L("="),C=z(),!["2023"].includes(C))throw $(C,"edition");L(";")}function Y(e,t){switch(t){case"option":return re(e,t),L(";"),!0;case"message":return Q(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!_.test(t=N()))throw $(t,"service name");var r=new l(t);Z(r,function(e){if(!Y(r,e)){if("rpc"!==e)throw $(e);!function(e,t){var r=F(),n=t;if(!_.test(t=N()))throw $(t,"name");var o,i,s,a,u=t;if(L("("),L("stream",!0)&&(i=!0),!j.test(t=N()))throw $(t);if(o=t,L(")"),L("returns"),L("("),L("stream",!0)&&(a=!0),!j.test(t=N()))throw $(t);s=t,L(")");var c=new f(u,n,o,s,i,a);c.comment=r,Z(c,function(e){if("option"!==e)throw $(e);re(c,e),L(";")}),e.add(c)}(r,e)}}),e.add(r),e===B&&M.push(r)}(e,t),!0;case"extend":return function(e,t){if(!j.test(t=N()))throw $(t,"reference");var r=t;Z(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===C?"proto3_optional":"optional",r);break;default:if("proto2"===C||!j.test(t))throw $(t);R(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Z(e,t,r){var n=P.line;if(e&&("string"!=typeof e.comment&&(e.comment=F()),e.filename=k.filename),L("{",!0)){for(var o;"}"!==(o=N());)t(o);L(";",!0)}else r&&r(),L(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=F(n)||e.comment)}function Q(e,t){if(!_.test(t=N()))throw $(t,"type name");var r=new i(t);Z(r,function(e){if(!Y(r,e))switch(e){case"map":!function(e){L("<");var t=N();if(void 0===h.mapKey[t])throw $(t,"type");L(",");var r=N();if(!j.test(r))throw $(r,"type");L(">");var n=N();if(!_.test(n))throw $(n,"name");L("=");var o=new a(U(n),q(N()),t,r);Z(o,function(e){if("option"!==e)throw $(e);re(o,e),L(";")},function(){ie(o)}),e.add(o)}(r);break;case"required":if("proto2"!==C)throw $(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===C)ee(r,"proto3_optional");else{if("proto2"!==C)throw $(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new u(U(t));Z(r,function(e){"option"===e?(re(r,e),L(";")):(R(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":V(r.extensions||(r.extensions=[]));break;case"reserved":V(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===C||!j.test(e))throw $(e);R(e),ee(r,"optional")}}),e.add(r),e===B&&M.push(r)}function ee(e,t,r){var n=N();if("group"!==n){for(;n.endsWith(".")||I().startsWith(".");)n+=N();if(!j.test(n))throw $(n,"type");var o=N();if(!_.test(o))throw $(o,"name");o=U(o),L("=");var a=new s(o,q(N()),n,t,r);if(Z(a,function(e){if("option"!==e)throw $(e);re(a,e),L(";")},function(){ie(a)}),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);e===B&&M.push(a)}else!function(e,t){if(C>=2023)throw $("group");var r=N();if(!_.test(r))throw $(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),L("=");var o=q(N()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=k.filename,Z(a,function(e){switch(e){case"option":re(a,e),L(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===C?"proto3_optional":"optional");break;case"message":Q(a,e);break;case"enum":te(a,e);break;case"reserved":V(a.reserved||(a.reserved=[]),!0);break;default:throw $(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!_.test(t=N()))throw $(t,"name");var r=new c(t);Z(r,function(e){switch(e){case"option":re(r,e),L(";");break;case"reserved":V(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!_.test(t))throw $(t,"name");L("=");var r=q(N(),!0),n={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){p.prototype.setOption.call(n,e,t)},setParsedOption:function(){}};Z(n,function(e){if("option"!==e)throw $(e);re(n,e),L(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===B&&M.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=N());"="!==t;){if("("===t){var i=N();L(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else n=n?n+=t:t;t=N()}var a=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,n)}function ne(e,t){if(L("{",!0)){for(var r={};!L("}",!0);){if(!_.test(A=N()))throw $(A,"name");if(null===A)throw $(A,"end of input");var n,o=A;if(L(":",!0),"{"===I())n=ne(e,t+"."+A);else if("["===I()){var i;if(n=[],L("[",!0)){do{i=G(!0),n.push(i)}while(L(",",!0));L("]"),void 0!==i&&oe(e,t+"."+A,i)}}else n=G(!0),oe(e,t+"."+A,n);var s=r[o];s&&(n=[].concat(s).concat(n)),"__proto__"!==o&&(r[o]=n),L(",",!0),L(";",!0)}return r}var a=G(!0);return oe(e,t,a),a}function oe(e,t,r){B===e&&/^features\./.test(t)?J[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(L("[",!0)){do{re(e,"option")}while(L(",",!0));L("]")}return e}for(;null!==(A=N());)switch(A){case"package":if(!D)throw $(A);W();break;case"import":if(!D)throw $(A);H();break;case"syntax":if(!D)throw $(A);K();break;case"edition":if(!D)throw $(A);X();break;case"option":re(B,A),L(";",!0);break;default:if(Y(B,A)){D=!1;continue}throw $(A)}return M.forEach(e=>{e._edition=C,Object.keys(J).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,J[t],!0)})}),k.filename=null,{package:S,imports:E,weakImports:x,root:t}}},366(e,t,r){"use strict";e.exports=u;var n,o=r(737),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var n=o.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.recursionLimit=o.recursionLimit,u.prototype.skipType=function(e,t){if(void 0===t&&(t=0),t>u.recursionLimit)throw Error("maximum nesting depth exceeded");switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e,t+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},895(e,t,r){"use strict";e.exports=i;var n=r(366);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},489(e,t,r){"use strict";e.exports=f;var n=r(874);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(665),u=r(339),c=r(416),l=r(769);function f(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){if(a)throw e;t&&t.resolveAll();var r=n;n=null,r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++d,setTimeout(function(){--d,f(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++d,o.fetch(e,function(r,i){--d,n&&(r?t?d||u(null,o):u(r):f(e,i))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)}),this):this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?"__proto__"===e.name?this:(this.methods[e.name]=e,e.parent=this,c(this)):n.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,c(this)}return n.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}})}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function b(t){return e.charAt(t)}function g(t,r,n){var a,c={type:e.charAt(t++),lineEmpty:!1,leading:n},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){c.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var f=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,j(v),v=null,l(o[1])}();var o,i,s,h,d,_=0===c;do{if(c===f)return null;for(o=!1;a.test(s=b(c));)if("\n"===s&&(_=!0,++p),++c===f)return null;if("/"===b(c)){if(++c===f)throw m("comment");if("/"===b(c))if(u){if(h=c,d=!1,w(c-1)){d=!0;do{if((c=O(c))===f)break;if(c++,!_)break}while(w(c))}else c=Math.min(f,O(c)+1);d&&(g(h,c,_),_=!0),p++,o=!0}else{for(d="/"===b(h=c+1);"\n"!==b(++c);)if(c===f)return null;++c,d&&(g(h,c-1,_),_=!0),++p,o=!0}else{if("*"!==(s=b(c)))return"/";h=c+1,d=u||"*"===b(h);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=b(c)}while("*"!==i||"/"!==s);++c,d&&(g(h,c-2,_),_=!0),o=!0}}}while(o);var k=c;if(t.lastIndex=0,!t.test(b(k++)))for(;k{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},b.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.fields,e)?this.fields[e]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,e)?this.oneofs[e]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,e)?this.nested[e]:null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return"__proto__"===e.name?this:(e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this))}return e instanceof i?"__proto__"===e.name?this:(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)t[i]=e(t[i]||{},r,o);else{var s=t[i];if(s&&n)return t;s&&(o=[].concat(s).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(489)))}})},130(e,t,r){"use strict";e.exports=o;var n=r(737);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},737(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.recursionLimit=100,n.makeProp=function(e,t){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0})},n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;rutil.recursionLimit)")("return%j","maximum nesting depth exceeded"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},623(e,t,r){"use strict";e.exports=i;var n=r(6);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(737);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},85(e){"use strict";e.exports={rE:"5.0.16"}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=r(858),t=r.n(e);function n(e){return"function"==typeof e}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},o(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function c(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=o[e](t)).value instanceof l?Promise.resolve(r.value.v).then(u,c):f(i[0][2],r)}catch(e){f(i[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function f(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function(){var t,r,n;return s(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,l(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,l(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,l(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function X(e){return n(null==e?void 0:e.getReader)}function Y(e){if(e instanceof $)return e;if(null!=e){if(G(e))return i=e,new $(function(e){var t=i[J]();if(n(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(f(e))return o=e,new $(function(e){for(var t=0;tt,ye=e=>e instanceof le?le(e):e,ve=(e,t)=>typeof t===fe?new le(t):t,me=(e,t,r)=>{const n=le(t.push(r)-1);return e.set(r,n),n},be=(e,t,r)=>{const n=t&&typeof t===he?(e,r)=>""===e||-1[').concat(e,"]"),i=''.concat(n,""),s=document.createElement("div");for(s.innerHTML="".concat(o," ").concat(i),this.logBuffer.unshift(s),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var r=e.logBuffer.shift();t.insertBefore(r,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?n-1:0),i=1;i{const r=ae(e,ve).map(ye),n=t||de;let o=r[0];if(typeof o===he&&o){const e=[],t=((e,t,r,n)=>o=>{for(let i=ce(o),{length:s}=i,a=0;a=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(t){switch(e){case"DEBUG":r.logger.debug(r.formatMessage("DEBUG",t));break;case"INFO":default:r.logger.info(r.formatMessage("INFO",t));break;case"WARN":r.logger.warn(r.formatMessage("WARN",t));break;case"ERROR":r.logger.error(r.formatMessage("ERROR",t))}r.logElement&&r.logToElement(e,t)})}},{key:"formatMessage",value:function(e,t){var r=(new Date).toISOString();if(this.getLevel()===ke.DEBUG&&"default"!==this.getName()){var n=this.getName();return"".concat(r," [").concat(n,"] [").concat(e,"] ").concat(t)}return"".concat(r," [").concat(e,"] ").concat(t)}}],o=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&Oe(r.prototype,n),o&&Oe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();if(void 0===ge.setLogLevel){var Ee=ge.matchMedia&&ge.matchMedia("(prefers-color-scheme: dark)").matches,xe=Ee?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",Ae=Ee?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",xe),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",Ae,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",Ae,"color: blue"),console.log("%cshowLogNames 使用方法:",xe),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",Ae,"color: blue")),ge.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(Se.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):Se.getAllInstances().forEach(function(e,r){e.setLevel(t),console.log("已将".concat(r,"的日志级别设置为").concat(t))})},ge.showLogNames=function(){var e=Se.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",xe),e.forEach(function(e){return console.log("%c- ".concat(e),Ae)})}}var Te=h(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pe=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new Ne(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Te},t.prototype.next=function(e){var t=this;N(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=a(t.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;N(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;N(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new v(function(){t.currentObservers=null,y(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new $;return e.source=this,e},t.create=function(e,t){return new Ne(e,t)},t}($),Ne=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(Pe);function Re(e){return Re="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},Re(e)}function Ie(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var u=n&&n.prototype instanceof a?n:a,c=Object.create(u.prototype);return Le(c,"_invoke",function(r,n,o){var i,a,u,c=0,l=o||[],f=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(r,n){for(a=r,u=n,t=0;!f&&c&&!o&&t3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(Le(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Le(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,Le(f,"constructor",c),Le(c,"constructor",u),u.displayName="GeneratorFunction",Le(c,o,"GeneratorFunction"),Le(f),Le(f,o,"Generator"),Le(f,n,function(){return this}),Le(f,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:i,m:p}})()}function Le(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Le=function(e,t,r,n){function i(t,r){Le(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Le(e,t,r,n)}function Fe(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function De(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){Fe(i,n,o,s,a,"next",e)}function a(e){Fe(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ce(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):($e(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,$e(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,$e(f,"constructor",c),$e(c,"constructor",u),u.displayName="GeneratorFunction",$e(c,o,"GeneratorFunction"),$e(f),$e(f,o,"Generator"),$e(f,n,function(){return this}),$e(f,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:i,m:p}})()}function $e(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}$e=function(e,t,r,n){function i(t,r){$e(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},$e(e,t,r,n)}function ze(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function Ge(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){ze(i,n,o,s,a,"next",e)}function a(e){ze(i,n,o,s,a,"throw",e)}s(void 0)})}}function Ve(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(et(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,et(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,et(f,"constructor",c),et(c,"constructor",u),u.displayName="GeneratorFunction",et(c,o,"GeneratorFunction"),et(f),et(f,o,"Generator"),et(f,n,function(){return this}),et(f,"toString",function(){return"[object Generator]"}),(Qe=function(){return{w:i,m:p}})()}function et(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}et=function(e,t,r,n){function i(t,r){et(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},et(e,t,r,n)}function tt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function rt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){tt(i,n,o,s,a,"next",e)}function a(e){tt(i,n,o,s,a,"throw",e)}s(void 0)})}}function nt(e,t){for(var r=0;r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=r<2&&hn||n>d)&&(i[4]=r,i[5]=n,p.n=d,a=0))}if(o||r>1)return s;throw f=!0,n}return function(o,l,d){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,d),a=l,u=d;(t=a<2?e:u)||!f;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=p.n<0)?u:r.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:t,done:f}}}(r,o,i),!0),c}var s={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var l=[][n]?t(t([][n]())):(yt(t={},n,function(){return this}),t),f=c.prototype=a.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yt(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,yt(f,"constructor",c),yt(c,"constructor",u),u.displayName="GeneratorFunction",yt(c,o,"GeneratorFunction"),yt(f),yt(f,o,"Generator"),yt(f,n,function(){return this}),yt(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:i,m:p}})()}function yt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yt=function(e,t,r,n){function i(t,r){yt(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},yt(e,t,r,n)}function vt(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function mt(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function s(e){vt(i,n,o,s,a,"next",e)}function a(e){vt(i,n,o,s,a,"throw",e)}s(void 0)})}}var bt,gt=Se.getInstance("decoderWorker"),wt=new ct,Ot=new Pe,_t=["apollo.dreamview.CameraUpdate","apollo.dreamview.HMIStatus","apollo.dreamview.SimulationWorld","apollo.dreamview.Obstacles","apollo.hdmap.Map"],jt=(bt=new Map,function(e){if(bt.has(e))return bt.get(e);var t=_t.includes(e);return bt.set(e,t),t});function kt(e,t,r,n){return St.apply(this,arguments)}function St(){return St=mt(dt().m(function e(t,r,n,o){var i,s,a,u;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,wt.loadAndCacheProto(r,o);case 1:return i=e.v,s=i.lookupType(n),a=s.decode(t),jt(n)&&(a=s.toObject(a,{enums:String})),e.a(2,a);case 2:return e.p=2,u=e.v,console.error(u),e.a(2,Promise.reject(u))}},e,null,[[0,2]])})),St.apply(this,arguments)}var Et,xt,At=function(e){return self.postMessage({id:e,success:!1,result:null})};Ot.pipe((xt=function(){var e=mt(dt().m(function e(t){return dt().w(function(e){for(;;)switch(e.n){case 0:if(Et){e.n=2;break}return e.n=1,Xe.getStoreManager("DreamviewPlus");case 1:Et=e.v;case 2:return e.a(2,t)}},e)}));return function(t){return e.apply(this,arguments)}}(),ee(function(e,t){var r=null,n=0,o=!1,i=function(){return o&&!r&&t.complete()};e.subscribe(te(t,function(e){null==r||r.unsubscribe();var o=n++;Y(xt(e,o)).subscribe(r=te(t,function(e){return t.next(e)},function(){r=null,i()}))},function(){o=!0,i()}))}))).subscribe(function(){var e=mt(dt().m(function e(t){var r,n,o,i,s,a,u,c,l,f,p,h,d,y,v,m,b;return dt().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,Et||At(),e.n=1,null===(r=Et)||void 0===r?void 0:r.getItem("metadata");case 1:if(m=e.v){e.n=2;break}m=[];case 2:if(0===(i=m).length&&At(),s=t.id,a=t.payload,c=(u=a||{}).dataName,l=u.channelName,f=u.data,p=i.find(function(e){return e.dataName===c})){e.n=3;break}throw gt.error("Data name ".concat(c," not found in metadata")),new Error("Data name ".concat(c," not found in metadata"));case 3:if(!p.differentForChannels||l){e.n=4;break}throw gt.error("Channel name not found in message payload"),new Error("Channel name not found in message payload");case 4:return h=p.protoPath||(null===(n=p.channels.find(function(e){return e.channelName===l}))||void 0===n?void 0:n.protoPath),d=p.msgType||(null===(o=p.channels.find(function(e){return e.channelName===l}))||void 0===o?void 0:o.msgType),e.n=5,kt(f,h,d,{dataName:c,channelName:l}).catch(function(){throw At(s),new Error("Failed to decode data for ".concat(c," ").concat(l))});case 5:y=e.v,self.postMessage({id:s,success:!0,result:pt(pt({},a),{},{data:y})}),e.n=7;break;case 6:throw e.p=6,b=e.v,v=t.id,At(v),new Error(b);case 7:return e.a(2)}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}()),self.onmessage=function(e){var t=e.data;try{(function(e){return"SOCKET_STREAM_MESSAGE"===e.type})(t)&&Ot.next(t)}catch(e){var r=t.id;self.postMessage({id:r,success:!1,result:null})}}})()})(); \ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js.LICENSE.txt b/modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js.LICENSE.txt new file mode 100644 index 00000000000..775d3936b1b --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/decoder.worker.e5ab3e94774d990ec5ac.worker.js.LICENSE.txt @@ -0,0 +1 @@ +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ diff --git a/modules/dreamview_plus/frontend/dist/index.html b/modules/dreamview_plus/frontend/dist/index.html index 38d5a552139..f7d215cf3ee 100644 --- a/modules/dreamview_plus/frontend/dist/index.html +++ b/modules/dreamview_plus/frontend/dist/index.html @@ -3,4 +3,4 @@ var G_CONSOLE_ENDPOINT = ''; var G_STARTUP_MODULE = 'apollo_sim/startup'; var G_APP_NAME = 'home'; - var G_API_PREFIX = '/api/apollo';
\ No newline at end of file + var G_API_PREFIX = '/api/apollo';
\ No newline at end of file diff --git a/modules/dreamview_plus/frontend/dist/main.12f18bb3a66d34afda59.js b/modules/dreamview_plus/frontend/dist/main.12f18bb3a66d34afda59.js new file mode 100644 index 00000000000..32a800b0af1 --- /dev/null +++ b/modules/dreamview_plus/frontend/dist/main.12f18bb3a66d34afda59.js @@ -0,0 +1,2 @@ +/*! For license information please see main.12f18bb3a66d34afda59.js.LICENSE.txt */ +(()=>{var e,t,n,r={66029(e,t,n){"use strict";n.d(t,{PW:()=>g,D8:()=>X,kn:()=>C});var r=n(74633);function o(e){return o="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},o(e)}function a(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:50;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=e=b(this,t),o=!1,(r=k(r="running"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,e.threshold=a,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),n=t,(r=[{key:"mark",value:function(e){this.running&&performance.mark(e)}},{key:"measure",value:function(e,t,n){this.running&&performance.measure(e,t,n)}},{key:"start",value:function(){this.running||(this.running=!0,this.emit("start"),this.scheduleMonitoring())}},{key:"stop",value:function(){this.running&&(this.running=!1,this.emit("stop"),performance.clearMarks(),performance.clearMeasures())}},{key:"scheduleMonitoring",value:function(){var e=this;this.running&&requestIdleCallback(function(){e.processMeasures(),e.scheduleMonitoring()})}},{key:"processMeasures",value:function(){var e=this;performance.getEntriesByType("measure").forEach(function(t){e.emit("measure",t),t.duration>e.threshold&&e.emit("exceed",t)}),performance.clearMeasures()}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(n(3640).EventEmitter),C=new E(50),O=n(40366),P=n(76212),_=(n(75269),n(29170),n(42295)),j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nMt,LE:()=>Lt});var r={};n.r(r),n.d(r,{addPanel:()=>We,bottomBar:()=>Ye,carviz:()=>Je,chartEditing:()=>tt,guide:()=>Ke,hello:()=>Le,layerMenu:()=>Ge,mapCollect:()=>Qe,modeSettings:()=>Ue,panels:()=>Ne,personal:()=>$e,pncMonitor:()=>Ze,profileManager:()=>Be,profileManagerDynamical:()=>Fe,profileManagerFilter:()=>Ve,profileManagerHDMap:()=>Re,profileManagerOperate:()=>Ie,profileManagerRecords:()=>Me,profileManagerScenarios:()=>Te,profileManagerV2X:()=>ze,profileManagerVehicle:()=>Ae,routeEditing:()=>et,screen:()=>qe,table:()=>Xe,viewMenu:()=>He});var o={};n.r(o),n.d(o,{addPanel:()=>ht,bottomBar:()=>yt,carviz:()=>xt,chartEditing:()=>Ot,guide:()=>vt,hello:()=>nt,layerMenu:()=>wt,mapCollect:()=>kt,modeSettings:()=>pt,panels:()=>rt,personal:()=>bt,pncMonitor:()=>Et,profileManager:()=>dt,profileManagerDynamical:()=>ut,profileManagerFilter:()=>ft,profileManagerHDMap:()=>it,profileManagerOperate:()=>ct,profileManagerRecords:()=>ot,profileManagerScenarios:()=>at,profileManagerV2X:()=>lt,profileManagerVehicle:()=>st,routeEditing:()=>Ct,screen:()=>mt,table:()=>St,viewMenu:()=>gt});var a=n(35739),i=n(20582),s=n(79520),l=n(59472),u=n(31856),c=n(45903),f=n(59477),d=n(22256),p=n(41406);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,e),this.init(t,n)}return(0,s.A)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||m,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(o())return{};var i=r(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function x(e,t,n){var r=k(e,t,Object);r.obj[r.k]=n}function E(e,t){var n=k(e,t),r=n.obj,o=n.k;if(r)return r[o]}function C(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):C(e[r],t[r],n):e[r]=t[r]);return e}function O(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var P={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function _(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return P[e]}):e}var j="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,D=[" ",",","?","!",";"];function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;aa+i;)i++,l=o[s=r.slice(a,a+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var u=r.slice(a+i).join(n);return u?L(l,u,n):void 0}o=o[r[a]]}return o}}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,i.A)(this,o),t=r.call(this),j&&y.call((0,l.A)(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,s.A)(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."));var s=E(this.data,i);return s||!a||"string"!=typeof n?s:L(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(i=e.split("."))[1]),this.addNamespaces(t),x(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=E(this.data,i)||{};r?C(s,n,o):s=M(M({},s),n),x(this.data,i,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?M(M({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),o}(y),R={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach(function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,o))}),t}};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.A)(this,o),t=r.call(this),j&&y.call((0,l.A)(t)),n=e,a=(0,l.A)(t),["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(function(e){n[e]&&(a[e]=n[e])}),t.options=s,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=b.create("translator"),t}return(0,s.A)(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=D.filter(function(e){return t.indexOf(e)<0&&n.indexOf(e)<0});if(0===r.length)return!0;var o=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),a=!o.test(e);if(!a){var i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}(e,n,r));if(a&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==(0,a.A)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===(0,a.A)(t)&&(t=z({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),u=l.key,c=l.namespaces,f=c[c.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(f).concat(h).concat(u),usedKey:u,exactUsedKey:u,usedLng:d,usedNS:f}:"".concat(f).concat(h).concat(u)}return i?{res:u,usedKey:u,exactUsedKey:u,usedLng:d,usedNS:f}:u}var g=this.resolve(e,t),m=g&&g.res,v=g&&g.usedKey||u,b=g&&g.exactUsedKey||u,y=Object.prototype.toString.apply(m),w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof w||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,z(z({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return i?(g.res=k,g):k}if(s){var x="[object Array]"===y,E=x?[]:{},C=x?b:v;for(var O in m)if(Object.prototype.hasOwnProperty.call(m,O)){var P="".concat(C).concat(s).concat(O);E[O]=this.translate(P,z(z({},t),{joinArrays:!1,ns:c})),E[O]===P&&(E[O]=m[O])}m=E}}else if(S&&"string"==typeof w&&"[object Array]"===y)(m=m.join(w))&&(m=this.extendTranslation(m,e,t,n));else{var _=!1,j=!1,D=void 0!==t.count&&"string"!=typeof t.count,L=o.hasDefaultValue(t),N=D?this.pluralResolver.getSuffix(d,t.count,t):"",M=t["defaultValue".concat(N)]||t.defaultValue;!this.isValidLookup(m)&&L&&(_=!0,m=M),this.isValidLookup(m)||(j=!0,m=u);var T=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:m,R=L&&M!==m&&this.options.updateMissing;if(j||_||R){if(this.logger.log(R?"updateKey":"missingKey",d,f,u,R?M:m),s){var A=this.resolve(u,z(z({},t),{},{keySeparator:!1}));A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var V=0;V1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;i.options.fallbackNS&&(c=c.concat(i.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);c.forEach(function(e){i.isValidLookup(t)||(a=e,!F["".concat(h[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(F["".concat(h[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!i.isValidLookup(t)){o=n;var a,l=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(l,u,n,e,s);else{var c;f&&(c=i.pluralResolver.getSuffix(n,s.count,s));var h="".concat(i.options.pluralSeparator,"zero");if(f&&(l.push(u+c),d&&l.push(u+h)),p){var g="".concat(u).concat(i.options.contextSeparator).concat(s.context);l.push(g),f&&(l.push(g+c),d&&l.push(g+h))}}for(;a=l.pop();)i.isValidLookup(t)||(r=a,t=i.getResource(n,e,a,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),o}(y);function V(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=function(){function e(t){(0,i.A)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}return(0,s.A)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=V(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=V(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=V(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===e.indexOf(r)?e:void 0})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],a=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))}),o}}]),e}(),U=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],W={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},H=["v1","v2","v3"],q={zero:0,one:1,two:2,few:3,many:4,other:5},K=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,e),this.languageUtils=t,this.options=r,this.logger=b.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},U.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:W[e.fc]}})}),n)}return(0,s.A)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return q[e]-q[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!H.includes(this.options.compatibilityJSON)}}]),e}();function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=function(e,t,n){var r=E(e,n);return void 0!==r?r:E(t,n)}(e,t,n);return!a&&o&&"string"==typeof n&&void 0===(a=L(e,n,r))&&(a=L(t,n,r)),a}var X=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,e),this.logger=b.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.A)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?O(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?O(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?O(t.nestingPrefix):t.nestingPrefixEscaped||O("$t("),this.nestingSuffix=t.nestingSuffix?O(t.nestingSuffix):t.nestingSuffixEscaped||O(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,a,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=G(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(o,void 0,n,Y(Y(Y({},r),t),{},{interpolationkey:e})):o}var a=e.split(s.formatSeparator),i=a.shift().trim(),u=a.join(s.formatSeparator).trim();return s.format(G(t,l,i,s.options.keySeparator,s.options.ignoreJSONStructure),u,n,Y(Y(Y({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach(function(t){for(i=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=c(n)))if("function"==typeof f){var l=f(e,o,r);a="string"==typeof l?l:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a="";else{if(d){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=S(a));var u=t.safeValue(a);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,o,a=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),a="{".concat(r[1]);e=r[0];var i=(a=this.interpolate(a,o)).match(/'/g),s=a.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),t&&(o=Y(Y({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(a)}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var l=[];(o=(o=Y({},i)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=S(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce(function(e,t){return a.format(e,t,i.lng,Y(Y({},i),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,i.A)(this,e),this.logger=b.create("formatter"),this.options=t,this.formats={number:Z(function(e,t){var n=new Intl.NumberFormat(e,J({},t));return function(e){return n.format(e)}}),currency:Z(function(e,t){var n=new Intl.NumberFormat(e,J(J({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:Z(function(e,t){var n=new Intl.DateTimeFormat(e,J({},t));return function(e){return n.format(e)}}),relativetime:Z(function(e,t){var n=new Intl.RelativeTimeFormat(e,J({},t));return function(e){return n.format(e,t.range||"day")}}),list:Z(function(e,t){var n=new Intl.ListFormat(e,J({},t));return function(e){return n.format(e)}})},this.init(t)}return(0,s.A)(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Z(t)}},{key:"format",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t=e.split(":"),r=(0,p.A)(t),o=r[0],a=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=a),"false"===a&&(n[o.trim()]=!1),"true"===a&&(n[o.trim()]=!0),isNaN(a)||(n[o.trim()]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}}(t),i=a.formatName,s=a.formatOptions;if(r.formats[i]){var l=e;try{var u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},c=u.locale||u.lng||o.locale||o.lng||n;l=r.formats[i](e,c,J(J(J({},s),o),u))}catch(e){r.logger.warn(e)}return l}return r.logger.warn("there was no format function for ".concat(i)),e},e)}}]),e}();function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.A)(this,o),a=r.call(this),j&&y.call((0,l.A)(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=s,a.logger=b.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,s.backend,s),a}return(0,s.A)(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,a={},i={},s={},l={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===i[s]&&(i[s]=!0):(o.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach(function(n){!function(e,t,n){var r=k(e,t,Object),o=r.obj,a=r.k;o[a]=o[a]||[],o[a].push(n)}(n.loaded,[o],a),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:a,callback:i});else{this.readingCalls++;var s=function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}s&&l&&o2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)})}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s=ne(ne({},a),{},{isUpdate:o}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var u;(u=5===l.length?l(e,t,n,r,s):l(e,t,n,r))&&"function"==typeof u.then?u.then(function(e){return i(null,e)}).catch(i):i(null,u)}catch(e){i(e)}else l(e,t,n,r,i,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}]),o}(y);function oe(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,a.A)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,a.A)(e[2])||"object"===(0,a.A)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ae(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if((0,i.A)(this,o),e=r.call(this),j&&y.call((0,l.A)(e)),e.options=ae(n),e.services={},e.logger=b,e.modules={external:[]},t=(0,l.A)(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))}),a&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,a),(0,c.A)(e,(0,l.A)(e));setTimeout(function(){e.init(n,a)},0)}return e}return(0,s.A)(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=oe();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=se(se(se({},r),this.options),ae(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=se(se({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var a;this.modules.logger?b.init(o(this.modules.logger),this.options):b.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=ee);var i=new B(this.options);this.store=new T(this.options.resources,this.options);var s=this.services;s.logger=b,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new K(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new X(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new re(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var u=w(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){o.indexOf(e)<0&&o.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=w();return e||(e=this.languages),t||(t=this.options.ns),n||(n=le),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&R.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=w();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i="string"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==(0,a.A)(o)){for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=w();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=w();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new B(oe());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:le,r=se(se(se({},this.options),t),{isClone:!0}),a=new o(r);return void 0===t.debug&&void 0===t.prefix||(a.logger=a.logger.clone(t)),["store","services","language"].forEach(function(t){a[t]=e[t]}),a.services=se({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new I(a.services,a.options),a.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)});var ce=ue.createInstance();ce.createInstance=ue.createInstance,ce.createInstance,ce.dir,ce.init,ce.loadResources,ce.reloadResources,ce.use,ce.changeLanguage,ce.getFixedT,ce.t,ce.exists,ce.setDefaultNamespace,ce.hasLoadedNamespace,ce.loadNamespaces,ce.loadLanguages;var fe=[],de=fe.forEach,pe=fe.slice,he=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ge={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=encodeURIComponent(t),a="".concat(e,"=").concat(o);if(r.maxAge>0){var i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(i))}if(r.domain){if(!he.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(r.domain)}if(r.path){if(!he.test(r.path))throw new TypeError("option path is invalid");a+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a}(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},me={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o0&&r[o].substring(0,a)===e.lookupQuerystring&&(t=r[o].substring(a+1))}}return t}},ve=null,be=function(){if(null!==ve)return ve;try{ve="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){ve=!1}return ve},ye={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&be()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&be()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},we=null,Se=function(){if(null!==we)return we;try{we="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){we=!1}return we},ke={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Se()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Se()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},xe={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},Ee={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},Ce={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Oe={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}},Pe=!1;try{document.cookie,Pe=!0}catch(e){}var _e=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Pe||_e.splice(1,1);var je=function(){return(0,s.A)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)},[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return de.call(pe.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:_e,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(ge),this.addDetector(me),this.addDetector(ye),this.addDetector(ke),this.addDetector(xe),this.addDetector(Ee),this.addDetector(Ce),this.addDetector(Oe)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach(function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}}),n=n.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}])}();je.type="languageDetector";var De=n(47960),Le={hello:"hello"},Ne={demoTitle:"demoTitle",demoDescription:"This is a paragraph of text",demo2Title:"demoTitle2",demo2Description:"This is a paragraph of text",demo3Title:"demoTitle3",demo3Description:"This is a paragraph of text",descriptionTitle:"Panel introduction",panelHelpDesc:"Panel Introduction",panelHelpAbilityDesc:"Function Description",panelEmptyTitle:"Select a panel below to add it to your layout",addPanel:"Add Panel",operateSplitRight:"Split Right",operateSplitDown:"Split Down",operateFullScreen:"Fullscreen",operateRemovePanel:" Remove panel",consoleTitle:"Console",consoleDescription:"System console panel",moduleDelayTitle:"Module Delay",moduleDelayDescription:"Panel to show delay information of key modules",vehicleVizTitle:"Vehicle Visualization",vehicleVizDescription:"Main panel to show self-driving vehicle postion, map data and related information of autonomous driving system",layerMenuDescription:"Layer Menu:Customize the display elements of the display page",viewSwitchDescription:"View Switching:Provide default, near, overhead, map 4 kinds of views for you to switch",viewBtnDescription:"Zoom view:zoom in and out of the 2D Map for closer or wider views.",cameraViewTitle:"Camera View",cameraViewDescription:"Panel to show camera data",cameraViewAbilityDesc:"Customize the display elements of the panel.",pointCloudTitle:"Point Cloud",pointCloudDescription:"Panel to show LiDAR point cloud data",pointCloudAbilityDescOne:"Customize the display elements of the panel",pointCloudAbilityDescTwo:"View Switching: Provide default, near, overhead, map 4 kinds of views to switch",pointCloudAbilityDescThree:"Zoom in and out",pncMonitorTitle:"Pnc Monitor",pncMonitorDescription:"Panel to show charts related to Planning, Control, and Latency data.",dashBoardTitle:"Vehicle Dashboard",dashBoardDescription:"Panel to show the current state of the vehicle, including vehicle speed, acceleration and deceleration pedal opening, steering wheel angle, gear position and other information.",componentsTitle:"Components",componentsDescription:"Panel to display the status of common components",connectionError:"Please connect hardware device first",componentsAbilityDesc:"",pressTips:"Long press and drag the mouse to move the panel",waitingFor:"Waiting for ",simworld:"simworld",map:"map",pointcloud:"pointcloud",camera:"camera",messages:" messages",selectChannel:"Please select a channel",noData:"No Data",waitingForData:"Waiting for data",noMessages:"No messages",panelErrorMsg1:"Component error, try",panelErrorMsg2:"refresh",panelErrorMsg3:"it",chartsTitle:"Charts",chartsDescription:"Observe changes of data in the channel over time",newChart:"Add Chart",terminalWinTitle:"Terminal",play:"Play/Run",stop:"Stop",zoomIn:"Zoom In",zoomOut:"Zoom Out",shortCut:"Shortcut Key Description",exitFullScreen:"exit full screen",mapCollectTitle:"Map Collection",mapCollectDescription:"",mapCollectAbilityDesc:""},Me={titleName:"Name",titleType:"Type",titleState:"State",titleOperate:"Operation",downloaded:"Download successfully",downloading:"Downloading",notDownload:"To be downloaded",downloadFail:"Download failed",tobeUpdate:"To be updated"},Te={titleName:"Name",titleType:"Type",titleState:"State",titleOperate:"Operation",all:"All",team:"Team",personal:"Personal",system:"System"},Re={titleName:"Name",titleType:"Type",titleState:"State",titleOperate:"Operation",downloaded:"Download successful",downloading:"Downloading",notDownload:"To be download",downloadFail:"Download failed",tobeUpdate:"To be update"},Ae={titleName:"Name",titleType:"Type",titleState:"State",titleOperate:"Operation",refresh:"refresh",reset:"reset",upload:"upload",retry:"retry"},ze={titleName:"Name",titleType:"Model",titleState:"State",titleOperate:"Operation",refresh:"refresh",reset:"reset",upload:"upload"},Fe={titleName:"Name",titleType:"Type",titleState:"State",titleOperate:"Operation",refresh:"refresh",reset:"reset",upload:"upload"},Ie={cancel:"canel download",download:"download",update:"update",delete:"delete",upload:"upload",reset:"reset"},Ve={all:"All",downloading:"Downloading",downloadSuccess:"Download successfully",tobedownload:"To be downloaded",downloadFail:"Download failed"},Be={title:"Resource Manager",state:"State",records:"Records",scenarios:"Scenarios",HDMap:"HDMap",vehicle:"Vehicle",V2X:"V2X",dynamical:"Dynamical Model"},Ue={language:"Language",modeSettings:"Mode Settings",resourceManager:"Resource Manager",use:"use",empty:"No resource currently in use",currentResource:"Current Resources",mode:"Mode",operations:"Operations",modules:"Modules",setupAll:"Setup All",resetAll:"Reset All",records:"Records",RTKRecords:"RTK Records",map:"Map",scenario:"scenario",dynamic:"Dynamic Model",enviormentResources:"Enviroment Resources",adsResources:"ADS Resources",variableResources:"Enviroment Resources",fixedResources:"ADS Resources",HDMap:"HDMap",vehicle:"Vehicle",noData:"No Data",noDataMsg1:"Please go to ",noDataMsg2:"Resource Manger",noDataMsg3:" to download",mapLoading:"Map loading...",moduleStartupFailed:"module startup failed, please check"},We={addPanel:"Add Panel",resetLayout:"Reset Layout"},He={switchViews:"Switch Views",default:"Default",near:"Near",overhead:"Overhead",map:"Map"},qe={fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen"},Ke={welcome:"Welcome",viewLoginSteps:"View login steps",modeSelectDesc:"We provide you with the following visualization template. Choose one as the default interface to open.",defaultMode:"Default Mode",perceptionMode:"Perception Mode",enterThisMode:"Enter this mode",modules:"Modules",panel:"Panel",DefaultDesc:"The default mode follows the old version of Dreamview layout and is applicable to all scenarios where debugging begins.",DefaultModules:"Include all modules",DefaultPanel:"Vehicle Visualization、Vehicl Dashboard、Module delay、Console",PerceptionDesc:"The perception mode is suitable for the development and debugging scenarios of perception algorithms. In this mode, developers can intuitively view the raw data of sensors and point clouds. It supports the synchronization of multiple sensors, and enables developers to intuitively view the output obstacle results during the perception process.",PerceptionModules:"Prediction、Perception、Transform、Lidar、Radar、CameraSigleStage、CameraMultiStage、Lane、TrafficLight",PerceptionPanel:"Vehicle Visualization、Camera View、Point Cloud、Console、Module Delay",PncDesc:"The PnC mode is suitable for developers who develop planning and control modules. It provides data operation process options, visual data display panels and debugging information panels related to PnC development and debugging.",PncModules:"planning、prediction、planning、control、routing、task manager、recorder",PncPanel:"Vehicle Visualization、Console、Module delay、PnC Monitor、Vehicle Dashboard","Vehicle TestDesc":"The vehicle test mode is suitable for the development and debugging scenarios based on the real vehicle. In this mode, developers can conveniently monitor the status of key equipment such as the vehicle chassis and positioning device, view the operation of the automatic driving system, and complete data collection, waypoint-following, automatic driving demonstration and other operations on the real vehicle.","Vehicle TestModules":"Prediction、Camera 2D、Camera 3D、Perception、Traffic Light、Lane、Task Manager、Planning、Control、LiDAR、Radar、Canbus、GNSS、Localization、TF、Guardian","Vehicle TestPanel":"Vehicle Visualization、Vehicle Dashboard、Console、Module Delay、Components",skip:"Skip",back:"Back",next:"Next",close:"Close",perceptionSelectModule:"Select Module",perceptionSelectModuleDesc:"You are currently in perception mode, and we have sorted out the commonly used modules in this mode. You can turn them on and off the modules you need to run as needed.",perceptionSelectOperations:"Select Operations",perceptionSelectOperationsDesc:"Select the corresponding operations in the current mode. You can perform record playback in the perception mode.",perceptionProfileManager:"Resource Manager",perceptionProfileManagerDesc:"The Resource Manager is a car cloud integrated resource manager provided by apollo, providing download functions for materials such as vehicles, models, data packages, and simulation scenarios. You can click on the required data record, vehicle model, simulation scenarios, and other elements to download.",perceptionSelectResources:"Select Resources",perceptionSelectResourcesDesc:"You can try selecting a record for data playback",perceptionPerceivedEffects:"Perceived effects",perceptionPerceivedEffectsDesc:"During data records playback, you can check point cloud and camera images. You can also adjust the current layout and panel.",defaultSelectMode:"Mode Settings",defaultSelectModeDesc:"You are currently in the default mode. This mode provides the basic visualization panel.",defaultSelectModule:"Select Module",defaultSelectModuleDesc:"This mode includes all modules buttons, which you can turn on and off as needed.",defaultSelectOperations:"Select Operations",defaultSelectOperationsDesc:"Select the corresponding operations in the current mode, such as data playback, scenario simulation, real vehicle debugging, and waypoint-following.",defaultProfileManager:"Resource Manager",defaultProfileManagerDesc:"The Resource Manager is a car cloud integrated resource manager provided by apollo, providing download functions for materials such as vehicles, models, data packages, and simulation scenarios. You can click on the required data record, vehicle model, simulation scenarios, and other elements to download.",defaultSelectVariableRes:"Select Resources",defaultSelectVariableResDesc:"You can try selecting a data record for data playback.",defaultSelectFixedRes:"Select Resources",defaultSelectFixedResDesc:"If you are using data records for data playback, please select the map as needed.",PNCSelectOperations:"Mode Settings",PNCSelectOperationsDesc:"You are currently in PnC mode. If you want to perform scenario simulation, turn on the Scenario button to start the simulation environment; if you do not need to perform simulation, skip this step.",PNCSelectModules:"Select Module",PNCSelectModulesDesc:"We have sorted out the commonly used modules involved in PNC, and you can turn them on and off as needed.",PNCResourceManager:"Resource Manager",PNCResourceManagerDesc:"Resource Manager is a car-cloud integrated configuration center provided by Apollo, providing download functions for materials such as vehicles, models, records, and simulation scenarios. You can click on the required records, vehicles, models, simulation scenarios, and other elements to download.",PNCSelectScenario:"Select Scenario",PNCSelectScenarioDesc:"Select a scene for simulation, or select a data package for data playback.",PNCSelectMap:"Select Map",PNCSelectMapDesc:"If you are performing simulation/data playback, please continue to select the map corresponding to this scene after selecting the simulation scene/data package.",PNCSelectADS:"Select Vehicle",PNCSelectADSDesc:"If you are performing simulation, please continue to select the vehicle information corresponding to this scene after selecting Module Delay Console in the simulation scene (If you use the data package for data playback, you only need to select the map).",PNCSetRoute:"Set Route",PNCSetRouteDesc:"If you want to perform simulation, after selecting the scene, vehicle, and map, click Routing Editing to set the routing, and you can set the start point and end point information you need. If you are using data packets for data playback, please ignore this step.",PNCSimulationRecord:"Start the simulation/record",PNCSimulationRecordDesc:"After perform the above operations, please click Run/Play button to perform simulation/data playback.",VehicleSelectModules:"Mode Settings",VehicleSelectModulesDesc:"You are currently in the Vehicle Test mode. The necessary modules in this mode have been sorted out for you. You can enable and disable corresponding modules according to your needs.",VehicleSelectOperations:"Select Operation",VehicleSelectOperationsDesc:"Select the corresponding operation process in the current mode, such as automatic driving and waypoint-following.",VehicleResourceManager:"Resource Manager",VehicleResourceManagerDesc:"Resource Manager is a car-cloud integrated configuration center provided by Apollo, providing download functions for materials such as vehicles, models, records, and simulation scenarios. You can click on the required records, vehicles, models, simulation scenarios, and other elements to download.",VehicleSelectVehicle:"Select Vehicle",VehicleSelectVehicleDesc:"In ADS Resources, you can select the configuration corresponding to the current vehicle.",VehicleSelectMap:"Select Map",VehicleSelectMapDesc:"If you are debugging autonomous driving, please select the corresponding map information. If you are performing waypoint-following debugging, you need to select the recorded waypoint data records.",VehicleRoutingEditing:"Set the path for Auto Drive",VehicleRoutingEditingDesc:"When debugging autonomous driving, you need to select the path on the current map.",VehicleStartAutoDrive:"Start Auto Drive",VehicleStartAutoDriveDesc:"After completing the above operations, please click START Auto button to perform automatic driving debugging.",viewLoginStepOne:"Open https://apollo.baidu.com/workspace in the browser to access the Apollo Studio cloud workspace.",viewLoginStepTwo:'Click "Personal Center" ,then enter "My Services".',viewLoginStepThree:'Select "Simulation", click "Generate"in the "Plugin Installation", then choose the Apollo version and click "Confirm".',viewLoginStepFour:'Click "One-Click Copy", then run the command in your Docker environment, and the plugin synchronization (Dreamview login) will be completed.',loginTip:"Log in to your personal account to use Cloud Profile"},$e={loginTip:"Log in to your personal account to use Cloud Profile",loginGuide:"View Login process >>",setting:"Settings",cloud:"Cloud Profile",guide:"Use guide",document:"Product Documentation",community:"Apollo Developer Community",technicalSupport:"Advice and Suggestion",faq:"FAQ",general:"General",privacy:"Privacy",account:"Account",device:"Device",about:"About",language:"Language",confirm:"confirm",close:"Close",generalConfirm:"Send anonymous usage data to help us improve Dreamview",dreamviewVersion:"Dreamview version",dockerVersion:"Docker version",copyright:"Copyright and License",copyrightDetail:"Apollo is provided under the ",globalSetting:"Global Settings",tableIndex:"Order",tableDeviceType:"Device Type",tableVehicleType:"Vehicle Type",tableVehicleOrder:"Vehicle Number",tableProduct:"Product",deviceTips:"Please select this device and click on [Device Registration] (cannot be modified after selection, please ensure the selected option is correct)",institutionalAccounts:"Institutional accounts:",personal:"Personal",activation:"Activation",reActivation:"Reactivate",updateCertificate:"Update Certificate",inApplication:"In Application",notApply:"Not applied for",reject:"Reject",waitForActive:"Waiting for activation",activated:"Activated",activationFailed:"Activation failed",invalid:"Invalid",waitingForUpdates:"Waiting for updates",noLogin:"Not Login",notLoginTips:"View device information and related operations after logging in",notAccount:"No account selected",notAccountTips:"View device information and related operations after selecting an account",deviceRegistration:"Device registration",deviceType:"Device Type",carType:"Vehicle Type",vehicleOrder:"Vehicle Number",cpu:"CPU",productLine:"Products",licenseStatus:"License"},Ye={dumpMsg:"Dump the current message to {{path}}",dump:"Dump",dumpSuccess:"Dump Successfully",dumpFailed:"Dump Failed",resetMsg:"Clear backend data",reset:"Clear",resetSuccess:"Clear Successfully",resetFailed:"Clear Failed",recordMsg:"Please select a data record",routing:"Routing",record:"record",stopRecord:"stop",modalTitle:"Record Name",labelName:"Record Name",close:"Close",save:"Save",nameEmpty:"please input the Record Name",nameHasWhitespace:"The Record Name cannot contain spaces",nameHasChinese:"The RecordName can only be composed of letters, numbers, and underscores",Start:"START",Stop:"STOP",Running:"RUNNING",Reset:"RESET",sendRouting:"Routing",StartAutoDraive:"START"},Ge={restoreDefaultSettings:"Restore default settings",layerMenu:"Layer Menu",boundingbox:"boundingbox",polygon:"polygon",perception:"Perception",pointCloud:"Point Cloud",pedestrian:"Pedestrian",vehicle:"Vehicle",bicycle:"Bicycle",unknownMovable:"Unknown Movable",unknownStationary:"Unknown Stationary",unknown:"Unknown",cipv:"Closest-In-Path Vehicle",velocity:"Velocity",id:"id",heading:"Heading",distanceAndSpeed:"Distance and Speed",v2x:"V2X",laneMarker:"Lane Marker",radarSensor:"Radar Sensor",lidarSensor:"Lidar Sensor",cameraSensor:"Camera Sensor",prediction:"Prediction",priority:"Priority",majorPredictionLine:"Major Prediction Line",minorPredictionLine:"minor prediction line",gaussianInfo:"gaussian info",interactiveTag:"interactive tag",routing:"Routing",routingLine:"Routing Line",decision:"Decision",mainDecision:"Main Decision",obstacleDecision:"Obstacle Decision",position:"Position",localization:"Localization",gps:"GPS",shadow:"Shadow",planning:"Planning",planningCar:"Planning Car",planningTrajectoryLine:"Planning Trajectory Line",planningReferenceLine:"Planning Reference Line",planningBoundaryLine:"Planinng Boundary Line",map:"Map",crosswalk:"Crosswalk",clearArea:"Clear Area",junction:"Junction",pncJunction:"PNC junction",lane:"Lane",road:"Road",signal:"Signal",stopSign:"Stop Sign",yieldSign:"Yield Sign",speedBump:"Speed Bump",parkingSpace:"Parking Space",barrierGate:"Barrier Gate",area:"Area",parkingSpaceId:"ParkingSpace Id",laneId:"Lane Id",egoBoudingBox:"Ego BoudingBox"},Xe={empty:"No Data"},Qe={localization:"Localization",lidar2world:"Lidar2world",slamAlgorithm:"Slam Algorithm",commonAlgorithm:"Common Algorithm",vehicleTitle:"Current collection of vehicle environment",algorithmTitle:"Please select the collection algorithm",detectingStep:"Environment Detection",collectingStep:"Data Collection",exportFileStep:"Default Export",detectingOperation:"Start collecting",detectingOperationTooltip:"Please ensure the storage space is sufficient",gpsStatusText:"GPS state",lidarStatusText:"Lidar state",localizationStatusText:"Localization state",SlamStatusText:"Slam state",gpsStatusErrorText:"Abnormal gps state",lidarStatusErrorText:"Abnormal lidar state",localizationStatusErrorText:"Abnormal localization state",SlamStatusErrorText:"Abnormal Slam state",detectingErrorTooltip:"The environment is abnormal and cannot be collected",collectingTitle:"Collecting data...",collectingNote:"Attentions:",collectingNoteCircle:"1. Please drive at least 3 loops along the route to be collected;",collectingNoteSpeed:"2. Keep the vehicle speed at A-Bkm/h;",collectingNoteCover:"3. Do not block the collection route too much to guarantee the accuracy of the collected data;",collectingNoteQuit:"4. Do not exit this page during the collection process, or the collection will be interrupted;",endCollectTooltip:'Click "End" to complete the current collection',collectingRestart:"Restart",collectingEnd:"End collecting",confirmRestartContent:"Are you sure to clear the collected route and return to the first step?",confirmRestartOk:"OK",confirmRestartCancel:"Cancel",mapFileGeneration:"Generating basemap...",mapFileDefaultPath:"Default storage path:",againMapCollect:"Recollect",mapFileKnowConfirm:"OK",mapFileErrorConfirm:"Abnormal data, please try again later",mapGenerationFailed:"Basemap generation failed, please collect data again."},Je={InitiationMarkerStart:"Click to reposition the vehicle's location, and long-press and drag to change the direction.",PathwayMarkerStart:"Click to add waypoints, long-press and drag to change the direction.",IndoorLocalizationMarkerStart:"Click to confirm the initial indoor localization point, long-press and drag to change the direction.",CopyMarkerStart:"Click to copy the coordinates.",CopyMarkerEnd:"Click to continue adding, double-click or right-click to complete copying the coordinate.",RulerMarkerStart:"Click to start measuring distance.",RulerMarkerEnd:"Click to continue, double-click or right-click to finish.",Length:"Length",TotalLength:"Total Length",CopySuccessful:"Copied successfully.",CopyFailed:"Copy failed.",CopyIcon:"Copy Points Coordinates",RuleIcon:"Measure Distance"},Ze={scenarioHistory:"Scenario History",filtrate:"Filtrate",simulationDisabled1:"Please select at least one Vehicle Visualization Panel",simulationDisabled2:"Please set routing information",simulationDisabled3:"Please set routing information in the activated Vehicle Visualization Panel",simulationDisabled4:"Please click to activate a Vehicle Visualization Panel",simulationDisabled5:"Please start the Planning Module to receive routing information",scenarioSimulationDisabled1:"Please select a scenario",scenarioSimulationDisabled2:"Please start the Planning Module to receive routing information"},et={routeEditingBtnOther:"Routing Editing is suitable for Scenario and SimControl Operation",routeCreateCommonBtn:"Create Common Routing",cancel:"Cancel",saveEditing:"Save Editing",create:"Create",NoLoopMessage:"Trajectory cannot form a loop, please modify the trajectory",NoWayPointMessage:"Please add at least one Way point",backToLastPoint:"Back to last point",backToStartPoint:"Back to the start point",removeLastPoint:"Remove last point",removeAllPoints:"Remove All points",loopRoutingHelp:"The start and end points of the route are connected to form a circular path, and the vehicle travels in a circular manner after running",looptimes:"Loop times",setLooptimes:"Set Loop times",createRouteToolTip:"You can create the current routing as a common routing",goToCreate:"go to create",name:"Name",pleaseEnter:"Please enter",alreadyExists:"Already exists",createCommonRouteSuccess:"common routing created successfully!",initialPoint:"Initial Point",initialPointDis:"Inial Point is only available for simulation",wayPoint:"Way Point",loopRouting:"Loop Routing",commonRouting:"Common Routing",routingEditing:"Routing Editing",checkPointTooltip:"Point should be on the road that can be driven",checkStartPointTooltip:"Point should be on the road that can be driven",modalConfirmNo:"No",modalConfirmYes:"Yes",cancelEditingRouting:"After canceling, the current edited data will not be saved, whether to cancel"},tt={chartEditing:"Chart Editing",line:"Line",newLine:"Add Line",deleteChart:"Delete Chart",XAxis:"X-Axis",YAxis:"Y-Axis",invalidColor:"Invalid content",yes:"yes",no:"no",hideLine:"Hide the line in chart",showLine:"Show the line in chart",deleteLine:"Delete the line",errorMaxLine:"Max add up to 7 curves",maxChartLimit:"Max add up to 10 charts",deleteConfirmText:"Do you want to delete Chart {{chartName}}?",ok:"Yes",cancel:"Cancel",labelTitle:"Title",labelCache:"Cache",labelXAxisName:"Name",labelYAxisName:"Name",labelYAxisLineChannel:"Channel",labelYAxisLineChannelY:"Y",labelYAxisLineChannelX:"X",labelYAxisLineName:"Name",labelYAxisLineWidth:"Width",labelYAxisLineColor:"Color"},nt={hello:"你好"},rt={demoTitle:"示例",demoDescription:"这是一段描述",demo2Title:"示例2",demo2Description:"这是一段描述",demo3Title:"示例3",demo3Description:"这是一段描述",defaultPanelTitle:"默认窗口",defaultPanelDescription:"这是默认窗口,请根据自己的需求进行更换",descriptionTitle:"面板介绍",panelHelpDesc:"面板简介",panelHelpAbilityDesc:"功能描述",panelEmptyTitle:"请选择一个面板添加到布局中",addPanel:"选择面板",operateSplitRight:"向右拆分",operateSplitDown:"向下拆分",operateFullScreen:"全屏",operateRemovePanel:"移除",consoleTitle:"控制台",consoleDescription:"系统控制台面板",moduleDelayTitle:"模块延时",moduleDelayDescription:"显示关键模块延迟信息面板",vehicleVizTitle:"车辆可视化",vehicleVizDescription:"显示自动驾驶车辆位置、地图数据和自动驾驶系统相关信息面板",layerMenuDescription:"图层菜单:定制显示页面面板的显示元素",viewSwitchDescription:"视图切换:提供默认,近距离,俯瞰和地图四种视图切换模式",viewBtnDescription:"视图缩放:放大视图/缩小视图",cameraViewTitle:"相机视图",cameraViewDescription:"显示相机数据面板",cameraViewAbilityDesc:"定制面板的显示元素",pointCloudTitle:"点云",pointCloudDescription:"显示激光雷达点云数据面板",pointCloudAbilityDescOne:"定制面板的显示元素",pointCloudAbilityDescTwo:"视图切换:提供默认、近景、俯视、地图四种视图切换",pointCloudAbilityDescThree:"缩放:进行放大和缩小",pncMonitorTitle:"Pnc 监控",pncMonitorDescription:"用于展示与Planning、Control、Latency数据相关的图表",dashBoardTitle:"车辆仪表盘",dashBoardDesc:"显示车辆状态面板",dashBoardDescription:"展示车辆当前状态,包括车速、加减速踏板开度、方向盘转角、档位等信息",componentsTitle:"监控组件",componentsDescription:"用于展示常用组件状态的面板",connectionError:"请先连接硬件设备",pressTips:"长按并拖拽鼠标移动面板",waitingFor:"等待",simworld:"仿真世界",map:"地图",pointcloud:"点云",camera:"相机",messages:"信息",selectChannel:"请选择通道",noData:"无数据",waitingForData:"请先订阅",noMessages:"暂无数据",panelErrorMsg1:"组件出错了,尝试",panelErrorMsg2:"刷新",panelErrorMsg3:"一下吧",chartsTitle:"图表",chartsDescription:"观测channel中数据随时间的变化情况",newChart:"新建图表",terminalWinTitle:"终端",play:"播放/运行",stop:"停止",zoomIn:"放大",zoomOut:"缩小",shortCut:"快捷键描述",exitFullScreen:"退出全屏",mapCollectTitle:"地图采集",mapCollectDescription:"",mapCollectAbilityDesc:""},ot={titleName:"资源名称",titleType:"资源类型",titleState:"下载状态",titleOperate:"操作",downloaded:"下载成功",downloading:"下载中",notDownload:"等待下载",downloadFail:"下载失败",tobeUpdate:"待更新"},at={titleName:"场景集名称",titleType:"类型",titleState:"状态",titleOperate:"操作",all:"全部",team:"团队",personal:"个人",system:"系统"},it={titleName:"地图名称",titleType:"地图类型",titleState:"下载状态",titleOperate:"操作",downloaded:"下载成功",downloading:"下载中",notDownload:"等待下载",downloadFail:"下载失败",tobeUpdate:"待更新"},st={titleName:"车辆编号",titleType:"车辆类型",titleState:"下载状态",titleOperate:"操作",refresh:"刷新",reset:"重置",upload:"上传"},lt={titleName:"名称",titleType:"型号",titleState:"下载状态",titleOperate:"操作"},ut={titleName:"名称",titleType:"类型",titleState:"下载状态",titleOperate:"操作",refresh:"刷新",reset:"重置",upload:"上传"},ct={cancel:"取消下载",download:"下载",update:"更新",delete:"删除",upload:"上传",reset:"重置",retry:"重试"},ft={all:"全部",downloading:"下载中",downloadSuccess:"下载成功",tobedownload:"待下载",downloadFail:"下载失败"},dt={title:"资源管理",state:"状态",records:"数据包",scenarios:"场景",HDMap:"高精地图",vehicle:"车辆",V2X:"V2X",dynamical:"动力学模型"},pt={language:"语言",modeSettings:"模式设置",resourceManager:"资源管理",use:"使用",currentResource:"当前资源",empty:"当前没有资源在使用中",mode:"模式",operations:"操作",modules:"模块",setupAll:"开启所有模块",resetAll:"重置所有模块",records:"数据包",RTKRecords:"RTK数据包",map:"地图",scenario:"场景",dynamic:"动力学模型",enviormentResources:"环境资源",adsResources:"自动驾驶系统资源",variableResources:"环境资源",fixedResources:"自动驾驶系统资源",HDMap:"高精地图",vehicle:"车辆",noData:"没有数据",noDataMsg1:"请前往",noDataMsg2:"资源管理中心",noDataMsg3:"去下载",mapLoading:"地图加载中...",moduleStartupFailed:"模块开启失败,请检查"},ht={addPanel:"添加面板",resetLayout:"重置布局"},gt={switchViews:"切换视图",default:"默认视图",near:"近距离",overhead:"俯瞰",map:"地图"},mt={fullscreen:"全屏",exitFullscreen:"退出全屏"},vt={welcome:"欢迎",viewLoginSteps:"查看登陆步骤",modeSelectDesc:"我们为你提供以下可视化模板,选择一款作为默认打开界面吧~",defaultMode:"默认模式",perceptionMode:"感知模式",enterThisMode:"进入该模式",modules:"模块",panel:"面板",DefaultDesc:"默认模式沿用旧版dreamview布局,适用于所有开始调试的场景。",DefaultModules:"包含全部模式",DefaultPanel:"车辆可视化、车辆仪表盘、模块延时、控制台",PerceptionDesc:"感知模式适用于感知算法的开发调试场景,在该模式下,开发者可以直观查看传感器和点云的原始数据,支持多个传感器同步,可直观查看感知输出的障碍物结果。",PerceptionModules:"Prediction、Perception、Transform、Lidar、Radar、CameraSigleStage、CameraMultiStage、Lane、TrafficLight",PerceptionPanel:"车辆可视化、相机视图、点云、控制台、模块延时",PncDesc:"PnC开发调试模式适用于进行规划与控制模块开发的开发人员,提供PnC开发调试相关的数据操作流程选项、可视化数据展示面板与调试信息面板。",PncModules:"planning、prediction、planning、control、routing、task manager、recorder",PncPanel:"车辆可视化、控制台、模块延时、Pnc 监控、车辆仪表盘","Vehicle TestDesc":"实车路测模式适用于基于真实车辆的开发调试场景,在该模式下,开发者可以方便的监控车辆的底盘、定位设备等关键设备的状态,以可视化的方式查看自动驾驶系统的运营情况,并完成实车的数据采集、循迹、自动驾驶演示等操作。","Vehicle TestModules":"Prediction、Camera 2D、Camera 3D、Perception、Traffic Light、Lane、Task Manager、Planning、Control、LiDAR、Radar、Canbus、GNSS、Localization、TF、Guardian","Vehicle TestPanel":"车辆可视化、车辆仪表盘、控制台、模块延时、监控组件",skip:"跳过",back:"上一步",next:"下一步",close:"关闭",perceptionSelectModule:"选择模块",perceptionSelectModuleDesc:"您当前在感知模式。我们已为您挑选出感知模式常用的模块,您可以根据需要开启或者关闭模块。",perceptionSelectOperations:"选择操作",perceptionSelectOperationsDesc:"选择当前模式下相应的操作流程,感知模式下提供播包操作。",perceptionProfileManager:"资源管理",perceptionProfileManagerDesc:"资源管理是Apollo提供的车云一体化资源管理中心,提供车辆、模型、数据包和仿真场景等素材的下载功能。您可以点击需要的数据包,车辆、模型、仿真场景等元素进行下载。",perceptionSelectResources:"选择资源",perceptionSelectResourcesDesc:"您可以选择一个数据包进行回放。",perceptionPerceivedEffects:"感知效果",perceptionPerceivedEffectsDesc:"在数据回放过程中,您可以查看点云和摄像头图像,还可以针对当前布局和面板进行调整。",defaultSelectMode:"模式设置",defaultSelectModeDesc:"您当前处于默认模式,该模式提供基本的可视化面板显示。",defaultSelectModule:"选择模块",defaultSelectModuleDesc:"该模式包括所有的模块按钮,您可以根据需要打开或关闭。",defaultSelectOperations:"选择操作",defaultSelectOperationsDesc:"选择当前模式下相应的操作流程,如播包、场景仿真、实车调试、循迹演示。",defaultProfileManager:"资源管理",defaultProfileManagerDesc:"资源管理是Apollo提供的车云一体化资源管理中心,提供车辆、模型、数据包和仿真场景等素材的下载功能。您可以点击需要的数据包,车辆、模型、仿真场景等元素进行下载。",defaultSelectVariableRes:"选择资源",defaultSelectVariableResDesc:"您可以选择一个数据包进行回放。",defaultSelectFixedRes:"选择资源",defaultSelectFixedResDesc:"如果您正在使用数据包进行回放,请选择您需要使用的地图。",PNCSelectOperations:"模式设置",PNCSelectOperationsDesc:"您当前处于PNC模式。如果您想进行场景仿真操作,打开场景按钮开启仿真环境;如果您不需要仿真操作,请跳过这一步。",PNCSelectModules:"选择模块",PNCSelectModulesDesc:"我们已挑选出PNC中常用的模块,您可以根据需要打开或关闭模块。",PNCResourceManager:"资源管理",PNCResourceManagerDesc:"配置中心是Apollo提供的车云一体的配置中心,为大家提供车辆、模型、数据包、仿真场景等素材的下载功能。您可以点击需要的数据包、车辆、模型、仿真场景等元素进行下载。",PNCSelectScenario:"选择场景",PNCSelectScenarioDesc:"选择一个场景进行仿真,或选择一个数据包进行数据包回放。",PNCSelectMap:"选择地图",PNCSelectMapDesc:"如果您正在进行仿真或播包操作,在选择仿真场景或数据包后,请继续选择该场景相对应的地图。",PNCSelectADS:"选择车辆",PNCSelectADSDesc:"如果您正在进行仿真操作,请在仿真场景中选择模块延时控制台后继续选择该场景相关的车辆信息(如果您使用数据包进行播包操作,您只需要选择地图)。",PNCSetRoute:"设置路由",PNCSetRouteDesc:"如果您想要进行仿真操作,在选择场景、车辆和地图后,点击Routing Editing 设置路由,您还可以根据需要设置起点和终点。如果您正在使用数据包进行播包操作,请忽略该步骤。",PNCSimulationRecord:"启动仿真/播包",PNCSimulationRecordDesc:"执行完以上操作后,请点击运行/播放按钮执行仿真/播包操作。",VehicleSelectModules:"模式设置",VehicleSelectModulesDesc:"您当前处于实车路测模式,已为您梳理此模式下必要的modules,您可以根据自己的需要开启和关闭相应的module。",VehicleSelectOperations:"选择操作",VehicleSelectOperationsDesc:"选择当前模式下相应的操作流程,如自动驾驶、循迹。",VehicleResourceManager:"资源中心",VehicleResourceManagerDesc:"资源中心是Apollo提供的车云一体的配置中心,为大家提供车辆、模型、数据包、仿真场景等素材的下载功能。您可以点击需要的数据包、车辆、模型、仿真场景等元素进行下载。",VehicleSelectVehicle:"选择车辆",VehicleSelectVehicleDesc:"进入ADS Resources,您可以选择当前车辆对应的配置。",VehicleSelectMap:"选择地图",VehicleSelectMapDesc:"若您是进行自动驾驶调试,请在选择对应的地图信息。若您是进行循迹调试,则需要选择录制好的轨迹数据包。",VehicleRoutingEditing:"设置自动驾驶路径",VehicleRoutingEditingDesc:"进行自动驾驶调试时,需要在当前地图上选择路径。",VehicleStartAutoDrive:"启动自动驾驶",VehicleStartAutoDriveDesc:"进行完以上操作,请点击Start Auto按钮进行自动驾驶调试。",viewLoginStepOne:"从浏览器中打开https://apollo.baidu.com/workspace,进入Apollo Studio云端工作台",viewLoginStepTwo:"点击“个人中心”,打开“我的服务”",viewLoginStepThree:"选择“仿真”,在“插件安装”中点击“生成”,选择Apollo版本后点击“确定”",viewLoginStepFour:"选择“一键复制”,之后在您的docker环境中运行该指令,插件同步(Dreamview的登陆)就完成了",loginTip:"登录个人账户"},bt={loginTip:"登录个人账户",loginGuide:"查看登录引导",setting:"设置",cloud:"资源中心",guide:"新手引导",document:"产品手册",community:"Apollo开发者社区",general:"通用设置",privacy:"隐私政策",account:"账户设置",device:"设备",about:"关于我们",language:"语言",technicalSupport:"意见与建议",faq:"常见问题",confirm:"确认",close:"关闭",generalConfirm:"发送匿名使用数据以帮助我们改进Dreamview",dreamviewVersion:"Dreamview版本",dockerVersion:"Docker版本",copyright:"版本和许可",copyrightDetail:"Apollo is provided under the ",globalSetting:"全局设置",tableIndex:"序号",tableDeviceType:"设备类型",tableVehicleType:"车辆类型",tableVehicleOrder:"车辆编号",tableProduct:"产品线",deviceTips:"请选择本⻋设备后点击【设备注册】(选择后不可修改,请确保所选项正确)",institutionalAccounts:"机构账户",personal:"个人",activation:"激活",reActivation:"重新激活",updateCertificate:"更新证书",inApplication:"申请中",notApply:"未申请",reject:"驳回",waitForActive:"待激活",activated:"已激活",activationFailed:"激活失败",invalid:"已失效",waitingForUpdates:"待更新",noLogin:"未登录",notLoginTips:"登陆后查看设备信息于相关操作",notAccount:"未选择账户",notAccountTips:"选择账户后查看设备信息于相关操作",deviceRegistration:"设备注册",deviceType:"设备类型",carType:"车辆类型",vehicleOrder:"车辆编号",cpu:"CPU类型",productLine:"产品线",licenseStatus:"许可证状态"},yt={dumpMsg:"下载当前帧数据到{{path}}",dump:"下载",dumpSuccess:"下载成功",dumpFailed:"下载失败",resetMsg:"清除后端数据",reset:"清空",resetSuccess:"清除成功",resetFailed:"清除失败",recordMsg:"请选择数据包",routing:"发送路由",record:"录制",stopRecord:"停止录制",modalTitle:"记录名称",labelName:"记录名称",close:"关闭",save:"保存",nameEmpty:"请输入名称",nameHasWhitespace:"名称不能含有空格",nameHasChinese:"名称只能由字母、数字、下划线组成",Start:"开始",Stop:"停止",Running:"进行中",Reset:"重置",sendRouting:"发送路由",StartAutoDraive:"自动驾驶"},wt={restoreDefaultSettings:"恢复默认设置",layerMenu:"图层菜单",boundingbox:"包围盒",polygon:"多面体",Perception:"感知",pointCloud:"点云",pedestrian:"行人",vehicle:"车辆",bicycle:"自行车",unknownMovable:"未知移动",unknownStationary:"未知静止",unknown:"未知",cipv:"最近车辆",velocity:"速度",id:"ID",heading:"航向角",distanceAndSpeed:"距离和速度",v2x:"V2X",laneMarker:"车道标记",radarSensor:"毫米波雷达",lidarSensor:"激光雷达",cameraSensor:"摄像头",Prediction:"预测",priority:"优先级",majorPredictionLine:"主要预测线",minorPredictionLine:"次要预测线",gaussianInfo:"Gaussian 信息",interactiveTag:"互动标签",Routing:"路由",routingLine:"Routing线",Decision:"决策",mainDecision:"主要决策",obstacleDecision:"障碍物决策",Position:"定位",localization:"定位",gps:"GPS",shadow:"影子",Planning:"规划",planningCar:"规划小车",planningTrajectoryLine:"规划轨迹",planningReferenceLine:"参考线",planningBoundaryLine:"道路边界线",Map:"地图",crosswalk:"人行道",clearArea:"禁停区域",junction:"路口",pncJunction:"PNC路口",lane:"车道",road:"道路",signal:"信号灯",stopSign:"停车标志",yieldSign:"让行标志",speedBump:"减速带",parkingSpace:"停车位",barrierGate:"道闸",area:"区域",parkingSpaceId:"停车位ID",laneId:"车道ID",egoBoudingBox:"主车边界框"},St={empty:"暂无数据"},kt={localization:"定位",lidar2world:"Lidar坐标映射",slamAlgorithm:"Slam算法",commonAlgorithm:"普通算法",vehicleTitle:"当前采集车辆环境",algorithmTitle:"请选择采集算法",detectingStep:"环境检测",collectingStep:"数据采集",exportFileStep:"默认导出",detectingOperation:"开始采集",detectingOperationTooltip:"请确保存储空间充足",gpsStatusText:"GPS状态",lidarStatusText:"Lidar状态",localizationStatusText:"定位状态",SlamStatusText:"Slam状态",gpsStatusErrorText:"GPS状态异常",lidarStatusErrorText:"Lidar状态异常",localizationStatusErrorText:"定位状态异常",SlamStatusErrorText:"Slam状态异常",detectingErrorTooltip:"环境异常,无法采集",collectingTitle:"采集中...",collectingNote:"注意事项:",collectingNoteCircle:"1. 请沿需要采集的路线行驶至少3圈;",collectingNoteSpeed:"2. ⻋辆行驶速度请保持在A~Bkm/h;",collectingNoteCover:"3.采集路线上没有较多的物体遮挡,保障采集数据的准确性;",collectingNoteQuit:"4. 采集过程中请勿退出本⻚面,否则采集将会中断;",endCollectTooltip:" 点击“结束采集”后完成当前采集",collectingRestart:"重新开始",collectingEnd:"结束采集",confirmRestartContent:"确认清除当前已采集路程回到第一步吗?",confirmRestartOk:"确认",confirmRestartCancel:"取消",mapFileGeneration:"底图生成中...",mapFileDefaultPath:"文件默认存储路径:",againMapCollect:"再次采集",mapFileKnowConfirm:"知道了",mapFileErrorConfirm:"数据异常,请稍后再试",mapGenerationFailed:"底图生成失败,请重新采集"},xt={InitiationMarkerStart:"单击重定位车辆位置,长按拖拽修改方向",PathwayMarkerStart:"单击添加途经点,长按拖拽修改方向",CopyMarkerStart:"单击复制坐标点",CopyMarkerEnd:"单击继续添加,双击或者右键单击完成坐标点复制",RulerMarkerStart:"单击开始测距",RulerMarkerEnd:"单击继续测量,双击或者右键单击结束",Length:"长度",TotalLength:"总长度",CopySuccessful:"复制成功",CopyFailed:"复制失败",CopyIcon:"复制坐标点",RuleIcon:"测距"},Et={scenarioHistory:"场景历史",filtrate:"筛选",simulationDisabled1:"请至少选择一个车辆可视化面板",simulationDisabled2:"请设置路由信息",simulationDisabled3:"请在已激活的车辆可视化面板中设置路由信息",simulationDisabled4:"请鼠标点击激活一个车辆可视化面板",simulationDisabled5:"请启动Planning模块接收路由信息",scenarioSimulationDisabled1:"请选择场景",scenarioSimulationDisabled2:"请启动Planning模块接收路由信息"},Ct={routeEditingBtnOther:"路径编辑适用于场景仿真操作与自由仿真操作",routeCreateCommonBtn:"创建常用路由",cancel:"取消",saveEditing:"保存编辑",create:"创建",NoLoopMessage:"轨迹无法形成环形,请修改轨迹",NoWayPointMessage:"请至少添加一个轨迹点",backToLastPoint:"回到上一个点",backToStartPoint:"回到起点",removeLastPoint:"移除上一个轨迹点",removeAllPoints:"移除所有轨迹点",loopRoutingHelp:"连接路由的起点和终点形成环形路由,车辆启动后以环形路由行驶",looptimes:"循环圈数",setLooptimes:"设置循环圈数",createRouteToolTip:"您可以创建当前路由作为常用路由",goToCreate:"去创建",name:"名称",pleaseEnter:"请输入",alreadyExists:"已存在",createCommonRouteSuccess:"常用路由创建成功",initialPoint:"初始位置",initialPointDis:"重定位功能仅仿真下可用",wayPoint:"轨迹点",loopRouting:"循环路由",commonRouting:"常用路由",routingEditing:"路由编辑",checkPointTooltip:"轨迹点应位于可行驶道路上",checkStartPointTooltip:"起始点应位于可行驶道路上",modalConfirmNo:"否",modalConfirmYes:"是",cancelEditingRouting:"取消轨迹绘制后,当前编辑的数据不会保存,是否取消?"},Ot={chartEditing:"图表编辑",line:"曲线",newLine:"添加曲线",deleteChart:"删除图表",XAxis:"横坐标轴",YAxis:"纵坐标轴",invalidColor:"无效内容",yes:"是",no:"否",hideLine:"隐藏曲线",showLine:"展示曲线",deleteLine:"删除曲线",errorMaxLine:"最多添加7条曲线",maxChartLimit:"最多添加10张图表",deleteConfirmText:"确定删除图表{{chartName}}?",ok:"确认",cancel:"取消",labelTitle:"标题",labelCache:"缓存",labelXAxisName:"名称",labelYAxisName:"名称",labelYAxisLineChannel:"Channel",labelYAxisLineChannelY:"Y",labelYAxisLineChannelX:"X",labelYAxisLineName:"名称",labelYAxisLineWidth:"宽度",labelYAxisLineColor:"颜色"};function Pt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return _t(u,"_invoke",function(n,r,o){var a,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,l=e,d.n=n,i}};function p(n,r){for(s=n,l=r,t=0;!f&&u&&!o&&t3?(o=h===r)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>h)&&(a[4]=n,a[5]=r,d.n=h,s=0))}if(o||n>1)return i;throw f=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!f;){a||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(u=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==i)break}catch(t){a=e,s=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),u}var i={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(_t(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(c);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,_t(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return l.prototype=u,_t(f,"constructor",u),_t(u,"constructor",l),l.displayName="GeneratorFunction",_t(u,o,"GeneratorFunction"),_t(f),_t(f,o,"Generator"),_t(f,r,function(){return this}),_t(f,"toString",function(){return"[object Generator]"}),(Pt=function(){return{w:a,m:d}})()}function _t(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_t=function(e,t,n,r){function a(t,n){_t(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},_t(e,t,n,r)}function jt(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var Dt={en:r,zh:o};function Lt(){return Nt.apply(this,arguments)}function Nt(){var e;return e=Pt().m(function e(){var t,n=arguments;return Pt().w(function(e){for(;;)switch(e.n){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:Dt,e.n=1,ce.use(je).use(De.r9).init({resources:t,lng:localStorage.getItem("i18nextLng")||"en",interpolation:{escapeValue:!1}});case 1:return e.a(2)}},e)}),Nt=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){jt(a,r,o,i,s,"next",e)}function s(e){jt(a,r,o,i,s,"throw",e)}i(void 0)})},Nt.apply(this,arguments)}const Mt=ce},32159(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(1858),o=n.n(r),a=n(88224),i=n(32579),s=n(65091),l=n(29787),u=n(1087);const{parse:c,stringify:f}=JSON,{keys:d}=Object,p=String,h="string",g={},m="object",v=(e,t)=>t,b=e=>e instanceof p?p(e):e,y=(e,t)=>typeof t===h?new p(t):t,w=(e,t,n)=>{const r=p(t.push(n)-1);return e.set(n,r),r},S=(e,t,n)=>{const r=t&&typeof t===m?(e,n)=>""===e||-1[').concat(e,"]"),a=''.concat(r,""),i=document.createElement("div");for(i.innerHTML="".concat(o," ").concat(a),this.logBuffer.unshift(i),this.isProcessing||this.processLogBuffer();this.logElement.children.length>500;)this.logElement.removeChild(this.logElement.lastChild)}}},{key:"processLogBuffer",value:function(){var e=this;0!==this.logBuffer.length?(this.isProcessing=!0,requestAnimationFrame(function(){for(var t=document.createDocumentFragment();e.logBuffer.length>0;){var n=e.logBuffer.shift();t.insertBefore(n,t.firstChild)}e.logElement.firstChild?e.logElement.insertBefore(t,e.logElement.firstChild):e.logElement.appendChild(t),e.processLogBuffer()})):this.isProcessing=!1}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),o=1;o{const n=c(e,y).map(b),r=t||v;let o=n[0];if(typeof o===m&&o){const e=[],t=((e,t,n,r)=>o=>{for(let a=d(o),{length:i}=a,s=0;s=2))}(function(e,t){return"".concat(e," ").concat(t)},"")).subscribe(function(n){switch(e){case"DEBUG":t.logger.debug(t.formatMessage("DEBUG",n));break;case"INFO":default:t.logger.info(t.formatMessage("INFO",n));break;case"WARN":t.logger.warn(t.formatMessage("WARN",n));break;case"ERROR":t.logger.error(t.formatMessage("ERROR",n))}t.logElement&&t.logToElement(e,n)})}},{key:"formatMessage",value:function(e,t){var n=(new Date).toISOString();if(this.getLevel()===P.DEBUG&&"default"!==this.getName()){var r=this.getName();return"".concat(n," [").concat(r,"] [").concat(e,"] ").concat(t)}return"".concat(n," [").concat(e,"] ").concat(t)}}],r=[{key:"getAllInstances",value:function(){return this.instances||new Map}},{key:"getAllLoggerNames",value:function(){return Array.from(this.instances.keys())}},{key:"getInstance",value:function(t){return this.instances||(this.instances=new Map),this.instances.has(t)||this.instances.set(t,new e(t)),this.instances.get(t)}}],n&&E(t.prototype,n),r&&E(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();if(void 0===k.setLogLevel){var j=k.matchMedia&&k.matchMedia("(prefers-color-scheme: dark)").matches,D=j?"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #333;":"font-size: 14px; font-weight: bold; color: #ffa500; background-color: #eee;",L=j?"color: #ddd;":"color: #555;";"undefined"!=typeof window&&(console.log("%csetLogLevel 使用方法:",D),console.log("%c- setLogLevel() %c将所有 Logger 的日志级别设置为默认的 debug。",L,"color: blue"),console.log("%c- setLogLevel('default') %c将名为 'default' 的 Logger 的日志级别设置为 debug。",L,"color: blue"),console.log("%c- setLogLevel('default', 'info') %c将名为 'default' 的 Logger 的日志级别设置为 info。",L,"color: blue"),console.log("%cshowLogNames 使用方法:",D),console.log("%c- showLogNames() %c显示所有已注册的 Logger 实例名称。",L,"color: blue")),k.setLogLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug";e?(_.getInstance(e).setLevel(t),console.log("已将".concat(e,"的日志级别设置为").concat(t))):_.getAllInstances().forEach(function(e,n){e.setLevel(t),console.log("已将".concat(n,"的日志级别设置为").concat(t))})},k.showLogNames=function(){var e=_.getAllLoggerNames();console.log("%c已注册的 Logger 实例名称:",D),e.forEach(function(e){return console.log("%c- ".concat(e),L)})}}},33340(e,t,n){"use strict";var r=n(40366),o=n(9827),a=n(32159),i=n(32928),s=n(66029);function l(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return u(c,"_invoke",function(n,r,o){var a,s,l,u=0,c=o||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,s=0,l=e,d.n=n,i}};function p(n,r){for(s=n,l=r,t=0;!f&&u&&!o&&t3?(o=h===r)&&(l=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&pr||r>h)&&(a[4]=n,a[5]=r,d.n=h,s=0))}if(o||n>1)return i;throw f=!0,r}return function(o,c,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!f;){a||(s?s<3?(s>1&&(d.n=-1),p(s,l)):d.n=l:d.v=l);try{if(u=2,a){if(s||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=a.return)&&t.call(a),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==i)break}catch(t){a=e,s=1,l=t}finally{u=1}}return{value:t,done:f}}}(n,o,a),!0),c}var i={};function s(){}function c(){}function f(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(u(t={},r,function(){return this}),t),p=f.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return c.prototype=f,u(p,"constructor",f),u(f,"constructor",c),c.displayName="GeneratorFunction",u(f,o,"GeneratorFunction"),u(p),u(p,o,"Generator"),u(p,r,function(){return this}),u(p,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:h}})()}function u(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}u=function(e,t,n,r){function a(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},u(e,t,n,r)}function c(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var f=a.A.getInstance("../../../dreamview-web/src/index.tsx");function d(){var e;return e=l().m(function e(){var t,a,u,c;return l().w(function(e){for(;;)switch(e.n){case 0:if(t=document.getElementById("root")){e.n=1;break}throw new Error("missing #root element");case 1:return f.info("dreamview-web init"),e.n=2,Promise.all([n.e(188),n.e(622)]).then(n.bind(n,71601));case 2:return a=e.v,u=a.default,c=(0,o.H)(t),e.n=3,(0,i.LE)();case 3:c.render(r.createElement(r.Fragment,null,r.createElement(u,null),r.createElement(s.D8,null)));case 4:return e.a(2)}},e)}),d=function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){c(a,r,o,i,s,"next",e)}function s(e){c(a,r,o,i,s,"throw",e)}i(void 0)})},d.apply(this,arguments)}!function(){d.apply(this,arguments)}()},73321(e){function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n0&&i.length>o&&!i.warned){i.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=i.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=c.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=h(l,u);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){i=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},1858(e,t,n){var r,o;!function(){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],o={},a=null;function i(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var n=this.getLevel(),o=0;o=0&&t<=f.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?d+=":"+e:"symbol"==typeof e&&(d=void 0),f.name=e,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=n||c,f.getLevel=function(){return null!=u?u:null!=s?s:i},f.setLevel=function(e,n){return u=h(e),!1!==n&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&d){try{return void(window.localStorage[d]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}}(u),l.call(f)},f.setDefaultLevel=function(e){s=h(e),p()||f.setLevel(e,!1)},f.resetLevel=function(){u=null,function(){if(typeof window!==t&&d){try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),l.call(f)},f.enableAll=function(e){f.setLevel(f.levels.TRACE,e)},f.disableAll=function(e){f.setLevel(f.levels.SILENT,e)},f.rebuild=function(){if(a!==f&&(i=h(a.getLevel())),l.call(f),a===f)for(var e in o)o[e].rebuild()},i=h(a?a.getLevel():"WARN");var g=p();null!=g&&(u=h(g)),l.call(f)}(a=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=o[e];return t||(t=o[e]=new f(e,a.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=d),a},a.getLoggers=function(){return o},a.default=a,a},void 0===(o=r.call(t,n,t,e))||(e.exports=o)}()},8405(e,t,n){"use strict";var r=n(85126);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},97465(e,t,n){e.exports=n(8405)()},85126(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},49006(e,t,n){"use strict";var r=n(40366),o=n(97433);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n