diff --git a/frontend/package-lock.json b/frontend/package-lock.json index d1158fe..f8d5874 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -11,6 +11,7 @@ "@emotion/styled": "^11.11.0", "@mui/material": "^5.14.1", "bootstrap": "^5.3.3", + "deep-equal": "^2.2.3", "react": "^18.3.1", "react-bootstrap": "^2.10.0", "react-bootstrap-icons": "^1.11.4", @@ -18,6 +19,7 @@ }, "devDependencies": { "@eslint/js": "^9.6.0", + "@types/deep-equal": "^1.0.4", "@types/eslint__js": "^8.42.3", "@types/node": "^20.14.10", "@types/react": "^18.3.3", @@ -1707,6 +1709,12 @@ "@swc/counter": "^0.1.3" } }, + "node_modules/@types/deep-equal": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/deep-equal/-/deep-equal-1.0.4.tgz", + "integrity": "sha512-tqdiS4otQP4KmY0PR3u6KbZ5EWvhNdUoS/jc93UuK23C220lOZ/9TvjfxdPcKvqwwDVtmtSCrnr0p/2dirAxkA==", + "dev": true + }, "node_modules/@types/eslint": { "version": "8.56.10", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.10.tgz", @@ -2058,7 +2066,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", - "dev": true, "dependencies": { "call-bind": "^1.0.5", "is-array-buffer": "^3.0.4" @@ -2209,7 +2216,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, "dependencies": { "possible-typed-array-names": "^1.0.0" }, @@ -2283,7 +2289,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", - "dev": true, "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -2465,6 +2470,37 @@ } } }, + "node_modules/deep-equal": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz", + "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.5", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.2", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.1", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -2475,7 +2511,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -2492,7 +2527,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", @@ -2638,7 +2672,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dev": true, "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -2650,11 +2683,29 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, "engines": { "node": ">= 0.4" } }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", + "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/es-iterator-helpers": { "version": "1.0.19", "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.0.19.tgz", @@ -3303,7 +3354,6 @@ "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, "dependencies": { "is-callable": "^1.1.3" } @@ -3358,7 +3408,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -3367,7 +3416,6 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", - "dev": true, "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", @@ -3502,7 +3550,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, "dependencies": { "get-intrinsic": "^1.1.3" }, @@ -3520,7 +3567,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -3537,7 +3583,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, "dependencies": { "es-define-property": "^1.0.0" }, @@ -3549,7 +3594,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -3561,7 +3605,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -3573,7 +3616,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, "dependencies": { "has-symbols": "^1.0.3" }, @@ -3664,7 +3706,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", - "dev": true, "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.0", @@ -3682,11 +3723,25 @@ "loose-envify": "^1.0.0" } }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-array-buffer": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", - "dev": true, "dependencies": { "call-bind": "^1.0.2", "get-intrinsic": "^1.2.1" @@ -3722,7 +3777,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, "dependencies": { "has-bigints": "^1.0.1" }, @@ -3734,7 +3788,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -3750,7 +3803,6 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -3791,7 +3843,6 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -3854,7 +3905,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -3887,7 +3937,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -3911,7 +3960,6 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, "dependencies": { "call-bind": "^1.0.2", "has-tostringtag": "^1.0.0" @@ -3927,7 +3975,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -3939,7 +3986,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", - "dev": true, "dependencies": { "call-bind": "^1.0.7" }, @@ -3954,7 +4000,6 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, "dependencies": { "has-tostringtag": "^1.0.0" }, @@ -3969,7 +4014,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, "dependencies": { "has-symbols": "^1.0.2" }, @@ -3999,7 +4043,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, "engines": { "node": ">= 0.4" }, @@ -4023,7 +4066,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.3.tgz", "integrity": "sha512-LvIm3/KWzS9oRFHugab7d+M/GcBXuXX5xZkzPmN+NxihdQlZUQ4dWuSV1xR/sq6upL1TJEDrfBgRepHFdBtSNQ==", - "dev": true, "dependencies": { "call-bind": "^1.0.7", "get-intrinsic": "^1.2.4" @@ -4038,8 +4080,7 @@ "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" }, "node_modules/isexe": { "version": "2.0.0", @@ -4263,7 +4304,21 @@ "version": "1.13.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz", "integrity": "sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g==", - "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", + "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1" + }, "engines": { "node": ">= 0.4" }, @@ -4275,7 +4330,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -4284,7 +4338,6 @@ "version": "4.1.5", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dev": true, "dependencies": { "call-bind": "^1.0.5", "define-properties": "^1.2.1", @@ -4509,7 +4562,6 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -4758,7 +4810,6 @@ "version": "1.5.2", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", - "dev": true, "dependencies": { "call-bind": "^1.0.6", "define-properties": "^1.2.1", @@ -4940,7 +4991,6 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -4957,7 +5007,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -4993,7 +5042,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", - "dev": true, "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -5059,6 +5107,17 @@ "node": ">=0.10.0" } }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz", + "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==", + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/string.prototype.matchall": { "version": "4.0.11", "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.11.tgz", @@ -5506,7 +5565,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, "dependencies": { "is-bigint": "^1.0.1", "is-boolean-object": "^1.1.0", @@ -5548,7 +5606,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, "dependencies": { "is-map": "^2.0.3", "is-set": "^2.0.3", @@ -5566,7 +5623,6 @@ "version": "1.1.15", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", - "dev": true, "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.7", diff --git a/frontend/package.json b/frontend/package.json index 0c55d11..6725fb8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,6 +13,7 @@ "@emotion/styled": "^11.11.0", "@mui/material": "^5.14.1", "bootstrap": "^5.3.3", + "deep-equal": "^2.2.3", "react": "^18.3.1", "react-bootstrap": "^2.10.0", "react-bootstrap-icons": "^1.11.4", @@ -20,6 +21,7 @@ }, "devDependencies": { "@eslint/js": "^9.6.0", + "@types/deep-equal": "^1.0.4", "@types/eslint__js": "^8.42.3", "@types/node": "^20.14.10", "@types/react": "^18.3.3", diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ebb243d..1d544ea 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -39,8 +39,7 @@ const reducer = (state: State | null, action: Action): State | null => { return { ...state, value: setNestedValueByPath( - /* @ts-expect-error state is not null here... */ - state.value, + state.value as Record, action.fullAccessPath, action.newValue, ), diff --git a/frontend/src/components/AsyncMethodComponent.tsx b/frontend/src/components/AsyncMethodComponent.tsx index 41c5904..19f4f91 100644 --- a/frontend/src/components/AsyncMethodComponent.tsx +++ b/frontend/src/components/AsyncMethodComponent.tsx @@ -3,6 +3,7 @@ import { runMethod } from "../socket"; import { Form, Button, InputGroup, Spinner } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import { LevelName } from "./NotificationsComponent"; +import { useRenderCount } from "../hooks/useRenderCount"; interface AsyncMethodProps { fullAccessPath: string; @@ -30,14 +31,13 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => { return null; } - const renderCount = useRef(0); + const renderCount = useRenderCount(); const formRef = useRef(null); const [spinning, setSpinning] = useState(false); const name = fullAccessPath.split(".").at(-1)!; const parentPath = fullAccessPath.slice(0, -(name.length + 1)); useEffect(() => { - renderCount.current++; let message: string; if (runningTask === null) { @@ -66,9 +66,7 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => { return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
}
diff --git a/frontend/src/components/ButtonComponent.tsx b/frontend/src/components/ButtonComponent.tsx index 97f0ce0..f23bee5 100644 --- a/frontend/src/components/ButtonComponent.tsx +++ b/frontend/src/components/ButtonComponent.tsx @@ -1,8 +1,9 @@ -import React, { useEffect, useRef } from "react"; +import React, { useEffect } from "react"; import { ToggleButton } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import { LevelName } from "./NotificationsComponent"; import { SerializedObject } from "../types/SerializedObject"; +import { useRenderCount } from "../hooks/useRenderCount"; interface ButtonComponentProps { fullAccessPath: string; @@ -29,11 +30,7 @@ export const ButtonComponent = React.memo((props: ButtonComponentProps) => { } = props; // const buttonName = props.mapping ? (value ? props.mapping[0] : props.mapping[1]) : name; - const renderCount = useRef(0); - - useEffect(() => { - renderCount.current++; - }); + const renderCount = useRenderCount(); useEffect(() => { addNotification(`${fullAccessPath} changed to ${value}.`); @@ -51,9 +48,7 @@ export const ButtonComponent = React.memo((props: ButtonComponentProps) => { return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} ; @@ -15,18 +16,12 @@ interface DictComponentProps { export const DictComponent = React.memo((props: DictComponentProps) => { const { value, docString, isInstantUpdate, addNotification, id } = props; - const renderCount = useRef(0); + const renderCount = useRenderCount(); const valueArray = Object.values(value); - useEffect(() => { - renderCount.current++; - }, [props]); - return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} {valueArray.map((item) => { return ( diff --git a/frontend/src/components/EnumComponent.tsx b/frontend/src/components/EnumComponent.tsx index b674c2c..e1955ae 100644 --- a/frontend/src/components/EnumComponent.tsx +++ b/frontend/src/components/EnumComponent.tsx @@ -1,64 +1,40 @@ -import React, { useEffect, useRef, useState } from "react"; +import React, { useEffect } from "react"; import { InputGroup, Form, Row, Col } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import { LevelName } from "./NotificationsComponent"; -import { SerializedObject } from "../types/SerializedObject"; +import { SerializedObject, SerializedEnum } from "../types/SerializedObject"; +import { propsAreEqual } from "../utils/propsAreEqual"; +import { useRenderCount } from "../hooks/useRenderCount"; -export interface EnumSerialization { - type: "Enum" | "ColouredEnum"; - full_access_path: string; - name: string; - value: string; - readonly: boolean; - doc: string | null; - enum: Record; -} - -interface EnumComponentProps { - attribute: EnumSerialization; +interface EnumComponentProps extends SerializedEnum { addNotification: (message: string, levelname?: LevelName) => void; displayName: string; id: string; - changeCallback?: (value: SerializedObject, callback?: (ack: unknown) => void) => void; + changeCallback: (value: SerializedObject, callback?: (ack: unknown) => void) => void; } export const EnumComponent = React.memo((props: EnumComponentProps) => { - const { attribute, addNotification, displayName, id } = props; const { - full_access_path: fullAccessPath, + addNotification, + displayName, + id, value, - doc: docString, + full_access_path: fullAccessPath, enum: enumDict, + doc: docString, readonly: readOnly, - } = attribute; + changeCallback, + } = props; - let { changeCallback } = props; - if (changeCallback === undefined) { - changeCallback = (value: SerializedObject) => { - setEnumValue(() => { - return String(value.value); - }); - }; - } - const renderCount = useRef(0); - const [enumValue, setEnumValue] = useState(value); + const renderCount = useRenderCount(); useEffect(() => { - renderCount.current++; - }); - - useEffect(() => { - setEnumValue(() => { - return value; - }); addNotification(`${fullAccessPath} changed to ${value}.`); }, [value]); return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} @@ -70,11 +46,9 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => { // Display the Form.Control when readOnly is true @@ -82,27 +56,25 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => { // Display the Form.Select when readOnly is false changeCallback({ - type: attribute.type, - name: attribute.name, + type: props.type, + name: props.name, enum: enumDict, value: event.target.value, full_access_path: fullAccessPath, - readonly: attribute.readonly, - doc: attribute.doc, + readonly: props.readonly, + doc: props.doc, }) }> {Object.entries(enumDict).map(([key, val]) => ( ))} @@ -111,6 +83,6 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
); -}); +}, propsAreEqual); EnumComponent.displayName = "EnumComponent"; diff --git a/frontend/src/components/GenericComponent.tsx b/frontend/src/components/GenericComponent.tsx index 77c8d49..67e442e 100644 --- a/frontend/src/components/GenericComponent.tsx +++ b/frontend/src/components/GenericComponent.tsx @@ -2,7 +2,7 @@ import React, { useContext } from "react"; import { ButtonComponent } from "./ButtonComponent"; import { NumberComponent, NumberObject } from "./NumberComponent"; import { SliderComponent } from "./SliderComponent"; -import { EnumComponent, EnumSerialization } from "./EnumComponent"; +import { EnumComponent } from "./EnumComponent"; import { MethodComponent } from "./MethodComponent"; import { AsyncMethodComponent } from "./AsyncMethodComponent"; import { StringComponent } from "./StringComponent"; @@ -16,7 +16,7 @@ import { WebSettingsContext } from "../WebSettings"; import { updateValue } from "../socket"; import { DictComponent } from "./DictComponent"; import { parseFullAccessPath } from "../utils/stateUtils"; -import { SerializedObject } from "../types/SerializedObject"; +import { SerializedEnum, SerializedObject } from "../types/SerializedObject"; interface GenericComponentProps { attribute: SerializedObject; @@ -48,6 +48,13 @@ const createDisplayNameFromAccessPath = (fullAccessPath: string): string => { return getPathFromPathParts(displayNameParts); }; +function changeCallback( + value: SerializedObject, + callback: (ack: unknown) => void = () => {}, +) { + updateValue(value, callback); +} + export const GenericComponent = React.memo( ({ attribute, isInstantUpdate, addNotification }: GenericComponentProps) => { const { full_access_path: fullAccessPath } = attribute; @@ -65,13 +72,6 @@ export const GenericComponent = React.memo( } } - function changeCallback( - value: SerializedObject, - callback: (ack: unknown) => void = () => {}, - ) { - updateValue(value, callback); - } - if (attribute.type === "bool") { return ( { const { fullAccessPath, value, docString, format, addNotification, displayName, id } = props; - const renderCount = useRef(0); + const renderCount = useRenderCount(); const [open, setOpen] = useState(true); - useEffect(() => { - renderCount.current++; - }); - useEffect(() => { addNotification(`${fullAccessPath} changed.`); }, [props.value]); @@ -43,7 +40,7 @@ export const ImageComponent = React.memo((props: ImageComponentProps) => { {process.env.NODE_ENV === "development" && ( -

Render count: {renderCount.current}

+

Render count: {renderCount}

)} {format === "" && value === "" ? (

No image set in the backend.

diff --git a/frontend/src/components/ListComponent.tsx b/frontend/src/components/ListComponent.tsx index 7d00041..3801ea7 100644 --- a/frontend/src/components/ListComponent.tsx +++ b/frontend/src/components/ListComponent.tsx @@ -1,8 +1,9 @@ -import React, { useEffect, useRef } from "react"; +import React from "react"; import { DocStringComponent } from "./DocStringComponent"; import { GenericComponent } from "./GenericComponent"; import { LevelName } from "./NotificationsComponent"; import { SerializedObject } from "../types/SerializedObject"; +import { useRenderCount } from "../hooks/useRenderCount"; interface ListComponentProps { value: SerializedObject[]; @@ -15,17 +16,11 @@ interface ListComponentProps { export const ListComponent = React.memo((props: ListComponentProps) => { const { value, docString, isInstantUpdate, addNotification, id } = props; - const renderCount = useRef(0); - - useEffect(() => { - renderCount.current++; - }, [props]); + const renderCount = useRenderCount(); return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} {value.map((item) => { return ( diff --git a/frontend/src/components/MethodComponent.tsx b/frontend/src/components/MethodComponent.tsx index db23b8a..b81ad0c 100644 --- a/frontend/src/components/MethodComponent.tsx +++ b/frontend/src/components/MethodComponent.tsx @@ -1,8 +1,10 @@ -import React, { useEffect, useRef } from "react"; +import React, { useRef } from "react"; import { runMethod } from "../socket"; import { Button, Form } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import { LevelName } from "./NotificationsComponent"; +import { useRenderCount } from "../hooks/useRenderCount"; +import { propsAreEqual } from "../utils/propsAreEqual"; interface MethodProps { fullAccessPath: string; @@ -21,7 +23,7 @@ export const MethodComponent = React.memo((props: MethodProps) => { return null; } - const renderCount = useRef(0); + const renderCount = useRenderCount(); const formRef = useRef(null); const triggerNotification = () => { @@ -37,15 +39,9 @@ export const MethodComponent = React.memo((props: MethodProps) => { triggerNotification(); }; - useEffect(() => { - renderCount.current++; - }); - return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
}
); -}); +}, propsAreEqual); MethodComponent.displayName = "MethodComponent"; diff --git a/frontend/src/components/NumberComponent.tsx b/frontend/src/components/NumberComponent.tsx index c3f2d17..efa80ec 100644 --- a/frontend/src/components/NumberComponent.tsx +++ b/frontend/src/components/NumberComponent.tsx @@ -1,10 +1,11 @@ -import React, { useEffect, useState, useRef } from "react"; +import React, { useEffect, useState } from "react"; import { Form, InputGroup } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import "../App.css"; import { LevelName } from "./NotificationsComponent"; import { SerializedObject } from "../types/SerializedObject"; import { QuantityMap } from "../types/QuantityMap"; +import { useRenderCount } from "../hooks/useRenderCount"; // TODO: add button functionality @@ -171,7 +172,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { const [cursorPosition, setCursorPosition] = useState(null); // Create a state for the input string const [inputString, setInputString] = useState(value.toString()); - const renderCount = useRef(0); + const renderCount = useRenderCount(); const handleKeyDown = (event: React.KeyboardEvent) => { const { key, target } = event; @@ -365,9 +366,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} {displayName && ( diff --git a/frontend/src/components/SliderComponent.tsx b/frontend/src/components/SliderComponent.tsx index ffc4a36..35805c4 100644 --- a/frontend/src/components/SliderComponent.tsx +++ b/frontend/src/components/SliderComponent.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef, useState } from "react"; +import React, { useEffect, useState } from "react"; import { InputGroup, Form, Row, Col, Collapse, ToggleButton } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import { Slider } from "@mui/material"; @@ -6,6 +6,8 @@ import { NumberComponent, NumberObject } from "./NumberComponent"; import { LevelName } from "./NotificationsComponent"; import { SerializedObject } from "../types/SerializedObject"; import { QuantityMap } from "../types/QuantityMap"; +import { propsAreEqual } from "../utils/propsAreEqual"; +import { useRenderCount } from "../hooks/useRenderCount"; interface SliderComponentProps { fullAccessPath: string; @@ -22,8 +24,25 @@ interface SliderComponentProps { id: string; } +const deconstructNumberDict = ( + numberDict: NumberObject, +): [number, boolean, string | undefined] => { + let numberMagnitude = 0; + let numberUnit: string | undefined = undefined; + const numberReadOnly = numberDict.readonly; + + if (numberDict.type === "int" || numberDict.type === "float") { + numberMagnitude = numberDict.value; + } else if (numberDict.type === "Quantity") { + numberMagnitude = numberDict.value.magnitude; + numberUnit = numberDict.value.unit; + } + + return [numberMagnitude, numberReadOnly, numberUnit]; +}; + export const SliderComponent = React.memo((props: SliderComponentProps) => { - const renderCount = useRef(0); + const renderCount = useRenderCount(); const [open, setOpen] = useState(false); const { fullAccessPath, @@ -39,25 +58,21 @@ export const SliderComponent = React.memo((props: SliderComponentProps) => { id, } = props; - useEffect(() => { - renderCount.current++; - }); - useEffect(() => { addNotification(`${fullAccessPath} changed to ${value.value}.`); - }, [props.value]); + }, [props.value.value]); useEffect(() => { addNotification(`${fullAccessPath}.min changed to ${min.value}.`); - }, [props.min]); + }, [props.min.value, props.min.type]); useEffect(() => { addNotification(`${fullAccessPath}.max changed to ${max.value}.`); - }, [props.max]); + }, [props.max.value, props.max.type]); useEffect(() => { addNotification(`${fullAccessPath}.stepSize changed to ${stepSize.value}.`); - }, [props.stepSize]); + }, [props.stepSize.value, props.stepSize.type]); const handleOnChange = (_: Event, newNumber: number | number[]) => { // This will never be the case as we do not have a range slider. However, we should @@ -119,23 +134,6 @@ export const SliderComponent = React.memo((props: SliderComponentProps) => { changeCallback(serializedObject); }; - const deconstructNumberDict = ( - numberDict: NumberObject, - ): [number, boolean, string | undefined] => { - let numberMagnitude = 0; - let numberUnit: string | undefined = undefined; - const numberReadOnly = numberDict.readonly; - - if (numberDict.type === "int" || numberDict.type === "float") { - numberMagnitude = numberDict.value; - } else if (numberDict.type === "Quantity") { - numberMagnitude = numberDict.value.magnitude; - numberUnit = numberDict.value.unit; - } - - return [numberMagnitude, numberReadOnly, numberUnit]; - }; - const [valueMagnitude, valueReadOnly, valueUnit] = deconstructNumberDict(value); const [minMagnitude, minReadOnly] = deconstructNumberDict(min); const [maxMagnitude, maxReadOnly] = deconstructNumberDict(max); @@ -143,9 +141,7 @@ export const SliderComponent = React.memo((props: SliderComponentProps) => { return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} @@ -249,6 +245,6 @@ export const SliderComponent = React.memo((props: SliderComponentProps) => {
); -}); +}, propsAreEqual); SliderComponent.displayName = "SliderComponent"; diff --git a/frontend/src/components/StringComponent.tsx b/frontend/src/components/StringComponent.tsx index fe5d03f..e7fddec 100644 --- a/frontend/src/components/StringComponent.tsx +++ b/frontend/src/components/StringComponent.tsx @@ -1,9 +1,10 @@ -import React, { useEffect, useRef, useState } from "react"; +import React, { useEffect, useState } from "react"; import { Form, InputGroup } from "react-bootstrap"; import { DocStringComponent } from "./DocStringComponent"; import "../App.css"; import { LevelName } from "./NotificationsComponent"; import { SerializedObject } from "../types/SerializedObject"; +import { useRenderCount } from "../hooks/useRenderCount"; // TODO: add button functionality @@ -31,13 +32,9 @@ export const StringComponent = React.memo((props: StringComponentProps) => { id, } = props; - const renderCount = useRef(0); + const renderCount = useRenderCount(); const [inputString, setInputString] = useState(props.value); - useEffect(() => { - renderCount.current++; - }, [isInstantUpdate, inputString, renderCount]); - useEffect(() => { // Only update the inputString if it's different from the prop value if (props.value !== inputString) { @@ -86,9 +83,7 @@ export const StringComponent = React.memo((props: StringComponentProps) => { return (
- {process.env.NODE_ENV === "development" && ( -
Render count: {renderCount.current}
- )} + {process.env.NODE_ENV === "development" &&
Render count: {renderCount}
} {displayName} diff --git a/frontend/src/hooks/useRenderCount.ts b/frontend/src/hooks/useRenderCount.ts new file mode 100644 index 0000000..35b208c --- /dev/null +++ b/frontend/src/hooks/useRenderCount.ts @@ -0,0 +1,11 @@ +import { useRef, useEffect } from "react"; + +export function useRenderCount() { + const count = useRef(0); + + useEffect(() => { + count.current += 1; + }); + + return count.current; +} diff --git a/frontend/src/types/SerializedObject.ts b/frontend/src/types/SerializedObject.ts index 9acffe0..8dec4f4 100644 --- a/frontend/src/types/SerializedObject.ts +++ b/frontend/src/types/SerializedObject.ts @@ -36,11 +36,11 @@ type SerializedString = SerializedObjectBase & { type: "str"; }; -type SerializedEnum = SerializedObjectBase & { +export type SerializedEnum = SerializedObjectBase & { name: string; value: string; type: "Enum" | "ColouredEnum"; - enum: Record; + enum: Record; }; type SerializedList = SerializedObjectBase & { diff --git a/frontend/src/utils/propsAreEqual.ts b/frontend/src/utils/propsAreEqual.ts new file mode 100644 index 0000000..ec569ff --- /dev/null +++ b/frontend/src/utils/propsAreEqual.ts @@ -0,0 +1,17 @@ +import deepEqual from "deep-equal"; + +export const propsAreEqual = ( + prevProps: T, + nextProps: T, +): boolean => { + for (const key in nextProps) { + if (typeof nextProps[key] === "object") { + if (!deepEqual(prevProps[key], nextProps[key])) { + return false; + } + } else if (!Object.is(prevProps[key], nextProps[key])) { + return false; + } + } + return true; +}; diff --git a/src/pydase/frontend/assets/index-C12UM6g5.js b/src/pydase/frontend/assets/index-C12UM6g5.js new file mode 100644 index 0000000..20dbc73 --- /dev/null +++ b/src/pydase/frontend/assets/index-C12UM6g5.js @@ -0,0 +1,62 @@ +function vk(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var cl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var l0={exports:{}},su={},u0={exports:{}},q={};/** + * @license React + * react.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. + */var Ls=Symbol.for("react.element"),gk=Symbol.for("react.portal"),wk=Symbol.for("react.fragment"),Sk=Symbol.for("react.strict_mode"),xk=Symbol.for("react.profiler"),Ek=Symbol.for("react.provider"),kk=Symbol.for("react.context"),bk=Symbol.for("react.forward_ref"),Ck=Symbol.for("react.suspense"),Ok=Symbol.for("react.memo"),$k=Symbol.for("react.lazy"),Em=Symbol.iterator;function _k(e){return e===null||typeof e!="object"?null:(e=Em&&e[Em]||e["@@iterator"],typeof e=="function"?e:null)}var c0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f0=Object.assign,d0={};function ai(e,t,n){this.props=e,this.context=t,this.refs=d0,this.updater=n||c0}ai.prototype.isReactComponent={};ai.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function p0(){}p0.prototype=ai.prototype;function hp(e,t,n){this.props=e,this.context=t,this.refs=d0,this.updater=n||c0}var mp=hp.prototype=new p0;mp.constructor=hp;f0(mp,ai.prototype);mp.isPureReactComponent=!0;var km=Array.isArray,h0=Object.prototype.hasOwnProperty,yp={current:null},m0={key:!0,ref:!0,__self:!0,__source:!0};function y0(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)h0.call(t,r)&&!m0.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1=0)continue;n[r]=e[r]}return n}function Om(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Fk(e){var t=zk(e,"string");return typeof t=="symbol"?t:String(t)}function zk(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function S0(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&i!==t&&s(t),[a?e:i,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),f=1;f>>1,Z=_[Y];if(0>>1;Yo(re,F))geo(Me,re)?(_[Y]=Me,_[ge]=F,Y=ge):(_[Y]=re,_[X]=F,Y=X);else if(geo(Me,F))_[Y]=Me,_[ge]=F,Y=ge;else break e}}return I}function o(_,I){var F=_.sortIndex-I.sortIndex;return F!==0?F:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,v=!1,g=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function E(_){if(S=!1,y(_),!g)if(n(l)!==null)g=!0,G(C);else{var I=n(u);I!==null&&V(E,I.startTime-_)}}function C(_,I){g=!1,S&&(S=!1,m(O),O=-1),v=!0;var F=f;try{for(y(I),d=n(l);d!==null&&(!(d.expirationTime>I)||_&&!A());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var Z=Y(d.expirationTime<=I);I=e.unstable_now(),typeof Z=="function"?d.callback=Z:d===n(l)&&r(l),y(I)}else r(l);d=n(l)}if(d!==null)var ve=!0;else{var X=n(u);X!==null&&V(E,X.startTime-I),ve=!1}return ve}finally{d=null,f=F,v=!1}}var x=!1,b=null,O=-1,T=5,$=-1;function A(){return!(e.unstable_now()-$_||125<_||(T=0<_?Math.floor(1e3/_):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var F=f;f=I;try{return _()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var F=f;f=_;try{return I()}finally{f=F}},e.unstable_scheduleCallback=function(_,I,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0Y?(_.sortIndex=F,t(u,_),n(l)===null&&_===n(u)&&(S?(m(O),O=-1):S=!0,V(E,F-Y))):(_.sortIndex=Z,t(l,_),g||v||(g=!0,G(C))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=f;return function(){var F=f;f=I;try{return _.apply(this,arguments)}finally{f=F}}}})(T0);_0.exports=T0;var ob=_0.exports;/** + * @license React + * react-dom.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. + */var ib=h,kt=ob;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$f=Object.prototype.hasOwnProperty,sb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$m={},_m={};function ab(e){return $f.call(_m,e)?!0:$f.call($m,e)?!1:sb.test(e)?_m[e]=!0:($m[e]=!0,!1)}function lb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function ub(e,t,n,r){if(t===null||typeof t>"u"||lb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ge[e]=new lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var gp=/[\-:]([a-z])/g;function wp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gp,wp);Ge[t]=new lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gp,wp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gp,wp);Ge[t]=new lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sp(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` +`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function cb(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Nf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xo:return"Fragment";case So:return"Portal";case _f:return"Profiler";case xp:return"StrictMode";case Tf:return"Suspense";case Rf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A0:return(e.displayName||"Context")+".Consumer";case N0:return(e._context.displayName||"Context")+".Provider";case Ep:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kp:return t=e.displayName||null,t!==null?t:Nf(e.type)||"Memo";case nr:t=e._payload,e=e._init;try{return Nf(e(t))}catch{}}return null}function fb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nf(t);case 8:return t===xp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function db(e){var t=j0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=db(e))}function L0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=j0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Af(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function I0(e,t){t=t.checked,t!=null&&Sp(e,"checked",t,!1)}function Pf(e,t){I0(e,t);var n=xr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?jf(e,t.type,n):t.hasOwnProperty("defaultValue")&&jf(e,t.type,xr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function jf(e,t,n){(t!=="number"||fl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Po(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function us(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hi={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},pb=["Webkit","ms","Moz","O"];Object.keys(Hi).forEach(function(e){pb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hi[t]=Hi[e]})});function F0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hi.hasOwnProperty(e)&&Hi[e]?(""+t).trim():t+"px"}function z0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=F0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var hb=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mf(e,t){if(t){if(hb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Bf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Df=null;function bp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ff=null,jo=null,Lo=null;function jm(e){if(e=Ds(e)){if(typeof Ff!="function")throw Error(R(280));var t=e.stateNode;t&&(t=du(t),Ff(e.stateNode,e.type,t))}}function U0(e){jo?Lo?Lo.push(e):Lo=[e]:jo=e}function W0(){if(jo){var e=jo,t=Lo;if(Lo=jo=null,jm(e),t)for(e=0;e>>=0,e===0?32:31-(Cb(e)/Ob|0)|0}var ra=64,oa=4194304;function Mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Mi(a):(i&=s,i!==0&&(r=Mi(i)))}else s=n&~o,s!==0?r=Mi(s):i!==0&&(r=Mi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ms(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Rb(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ki),Wm=" ",Hm=!1;function u1(e,t){switch(e){case"keyup":return oC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Eo=!1;function sC(e,t){switch(e){case"compositionend":return c1(t);case"keypress":return t.which!==32?null:(Hm=!0,Wm);case"textInput":return e=t.data,e===Wm&&Hm?null:e;default:return null}}function aC(e,t){if(Eo)return e==="compositionend"||!Ap&&u1(e,t)?(e=a1(),ja=Tp=ur=null,Eo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qm(n)}}function h1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?h1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m1(){for(var e=window,t=fl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fl(e.document)}return t}function Pp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function yC(e){var t=m1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&h1(n.ownerDocument.documentElement,n)){if(r!==null&&Pp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Qm(n,i);var s=Qm(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ko=null,Kf=null,qi=null,Gf=!1;function Ym(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gf||ko==null||ko!==fl(r)||(r=ko,"selectionStart"in r&&Pp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qi&&ms(qi,r)||(qi=r,r=gl(Kf,"onSelect"),0Oo||(e.current=Zf[Oo],Zf[Oo]=null,Oo--)}function he(e,t){Oo++,Zf[Oo]=e.current,e.current=t}var Er={},et=Cr(Er),ft=Cr(!1),Ur=Er;function Ho(e,t){var n=e.type.contextTypes;if(!n)return Er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function dt(e){return e=e.childContextTypes,e!=null}function Sl(){ye(ft),ye(et)}function ry(e,t,n){if(et.current!==Er)throw Error(R(168));he(et,t),he(ft,n)}function b1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,fb(e)||"Unknown",o));return be({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Er,Ur=et.current,he(et,e),he(ft,ft.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=b1(e,t,Ur),r.__reactInternalMemoizedMergedChildContext=e,ye(ft),ye(et),he(et,e)):ye(ft),he(ft,n)}var jn=null,pu=!1,Mc=!1;function C1(e){jn===null?jn=[e]:jn.push(e)}function _C(e){pu=!0,C1(e)}function Or(){if(!Mc&&jn!==null){Mc=!0;var e=0,t=ue;try{var n=jn;for(ue=1;e>=s,o-=s,Mn=1<<32-nn(t)+o|n<O?(T=b,b=null):T=b.sibling;var $=f(m,b,y[O],E);if($===null){b===null&&(b=T);break}e&&b&&$.alternate===null&&t(m,b),p=i($,p,O),x===null?C=$:x.sibling=$,x=$,b=T}if(O===y.length)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;OO?(T=b,b=null):T=b.sibling;var A=f(m,b,$.value,E);if(A===null){b===null&&(b=T);break}e&&b&&A.alternate===null&&t(m,b),p=i(A,p,O),x===null?C=A:x.sibling=A,x=A,b=T}if($.done)return n(m,b),xe&&Nr(m,O),C;if(b===null){for(;!$.done;O++,$=y.next())$=d(m,$.value,E),$!==null&&(p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return xe&&Nr(m,O),C}for(b=r(m,b);!$.done;O++,$=y.next())$=v(b,m,O,$.value,E),$!==null&&(e&&$.alternate!==null&&b.delete($.key===null?O:$.key),p=i($,p,O),x===null?C=$:x.sibling=$,x=$);return e&&b.forEach(function(U){return t(m,U)}),xe&&Nr(m,O),C}function k(m,p,y,E){if(typeof y=="object"&&y!==null&&y.type===xo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ea:e:{for(var C=y.key,x=p;x!==null;){if(x.key===C){if(C=y.type,C===xo){if(x.tag===7){n(m,x.sibling),p=o(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===nr&&ay(C)===x.type){n(m,x.sibling),p=o(x,y.props),p.ref=bi(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===xo?(p=Br(y.props.children,m.mode,E,y.key),p.return=m,m=p):(E=Ua(y.type,y.key,y.props,null,m.mode,E),E.ref=bi(m,p,y),E.return=m,m=E)}return s(m);case So:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Vc(y,m.mode,E),p.return=m,m=p}return s(m);case nr:return x=y._init,k(m,p,x(y._payload),E)}if(Ii(y))return g(m,p,y,E);if(wi(y))return S(m,p,y,E);fa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,E),p.return=m,m=p),s(m)):n(m,p)}return k}var Ko=T1(!0),R1=T1(!1),bl=Cr(null),Cl=null,To=null,Mp=null;function Bp(){Mp=To=Cl=null}function Dp(e){var t=bl.current;ye(bl),e._currentValue=t}function nd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mo(e,t){Cl=e,Mp=To=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ct=!0),e.firstContext=null)}function Dt(e){var t=e._currentValue;if(Mp!==e)if(e={context:e,memoizedValue:t,next:null},To===null){if(Cl===null)throw Error(R(308));To=e,Cl.dependencies={lanes:0,firstContext:e}}else To=To.next=e;return t}var jr=null;function Fp(e){jr===null?jr=[e]:jr.push(e)}function N1(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Fp(t)):(n.next=o.next,o.next=n),t.interleaved=n,Vn(e,r)}function Vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var rr=!1;function zp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,te&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Vn(e,n)}return o=r.interleaved,o===null?(t.next=t,Fp(r)):(t.next=o.next,o.next=t),r.interleaved=t,Vn(e,n)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Op(e,n)}}function ly(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ol(e,t,n,r){var o=e.updateQueue;rr=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,v=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,S=a;switch(f=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,f=typeof g=="function"?g.call(v,d,f):g,f==null)break e;d=be({},d,f);break e;case 2:rr=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else v={eventTime:v,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=d}}function uy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Dc.transition;Dc.transition={};try{e(!1),t()}finally{ue=n,Dc.transition=r}}function Q1(){return Ft().memoizedState}function AC(e,t,n){var r=gr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Y1(e))X1(t,n);else if(n=N1(e,t,n,r),n!==null){var o=st();rn(n,e,r,o),J1(n,t,r)}}function PC(e,t,n){var r=gr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Y1(e))X1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,sn(a,s)){var l=t.interleaved;l===null?(o.next=o,Fp(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=N1(e,t,o,r),n!==null&&(o=st(),rn(n,e,r,o),J1(n,t,r))}}function Y1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function X1(e,t){Qi=_l=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function J1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Op(e,n)}}var Tl={readContext:Dt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},jC={readContext:Dt,useCallback:function(e,t){return fn().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:fy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4194308,4,H1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=fn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=AC.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=fn();return e={current:e},t.memoizedState=e},useState:cy,useDebugValue:Qp,useDeferredValue:function(e){return fn().memoizedState=e},useTransition:function(){var e=cy(!1),t=e[0];return e=NC.bind(null,e[1]),fn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=fn();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Fe===null)throw Error(R(349));Hr&30||I1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,fy(B1.bind(null,r,i,e),[e]),r.flags|=2048,ks(9,M1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=fn(),t=Fe.identifierPrefix;if(xe){var n=Bn,r=Mn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[yn]=t,e[gs]=r,lw(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bf(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oQo&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304)}else{if(!r)if(e=$l(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ci(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>Qo&&n!==1073741824&&(t.flags|=128,r=!0,Ci(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=Ee.current,he(Ee,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return th(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gt&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function UC(e,t){switch(Lp(t),t.tag){case 1:return dt(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),ye(ft),ye(et),Hp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wp(t),null;case 13:if(ye(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(Ee),null;case 4:return Go(),null;case 10:return Dp(t.type._context),null;case 22:case 23:return th(),null;case 24:return null;default:return null}}var pa=!1,Ze=!1,WC=typeof WeakSet=="function"?WeakSet:Set,L=null;function Ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function fd(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Ey=!1;function HC(e,t){if(qf=yl,e=m1(),Pp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)f=d,d=v;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qf={focusedElem:e,selectionRange:n},yl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,k=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Xt(t.type,S),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(E){$e(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=Ey,Ey=!1,g}function Yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&fd(t,n,i)}o=o.next}while(o!==r)}}function yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fw(e){var t=e.alternate;t!==null&&(e.alternate=null,fw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[gs],delete t[Jf],delete t[OC],delete t[$C])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dw(e){return e.tag===5||e.tag===3||e.tag===4}function ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wl));else if(r!==4&&(e=e.child,e!==null))for(pd(e,t,n),e=e.sibling;e!==null;)pd(e,t,n),e=e.sibling}function hd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(hd(e,t,n),e=e.sibling;e!==null;)hd(e,t,n),e=e.sibling}var He=null,Jt=!1;function er(e,t,n){for(n=n.child;n!==null;)pw(e,t,n),n=n.sibling}function pw(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Ze||Ro(n,t);case 6:var r=He,o=Jt;He=null,er(e,t,n),He=r,Jt=o,He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):He.removeChild(n.stateNode));break;case 18:He!==null&&(Jt?(e=He,n=n.stateNode,e.nodeType===8?Ic(e.parentNode,n):e.nodeType===1&&Ic(e,n),ps(e)):Ic(He,n.stateNode));break;case 4:r=He,o=Jt,He=n.stateNode.containerInfo,Jt=!0,er(e,t,n),He=r,Jt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&fd(n,t,s),o=o.next}while(o!==r)}er(e,t,n);break;case 1:if(!Ze&&(Ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){$e(n,t,a)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,er(e,t,n),Ze=r):er(e,t,n);break;default:er(e,t,n)}}function by(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WC),t.forEach(function(r){var o=ZC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*KC(r/1960))-r,10e?16:e,cr===null)var r=!1;else{if(e=cr,cr=null,Al=0,te&6)throw Error(R(331));var o=te;for(te|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l_e()-Zp?Mr(e,0):Jp|=n),pt(e,t)}function xw(e,t){t===0&&(e.mode&1?(t=oa,oa<<=1,!(oa&130023424)&&(oa=4194304)):t=1);var n=st();e=Vn(e,t),e!==null&&(Ms(e,t,n),pt(e,n))}function JC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xw(e,n)}function ZC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),xw(e,n)}var Ew;Ew=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ct=!1,FC(e,t,n);ct=!!(e.flags&131072)}else ct=!1,xe&&t.flags&1048576&&O1(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var o=Ho(t,et.current);Mo(t,n),o=Kp(null,t,r,e,o,n);var i=Gp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dt(r)?(i=!0,xl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zp(t),o.updater=mu,t.stateNode=o,o._reactInternals=t,od(t,r,e,n),t=ad(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&jp(t),rt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=tO(r),e=Xt(r,e),o){case 0:t=sd(null,t,r,e,n);break e;case 1:t=wy(null,t,r,e,n);break e;case 11:t=vy(null,t,r,e,n);break e;case 14:t=gy(null,t,r,Xt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),sd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),wy(e,t,r,o,n);case 3:e:{if(iw(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,A1(e,t),Ol(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=qo(Error(R(423)),t),t=Sy(e,t,r,n,o);break e}else if(r!==o){o=qo(Error(R(424)),t),t=Sy(e,t,r,n,o);break e}else for(St=mr(t.stateNode.containerInfo.firstChild),xt=t,xe=!0,en=null,n=R1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=Kn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return P1(t),e===null&&td(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Yf(r,o)?s=null:i!==null&&Yf(r,i)&&(t.flags|=32),ow(e,t),rt(e,t,s,n),t.child;case 6:return e===null&&td(t),null;case 13:return sw(e,t,n);case 4:return Up(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),vy(e,t,r,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,he(bl,r._currentValue),r._currentValue=s,i!==null)if(sn(i.value,s)){if(i.children===o.children&&!ft.current){t=Kn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=zn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),nd(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),nd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Mo(t,n),o=Dt(o),r=r(o),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),gy(e,t,r,o,n);case 15:return nw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Da(e,t),t.tag=1,dt(r)?(e=!0,xl(t)):e=!1,Mo(t,n),Z1(t,r,o),od(t,r,o,n),ad(null,t,r,!0,e,n);case 19:return aw(e,t,n);case 22:return rw(e,t,n)}throw Error(R(156,t.tag))};function kw(e,t){return Y0(e,t)}function eO(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new eO(e,t,n,r)}function rh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tO(e){if(typeof e=="function")return rh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ep)return 11;if(e===kp)return 14}return 2}function wr(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ua(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")rh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xo:return Br(n.children,o,i,t);case xp:s=8,o|=8;break;case _f:return e=It(12,n,t,o|2),e.elementType=_f,e.lanes=i,e;case Tf:return e=It(13,n,t,o),e.elementType=Tf,e.lanes=i,e;case Rf:return e=It(19,n,t,o),e.elementType=Rf,e.lanes=i,e;case P0:return gu(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N0:s=10;break e;case A0:s=9;break e;case Ep:s=11;break e;case kp:s=14;break e;case nr:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=It(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Br(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function gu(e,t,n,r){return e=It(22,e,r,t),e.elementType=P0,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Vc(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nO(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oh(e,t,n,r,o,i,s,a,l){return e=new nO(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=It(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zp(i),e}function rO(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($w)}catch{}}$w(),$0.exports=Ct;var _w=$0.exports;const Ir=si(_w),Ay={disabled:!1},Tw=ne.createContext(null);var lO=function(t){return t.scrollTop},Di="unmounted",or="exited",Pt="entering",In="entered",Yo="exiting",Jn=function(e){Wk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=or,i.appearStatus=Pt):l=In:r.unmountOnExit||r.mountOnEnter?l=Di:l=or,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Di?{status:or}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Pt&&s!==In&&(i=Pt):(s===Pt||s===In)&&(i=Yo)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&lO(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===or&&this.setState({status:Di})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||Ay.disabled){this.safeSetState({status:In},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Ay.disabled){this.safeSetState({status:or},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yo},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:or},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Di)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=an(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(Tw.Provider,{value:null},typeof s=="function"?s(o,a):ne.cloneElement(ne.Children.only(s),a))},t}(ne.Component);Jn.contextType=Tw;Jn.propTypes={};function io(){}Jn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:io,onEntering:io,onEntered:io,onExit:io,onExiting:io,onExited:io};Jn.UNMOUNTED=Di;Jn.EXITED=or;Jn.ENTERING=Pt;Jn.ENTERED=In;Jn.EXITING=Yo;const ku=!!(typeof window<"u"&&window.document&&window.document.createElement);var wd=!1,Sd=!1;try{var Kc={get passive(){return wd=!0},get once(){return Sd=wd=!0}};ku&&(window.addEventListener("test",Kc,Kc),window.removeEventListener("test",Kc,!0))}catch{}function uO(e,t,n,r){if(r&&typeof r!="boolean"&&!Sd){var o=r.once,i=r.capture,s=n;!Sd&&o&&(s=n.__once||function a(l){this.removeEventListener(t,a,i),n.call(this,l)},n.__once=s),e.addEventListener(t,s,wd?r:i)}e.addEventListener(t,n,r)}function cO(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Dn(e,t,n,r){return uO(e,t,n,r),function(){cO(e,t,n,r)}}function fO(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function dO(e){var t=Fn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function pO(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||fO(e,"transitionend",!0)},t+n),i=Dn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function hO(e,t,n,r){n==null&&(n=dO(e)||0);var o=pO(e,n,r),i=Dn(e,"transitionend",t);return function(){o(),i()}}function Py(e,t){const n=Fn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function lh(e,t){const n=Py(e,"transitionDuration"),r=Py(e,"transitionDelay"),o=hO(e,i=>{i.target===e&&(o(),t(i))},n+r)}function $i(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Rw(e){e.offsetHeight}const jy=e=>!e||typeof e=="function"?e:t=>{e.current=t};function mO(e,t){const n=jy(e),r=jy(t);return o=>{n&&n(o),r&&r(o)}}function Yr(e,t){return h.useMemo(()=>mO(e,t),[e,t])}function Ll(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const uh=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),f=Yr(d,l),v=x=>{f(Ll(x))},g=x=>b=>{x&&d.current&&x(d.current,b)},S=h.useCallback(g(e),[e]),k=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),p=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),E=h.useCallback(g(i),[i]),C=h.useCallback(g(s),[s]);return w.jsx(Jn,{ref:c,...u,onEnter:S,onEntered:m,onEntering:k,onExit:p,onExited:E,onExiting:y,addEndListener:C,nodeRef:d,children:typeof a=="function"?(x,b)=>a(x,{...b,ref:v}):ne.cloneElement(a,{ref:v})})}),yO={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function vO(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=yO[e];return r+parseInt(Fn(t,o[0]),10)+parseInt(Fn(t,o[1]),10)}const gO={[or]:"collapse",[Yo]:"collapsing",[Pt]:"collapsing",[In]:"collapse show"},bu=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:v=vO,...g},S)=>{const k=typeof a=="function"?a():a,m=h.useMemo(()=>$i(x=>{x.style[k]="0"},e),[k,e]),p=h.useMemo(()=>$i(x=>{const b=`scroll${k[0].toUpperCase()}${k.slice(1)}`;x.style[k]=`${x[b]}px`},t),[k,t]),y=h.useMemo(()=>$i(x=>{x.style[k]=null},n),[k,n]),E=h.useMemo(()=>$i(x=>{x.style[k]=`${v(k,x)}px`,Rw(x)},r),[r,v,k]),C=h.useMemo(()=>$i(x=>{x.style[k]=null},o),[k,o]);return w.jsx(uh,{ref:S,addEndListener:lh,...g,"aria-expanded":g.role?l:null,onEnter:m,onEntering:p,onEntered:y,onExit:E,onExiting:C,childRef:s.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(x,b)=>ne.cloneElement(s,{...b,className:M(i,s.props.className,gO[x],k==="width"&&"collapse-horizontal")})})});function wO(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function it(e){const t=wO(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const ch=e=>h.forwardRef((t,n)=>w.jsx("div",{...t,ref:n,className:M(t.className,e)}));function Ly(){return h.useState(null)}function fh(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function SO(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const xO=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",EO=typeof document<"u",Il=EO||xO?h.useLayoutEffect:h.useEffect,kO=["as","disabled"];function bO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function CO(e){return!e||e.trim()==="#"}function Nw({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:a=0,type:l}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&CO(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:d},u]}const OO=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=bO(e,kO);const[i,{tagName:s}]=Nw(Object.assign({tagName:n,disabled:r},o));return w.jsx(s,Object.assign({},o,i,{ref:t}))});OO.displayName="Button";const $O={[Pt]:"show",[In]:"show"},Cs=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},a=h.useCallback((l,u)=>{Rw(l),r==null||r(l,u)},[r]);return w.jsx(uh,{ref:i,addEndListener:lh,...s,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:M("fade",e,t.props.className,$O[l],n[l])})})});Cs.displayName="Fade";const _O={"aria-label":pe.string,onClick:pe.func,variant:pe.oneOf(["white"])},Cu=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>w.jsx("button",{ref:o,type:"button",className:M("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Cu.displayName="CloseButton";Cu.propTypes=_O;const Aw=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},a)=>{const l=z(e,"badge");return w.jsx(i,{ref:a,...s,className:M(o,l,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Aw.displayName="Badge";const zs=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...a},l)=>{const u=z(t,"btn"),[c,{tagName:d}]=Nw({tagName:e,disabled:i,...a}),f=d;return w.jsx(f,{...c,...a,ref:l,disabled:i,className:M(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&i&&"disabled")})});zs.displayName="Button";const dh=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));dh.displayName="CardBody";const Pw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-footer"),w.jsx(n,{ref:o,className:M(e,t),...r})));Pw.displayName="CardFooter";const jw=h.createContext(null);jw.displayName="CardHeaderContext";const Lw=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return w.jsx(jw.Provider,{value:s,children:w.jsx(n,{ref:o,...r,className:M(t,i)})})});Lw.displayName="CardHeader";const Iw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=z(e,"card-img");return w.jsx(r,{ref:i,className:M(n?`${s}-${n}`:s,t),...o})});Iw.displayName="CardImg";const Mw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"card-img-overlay"),w.jsx(n,{ref:o,className:M(e,t),...r})));Mw.displayName="CardImgOverlay";const Bw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=z(t,"card-link"),w.jsx(n,{ref:o,className:M(e,t),...r})));Bw.displayName="CardLink";const TO=ch("h6"),Dw=h.forwardRef(({className:e,bsPrefix:t,as:n=TO,...r},o)=>(t=z(t,"card-subtitle"),w.jsx(n,{ref:o,className:M(e,t),...r})));Dw.displayName="CardSubtitle";const Fw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=z(t,"card-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));Fw.displayName="CardText";const RO=ch("h5"),zw=h.forwardRef(({className:e,bsPrefix:t,as:n=RO,...r},o)=>(t=z(t,"card-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));zw.displayName="CardTitle";const Uw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:a="div",...l},u)=>{const c=z(e,"card");return w.jsx(a,{ref:u,...l,className:M(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?w.jsx(dh,{children:s}):s})});Uw.displayName="Card";const Do=Object.assign(Uw,{Img:Iw,Title:zw,Subtitle:Dw,Body:dh,Link:Bw,Text:Fw,Header:Lw,Footer:Pw,ImgOverlay:Mw});function NO(e){const t=h.useRef(e);return t.current=e,t}function Ww(e){const t=NO(e);h.useEffect(()=>()=>t.current(),[])}const xd=2**31-1;function Hw(e,t,n){const r=n-Date.now();e.current=r<=xd?setTimeout(t,r):setTimeout(()=>Hw(e,t,n),xd)}function Vw(){const e=fh(),t=h.useRef();return Ww(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=xd?t.current=setTimeout(o,i):Hw(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function AO(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function PO({as:e,bsPrefix:t,className:n,...r}){t=z(t,"col");const o=x0(),i=E0(),s=[],a=[];return o.forEach(l=>{const u=r[l];delete r[l];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const v=l!==i?`-${l}`:"";c&&s.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),f!=null&&a.push(`order${v}-${f}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:M(n,...s,...a)},{as:e,bsPrefix:t,spans:s}]}const dn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=PO(e);return w.jsx(o,{...r,ref:t,className:M(n,!s.length&&i)})});dn.displayName="Col";const Kw=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=z(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return w.jsx(n,{ref:i,...o,className:M(r,t?`${s}${a}`:s)})});Kw.displayName="Container";var jO=Function.prototype.bind.call(Function.prototype.call,[].slice);function so(e,t){return jO(e.querySelectorAll(t))}var Iy=Object.prototype.hasOwnProperty;function My(e,t,n){for(n of e.keys())if(Zi(n,t))return n}function Zi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=My(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=My(t,o),!o)||!Zi(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Iy.call(e,n)&&++r&&!Iy.call(t,n)||!(n in t)||!Zi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function LO(e){const t=fh();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ht="top",zt="bottom",Ut="right",mt="left",ph="auto",Us=[ht,zt,Ut,mt],Xo="start",Os="end",IO="clippingParents",Gw="viewport",_i="popper",MO="reference",By=Us.reduce(function(e,t){return e.concat([t+"-"+Xo,t+"-"+Os])},[]),qw=[].concat(Us,[ph]).reduce(function(e,t){return e.concat([t,t+"-"+Xo,t+"-"+Os])},[]),BO="beforeRead",DO="read",FO="afterRead",zO="beforeMain",UO="main",WO="afterMain",HO="beforeWrite",VO="write",KO="afterWrite",GO=[BO,DO,FO,zO,UO,WO,HO,VO,KO];function wn(e){return e.split("-")[0]}function bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gr(e){var t=bt(e).Element;return e instanceof t||e instanceof Element}function Sn(e){var t=bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hh(e){if(typeof ShadowRoot>"u")return!1;var t=bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Dr=Math.max,Ml=Math.min,Jo=Math.round;function Ed(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Qw(){return!/^((?!chrome|android).)*safari/i.test(Ed())}function Zo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Sn(e)&&(o=e.offsetWidth>0&&Jo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Jo(r.height)/e.offsetHeight||1);var s=Gr(e)?bt(e):window,a=s.visualViewport,l=!Qw()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function mh(e){var t=Zo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Yw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Gn(e){return bt(e).getComputedStyle(e)}function qO(e){return["table","td","th"].indexOf(kr(e))>=0}function $r(e){return((Gr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ou(e){return kr(e)==="html"?e:e.assignedSlot||e.parentNode||(hh(e)?e.host:null)||$r(e)}function Dy(e){return!Sn(e)||Gn(e).position==="fixed"?null:e.offsetParent}function QO(e){var t=/firefox/i.test(Ed()),n=/Trident/i.test(Ed());if(n&&Sn(e)){var r=Gn(e);if(r.position==="fixed")return null}var o=Ou(e);for(hh(o)&&(o=o.host);Sn(o)&&["html","body"].indexOf(kr(o))<0;){var i=Gn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ws(e){for(var t=bt(e),n=Dy(e);n&&qO(n)&&Gn(n).position==="static";)n=Dy(n);return n&&(kr(n)==="html"||kr(n)==="body"&&Gn(n).position==="static")?t:n||QO(e)||t}function yh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function es(e,t,n){return Dr(e,Ml(t,n))}function YO(e,t,n){var r=es(e,t,n);return r>n?n:r}function Xw(){return{top:0,right:0,bottom:0,left:0}}function Jw(e){return Object.assign({},Xw(),e)}function Zw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var XO=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jw(typeof t!="number"?t:Zw(t,Us))};function JO(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=wn(n.placement),l=yh(a),u=[mt,Ut].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=XO(o.padding,n),f=mh(i),v=l==="y"?ht:mt,g=l==="y"?zt:Ut,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],k=s[l]-n.rects.reference[l],m=Ws(i),p=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,y=S/2-k/2,E=d[v],C=p-f[c]-d[g],x=p/2-f[c]/2+y,b=es(E,x,C),O=l;n.modifiersData[r]=(t={},t[O]=b,t.centerOffset=b-x,t)}}function ZO(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Yw(t.elements.popper,o)&&(t.elements.arrow=o))}const e2={name:"arrow",enabled:!0,phase:"main",fn:JO,effect:ZO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(e){return e.split("-")[1]}var t2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function n2(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Jo(n*o)/o||0,y:Jo(r*o)/o||0}}function Fy(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,v=f===void 0?0:f,g=s.y,S=g===void 0?0:g,k=typeof c=="function"?c({x:v,y:S}):{x:v,y:S};v=k.x,S=k.y;var m=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),y=mt,E=ht,C=window;if(u){var x=Ws(n),b="clientHeight",O="clientWidth";if(x===bt(n)&&(x=$r(n),Gn(x).position!=="static"&&a==="absolute"&&(b="scrollHeight",O="scrollWidth")),x=x,o===ht||(o===mt||o===Ut)&&i===Os){E=zt;var T=d&&x===C&&C.visualViewport?C.visualViewport.height:x[b];S-=T-r.height,S*=l?1:-1}if(o===mt||(o===ht||o===zt)&&i===Os){y=Ut;var $=d&&x===C&&C.visualViewport?C.visualViewport.width:x[O];v-=$-r.width,v*=l?1:-1}}var A=Object.assign({position:a},u&&t2),U=c===!0?n2({x:v,y:S},bt(n)):{x:v,y:S};if(v=U.x,S=U.y,l){var B;return Object.assign({},A,(B={},B[E]=p?"0":"",B[y]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+S+"px)":"translate3d("+v+"px, "+S+"px, 0)",B))}return Object.assign({},A,(t={},t[E]=p?S+"px":"",t[y]=m?v+"px":"",t.transform="",t))}function r2(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:wn(t.placement),variation:ei(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const o2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:r2,data:{}};var ya={passive:!0};function i2(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ya)}),a&&l.addEventListener("resize",n.update,ya),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ya)}),a&&l.removeEventListener("resize",n.update,ya)}}const s2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:i2,data:{}};var a2={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(t){return a2[t]})}var l2={start:"end",end:"start"};function zy(e){return e.replace(/start|end/g,function(t){return l2[t]})}function vh(e){var t=bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gh(e){return Zo($r(e)).left+vh(e).scrollLeft}function u2(e,t){var n=bt(e),r=$r(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=Qw();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+gh(e),y:l}}function c2(e){var t,n=$r(e),r=vh(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Dr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+gh(e),l=-r.scrollTop;return Gn(o||n).direction==="rtl"&&(a+=Dr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function wh(e){var t=Gn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function eS(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:Sn(e)&&wh(e)?e:eS(Ou(e))}function ts(e,t){var n;t===void 0&&(t=[]);var r=eS(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=bt(r),s=o?[i].concat(i.visualViewport||[],wh(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(ts(Ou(s)))}function kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f2(e,t){var n=Zo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Uy(e,t,n){return t===Gw?kd(u2(e,n)):Gr(t)?f2(t,n):kd(c2($r(e)))}function d2(e){var t=ts(Ou(e)),n=["absolute","fixed"].indexOf(Gn(e).position)>=0,r=n&&Sn(e)?Ws(e):e;return Gr(r)?t.filter(function(o){return Gr(o)&&Yw(o,r)&&kr(o)!=="body"}):[]}function p2(e,t,n,r){var o=t==="clippingParents"?d2(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Uy(e,u,r);return l.top=Dr(c.top,l.top),l.right=Ml(c.right,l.right),l.bottom=Ml(c.bottom,l.bottom),l.left=Dr(c.left,l.left),l},Uy(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function tS(e){var t=e.reference,n=e.element,r=e.placement,o=r?wn(r):null,i=r?ei(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case ht:l={x:s,y:t.y-n.height};break;case zt:l={x:s,y:t.y+t.height};break;case Ut:l={x:t.x+t.width,y:a};break;case mt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?yh(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Xo:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Os:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function $s(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?IO:a,u=n.rootBoundary,c=u===void 0?Gw:u,d=n.elementContext,f=d===void 0?_i:d,v=n.altBoundary,g=v===void 0?!1:v,S=n.padding,k=S===void 0?0:S,m=Jw(typeof k!="number"?k:Zw(k,Us)),p=f===_i?MO:_i,y=e.rects.popper,E=e.elements[g?p:f],C=p2(Gr(E)?E:E.contextElement||$r(e.elements.popper),l,c,s),x=Zo(e.elements.reference),b=tS({reference:x,element:y,strategy:"absolute",placement:o}),O=kd(Object.assign({},y,b)),T=f===_i?O:x,$={top:C.top-T.top+m.top,bottom:T.bottom-C.bottom+m.bottom,left:C.left-T.left+m.left,right:T.right-C.right+m.right},A=e.modifiersData.offset;if(f===_i&&A){var U=A[o];Object.keys($).forEach(function(B){var K=[Ut,zt].indexOf(B)>=0?1:-1,W=[ht,zt].indexOf(B)>=0?"y":"x";$[B]+=U[W]*K})}return $}function h2(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?qw:l,c=ei(r),d=c?a?By:By.filter(function(g){return ei(g)===c}):Us,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var v=f.reduce(function(g,S){return g[S]=$s(e,{placement:S,boundary:o,rootBoundary:i,padding:s})[wn(S)],g},{});return Object.keys(v).sort(function(g,S){return v[g]-v[S]})}function m2(e){if(wn(e)===ph)return[];var t=Wa(e);return[zy(e),t,zy(t)]}function y2(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,v=n.flipVariations,g=v===void 0?!0:v,S=n.allowedAutoPlacements,k=t.options.placement,m=wn(k),p=m===k,y=l||(p||!g?[Wa(k)]:m2(k)),E=[k].concat(y).reduce(function(X,re){return X.concat(wn(re)===ph?h2(t,{placement:re,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:S}):re)},[]),C=t.rects.reference,x=t.rects.popper,b=new Map,O=!0,T=E[0],$=0;$=0,W=K?"width":"height",G=$s(t,{placement:A,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),V=K?B?Ut:mt:B?zt:ht;C[W]>x[W]&&(V=Wa(V));var _=Wa(V),I=[];if(i&&I.push(G[U]<=0),a&&I.push(G[V]<=0,G[_]<=0),I.every(function(X){return X})){T=A,O=!1;break}b.set(A,I)}if(O)for(var F=g?3:1,Y=function(re){var ge=E.find(function(Me){var qe=b.get(Me);if(qe)return qe.slice(0,re).every(function(_t){return _t})});if(ge)return T=ge,"break"},Z=F;Z>0;Z--){var ve=Y(Z);if(ve==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const v2={name:"flip",enabled:!0,phase:"main",fn:y2,requiresIfExists:["offset"],data:{_skip:!1}};function Wy(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Hy(e){return[ht,Ut,zt,mt].some(function(t){return e[t]>=0})}function g2(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=$s(t,{elementContext:"reference"}),a=$s(t,{altBoundary:!0}),l=Wy(s,r),u=Wy(a,o,i),c=Hy(l),d=Hy(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const w2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:g2};function S2(e,t,n){var r=wn(e),o=[mt,ht].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[mt,Ut].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function x2(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=qw.reduce(function(c,d){return c[d]=S2(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const E2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:x2};function k2(e){var t=e.state,n=e.name;t.modifiersData[n]=tS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const b2={name:"popperOffsets",enabled:!0,phase:"read",fn:k2,data:{}};function C2(e){return e==="x"?"y":"x"}function O2(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,v=f===void 0?!0:f,g=n.tetherOffset,S=g===void 0?0:g,k=$s(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=wn(t.placement),p=ei(t.placement),y=!p,E=yh(m),C=C2(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,O=t.rects.popper,T=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,$=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(x){if(i){var B,K=E==="y"?ht:mt,W=E==="y"?zt:Ut,G=E==="y"?"height":"width",V=x[E],_=V+k[K],I=V-k[W],F=v?-O[G]/2:0,Y=p===Xo?b[G]:O[G],Z=p===Xo?-O[G]:-b[G],ve=t.elements.arrow,X=v&&ve?mh(ve):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Xw(),ge=re[K],Me=re[W],qe=es(0,b[G],X[G]),_t=y?b[G]/2-F-qe-ge-$.mainAxis:Y-qe-ge-$.mainAxis,_n=y?-b[G]/2+F+qe+Me+$.mainAxis:Z+qe+Me+$.mainAxis,Tn=t.elements.arrow&&Ws(t.elements.arrow),Rn=Tn?E==="y"?Tn.clientTop||0:Tn.clientLeft||0:0,Qe=(B=A==null?void 0:A[E])!=null?B:0,de=V+_t-Qe-Rn,H=V+_n-Qe,Ue=es(v?Ml(_,de):_,V,v?Dr(I,H):I);x[E]=Ue,U[E]=Ue-V}if(a){var nt,vt=E==="x"?ht:mt,vi=E==="x"?zt:Ut,we=x[C],Gt=C==="y"?"height":"width",eo=we+k[vt],to=we-k[vi],Rr=[ht,mt].indexOf(m)!==-1,gi=(nt=A==null?void 0:A[C])!=null?nt:0,no=Rr?eo:we-b[Gt]-O[Gt]-gi+$.altAxis,Zn=Rr?we+b[Gt]+O[Gt]-gi-$.altAxis:to,N=v&&Rr?YO(no,we,Zn):es(v?no:eo,we,v?Zn:to);x[C]=N,U[C]=N-we}t.modifiersData[r]=U}}const $2={name:"preventOverflow",enabled:!0,phase:"main",fn:O2,requiresIfExists:["offset"]};function _2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function T2(e){return e===bt(e)||!Sn(e)?vh(e):_2(e)}function R2(e){var t=e.getBoundingClientRect(),n=Jo(t.width)/e.offsetWidth||1,r=Jo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function N2(e,t,n){n===void 0&&(n=!1);var r=Sn(t),o=Sn(t)&&R2(t),i=$r(t),s=Zo(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((kr(t)!=="body"||wh(i))&&(a=T2(t)),Sn(t)?(l=Zo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=gh(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function A2(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function P2(e){var t=A2(e);return GO.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function j2(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function L2(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Vy={placement:"bottom",modifiers:[],strategy:"absolute"};function Ky(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const F2={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},z2={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},U2=[];function W2(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=U2}=n,a=D2(n,B2);const l=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var k;(k=u.current)==null||k.update()},[]),d=h.useCallback(()=>{var k;(k=u.current)==null||k.forceUpdate()},[]),[f,v]=LO(h.useState({placement:o,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:k})=>{const m={},p={};Object.keys(k.elements).forEach(y=>{m[y]=k.styles[y],p[y]=k.attributes[y]}),v({state:k,styles:m,attributes:p,update:c,forceUpdate:d,placement:k.placement})}}),[c,d,v]),S=h.useMemo(()=>(Zi(l.current,s)||(l.current=s),l.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...S,g,F2]})},[i,o,g,r,S]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=M2(e,t,Object.assign({},a,{placement:o,strategy:i,modifiers:[...S,z2,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,v(k=>Object.assign({},k,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function _s(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var H2=function(){},V2=H2;const K2=si(V2),Gy=()=>{};function G2(e){return e.button===0}function q2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ha=e=>e&&("current"in e?e.current:e),qy={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Q2(e,t=Gy,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=Ha(e);K2(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||q2(u)||!G2(u)||!!_s(c,u.target)||i.current,i.current=!1},[e]),a=it(u=>{const c=Ha(e);c&&_s(c,u.target)&&(i.current=!0)}),l=it(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const d=Is(Ha(e)),f=d.defaultView||window;let v=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;qy[r]&&(g=Dn(d,qy[r],a,!0));const S=Dn(d,r,s,!0),k=Dn(d,r,p=>{if(p===v){v=void 0;return}l(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>Dn(p,"mousemove",Gy))),()=>{g==null||g(),S(),k(),m.forEach(p=>p())}},[e,n,r,s,a,l])}function Y2(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function X2(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function J2({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:a,popperConfig:l={}}){var u,c,d,f,v;const g=Y2(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:X2(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(v=g.arrow)==null?void 0:v.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const Z2=h.createContext(null),e$="data-rr-ui-";function t$(e){return`${e$}${e}`}const nS=h.createContext(ku?window:void 0);nS.Provider;function Sh(){return h.useContext(nS)}const rS=h.createContext(null);rS.displayName="InputGroupContext";const ci=h.createContext(null);ci.displayName="NavbarContext";pe.string,pe.bool,pe.bool,pe.bool,pe.bool;const oS=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},a)=>(e=z(e,"img"),w.jsx("img",{ref:a,...s,className:M(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));oS.displayName="Image";const n$={type:pe.string,tooltip:pe.bool,as:pe.elementType},$u=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>w.jsx(e,{...o,ref:i,className:M(t,`${n}-${r?"tooltip":"feedback"}`)}));$u.displayName="Feedback";$u.propTypes=n$;const qn=h.createContext({}),Hs=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...a},l)=>{const{controlId:u}=h.useContext(qn);return t=z(t,"form-check-input"),w.jsx(s,{...a,ref:l,type:r,id:e||u,className:M(n,t,o&&"is-valid",i&&"is-invalid")})});Hs.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-check-label"),w.jsx("label",{...r,ref:o,htmlFor:n||i,className:M(t,e)})});Bl.displayName="FormCheckLabel";const iS=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:f,title:v="",type:g="checkbox",label:S,children:k,as:m="input",...p},y)=>{t=z(t,"form-check"),n=z(n,"form-switch");const{controlId:E}=h.useContext(qn),C=h.useMemo(()=>({controlId:e||E}),[E,e]),x=!k&&S!=null&&S!==!1||AO(k,Bl),b=w.jsx(Hs,{...p,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:a,disabled:i,as:m});return w.jsx(qn.Provider,{value:C,children:w.jsx("div",{style:f,className:M(d,x&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:k||w.jsxs(w.Fragment,{children:[b,x&&w.jsx(Bl,{title:v,children:S}),u&&w.jsx($u,{type:c,tooltip:l,children:u})]})})})});iS.displayName="FormCheck";const Dl=Object.assign(iS,{Input:Hs,Label:Bl}),sS=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},f)=>{const{controlId:v}=h.useContext(qn);return e=z(e,"form-control"),w.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:o||v,className:M(i,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});sS.displayName="FormControl";const r$=Object.assign(sS,{Feedback:$u}),aS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"form-floating"),w.jsx(n,{ref:o,className:M(e,t),...r})));aS.displayName="FormFloating";const xh=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return w.jsx(qn.Provider,{value:o,children:w.jsx(t,{...n,ref:r})})});xh.displayName="FormGroup";const lS=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},a)=>{const{controlId:l}=h.useContext(qn);t=z(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=M(o,t,r&&"visually-hidden",n&&u);return i=i||l,n?w.jsx(dn,{ref:a,as:"label",className:c,htmlFor:i,...s}):w.jsx(e,{ref:a,className:c,htmlFor:i,...s})});lS.displayName="FormLabel";const uS=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(qn);return e=z(e,"form-range"),w.jsx("input",{...r,type:"range",ref:o,className:M(t,e),id:n||i})});uS.displayName="FormRange";const cS=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...a},l)=>{const{controlId:u}=h.useContext(qn);return e=z(e,"form-select"),w.jsx("select",{...a,size:n,ref:l,className:M(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});cS.displayName="FormSelect";const fS=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=z(e,"form-text"),w.jsx(n,{...o,ref:i,className:M(t,e,r&&"text-muted")})));fS.displayName="FormText";const dS=h.forwardRef((e,t)=>w.jsx(Dl,{...e,ref:t,type:"switch"}));dS.displayName="Switch";const o$=Object.assign(dS,{Input:Dl.Input,Label:Dl.Label}),pS=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=z(e,"form-floating"),w.jsxs(xh,{ref:s,className:M(t,e),controlId:r,...i,children:[n,w.jsx("label",{htmlFor:r,children:o})]})));pS.displayName="FloatingLabel";const i$={_ref:pe.any,validated:pe.bool,as:pe.elementType},Eh=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>w.jsx(n,{...r,ref:o,className:M(e,t&&"was-validated")}));Eh.displayName="Form";Eh.propTypes=i$;const ot=Object.assign(Eh,{Group:xh,Control:r$,Floating:aS,Check:Dl,Switch:o$,Label:lS,Text:fS,Range:uS,Select:cS,FloatingLabel:pS}),_u=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"input-group-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_u.displayName="InputGroupText";const s$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"checkbox",...e})}),a$=e=>w.jsx(_u,{children:w.jsx(Hs,{type:"radio",...e})}),hS=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=z(e,"input-group");const a=h.useMemo(()=>({}),[]);return w.jsx(rS.Provider,{value:a,children:w.jsx(o,{ref:s,...i,className:M(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});hS.displayName="InputGroup";const Un=Object.assign(hS,{Text:_u,Radio:a$,Checkbox:s$});function Gc(e){e===void 0&&(e=Is());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function l$(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Qy=t$("modal-open");class kh{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return l$(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Fn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Qy,""),Fn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Qy),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qc=(e,t)=>ku?e==null?(t||Is()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bd(e,t){const n=Sh(),[r,o]=h.useState(()=>qc(e,n==null?void 0:n.document));if(!r){const i=qc(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=qc(e);i!==r&&o(i)},[e,r]),r}function u$({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),a=it(n);h.useEffect(()=>{t?s.current=!0:a(i.current)},[t,a]);const l=Yr(i,e.ref),u=h.cloneElement(e,{ref:l});return t?u:o||!s.current&&r?null:u}function mS(e){return e.code==="Escape"||e.keyCode===27}function c$(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const f$=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function d$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function p$(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:a,children:l}=e,u=d$(e,f$);const{major:c}=c$(),d=c>=19?l.props.ref:l.ref,f=h.useRef(null),v=Yr(f,typeof l=="function"?null:d),g=x=>b=>{x&&f.current&&x(f.current,b)},S=h.useCallback(g(t),[t]),k=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),p=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),E=h.useCallback(g(s),[s]),C=h.useCallback(g(a),[a]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:S},n&&{onEntering:k},r&&{onEntered:m},o&&{onExit:p},i&&{onExiting:y},s&&{onExited:E},a&&{addEndListener:C},{children:typeof l=="function"?(x,b)=>l(x,Object.assign({},b,{ref:v})):h.cloneElement(l,{ref:v})})}const h$=["component"];function m$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const y$=h.forwardRef((e,t)=>{let{component:n}=e,r=m$(e,h$);const o=p$(r);return w.jsx(n,Object.assign({ref:t},o))});function v$({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=it(t);return Il(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Il(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function g$({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const a=v$({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,d=>{throw u.in||s(!0),d})}}),l=Yr(a,e.ref);return i&&!t?null:h.cloneElement(e,{ref:l})}function Cd(e,t,n){return e?w.jsx(y$,Object.assign({},n,{component:e})):t?w.jsx(g$,Object.assign({},n,{transition:t})):w.jsx(u$,Object.assign({},n))}const w$=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function S$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Qc;function x$(e){return Qc||(Qc=new kh({ownerDocument:e==null?void 0:e.document})),Qc}function E$(e){const t=Sh(),n=e||x$(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const yS=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:v,runBackdropTransition:g,autoFocus:S=!0,enforceFocus:k=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:y,renderBackdrop:E=H=>w.jsx("div",Object.assign({},H)),manager:C,container:x,onShow:b,onHide:O=()=>{},onExit:T,onExited:$,onExiting:A,onEnter:U,onEntering:B,onEntered:K}=e,W=S$(e,w$);const G=Sh(),V=bd(x),_=E$(C),I=fh(),F=SO(n),[Y,Z]=h.useState(!n),ve=h.useRef(null);h.useImperativeHandle(t,()=>_,[_]),ku&&!F&&n&&(ve.current=Gc(G==null?void 0:G.document)),n&&Y&&Z(!1);const X=it(()=>{if(_.add(),_n.current=Dn(document,"keydown",qe),_t.current=Dn(document,"focus",()=>setTimeout(ge),!0),b&&b(),S){var H,Ue;const nt=Gc((H=(Ue=_.dialog)==null?void 0:Ue.ownerDocument)!=null?H:G==null?void 0:G.document);_.dialog&&nt&&!_s(_.dialog,nt)&&(ve.current=nt,_.dialog.focus())}}),re=it(()=>{if(_.remove(),_n.current==null||_n.current(),_t.current==null||_t.current(),m){var H;(H=ve.current)==null||H.focus==null||H.focus(p),ve.current=null}});h.useEffect(()=>{!n||!V||X()},[n,V,X]),h.useEffect(()=>{Y&&re()},[Y,re]),Ww(()=>{re()});const ge=it(()=>{if(!k||!I()||!_.isTopModal())return;const H=Gc(G==null?void 0:G.document);_.dialog&&H&&!_s(_.dialog,H)&&_.dialog.focus()}),Me=it(H=>{H.target===H.currentTarget&&(u==null||u(H),a===!0&&O())}),qe=it(H=>{l&&mS(H)&&_.isTopModal()&&(c==null||c(H),H.defaultPrevented||O())}),_t=h.useRef(),_n=h.useRef(),Tn=(...H)=>{Z(!0),$==null||$(...H)};if(!V)return null;const Rn=Object.assign({role:r,ref:_.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(Rn):w.jsx("div",Object.assign({},Rn,{children:h.cloneElement(s,{role:"document"})}));Qe=Cd(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:A,onExited:Tn,onEnter:U,onEntering:B,onEntered:K,children:Qe});let de=null;return a&&(de=E({ref:_.setBackdropRef,onClick:Me}),de=Cd(v,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:de})),w.jsx(w.Fragment,{children:Ir.createPortal(w.jsxs(w.Fragment,{children:[de,Qe]}),V)})});yS.displayName="Modal";const k$=Object.assign(yS,{Manager:kh});function Od(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function b$(e,t){e.classList?e.classList.add(t):Od(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Yy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function C$(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Yy(e.className,t):e.setAttribute("class",Yy(e.className&&e.className.baseVal||"",t))}const ao={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class vS extends kh{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Fn(n,{[t]:`${parseFloat(Fn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Fn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(b$(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),so(n,ao.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();C$(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";so(n,ao.FIXED_CONTENT).forEach(i=>this.restore(r,i)),so(n,ao.STICKY_CONTENT).forEach(i=>this.restore(o,i)),so(n,ao.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Yc;function O$(e){return Yc||(Yc=new vS(e)),Yc}const gS=h.createContext({onHide(){}}),$$=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const a=h.useContext(gS),l=it(()=>{a==null||a.onHide(),r==null||r()});return w.jsxs("div",{ref:s,...i,children:[o,n&&w.jsx(Cu,{"aria-label":e,variant:t,onClick:l})]})}),wS=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=z(e,"navbar-brand");const i=n||(r.href?"a":"span");return w.jsx(i,{...r,ref:o,className:M(t,e)})});wS.displayName="NavbarBrand";const SS=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=z(t,"navbar-collapse");const o=h.useContext(ci);return w.jsx(bu,{in:!!(o&&o.expanded),...n,children:w.jsx("div",{ref:r,className:t,children:e})})});SS.displayName="NavbarCollapse";const xS=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},a)=>{e=z(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(ci)||{},c=it(d=>{i&&i(d),l&&l()});return o==="button"&&(s.type="button"),w.jsx(o,{...s,ref:a,onClick:c,"aria-label":r,className:M(t,e,!u&&"collapsed"),children:n||w.jsx("span",{className:`${e}-icon`})})});xS.displayName="NavbarToggle";const $d=new WeakMap,Xy=(e,t)=>{if(!e||!t)return;const n=$d.get(t)||new Map;$d.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function _$(e,t=typeof window>"u"?void 0:window){const n=Xy(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Il(()=>{let i=Xy(e,t);if(!i)return o(!1);let s=$d.get(t);const a=()=>{o(i.matches)};return i.refCount++,i.addListener(a),a(),()=>{i.removeListener(a),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function T$(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function o(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function s(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((f,[v,g])=>((g==="up"||g===!0)&&(f=n(f,i(v))),(g==="down"||g===!0)&&(f=n(f,o(v))),f),""),[JSON.stringify(c)]);return _$(d,u)}return s}const R$=T$({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),ES=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"offcanvas-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));ES.displayName="OffcanvasBody";const N$={[Pt]:"show",[In]:"show"},kS=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...a},l)=>(e=z(e,"offcanvas"),w.jsx(uh,{ref:l,addEndListener:lh,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:M(t,n.props.className,(u===Pt||u===Yo)&&`${e}-toggling`,N$[u])})})));kS.displayName="OffcanvasToggling";const bS=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=z(e,"offcanvas-header"),w.jsx($$,{ref:i,...o,className:M(t,e),closeLabel:n,closeButton:r})));bS.displayName="OffcanvasHeader";const A$=ch("h5"),CS=h.forwardRef(({className:e,bsPrefix:t,as:n=A$,...r},o)=>(t=z(t,"offcanvas-title"),w.jsx(n,{ref:o,className:M(e,t),...r})));CS.displayName="OffcanvasTitle";function P$(e){return w.jsx(kS,{...e})}function j$(e){return w.jsx(Cs,{...e})}const OS=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:v,autoFocus:g=!0,enforceFocus:S=!0,restoreFocus:k=!0,restoreFocusOptions:m,onEntered:p,onExit:y,onExiting:E,onEnter:C,onEntering:x,onExited:b,backdropClassName:O,manager:T,renderStaticNode:$=!1,...A},U)=>{const B=h.useRef();e=z(e,"offcanvas");const{onToggle:K}=h.useContext(ci)||{},[W,G]=h.useState(!1),V=R$(i||"xs","up");h.useEffect(()=>{G(i?s&&!V:s)},[s,i,V]);const _=it(()=>{K==null||K(),f==null||f()}),I=h.useMemo(()=>({onHide:_}),[_]);function F(){return T||(u?(B.current||(B.current=new vS({handleContainerOverflow:!1})),B.current):O$())}const Y=(re,...ge)=>{re&&(re.style.visibility="visible"),C==null||C(re,...ge)},Z=(re,...ge)=>{re&&(re.style.visibility=""),b==null||b(...ge)},ve=h.useCallback(re=>w.jsx("div",{...re,className:M(`${e}-backdrop`,O)}),[O,e]),X=re=>w.jsx("div",{...re,...A,className:M(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return w.jsxs(w.Fragment,{children:[!W&&(i||$)&&X({}),w.jsx(gS.Provider,{value:I,children:w.jsx(k$,{show:W,ref:U,backdrop:a,container:v,keyboard:l,autoFocus:g,enforceFocus:S&&!u,restoreFocus:k,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:_,onEnter:Y,onEntering:x,onEntered:p,onExit:y,onExiting:E,onExited:Z,manager:F(),transition:P$,backdropTransition:j$,renderBackdrop:ve,renderDialog:X})})]})});OS.displayName="Offcanvas";const Fi=Object.assign(OS,{Body:ES,Header:bS,Title:CS}),$S=h.forwardRef((e,t)=>{const n=h.useContext(ci);return w.jsx(Fi,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});$S.displayName="NavbarOffcanvas";const _S=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=z(t,"navbar-text"),w.jsx(n,{ref:o,className:M(e,t),...r})));_S.displayName="NavbarText";const TS=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:v=!1,...g}=Uk(e,{expanded:"onToggle"}),S=z(n,"navbar"),k=h.useCallback((...y)=>{f==null||f(...y),v&&c&&(d==null||d(!1))},[f,v,c,d]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return w.jsx(ci.Provider,{value:p,children:w.jsx(Z2.Provider,{value:k,children:w.jsx(u,{ref:t,...g,className:M(l,S,r&&m,o&&`${S}-${o}`,i&&`bg-${i}`,a&&`sticky-${a}`,s&&`fixed-${s}`)})})})});TS.displayName="Navbar";const Xc=Object.assign(TS,{Brand:wS,Collapse:SS,Offcanvas:$S,Text:_S,Toggle:xS}),L$=()=>{};function I$(e,t,{disabled:n,clickTrigger:r}={}){const o=t||L$;Q2(e,o,{disabled:n,clickTrigger:r});const i=it(s=>{mS(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Is(Ha(e));let a=(s.defaultView||window).event;const l=Dn(s,"keyup",u=>{if(u===a){a=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const RS=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:a,runTransition:l}=e,[u,c]=Ly(),[d,f]=Ly(),v=Yr(c,t),g=bd(e.container),S=bd(e.target),[k,m]=h.useState(!e.show),p=W2(S,u,J2({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:s}));e.show&&k&&m(!1);const y=(...A)=>{m(!0),e.onExited&&e.onExited(...A)},E=e.show||!k;if(I$(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:C,onExiting:x,onEnter:b,onEntering:O,onEntered:T}=e;let $=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:v}),{popper:p,placement:o,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return $=Cd(a,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:$,onExit:C,onExiting:x,onExited:y,onEnter:b,onEntering:O,onEntered:T}),g?Ir.createPortal($,g):null});RS.displayName="Overlay";const NS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-header"),w.jsx(n,{ref:o,className:M(e,t),...r})));NS.displayName="PopoverHeader";const bh=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"popover-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));bh.displayName="PopoverBody";function AS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function PS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const M$=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:u,...c},d)=>{const f=z(e,"popover"),v=k0(),[g]=(t==null?void 0:t.split("-"))||[],S=AS(g,v);let k=r;return u&&!a&&(k={...r,...PS(l==null?void 0:l.strategy)}),w.jsxs("div",{ref:d,role:"tooltip",style:k,"x-placement":g,className:M(n,f,g&&`bs-popover-${S}`),...c,children:[w.jsx("div",{className:"popover-arrow",...s}),i?w.jsx(bh,{children:o}):o]})}),B$=Object.assign(M$,{Header:NS,Body:bh,POPPER_OFFSET:[0,8]}),jS=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:a,show:l,...u},c)=>{e=z(e,"tooltip");const d=k0(),[f]=(t==null?void 0:t.split("-"))||[],v=AS(f,d);let g=r;return l&&!s&&(g={...r,...PS(a==null?void 0:a.strategy)}),w.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:M(n,e,`bs-tooltip-${v}`),...u,children:[w.jsx("div",{className:"tooltip-arrow",...i}),w.jsx("div",{className:`${e}-inner`,children:o})]})});jS.displayName="Tooltip";const LS=Object.assign(jS,{TOOLTIP_OFFSET:[0,6]});function D$(e){const t=h.useRef(null),n=z(void 0,"popover"),r=z(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Od(t.current,n))return B$.POPPER_OFFSET;if(Od(t.current,r))return LS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function F$(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Ll(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Ll(o)))}const IS=h.forwardRef(({children:e,transition:t=Cs,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},a)=>{const l=h.useRef({}),[u,c]=h.useState(null),[d,f]=D$(s.offset),v=Yr(a,d),g=t===!0?Cs:t||void 0,S=it(k=>{c(k),n==null||n.onFirstUpdate==null||n.onFirstUpdate(k)});return Il(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),w.jsx(RS,{...s,ref:v,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:g,rootClose:r,placement:o,show:i,children:(k,{arrowProps:m,popper:p,show:y})=>{var E;F$(k,m);const C=p==null?void 0:p.placement,x=Object.assign(l.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:C,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),b=!!u;return typeof e=="function"?e({...k,placement:C,show:y,...!t&&y&&{className:"show"},popper:x,arrowProps:m,hasDoneInitialMeasure:b}):h.cloneElement(e,{...k,placement:C,arrowProps:m,popper:x,hasDoneInitialMeasure:b,className:M(e.props.className,!t&&y&&"show"),style:{...e.props.style,...k.style}})}})});IS.displayName="Overlay";function z$(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Jy(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!_s(o,i)&&e(...t)}pe.oneOf(["click","hover","focus"]);const U$=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:a,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=h.useRef(null),f=Yr(d,n.ref),v=Vw(),g=h.useRef(""),[S,k]=S0(o,i,s),m=z$(a),{onFocus:p,onBlur:y,onClick:E}=typeof n!="function"?h.Children.only(n).props:{},C=W=>{f(Ll(W))},x=h.useCallback(()=>{if(v.clear(),g.current="show",!m.show){k(!0);return}v.set(()=>{g.current==="show"&&k(!0)},m.show)},[m.show,k,v]),b=h.useCallback(()=>{if(v.clear(),g.current="hide",!m.hide){k(!1);return}v.set(()=>{g.current==="hide"&&k(!1)},m.hide)},[m.hide,k,v]),O=h.useCallback((...W)=>{x(),p==null||p(...W)},[x,p]),T=h.useCallback((...W)=>{b(),y==null||y(...W)},[b,y]),$=h.useCallback((...W)=>{k(!S),E==null||E(...W)},[E,k,S]),A=h.useCallback((...W)=>{Jy(x,W,"fromElement")},[x]),U=h.useCallback((...W)=>{Jy(b,W,"toElement")},[b]),B=e==null?[]:[].concat(e),K={ref:C};return B.indexOf("click")!==-1&&(K.onClick=$),B.indexOf("focus")!==-1&&(K.onFocus=O,K.onBlur=T),B.indexOf("hover")!==-1&&(K.onMouseOver=A,K.onMouseOut=U),w.jsxs(w.Fragment,{children:[typeof n=="function"?n(K):h.cloneElement(n,K),w.jsx(IS,{...c,show:S,onHide:b,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},Fl=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=z(e,"row"),s=x0(),a=E0(),l=`${i}-cols`,u=[];return s.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const v=c!==a?`-${c}`:"";f!=null&&u.push(`${l}${v}-${f}`)}),w.jsx(n,{ref:o,...r,className:M(t,i,...u)})});Fl.displayName="Row";const MS=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},a)=>{e=z(e,"spinner");const l=`${e}-${n}`;return w.jsx(o,{ref:a,...s,className:M(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});MS.displayName="Spinner";const W$={[Pt]:"showing",[Yo]:"showing show"},BS=h.forwardRef((e,t)=>w.jsx(Cs,{...e,ref:t,transitionClasses:W$}));BS.displayName="ToastFade";const DS=h.createContext({onClose(){}}),FS=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},a)=>{e=z(e,"toast-header");const l=h.useContext(DS),u=it(c=>{l==null||l.onClose==null||l.onClose(c)});return w.jsxs("div",{ref:a,...s,className:M(e,o),children:[i,r&&w.jsx(Cu,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});FS.displayName="ToastHeader";const zS=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=z(t,"toast-body"),w.jsx(n,{ref:o,className:M(e,t),...r})));zS.displayName="ToastBody";const US=h.forwardRef(({bsPrefix:e,className:t,transition:n=BS,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:v,bg:g,...S},k)=>{e=z(e,"toast");const m=h.useRef(i),p=h.useRef(a);h.useEffect(()=>{m.current=i,p.current=a},[i,a]);const y=Vw(),E=!!(s&&r),C=h.useCallback(()=>{E&&(p.current==null||p.current())},[E]);h.useEffect(()=>{y.set(C,m.current)},[y,C]);const x=h.useMemo(()=>({onClose:a}),[a]),b=!!(n&&o),O=w.jsx("div",{...S,ref:k,className:M(e,t,g&&`bg-${g}`,!b&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return w.jsx(DS.Provider,{value:x,children:b&&n?w.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:O}):O})});US.displayName="Toast";const ns=Object.assign(US,{Body:zS,Header:FS}),H$={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},Ch=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=z(e,"toast-container"),w.jsx(o,{ref:s,...i,className:M(e,t&&H$[t],n&&`position-${n}`,r)})));Ch.displayName="ToastContainer";const V$=()=>{},Oh=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:a,id:l,inputRef:u,...c},d)=>(e=z(e,"btn-check"),w.jsxs(w.Fragment,{children:[w.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!a,onChange:i||V$,id:l}),w.jsx(zs,{...c,ref:d,className:M(n,a&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:l})]})));Oh.displayName="ToggleButton";const bn=Object.create(null);bn.open="0";bn.close="1";bn.ping="2";bn.pong="3";bn.message="4";bn.upgrade="5";bn.noop="6";const Va=Object.create(null);Object.keys(bn).forEach(e=>{Va[bn[e]]=e});const _d={type:"error",data:"parser error"},WS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",HS=typeof ArrayBuffer=="function",VS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,$h=({type:e,data:t},n,r)=>WS&&t instanceof Blob?n?r(t):Zy(t,r):HS&&(t instanceof ArrayBuffer||VS(t))?n?r(t):Zy(new Blob([t]),r):r(bn[e]+(t||"")),Zy=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ev(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Jc;function K$(e,t){if(WS&&e.data instanceof Blob)return e.data.arrayBuffer().then(ev).then(t);if(HS&&(e.data instanceof ArrayBuffer||VS(e.data)))return t(ev(e.data));$h(e,!1,n=>{Jc||(Jc=new TextEncoder),t(Jc.encode(n))})}const tv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},q$=typeof ArrayBuffer=="function",_h=(e,t)=>{if(typeof e!="string")return{type:"message",data:KS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Q$(e.substring(1),t)}:Va[n]?e.length>1?{type:Va[n],data:e.substring(1)}:{type:Va[n]}:_d},Q$=(e,t)=>{if(q$){const n=G$(e);return KS(n,t)}else return{base64:!0,data:e}},KS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},GS="",Y$=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{$h(i,!1,a=>{r[s]=a,++o===n&&t(r.join(GS))})})},X$=(e,t)=>{const n=e.split(GS),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Zc;function va(e){return e.reduce((t,n)=>t+n.length,0)}function ga(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){a.enqueue(_d);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(va(n)e){a.enqueue(_d);break}}}})}const qS=4;function je(e){if(e)return e_(e)}function e_(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const t_=jt.setTimeout,n_=jt.clearTimeout;function Tu(e,t){t.useNativeTimers?(e.setTimeoutFn=t_.bind(jt),e.clearTimeoutFn=n_.bind(jt)):(e.setTimeoutFn=jt.setTimeout.bind(jt),e.clearTimeoutFn=jt.clearTimeout.bind(jt))}const r_=1.33;function o_(e){return typeof e=="string"?i_(e):Math.ceil((e.byteLength||e.size)*r_)}function i_(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function s_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function a_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function XS(){const e=ov(+new Date);return e!==rv?(nv=0,rv=e):e+"."+ov(nv++)}for(;wa{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};X$(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Y$(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=XS()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new xn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=QS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new ZS(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=xn.requestsCount++,xn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=f_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",iv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,iv,!1)}}function iv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Rh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Sa=jt.WebSocket||jt.MozWebSocket,sv=!0,h_="arraybuffer",av=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class m_ extends Th{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=av?{}:QS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=sv&&!av?n?new Sa(t,n):new Sa(t):new Sa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{sv&&this.ws.send(i)}catch{}o&&Rh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=XS()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Sa}}class y_ extends Th{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=Z$(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=J$();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Rh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const v_={websocket:m_,webtransport:y_,polling:p_},g_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,w_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=g_.exec(e||""),i={},s=14;for(;s--;)i[w_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=S_(i,i.path),i.queryKey=x_(i,i.query),i}function S_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function x_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let ex=class vo extends je{constructor(t,n={}){super(),this.binaryType=h_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=a_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=qS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new v_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,tx=Object.prototype.toString,C_=typeof Blob=="function"||typeof Blob<"u"&&tx.call(Blob)==="[object BlobConstructor]",O_=typeof File=="function"||typeof File<"u"&&tx.call(File)==="[object FileConstructor]";function Nh(e){return k_&&(e instanceof ArrayBuffer||b_(e))||C_&&e instanceof Blob||O_&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}fi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||P_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ex(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Rh(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new nx(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=E_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:nx,io:Ga,connect:Ga});const rx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},L_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&rx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},I_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=rx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},Ui=window.location.hostname,Wi=window.location.port,M_=`ws://${Ui}:${Wi}/`,Ln=Ga(M_,{path:"/ws/socket.io",transports:["websocket"]}),B_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},ox=(e,t=[],n={},r)=>{const o=L_(t),i=I_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},ix=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Ch,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ns,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ns.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ns.Body,{children:o.message})]},o.id):null)})});ix.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Ch,{position:"bottom-center",className:"toastContainer",children:w.jsx(ns,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ns.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(zs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function sx(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function D_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function F_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(cv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=cv(),e[t];throw new Error(`Key not found: ${t}`)}}function uv(e,t,n=!1){const r=D_(t);try{return F_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function z_(e,t,n){const r=sx(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(LS,{id:"tooltip",children:t});return w.jsx(U$,{placement:"bottom",overlay:n,children:w.jsx(Aw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const lx=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs(Oh,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});lx.displayName="ButtonComponent";const U_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},H_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y==="-")if(O===0&&!x.startsWith("-"))T="-"+x,O++;else if(x.startsWith("-")&&O===1)T=x.substring(1),O--;else return;else if(y>="0"&&y<="9")({value:T,selectionStart:O}=fv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=fv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=U_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=W_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=H_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const Ts={black:"#000",white:"#fff"},lo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},uo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},co={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},po={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ri={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},V_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Rs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||As(Ae)>3?"":" "}function uT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Vs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function cT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Vs(t,yt-1)+"*"+Ru(e===47?e:Et())}function fT(e){for(;!As(En());)Et();return Vs(e,yt)}function dT(e){return mx(Ya("",null,null,null,[""],e=hx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=lT(g);break;case 92:b+=uT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(pT(cT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?pv(b+";",r,n,d-1):pv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=dv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(dv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&aT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=fT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function dv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Lh(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Ph:a,l,u,c)}function pT(e,t,n){return Au(e,t,n,cx,Ru(sT()),Ns(e,2,-2),0)}function pv(e,t,n,r){return Au(e,t,n,jh,Ns(e,0,r),Ns(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Lh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?yx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var ET=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jh:t.return=yx(t.value,t.length);break;case fx:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Ph:if(t.length)return iT(t.props,function(i){switch(oT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},kT=[ET],vx=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||kT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LT={animationIterationCount:1,aspectRatio: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},IT=/[A-Z]|^ms/g,MT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bx=function(t){return t.charCodeAt(1)===45},mv=function(t){return t!=null&&typeof t!="boolean"},ef=ux(function(e){return bx(e)?e:e.replace(IT,"-$&").toLowerCase()}),yv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(MT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return LT[t]!==1&&!bx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ps(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return BT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,Ps(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function BT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?HT:VT},xv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},KT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ex(n,r,o),FT(function(){return kx(n,r,o)}),null},GT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=xv(t,n,r),l=a||Sv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(YT(o)?n:o):t;return w.jsx(UT,{styles:r})}function JT(e,t){return Md(e,t)}const ZT=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},eR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:XT,StyledEngineProvider:QT,ThemeContext:Fh,css:Tx,default:JT,internal_processStyles:ZT,keyframes:WT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Rx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Rx(t[o]):t[o]:r[o]=t[o]}),r}const tR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),nR=["values","unit","step"],rR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Nx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,nR),i=rR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${zh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Ev;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Ev;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||zh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function iR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function sR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Rs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const aR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function lR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const uR={m:"margin",p:"padding"},cR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fR=lR(e=>{if(e.length>2)if(kv[e])e=kv[e];else return[e];const[t,n]=e.split(""),r=uR[t],o=cR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Uh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Uh,...Wh];function Ks(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Ax(e){return Ks(e,"spacing",8)}function Gs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function dR(e,t){return n=>e.reduce((r,o)=>(r[o]=Gs(t,n),r),{})}function pR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=fR(n),i=dR(o,r),s=e[n];return Qn(e,s,i)}function Px(e,t){const n=Ax(e.theme);return Object.keys(e).map(r=>pR(e,t,r,n)).reduce(rs,{})}function Ce(e){return Px(e,Uh)}Ce.propTypes={};Ce.filterProps=Uh;function Oe(e){return Px(e,Wh)}Oe.propTypes={};Oe.filterProps=Wh;function hR(e=8){if(e.mui)return e;const t=Ax({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?rs(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const mR=Ht("border",Lt),yR=Ht("borderTop",Lt),vR=Ht("borderRight",Lt),gR=Ht("borderBottom",Lt),wR=Ht("borderLeft",Lt),SR=Ht("borderColor"),xR=Ht("borderTopColor"),ER=Ht("borderRightColor"),kR=Ht("borderBottomColor"),bR=Ht("borderLeftColor"),CR=Ht("outline",Lt),OR=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gs(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(mR,yR,vR,gR,wR,SR,xR,ER,kR,bR,Vu,CR,OR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({gap:Gs(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({columnGap:Gs(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8),n=r=>({rowGap:Gs(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const $R=Te({prop:"gridColumn"}),_R=Te({prop:"gridRow"}),TR=Te({prop:"gridAutoFlow"}),RR=Te({prop:"gridAutoColumns"}),NR=Te({prop:"gridAutoRows"}),AR=Te({prop:"gridTemplateColumns"}),PR=Te({prop:"gridTemplateRows"}),jR=Te({prop:"gridTemplateAreas"}),LR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,$R,_R,TR,RR,NR,AR,PR,jR,LR);function zo(e,t){return t==="grey"?t:e}const IR=Te({prop:"color",themeKey:"palette",transform:zo}),MR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),BR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(IR,MR,BR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const DR=Te({prop:"width",transform:wt}),Hh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||zh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Hh.filterProps=["maxWidth"];const FR=Te({prop:"minWidth",transform:wt}),zR=Te({prop:"height",transform:wt}),UR=Te({prop:"maxHeight",transform:wt}),WR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const HR=Te({prop:"boxSizing"});Hu(DR,Hh,FR,zR,UR,WR,HR);const VR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Hh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},qs=VR;function KR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function GR(e,t){return typeof e=="function"?e(t):e}function jx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:qs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=iR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=GR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=rs(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));KR(S,g)?f[v]=t({sx:g,theme:i}):f=rs(f,S)}else f=rs(f,e(v,g,i,s))}),sR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Lx=jx();Lx.filterProps=["sx"];const Vh=Lx;function Ix(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const qR=["breakpoints","palette","spacing","shape"];function Mx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,qR),a=Nx(n),l=hR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},oR,i)},s);return u.applyStyles=Ix,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Vh({sx:d,theme:this})},u}const QR=Object.freeze(Object.defineProperty({__proto__:null,default:Mx,private_createBreakpoints:Nx,unstable_applyStyles:Ix},Symbol.toStringTag,{value:"Module"})),YR=["sx"],XR=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:qs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function JR(e){const{sx:t}=e,n=an(e,YR),{systemProps:r,otherProps:o}=XR(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const ZR=Object.freeze(Object.defineProperty({__proto__:null,default:Vh,extendSxProp:JR,unstable_createStyleFunctionSx:jx,unstable_defaultSxConfig:qs},Symbol.toStringTag,{value:"Module"})),bv=e=>e,eN=()=>{let e=bv;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bv}}},tN=eN();function Bx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Dx(e,o,n)}),r}var Fx={exports:{}},fe={};/** + * @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. + */var Kh=Symbol.for("react.element"),Gh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),oN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),iN=Symbol.for("react.offscreen"),zx;zx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case oN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Gh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=Kh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Gh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===Gh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===iN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===zx||e.getModuleId!==void 0)};fe.typeOf=Vt;Fx.exports=fe;var Cv=Fx.exports;const sN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ux(e){const t=`${e}`.match(sN);return t&&t[1]||""}function Wx(e,t=""){return e.displayName||e.name||Ux(e)||t}function Ov(e,t,n){const r=Wx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function aN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Cv.ForwardRef:return Ov(e,e.render,"ForwardRef");case Cv.Memo:return Ov(e,e.type,"memo");default:return}}}const lN=Object.freeze(Object.defineProperty({__proto__:null,default:aN,getFunctionName:Ux},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Hx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const uN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function cN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function fN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Hx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{cN(n,t)})},e)}class qh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new qh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const dN=new qh,pN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function hN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&pN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function mN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function yN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function vN(e){e.addEventListener("keydown",mN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",yN,!0)}function gN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||hN(t)}function wN(){const e=h.useCallback(o=>{o!=null&&vN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,dN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return gN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const SN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function xN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const EN=h.createContext(),kN=()=>{const e=h.useContext(EN);return e??!1},bN=h.createContext(void 0);function CN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function ON({props:e,name:t}){const n=h.useContext(bN);return CN({props:e,name:t,theme:{components:n}})}function $N(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Vx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Vx);var Kx=Vx.exports;const _N=Yn(K_),TN=Yn(uN);var Gx=Kx;Object.defineProperty(Re,"__esModule",{value:!0});var $v=Re.alpha=Xx;Re.blend=FN;Re.colorChannel=void 0;var Ud=Re.darken=Yh;Re.decomposeColor=Wt;Re.emphasize=Jx;var RN=Re.getContrastRatio=LN;Re.getLuminance=Hl;Re.hexToRgb=qx;Re.hslToRgb=Yx;var Wd=Re.lighten=Xh;Re.private_safeAlpha=IN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=MN;Re.private_safeEmphasize=DN;Re.private_safeLighten=BN;Re.recomposeColor=pi;Re.rgbToHex=jN;var _v=Gx(_N),NN=Gx(TN);function Qh(e,t=0,n=1){return(0,NN.default)(e,t,n)}function qx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function AN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(qx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,_v.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,_v.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Qx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Qx;const PN=(e,t)=>{try{return Qx(e)}catch{return e}};Re.private_safeColorChannel=PN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function jN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>AN(r===3?Math.round(255*n):n)).join("")}`}function Yx(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(Yx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function LN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Xx(e,t){return e=Wt(e),t=Qh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function IN(e,t,n){try{return Xx(e,t)}catch{return e}}function Yh(e,t){if(e=Wt(e),t=Qh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function MN(e,t,n){try{return Yh(e,t)}catch{return e}}function Xh(e,t){if(e=Wt(e),t=Qh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function BN(e,t,n){try{return Xh(e,t)}catch{return e}}function Jx(e,t=.15){return Hl(e)>.5?Yh(e,t):Xh(e,t)}function DN(e,t,n){try{return Jx(e,t)}catch{return e}}function FN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const zN=["mode","contrastThreshold","tonalOffset"],Tv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ts.white,default:Ts.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},of={text:{primary:Ts.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ts.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Rv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function UN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function WN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function HN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function VN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function KN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function GN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function qN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,zN),i=e.primary||UN(t),s=e.secondary||WN(t),a=e.error||HN(t),l=e.info||VN(t),u=e.success||KN(t),c=e.warning||GN(t);function d(S){return RN(S,of.text.primary)>=n?of.text.primary:Tv.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Rs(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Rs(12,k?` (${k})`:"",JSON.stringify(S.main)));return Rv(S,"light",p,r),Rv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Tv};return kn(j({common:j({},Ts),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:V_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const QN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function YN(e){return Math.round(e*1e5)/1e5}const Nv={textTransform:"uppercase"},Av='"Roboto", "Helvetica", "Arial", sans-serif';function XN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Av,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,QN),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Av?{letterSpacing:`${YN(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,Nv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,Nv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const JN=.2,ZN=.14,eA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${JN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ZN})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eA})`].join(",")}const tA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],nA=["duration","easing","delay"],rA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pv(e){return`${Math.round(e)}ms`}function iA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sA(e){const t=j({},rA,e.easing),n=j({},oA,e.duration);return j({getAutoHeightDuration:iA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,nA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Pv(s)} ${a} ${typeof l=="string"?l:Pv(l)}`).join(",")}},e,{easing:t,duration:n})}const aA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function uA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,lA);if(e.vars)throw new Error(Rs(18));const a=qN(r),l=Mx(e);let u=kn(l,{mixins:$N(l.breakpoints,n),palette:a,shadows:tA.slice(),typography:XN(a,i),transitions:sA(o),zIndex:j({},aA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},qs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Vh({sx:d,theme:this})},u}const cA=uA();var Qs={},sf={exports:{}},jv;function fA(){return jv||(jv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const dA=Yn(eR),pA=Yn(tR),hA=Yn(aR),mA=Yn(lN),yA=Yn(QR),vA=Yn(ZR);var hi=Kx;Object.defineProperty(Qs,"__esModule",{value:!0});var gA=Qs.default=NA;Qs.shouldForwardProp=Ja;Qs.systemDefaultTheme=void 0;var Rt=hi(_x()),Hd=hi(fA()),Lv=CA(dA),wA=pA;hi(hA);hi(mA);var SA=hi(yA),xA=hi(vA);const EA=["ownerState"],kA=["variants"],bA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Zx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Zx=function(r){return r?n:t})(e)}function CA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Zx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function OA(e){return Object.keys(e).length===0}function $A(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _A=Qs.systemDefaultTheme=(0,SA.default)(),TA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return OA(t)?e:t[n]||t}function RA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,EA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,kA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function NA(e={}){const{themeId:t,defaultTheme:n=_A,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,xA.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Lv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=RA(TA(u))}=a,v=(0,Hd.default)(a,bA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:$A(s)&&(m=void 0);const p=(0,Lv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,wA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function Jh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AA=e=>Jh(e)&&e!=="classes",Xr=gA({themeId:G_,defaultTheme:cA,rootShouldForwardProp:AA});function PA(e){return ON(e)}function os(e){return typeof e=="string"}function jA(e,t,n){return e===void 0||os(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function LA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function IA(e,t,n){return typeof e=="function"?e(t,n):e}function Iv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function MA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Iv(r),l=Iv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const BA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,BA),a=i?{}:IA(r,o),{props:l,internalRef:u}=MA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return jA(n,j({},l,{ref:c}),o)}const DA=2;function eE(e,t){return e-t}function Mv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},HA=e=>e;let Oa;function Dv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function VA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=HA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=fN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(eE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=wN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Hx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=FA(un,l,a),S)le=UA(le,S,l);else{const ro=Mv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Mv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=Bv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>DA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Dv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Dv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:WA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},SN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const KA=e=>!e||!os(e);function GA(e){return Dx("MuiSlider",e)}const Mt=rN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),qA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function QA(e){const{children:t,className:n,value:r}=e,o=qA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const YA=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Fv(e){return e}const XA=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),JA=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ZA=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),eP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${$v(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${$v(e.palette[n].main,.16)}`})}}))]}}),tP=Xr(QA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),nP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Jh(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),rP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Jh(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),oP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return xN(u,GA,s)},iP=({children:e})=>e,sP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=PA({props:t,name:"MuiSlider"}),U=kN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Fv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Fv}=A,vi=an(A,YA),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=VA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=oP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:XA,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:JA,gm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:ZA,wm=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:eP,Sm=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:tP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:nP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:rP,xm=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,lk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,uk=(O=de==null?void 0:de.mark)!=null?O:_.mark,ck=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,fk=($=de==null?void 0:de.input)!=null?$:_.input,dk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},KA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),pk=tr({elementType:ro,externalSlotProps:lk,ownerState:we,className:le.rail}),hk=tr({elementType:gm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:wm,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),mk=tr({elementType:Sm,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:uk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:ck,ownerState:we,className:le.markLabel}),yk=tr({elementType:xm,getSlotProps:to,externalSlotProps:fk,ownerState:we});return w.jsxs(Tt,j({},dk,{children:[w.jsx(ro,j({},pk)),w.jsx(gm,j({},hk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Xs=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!os(cc)&&{markActive:Nn},{style:j({},Xs,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!os(fc)&&{markLabelActive:Nn},{style:j({},Xs,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Xs=Gt[Zn].offset(wc),Nn=nt==="off"?iP:Sm;return w.jsx(Nn,j({},!os(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},mk,{children:w.jsx(wm,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Xs,un(We),yc.style),children:w.jsx(xm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},yk))}))}),We)})]}))});var zv=Object.prototype.toString,tE=function(t){var n=zv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&zv.call(t.callee)==="[object Function]"),r},af,Uv;function aP(){if(Uv)return af;Uv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=tE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":TP,"%eval%":eval,"%EvalError%":RP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":oE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":NP,"%ReferenceError%":AP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":jP,"%TypedArray%":IP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":PP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var MP=Be(Be(e));zr["%Error.prototype%"]=MP}var BP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Gv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ys=tm,Kl=rE,DP=Ys.call(Function.call,Array.prototype.concat),FP=Ys.call(Function.apply,Array.prototype.splice),qv=Ys.call(Function.call,String.prototype.replace),Gl=Ys.call(Function.call,String.prototype.slice),zP=Ys.call(Function.call,RegExp.prototype.exec),UP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,WP=/\\(\\)?/g,HP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return qv(t,UP,function(i,s,a,l){o[o.length]=a?qv(l,WP,"$1"):s||i}),o},VP=function(t,n){var r=t,o;if(Kl(Gv,r)&&(o=Gv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=BP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(zP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=HP(t),o=r.length>0?r[0]:"",i=VP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],FP(r,DP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},KP=On,nl=KP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var nm=nl,GP=On,rl=GP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var rm=rl,Qv=nm,qP=nE,mo=_r,Yv=rm,om=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Yv&&Yv(t,n);if(Qv)Qv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new qP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=nm,iE=function(){return!!Vd};iE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var im=iE,QP=Zh,YP=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",XP=Object.prototype.toString,JP=Array.prototype.concat,Xv=om,ZP=function(e){return typeof e=="function"&&XP.call(e)==="[object Function]"},sE=im(),e3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!ZP(r)||!r())return}sE?Xv(e,t,n,!0):Xv(e,t,n)},aE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=QP(t);YP&&(r=JP.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||r3(n)!==n)throw new eg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&Zv){var s=Zv(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(n3?Jv(t,"length",n,!0,!0):Jv(t,"length",n)),t};(function(e){var t=tm,n=On,r=o3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=nm,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(lE);var mi=lE.exports,uE=On,cE=mi,i3=cE(uE("String.prototype.indexOf")),Kt=function(t,n){var r=uE(t,!!n);return typeof r=="function"&&i3(t,".prototype.")>-1?cE(r):r},s3=Zh,fE=sc(),dE=Kt,tg=Object,a3=dE("Array.prototype.push"),ng=dE("Object.prototype.propertyIsEnumerable"),l3=fE?Object.getOwnPropertySymbols:null,pE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=tg(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||k3)&&(E3?rg(t,"name",n,!0,!0):rg(t,"name",n)),t},O3=C3,$3=_r,_3=Object,vE=O3(function(){if(this==null||this!==_3(this))throw new $3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),T3=vE,R3=Jr.supportsDescriptors,N3=Object.getOwnPropertyDescriptor,gE=function(){if(R3&&/a/mig.flags==="gim"){var t=N3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return T3},A3=Jr.supportsDescriptors,P3=gE,j3=Object.getOwnPropertyDescriptor,L3=Object.defineProperty,I3=TypeError,og=Object.getPrototypeOf,M3=/a/,B3=function(){if(!A3||!og)throw new I3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=P3(),n=og(M3),r=j3(n,"flags");return(!r||r.get!==t)&&L3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},D3=Jr,F3=mi,z3=vE,wE=gE,U3=B3,SE=F3(wE());D3(SE,{getPolyfill:wE,implementation:z3,shim:U3});var W3=SE,ol={exports:{}},H3=sc,Zr=function(){return H3()&&!!Symbol.toStringTag},V3=Zr(),K3=Kt,Kd=K3("Object.prototype.toString"),ac=function(t){return V3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},xE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},G3=function(){return ac(arguments)}();ac.isLegacyArguments=xE;var EE=G3?ac:xE;const q3={},Q3=Object.freeze(Object.defineProperty({__proto__:null,default:q3},Symbol.toStringTag,{value:"Module"})),Y3=Yn(Q3);var sm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&sm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=sm&&df&&typeof df.get=="function"?df.get:null,ig=sm&&Map.prototype.forEach,am=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&am?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=am&&pf&&typeof pf.get=="function"?pf.get:null,sg=am&&Set.prototype.forEach,X3=typeof WeakMap=="function"&&WeakMap.prototype,ss=X3?WeakMap.prototype.has:null,J3=typeof WeakSet=="function"&&WeakSet.prototype,as=J3?WeakSet.prototype.has:null,Z3=typeof WeakRef=="function"&&WeakRef.prototype,ag=Z3?WeakRef.prototype.deref:null,ej=Boolean.prototype.valueOf,tj=Object.prototype.toString,nj=Function.prototype.toString,rj=String.prototype.match,lm=String.prototype.slice,fr=String.prototype.replace,oj=String.prototype.toUpperCase,lg=String.prototype.toLowerCase,kE=RegExp.prototype.test,ug=Array.prototype.concat,mn=Array.prototype.join,ij=Array.prototype.slice,cg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,bE=Object.prototype.propertyIsEnumerable,fg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function dg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||kE.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-cg(-e):cg(e);if(r!==e){var o=String(r),i=lm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=Y3,pg=Qd.custom,hg=OE(pg)?pg:null,sj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return _E(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?dg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?dg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=bj(i,r);if(typeof o>"u")o=[];else if($E(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=ij.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!mg(t)){var v=mj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(OE(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if(xj(t)){for(var k="<"+lg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!kj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(uj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!bE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(ug.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(hg&&typeof t[hg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(yj(t)){var C=[];return ig&&ig.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),yg("Map",ql.call(t),C,d)}if(wj(t)){var x=[];return sg&&sg.call(t,function(B){x.push(f(B,t))}),yg("Set",Ql.call(t),x,d)}if(vj(t))return mf("WeakMap");if(Sj(t))return mf("WeakSet");if(gj(t))return mf("WeakRef");if(fj(t))return Ai(f(Number(t)));if(pj(t))return Ai(f(Gd.call(t)));if(dj(t))return Ai(ej.call(t));if(cj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!lj(t)&&!mg(t)){var b=$a(t,f),O=fg?fg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?lm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(ug.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function CE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function aj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function lj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function mg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function uj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function cj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function fj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function dj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function OE(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function pj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var hj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return hj.call(e,t)}function Tr(e){return tj.call(e)}function mj(e){if(e.name)return e.name;var t=rj.call(nj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $E(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return _E(lm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ej);return CE(o,"single",t)}function Ej(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+oj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function yg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function kj(e){for(var t=0;t=0)return!1;return!0}function bj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+mn.call(e,","+n)+` +`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=bg(t,n);if(o<55296||o>56319)return n+1;var i=bg(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},Cg=function(t,n){if(qj(t)||Sg(t))return vf(t);if(Qj(t)){var r=0;return{next:function(){var i=Zj(t,r),s=Jj(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Yj&&!Xj)ol.exports=function(t){if(t!=null)return Cg(t,!0)};else{var e4=jE,t4=IE,Og=Yt("Map.prototype.forEach",!0),$g=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var _g=Yt("Map.prototype.iterator",!0),Tg=Yt("Set.prototype.iterator",!0);var Rg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),Ng=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),n4=function(t){if(e4(t)){if(_g)return xg(_g(t));if(Rg)return Rg(t);if(Og){var n=[];return Og(t,function(o,i){kg(n,[i,o])}),vf(n)}}if(t4(t)){if(Tg)return xg(Tg(t));if(Ng)return Ng(t);if($g){var r=[];return $g(t,function(o){kg(r,o)}),vf(r)}}};ol.exports=function(t){return n4(t)||Cg(t)}}}var r4=ol.exports,Ag=function(e){return e!==e},ME=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Ag(t)&&Ag(n))},o4=ME,BE=function(){return typeof Object.is=="function"?Object.is:o4},i4=BE,s4=Jr,a4=function(){var t=i4();return s4(Object,{is:t},{is:function(){return Object.is!==t}}),t},l4=Jr,u4=mi,c4=ME,DE=BE,f4=a4,FE=u4(DE(),Object);l4(FE,{getPolyfill:DE,implementation:c4,shim:f4});var d4=FE,p4=mi,zE=Kt,h4=On,Jd=h4("%ArrayBuffer%",!0),il=zE("ArrayBuffer.prototype.byteLength",!0),m4=zE("Object.prototype.toString"),Pg=!!Jd&&!il&&new Jd(0).slice,jg=!!Pg&&p4(Pg),UE=il||jg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):jg(t,0),!0}catch{return!1}}:Jd?function(t){return m4(t)==="[object ArrayBuffer]"}:function(t){return!1},y4=Date.prototype.getDay,v4=function(t){try{return y4.call(t),!0}catch{return!1}},g4=Object.prototype.toString,w4="[object Date]",S4=Zr(),x4=function(t){return typeof t!="object"||t===null?!1:S4?v4(t):g4.call(t)===w4},Zd=Kt,WE=Zr(),HE,VE,ep,tp;if(WE){HE=Zd("Object.prototype.hasOwnProperty"),VE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var E4=Zd("Object.prototype.toString"),k4=Object.getOwnPropertyDescriptor,b4="[object RegExp]",C4=WE?function(t){if(!t||typeof t!="object")return!1;var n=k4(t,"lastIndex"),r=n&&HE(n,"value");if(!r)return!1;try{VE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:E4(t)===b4},O4=Kt,Lg=O4("SharedArrayBuffer.prototype.byteLength",!0),$4=Lg?function(t){if(!t||typeof t!="object")return!1;try{return Lg(t),!0}catch{return!1}}:function(t){return!1},_4=Number.prototype.toString,T4=function(t){try{return _4.call(t),!0}catch{return!1}},R4=Object.prototype.toString,N4="[object Number]",A4=Zr(),P4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:A4?T4(t):R4.call(t)===N4},KE=Kt,j4=KE("Boolean.prototype.toString"),L4=KE("Object.prototype.toString"),I4=function(t){try{return j4(t),!0}catch{return!1}},M4="[object Boolean]",B4=Zr(),D4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:B4&&Symbol.toStringTag in t?I4(t):L4(t)===M4},np={exports:{}},F4=Object.prototype.toString,z4=em();if(z4){var U4=Symbol.prototype.toString,W4=/^Symbol\(.*\)$/,H4=function(t){return typeof t.valueOf()!="symbol"?!1:W4.test(U4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(F4.call(t)!=="[object Symbol]")return!1;try{return H4(t)}catch{return!1}}}else np.exports=function(t){return!1};var V4=np.exports,rp={exports:{}},Ig=typeof BigInt<"u"&&BigInt,K4=function(){return typeof Ig=="function"&&typeof BigInt=="function"&&typeof Ig(42)=="bigint"&&typeof BigInt(42)=="bigint"},G4=K4();if(G4){var q4=BigInt.prototype.valueOf,Q4=function(t){try{return q4.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Q4(t)}}else rp.exports=function(t){return!1};var Y4=rp.exports,X4=AE,J4=P4,Z4=D4,e5=V4,t5=Y4,n5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(X4(t))return"String";if(J4(t))return"Number";if(Z4(t))return"Boolean";if(e5(t))return"Symbol";if(t5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Mg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Mg?Mg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var r5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},o5=On,GE=Kt,i5=o5("%WeakSet%",!0),Sf=GE("WeakSet.prototype.has",!0);if(Sf){var xf=GE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof i5}catch{}return!1}}else ip.exports=function(t){return!1};var s5=ip.exports,a5=jE,l5=IE,u5=r5,c5=s5,f5=function(t){if(t&&typeof t=="object"){if(a5(t))return"Map";if(l5(t))return"Set";if(u5(t))return"WeakMap";if(c5(t))return"WeakSet"}return!1},qE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var d5=/^\s*class\b/,ap=function(t){try{var n=qE.call(t);return d5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(qE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,p5="[object Object]",h5="[object Function]",m5="[object GeneratorFunction]",y5="[object HTMLAllCollection]",v5="[object HTML document.all class]",g5="[object HTMLCollection]",w5=typeof Symbol=="function"&&!!Symbol.toStringTag,S5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var x5=document.all;al.call(x5)===al.call(document.all)&&(lp=function(t){if((S5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===y5||n===v5||n===g5||n===p5)&&t("")==null}catch{}return!1})}var E5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(w5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==h5&&n!==m5&&!/^\[object HTML/.test(n)?!1:Ef(t)},k5=E5,b5=Object.prototype.toString,QE=Object.prototype.hasOwnProperty,C5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),b5.call(t)==="[object Array]"?C5(t,n,o):typeof t=="string"?O5(t,n,o):$5(t,n,o)},T5=_5,R5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=R5,N5=typeof globalThis>"u"?cl:globalThis,A5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=P5(),hm=pm("String.prototype.slice"),bf=Object.getPrototypeOf,L5=pm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:M5(t)}return ll?I5(t):null},D5=Kt,Fg=D5("ArrayBuffer.prototype.byteLength",!0),F5=UE,z5=function(t){return F5(t)?Fg?Fg(t):t.byteLength:NaN},XE=w3,$n=Kt,zg=W3,U5=On,oi=r4,W5=RE,Ug=d4,Wg=EE,Hg=NE,Vg=UE,Kg=x4,Gg=C4,qg=$4,Qg=Zh,Yg=n5,Xg=f5,Jg=B5,Zg=z5,e0=$n("SharedArrayBuffer.prototype.byteLength",!0),t0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,n0=$n("Object.prototype.toString"),nu=U5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),r0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),JE=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function o0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return JE(e,i.value),!0;return!1}function ZE(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function H5(e,t,n,r,o,i){var s=ZE(n);if(s!=null)return s;var a=ru(t,s),l=XE({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function V5(e,t,n){var r=ZE(n);return r??(iu(t,r)&&!iu(e,r))}function i0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return JE(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Ug(e,t):e===t)return!0;var i=Yg(e),s=Yg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Ug(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),q5(e,t,o,r)}function s0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function K5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!V5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!o0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!o0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function G5(e,t,n,r){if(r0(e)!==r0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!H5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!i0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!i0(l,e,u,d,XE({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function q5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||n0(e)!==n0(t)||Wg(e)!==Wg(t))return!1;var s=Hg(e),a=Hg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Gg(e),d=Gg(t);if(c!==d||(c||d)&&(e.source!==t.source||zg(e)!==zg(t)))return!1;var f=Kg(e),v=Kg(t);if(f!==v||(f||v)&&t0(e)!==t0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=Jg(e),S=Jg(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=Xg(e),T=Xg(t);return O!==T?!1:O==="Set"||T==="Set"?K5(e,t,n,r):O==="Map"?G5(e,t,n,r):!0}var Q5=function(t,n,r){return on(t,n,r,W5())};const Y5=si(Q5),mm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!Y5(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},ek=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(sP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx(Oh,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},mm);ek.displayName="SliderComponent";const tk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},mm);tk.displayName="EnumComponent";const ym=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),ox(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(zs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},mm);ym.displayName="MethodComponent";const nk=ne.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;Cn();const a=h.useRef(null),[l,u]=h.useState(!1),c=t.split(".").at(-1),d=t.slice(0,-(c.length+1));h.useEffect(()=>{let v;r===null?v=`${t} task was stopped.`:v=`${t} was started.`,o(v),u(!1)},[e.value]);const f=async v=>{v.preventDefault();let g;r!=null?g=`stop_${c}`:g=`start_${c}`;const S=[d,g].filter(k=>k).join(".");u(!0),ox(S)};return w.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:f,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(zs,{id:`button-${s}`,type:"submit",children:l?w.jsx(MS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});nk.displayName="AsyncMethodComponent";const rk=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});rk.displayName="StringComponent";const ok=ne.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e;return Cn(),w.jsxs("div",{className:"listComponent",id:i,children:[!1,w.jsx(ln,{docString:n}),t.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:r,addNotification:o},s.full_access_path))]})});ok.displayName="ListComponent";var X5=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z5(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=J5(e,X5);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var eL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=tL(e,eL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const vm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=h.useState(()=>{const a=localStorage.getItem(`dataServiceComponent-${o}-open`);return a!==null?JSON.parse(a):!0});return h.useEffect(()=>{localStorage.setItem(`dataServiceComponent-${o}-open`,JSON.stringify(i))},[i]),r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:Object.entries(e).map(([a,l])=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},a))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:Object.entries(e).map(([a,l])=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},a))})});vm.displayName="DataServiceComponent";const ik=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(ym,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(vm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});ik.displayName="DeviceConnectionComponent";const sk=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(oS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});sk.displayName="ImageComponent";function rL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const ak=ne.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e;Cn();const s=Object.values(t);return w.jsxs("div",{className:"listComponent",id:i,children:[!1,w.jsx(ln,{docString:n}),s.map(a=>w.jsx(ii,{attribute:a,isInstantUpdate:r,addNotification:o},a.full_access_path))]})});ak.displayName="DictComponent";const oL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},iL=e=>{const t=[],n=sx(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return oL(t)};function yo(e,t=()=>{}){B_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=rL(r),i=h.useContext(ax);let s=iL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(lx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(ek,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(tk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?e.async?w.jsx(nk,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):w.jsx(ym,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(rk,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="DataService"?w.jsx(vm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(ik,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(ok,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(ak,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(sk,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const sL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:z_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},aL=()=>{const[e,t]=h.useReducer(sL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=h.useState(()=>{const x=localStorage.getItem("isInstantUpdate");return x!==null?JSON.parse(x):!1}),[l,u]=h.useState(!1),[c,d]=h.useState(()=>{const x=localStorage.getItem("showNotification");return x!==null?JSON.parse(x):!1}),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${Ui}:${Wi}/custom.css`).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${Ui}:${Wi}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`http://${Ui}:${Wi}/service-properties`).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${Ui}:${Wi}/web-settings`).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]),h.useEffect(()=>{localStorage.setItem("isInstantUpdate",JSON.stringify(s))},[s]),h.useEffect(()=>{localStorage.setItem("showNotification",JSON.stringify(c))},[c]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Kw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(ix,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(ax.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var pp={},a0=_w;pp.createRoot=a0.createRoot,pp.hydrateRoot=a0.hydrateRoot;pp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(aL,{})})); diff --git a/src/pydase/frontend/assets/index-C_q8TcnR.js b/src/pydase/frontend/assets/index-C_q8TcnR.js deleted file mode 100644 index 407d5cd..0000000 --- a/src/pydase/frontend/assets/index-C_q8TcnR.js +++ /dev/null @@ -1,59 +0,0 @@ -function D1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var bm={exports:{}},Gl={},Om={exports:{}},Q={};/** - * @license React - * react.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. - */var Ji=Symbol.for("react.element"),F1=Symbol.for("react.portal"),B1=Symbol.for("react.fragment"),z1=Symbol.for("react.strict_mode"),U1=Symbol.for("react.profiler"),W1=Symbol.for("react.provider"),V1=Symbol.for("react.context"),H1=Symbol.for("react.forward_ref"),K1=Symbol.for("react.suspense"),Q1=Symbol.for("react.memo"),G1=Symbol.for("react.lazy"),sp=Symbol.iterator;function q1(e){return e===null||typeof e!="object"?null:(e=sp&&e[sp]||e["@@iterator"],typeof e=="function"?e:null)}var Tm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rm=Object.assign,Nm={};function Po(e,t,n){this.props=e,this.context=t,this.refs=Nm,this.updater=n||Tm}Po.prototype.isReactComponent={};Po.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Po.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $m(){}$m.prototype=Po.prototype;function mf(e,t,n){this.props=e,this.context=t,this.refs=Nm,this.updater=n||Tm}var yf=mf.prototype=new $m;yf.constructor=mf;Rm(yf,Po.prototype);yf.isPureReactComponent=!0;var lp=Array.isArray,Pm=Object.prototype.hasOwnProperty,vf={current:null},jm={key:!0,ref:!0,__self:!0,__source:!0};function Am(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)Pm.call(t,r)&&!jm.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1=0)continue;n[r]=e[r]}return n}function cp(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function lw(e){var t=aw(e,"string");return typeof t=="symbol"?t:String(t)}function aw(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Dm(e,t,n){var r=h.useRef(e!==void 0),o=h.useState(t),i=o[0],s=o[1],l=e!==void 0,a=r.current;return r.current=l,!l&&a&&i!==t&&s(t),[l?e:i,h.useCallback(function(u){for(var c=arguments.length,p=new Array(c>1?c-1:0),f=1;f>>1,J=O[G];if(0>>1;Go(ne,z))veo(Me,ne)?(O[G]=Me,O[ve]=z,G=ve):(O[G]=ne,O[q]=z,G=q);else if(veo(Me,z))O[G]=Me,O[ve]=z,G=ve;else break e}}return I}function o(O,I){var z=O.sortIndex-I.sortIndex;return z!==0?z:O.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,p=null,f=3,x=!1,g=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(O){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=O)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function k(O){if(w=!1,y(O),!g)if(n(a)!==null)g=!0,X(_);else{var I=n(u);I!==null&&K(k,I.startTime-O)}}function _(O,I){g=!1,w&&(w=!1,m(b),b=-1),x=!0;var z=f;try{for(y(I),p=n(a);p!==null&&(!(p.expirationTime>I)||O&&!P());){var G=p.callback;if(typeof G=="function"){p.callback=null,f=p.priorityLevel;var J=G(p.expirationTime<=I);I=e.unstable_now(),typeof J=="function"?p.callback=J:p===n(a)&&r(a),y(I)}else r(a);p=n(a)}if(p!==null)var ye=!0;else{var q=n(u);q!==null&&K(k,q.startTime-I),ye=!1}return ye}finally{p=null,f=z,x=!1}}var S=!1,C=null,b=-1,$=5,T=-1;function P(){return!(e.unstable_now()-T<$)}function D(){if(C!==null){var O=e.unstable_now();T=O;var I=!0;try{I=C(!0,O)}finally{I?M():(S=!1,C=null)}}else S=!1}var M;if(typeof d=="function")M=function(){d(D)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,W=H.port2;H.port1.onmessage=D,M=function(){W.postMessage(null)}}else M=function(){E(D,0)};function X(O){C=O,S||(S=!0,M())}function K(O,I){b=E(function(){O(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){g||x||(g=!0,X(_))},e.unstable_forceFrameRate=function(O){0>O||125G?(O.sortIndex=z,t(u,O),n(a)===null&&O===n(u)&&(w?(m(b),b=-1):w=!0,K(k,z-G))):(O.sortIndex=J,t(a,O),g||x||(g=!0,X(_))),O},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(O){var I=f;return function(){var z=f;f=I;try{return O.apply(this,arguments)}finally{f=z}}}})(Qm);Km.exports=Qm;var _w=Km.exports;/** - * @license React - * react-dom.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. - */var bw=h,xt=_w;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=Object.prototype.hasOwnProperty,Ow=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fp={},dp={};function Tw(e){return Gu.call(dp,e)?!0:Gu.call(fp,e)?!1:Ow.test(e)?dp[e]=!0:(fp[e]=!0,!1)}function Rw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Nw(e,t,n,r){if(t===null||typeof t>"u"||Rw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function it(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-:]([a-z])/g;function xf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wf,xf);He[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wf,xf);He[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wf,xf);He[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sf(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` -`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ti(e):""}function $w(e){switch(e.tag){case 5:return ti(e.type);case 16:return ti("Lazy");case 13:return ti("Suspense");case 19:return ti("SuspenseList");case 0:case 2:case 15:return e=cu(e.type,!1),e;case 11:return e=cu(e.type.render,!1),e;case 1:return e=cu(e.type,!0),e;default:return""}}function Ju(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Xr:return"Fragment";case Yr:return"Portal";case qu:return"Profiler";case kf:return"StrictMode";case Yu:return"Suspense";case Xu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ym:return(e.displayName||"Context")+".Consumer";case qm:return(e._context.displayName||"Context")+".Provider";case Ef:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cf:return t=e.displayName||null,t!==null?t:Ju(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Ju(e(t))}catch{}}return null}function Pw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ju(t);case 8:return t===kf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jw(e){var t=Jm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vs(e){e._valueTracker||(e._valueTracker=jw(e))}function Zm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Jm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zu(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ey(e,t){t=t.checked,t!=null&&Sf(e,"checked",t,!1)}function ec(e,t){ey(e,t);var n=lr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tc(e,t.type,n):t.hasOwnProperty("defaultValue")&&tc(e,t.type,lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tc(e,t,n){(t!=="number"||pl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ni=Array.isArray;function ao(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function bi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ci={animationIterationCount:!0,aspectRatio:!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,gridArea:!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},Aw=["Webkit","ms","Moz","O"];Object.keys(ci).forEach(function(e){Aw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ci[t]=ci[e]})});function oy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ci.hasOwnProperty(e)&&ci[e]?(""+t).trim():t+"px"}function iy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=oy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Lw=Ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oc(e,t){if(t){if(Lw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function ic(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sc=null;function _f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lc=null,uo=null,co=null;function gp(e){if(e=ns(e)){if(typeof lc!="function")throw Error(R(280));var t=e.stateNode;t&&(t=ea(t),lc(e.stateNode,e.type,t))}}function sy(e){uo?co?co.push(e):co=[e]:uo=e}function ly(){if(uo){var e=uo,t=co;if(co=uo=null,gp(e),t)for(e=0;e>>=0,e===0?32:31-(Kw(e)/Qw|0)|0}var ws=64,xs=4194304;function ri(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=ri(l):(i&=s,i!==0&&(r=ri(i)))}else s=n&~o,s!==0?r=ri(s):i!==0&&(r=ri(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function es(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=n}function Xw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=di),Op=" ",Tp=!1;function Oy(e,t){switch(e){case"keyup":return _x.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ty(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function Ox(e,t){switch(e){case"compositionend":return Ty(t);case"keypress":return t.which!==32?null:(Tp=!0,Op);case"textInput":return e=t.data,e===Op&&Tp?null:e;default:return null}}function Tx(e,t){if(Jr)return e==="compositionend"||!jf&&Oy(e,t)?(e=_y(),Ks=Nf=Yn=null,Jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pp(n)}}function Py(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Py(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jy(){for(var e=window,t=pl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pl(e.document)}return t}function Af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ix(e){var t=jy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Py(n.ownerDocument.documentElement,n)){if(r!==null&&Af(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=jp(n,i);var s=jp(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zr=null,pc=null,hi=null,hc=!1;function Ap(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hc||Zr==null||Zr!==pl(r)||(r=Zr,"selectionStart"in r&&Af(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Pi(hi,r)||(hi=r,r=xl(pc,"onSelect"),0no||(e.current=xc[no],xc[no]=null,no--)}function pe(e,t){no++,xc[no]=e.current,e.current=t}var ar={},Je=dr(ar),at=dr(!1),_r=ar;function wo(e,t){var n=e.type.contextTypes;if(!n)return ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ut(e){return e=e.childContextTypes,e!=null}function kl(){me(at),me(Je)}function zp(e,t,n){if(Je.current!==ar)throw Error(R(168));pe(Je,t),pe(at,n)}function Uy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(R(108,Pw(e)||"Unknown",o));return Ee({},n,r)}function El(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ar,_r=Je.current,pe(Je,e),pe(at,at.current),!0}function Up(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Uy(e,t,_r),r.__reactInternalMemoizedMergedChildContext=e,me(at),me(Je),pe(Je,e)):me(at),pe(at,n)}var En=null,ta=!1,Cu=!1;function Wy(e){En===null?En=[e]:En.push(e)}function qx(e){ta=!0,Wy(e)}function pr(){if(!Cu&&En!==null){Cu=!0;var e=0,t=ae;try{var n=En;for(ae=1;e>=s,o-=s,bn=1<<32-Xt(t)+o|n<b?($=C,C=null):$=C.sibling;var T=f(m,C,y[b],k);if(T===null){C===null&&(C=$);break}e&&C&&T.alternate===null&&t(m,C),d=i(T,d,b),S===null?_=T:S.sibling=T,S=T,C=$}if(b===y.length)return n(m,C),xe&&yr(m,b),_;if(C===null){for(;bb?($=C,C=null):$=C.sibling;var P=f(m,C,T.value,k);if(P===null){C===null&&(C=$);break}e&&C&&P.alternate===null&&t(m,C),d=i(P,d,b),S===null?_=P:S.sibling=P,S=P,C=$}if(T.done)return n(m,C),xe&&yr(m,b),_;if(C===null){for(;!T.done;b++,T=y.next())T=p(m,T.value,k),T!==null&&(d=i(T,d,b),S===null?_=T:S.sibling=T,S=T);return xe&&yr(m,b),_}for(C=r(m,C);!T.done;b++,T=y.next())T=x(C,m,b,T.value,k),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?b:T.key),d=i(T,d,b),S===null?_=T:S.sibling=T,S=T);return e&&C.forEach(function(D){return t(m,D)}),xe&&yr(m,b),_}function E(m,d,y,k){if(typeof y=="object"&&y!==null&&y.type===Xr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ys:e:{for(var _=y.key,S=d;S!==null;){if(S.key===_){if(_=y.type,_===Xr){if(S.tag===7){n(m,S.sibling),d=o(S,y.props.children),d.return=m,m=d;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Vn&&Hp(_)===S.type){n(m,S.sibling),d=o(S,y.props),d.ref=Qo(m,S,y),d.return=m,m=d;break e}n(m,S);break}else t(m,S);S=S.sibling}y.type===Xr?(d=Er(y.props.children,m.mode,k,y.key),d.return=m,m=d):(k=el(y.type,y.key,y.props,null,m.mode,k),k.ref=Qo(m,d,y),k.return=m,m=k)}return s(m);case Yr:e:{for(S=y.key;d!==null;){if(d.key===S)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){n(m,d.sibling),d=o(d,y.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=Pu(y,m.mode,k),d.return=m,m=d}return s(m);case Vn:return S=y._init,E(m,d,S(y._payload),k)}if(ni(y))return g(m,d,y,k);if(Uo(y))return w(m,d,y,k);Os(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,d!==null&&d.tag===6?(n(m,d.sibling),d=o(d,y),d.return=m,m=d):(n(m,d),d=$u(y,m.mode,k),d.return=m,m=d),s(m)):n(m,d)}return E}var So=Qy(!0),Gy=Qy(!1),bl=dr(null),Ol=null,io=null,Df=null;function Ff(){Df=io=Ol=null}function Bf(e){var t=bl.current;me(bl),e._currentValue=t}function Ec(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function po(e,t){Ol=e,Df=io=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Df!==e)if(e={context:e,memoizedValue:t,next:null},io===null){if(Ol===null)throw Error(R(308));io=e,Ol.dependencies={lanes:0,firstContext:e}}else io=io.next=e;return t}var wr=null;function zf(e){wr===null?wr=[e]:wr.push(e)}function qy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,zf(t)):(n.next=o.next,o.next=n),t.interleaved=n,An(e,r)}function An(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Hn=!1;function Uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ee&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,An(e,n)}return o=r.interleaved,o===null?(t.next=t,zf(r)):(t.next=o.next,o.next=t),r.interleaved=t,An(e,n)}function Gs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Of(e,n)}}function Kp(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tl(e,t,n,r){var o=e.updateQueue;Hn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var p=o.baseState;s=0,c=u=a=null,l=i;do{var f=l.lane,x=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:x,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,w=l;switch(f=t,x=n,w.tag){case 1:if(g=w.payload,typeof g=="function"){p=g.call(x,p,f);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=w.payload,f=typeof g=="function"?g.call(x,p,f):g,f==null)break e;p=Ee({},p,f);break e;case 2:Hn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else x={eventTime:x,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=x,a=p):c=c.next=x,s|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Tr|=s,e.lanes=s,e.memoizedState=p}}function Qp(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=bu.transition;bu.transition={};try{e(!1),t()}finally{ae=n,bu.transition=r}}function pv(){return It().memoizedState}function Zx(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hv(e))mv(t,n);else if(n=qy(e,t,n,r),n!==null){var o=rt();Jt(n,e,r,o),yv(n,t,r)}}function eS(e,t,n){var r=or(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hv(e))mv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,Zt(l,s)){var a=t.interleaved;a===null?(o.next=o,zf(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=qy(e,t,o,r),n!==null&&(o=rt(),Jt(n,e,r,o),yv(n,t,r))}}function hv(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function mv(e,t){mi=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Of(e,n)}}var $l={readContext:Mt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},tS={readContext:Mt,useCallback:function(e,t){return on().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:qp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ys(4194308,4,av.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ys(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ys(4,2,e,t)},useMemo:function(e,t){var n=on();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=on();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Zx.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=on();return e={current:e},t.memoizedState=e},useState:Gp,useDebugValue:Yf,useDeferredValue:function(e){return on().memoizedState=e},useTransition:function(){var e=Gp(!1),t=e[0];return e=Jx.bind(null,e[1]),on().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=on();if(xe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),De===null)throw Error(R(349));Or&30||ev(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qp(nv.bind(null,r,i,e),[e]),r.flags|=2048,Bi(9,tv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=on(),t=De.identifierPrefix;if(xe){var n=On,r=bn;n=(r&~(1<<32-Xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Di++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[un]=t,e[Li]=r,bv(e,t,!1,!1),t.stateNode=e;e:{switch(s=ic(n,r),n){case"dialog":he("cancel",e),he("close",e),o=r;break;case"iframe":case"object":case"embed":he("load",e),o=r;break;case"video":case"audio":for(o=0;oCo&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304)}else{if(!r)if(e=Rl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Go(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xe)return qe(t),null}else 2*Oe()-i.renderingStartTime>Co&&n!==1073741824&&(t.flags|=128,r=!0,Go(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Oe(),t.sibling=null,n=Se.current,pe(Se,r?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function uS(e,t){switch(Mf(t),t.tag){case 1:return ut(t.type)&&kl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ko(),me(at),me(Je),Hf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Vf(t),null;case 13:if(me(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Se),null;case 4:return ko(),null;case 10:return Bf(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var Rs=!1,Xe=!1,cS=typeof WeakSet=="function"?WeakSet:Set,L=null;function so(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Pc(e,t,n){try{n()}catch(r){be(e,t,r)}}var sh=!1;function fS(e,t){if(mc=gl,e=jy(),Af(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,p=e,f=null;t:for(;;){for(var x;p!==n||o!==0&&p.nodeType!==3||(l=s+o),p!==i||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(x=p.firstChild)!==null;)f=p,p=x;for(;;){if(p===e)break t;if(f===n&&++u===o&&(l=s),f===i&&++c===r&&(a=s),(x=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=x}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(yc={focusedElem:e,selectionRange:n},gl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,E=g.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:Kt(t.type,w),E);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(k){be(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return g=sh,sh=!1,g}function yi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Pc(t,n,i)}o=o.next}while(o!==r)}}function oa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Rv(e){var t=e.alternate;t!==null&&(e.alternate=null,Rv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[un],delete t[Li],delete t[wc],delete t[Qx],delete t[Gx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nv(e){return e.tag===5||e.tag===3||e.tag===4}function lh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sl));else if(r!==4&&(e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}function Lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}var Ue=null,Qt=!1;function Un(e,t,n){for(n=n.child;n!==null;)$v(e,t,n),n=n.sibling}function $v(e,t,n){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(Yl,n)}catch{}switch(n.tag){case 5:Xe||so(n,t);case 6:var r=Ue,o=Qt;Ue=null,Un(e,t,n),Ue=r,Qt=o,Ue!==null&&(Qt?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(Qt?(e=Ue,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),Ni(e)):Eu(Ue,n.stateNode));break;case 4:r=Ue,o=Qt,Ue=n.stateNode.containerInfo,Qt=!0,Un(e,t,n),Ue=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Pc(n,t,s),o=o.next}while(o!==r)}Un(e,t,n);break;case 1:if(!Xe&&(so(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){be(n,t,l)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,Un(e,t,n),Xe=r):Un(e,t,n);break;default:Un(e,t,n)}}function ah(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cS),t.forEach(function(r){var o=xS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ht(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pS(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Al=0,ee&6)throw Error(R(331));var o=ee;for(ee|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aOe()-ed?kr(e,0):Zf|=n),ct(e,t)}function Fv(e,t){t===0&&(e.mode&1?(t=xs,xs<<=1,!(xs&130023424)&&(xs=4194304)):t=1);var n=rt();e=An(e,t),e!==null&&(es(e,t,n),ct(e,n))}function wS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fv(e,n)}function xS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Fv(e,n)}var Bv;Bv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||at.current)lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return lt=!1,lS(e,t,n);lt=!!(e.flags&131072)}else lt=!1,xe&&t.flags&1048576&&Vy(t,_l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xs(e,t),e=t.pendingProps;var o=wo(t,Je.current);po(t,n),o=Qf(null,t,r,e,o,n);var i=Gf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ut(r)?(i=!0,El(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Uf(t),o.updater=ra,t.stateNode=o,o._reactInternals=t,_c(t,r,e,n),t=Tc(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&Lf(t),et(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=kS(r),e=Kt(r,e),o){case 0:t=Oc(null,t,r,e,n);break e;case 1:t=rh(null,t,r,e,n);break e;case 11:t=th(null,t,r,e,n);break e;case 14:t=nh(null,t,r,Kt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),Oc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),rh(e,t,r,o,n);case 3:e:{if(Ev(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Yy(e,t),Tl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Eo(Error(R(423)),t),t=oh(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(R(424)),t),t=oh(e,t,r,n,o);break e}else for(vt=tr(t.stateNode.containerInfo.firstChild),gt=t,xe=!0,qt=null,n=Gy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),r===o){t=Ln(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return Xy(t),e===null&&kc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,vc(r,o)?s=null:i!==null&&vc(r,i)&&(t.flags|=32),kv(e,t),et(e,t,s,n),t.child;case 6:return e===null&&kc(t),null;case 13:return Cv(e,t,n);case 4:return Wf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=So(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),th(e,t,r,o,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,pe(bl,r._currentValue),r._currentValue=s,i!==null)if(Zt(i.value,s)){if(i.children===o.children&&!at.current){t=Ln(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Nn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ec(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(R(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ec(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}et(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,po(t,n),o=Mt(o),r=r(o),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,o=Kt(r,t.pendingProps),o=Kt(r.type,o),nh(e,t,r,o,n);case 15:return xv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Kt(r,o),Xs(e,t),t.tag=1,ut(r)?(e=!0,El(t)):e=!1,po(t,n),vv(t,r,o),_c(t,r,o,n),Tc(null,t,r,!0,e,n);case 19:return _v(e,t,n);case 22:return Sv(e,t,n)}throw Error(R(156,t.tag))};function zv(e,t){return hy(e,t)}function SS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,n,r){return new SS(e,t,n,r)}function od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kS(e){if(typeof e=="function")return od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ef)return 11;if(e===Cf)return 14}return 2}function ir(e,t){var n=e.alternate;return n===null?(n=jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function el(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")od(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xr:return Er(n.children,o,i,t);case kf:s=8,o|=8;break;case qu:return e=jt(12,n,t,o|2),e.elementType=qu,e.lanes=i,e;case Yu:return e=jt(13,n,t,o),e.elementType=Yu,e.lanes=i,e;case Xu:return e=jt(19,n,t,o),e.elementType=Xu,e.lanes=i,e;case Xm:return sa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qm:s=10;break e;case Ym:s=9;break e;case Ef:s=11;break e;case Cf:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=jt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Er(e,t,n,r){return e=jt(7,e,r,t),e.lanes=n,e}function sa(e,t,n,r){return e=jt(22,e,r,t),e.elementType=Xm,e.lanes=n,e.stateNode={isHidden:!1},e}function $u(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function Pu(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ES(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=du(0),this.expirationTimes=du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function id(e,t,n,r,o,i,s,l,a){return e=new ES(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=jt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uf(i),e}function CS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hv)}catch{}}Hv(),Hm.exports=kt;var Kv=Hm.exports;const Sr=Xi(Kv),yh={disabled:!1},Qv=te.createContext(null);var RS=function(t){return t.scrollTop},ii="unmounted",Kn="exited",Nt="entering",_n="entered",_o="exiting",Bn=function(e){cw(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,l=s&&!s.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?l?(a=Kn,i.appearStatus=Nt):a=_n:r.unmountOnExit||r.mountOnEnter?a=ii:a=Kn,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===ii?{status:Kn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Nt&&s!==_n&&(i=Nt):(s===Nt||s===_n)&&(i=_o)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Nt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Sr.findDOMNode(this);s&&RS(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kn&&this.setState({status:ii})},n.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,a=this.props.nodeRef?[l]:[Sr.findDOMNode(this),l],u=a[0],c=a[1],p=this.getTimeouts(),f=l?p.appear:p.enter;if(!o&&!s||yh.disabled){this.safeSetState({status:_n},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Nt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:_n},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Sr.findDOMNode(this);if(!i||yh.disabled){this.safeSetState({status:Kn},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:_o},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:Kn},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Sr.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ii)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=en(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return te.createElement(Qv.Provider,{value:null},typeof s=="function"?s(o,l):te.cloneElement(te.Children.only(s),l))},t}(te.Component);Bn.contextType=Qv;Bn.propTypes={};function Br(){}Bn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Br,onEntering:Br,onEntered:Br,onExit:Br,onExiting:Br,onExited:Br};Bn.UNMOUNTED=ii;Bn.EXITED=Kn;Bn.ENTERING=Nt;Bn.ENTERED=_n;Bn.EXITING=_o;const fa=!!(typeof window<"u"&&window.document&&window.document.createElement);var Bc=!1,zc=!1;try{var ju={get passive(){return Bc=!0},get once(){return zc=Bc=!0}};fa&&(window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,!0))}catch{}function NS(e,t,n,r){if(r&&typeof r!="boolean"&&!zc){var o=r.once,i=r.capture,s=n;!zc&&o&&(s=n.__once||function l(a){this.removeEventListener(t,l,i),n.call(this,a)},n.__once=s),e.addEventListener(t,s,Bc?r:i)}e.addEventListener(t,n,r)}function $S(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Tn(e,t,n,r){return NS(e,t,n,r),function(){$S(e,t,n,r)}}function PS(e,t,n,r){if(r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}function jS(e){var t=Rn(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function AS(e,t,n){n===void 0&&(n=5);var r=!1,o=setTimeout(function(){r||PS(e,"transitionend",!0)},t+n),i=Tn(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),i()}}function LS(e,t,n,r){n==null&&(n=jS(e)||0);var o=AS(e,n,r),i=Tn(e,"transitionend",t);return function(){o(),i()}}function vh(e,t){const n=Rn(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function ud(e,t){const n=vh(e,"transitionDuration"),r=vh(e,"transitionDelay"),o=LS(e,i=>{i.target===e&&(o(),t(i))},n+r)}function Yo(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...o){t.apply(this,o),n.apply(this,o)}},null)}function Gv(e){e.offsetHeight}const gh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function MS(e,t){const n=gh(e),r=gh(t);return o=>{n&&n(o),r&&r(o)}}function jr(e,t){return h.useMemo(()=>MS(e,t),[e,t])}function Il(e){return e&&"setState"in e?Sr.findDOMNode(e):e??null}const cd=te.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,onExited:i,addEndListener:s,children:l,childRef:a,...u},c)=>{const p=h.useRef(null),f=jr(p,a),x=S=>{f(Il(S))},g=S=>C=>{S&&p.current&&S(p.current,C)},w=h.useCallback(g(e),[e]),E=h.useCallback(g(t),[t]),m=h.useCallback(g(n),[n]),d=h.useCallback(g(r),[r]),y=h.useCallback(g(o),[o]),k=h.useCallback(g(i),[i]),_=h.useCallback(g(s),[s]);return v.jsx(Bn,{ref:c,...u,onEnter:w,onEntered:m,onEntering:E,onExit:d,onExited:k,onExiting:y,addEndListener:_,nodeRef:p,children:typeof l=="function"?(S,C)=>l(S,{...C,ref:x}):te.cloneElement(l,{ref:x})})}),IS={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function DS(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],o=IS[e];return r+parseInt(Rn(t,o[0]),10)+parseInt(Rn(t,o[1]),10)}const FS={[Kn]:"collapse",[_o]:"collapsing",[Nt]:"collapsing",[_n]:"collapse show"},da=te.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:o,className:i,children:s,dimension:l="height",in:a=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:p=!1,appear:f=!1,getDimensionValue:x=DS,...g},w)=>{const E=typeof l=="function"?l():l,m=h.useMemo(()=>Yo(S=>{S.style[E]="0"},e),[E,e]),d=h.useMemo(()=>Yo(S=>{const C=`scroll${E[0].toUpperCase()}${E.slice(1)}`;S.style[E]=`${S[C]}px`},t),[E,t]),y=h.useMemo(()=>Yo(S=>{S.style[E]=null},n),[E,n]),k=h.useMemo(()=>Yo(S=>{S.style[E]=`${x(E,S)}px`,Gv(S)},r),[r,x,E]),_=h.useMemo(()=>Yo(S=>{S.style[E]=null},o),[E,o]);return v.jsx(cd,{ref:w,addEndListener:ud,...g,"aria-expanded":g.role?a:null,onEnter:m,onEntering:d,onEntered:y,onExit:k,onExiting:_,childRef:s.ref,in:a,timeout:u,mountOnEnter:c,unmountOnExit:p,appear:f,children:(S,C)=>te.cloneElement(s,{...C,className:F(i,s.props.className,FS[S],E==="width"&&"collapse-horizontal")})})});function BS(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function nt(e){const t=BS(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const fd=e=>h.forwardRef((t,n)=>v.jsx("div",{...t,ref:n,className:F(t.className,e)}));function wh(){return h.useState(null)}function dd(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function zS(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const US=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",WS=typeof document<"u",Dl=WS||US?h.useLayoutEffect:h.useEffect,VS=["as","disabled"];function HS(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function KS(e){return!e||e.trim()==="#"}function qv({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:s,tabIndex:l=0,type:a}){e||(n!=null||r!=null||o!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:a||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&KS(n))&&f.preventDefault(),t){f.stopPropagation();return}s==null||s(f)},p=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:c,onKeyDown:p},u]}const QS=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=HS(e,VS);const[i,{tagName:s}]=qv(Object.assign({tagName:n,disabled:r},o));return v.jsx(s,Object.assign({},o,i,{ref:t}))});QS.displayName="Button";const GS={[Nt]:"show",[_n]:"show"},Ui=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...o},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=h.useCallback((a,u)=>{Gv(a),r==null||r(a,u)},[r]);return v.jsx(cd,{ref:i,addEndListener:ud,...s,onEnter:l,childRef:t.ref,children:(a,u)=>h.cloneElement(t,{...u,className:F("fade",e,t.props.className,GS[a],n[a])})})});Ui.displayName="Fade";const qS={"aria-label":de.string,onClick:de.func,variant:de.oneOf(["white"])},pa=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},o)=>v.jsx("button",{ref:o,type:"button",className:F("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));pa.displayName="CloseButton";pa.propTypes=qS;const Yv=h.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:o,as:i="span",...s},l)=>{const a=U(e,"badge");return v.jsx(i,{ref:l,...s,className:F(o,a,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});Yv.displayName="Badge";const os=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:s,...l},a)=>{const u=U(t,"btn"),[c,{tagName:p}]=qv({tagName:e,disabled:i,...l}),f=p;return v.jsx(f,{...c,...l,ref:a,disabled:i,className:F(s,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,l.href&&i&&"disabled")})});os.displayName="Button";const pd=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"card-body"),v.jsx(n,{ref:o,className:F(e,t),...r})));pd.displayName="CardBody";const Xv=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"card-footer"),v.jsx(n,{ref:o,className:F(e,t),...r})));Xv.displayName="CardFooter";const Jv=h.createContext(null);Jv.displayName="CardHeaderContext";const Zv=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=U(e,"card-header"),s=h.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return v.jsx(Jv.Provider,{value:s,children:v.jsx(n,{ref:o,...r,className:F(t,i)})})});Zv.displayName="CardHeader";const eg=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const s=U(e,"card-img");return v.jsx(r,{ref:i,className:F(n?`${s}-${n}`:s,t),...o})});eg.displayName="CardImg";const tg=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"card-img-overlay"),v.jsx(n,{ref:o,className:F(e,t),...r})));tg.displayName="CardImgOverlay";const ng=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=U(t,"card-link"),v.jsx(n,{ref:o,className:F(e,t),...r})));ng.displayName="CardLink";const YS=fd("h6"),rg=h.forwardRef(({className:e,bsPrefix:t,as:n=YS,...r},o)=>(t=U(t,"card-subtitle"),v.jsx(n,{ref:o,className:F(e,t),...r})));rg.displayName="CardSubtitle";const og=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=U(t,"card-text"),v.jsx(n,{ref:o,className:F(e,t),...r})));og.displayName="CardText";const XS=fd("h5"),ig=h.forwardRef(({className:e,bsPrefix:t,as:n=XS,...r},o)=>(t=U(t,"card-title"),v.jsx(n,{ref:o,className:F(e,t),...r})));ig.displayName="CardTitle";const sg=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:s,as:l="div",...a},u)=>{const c=U(e,"card");return v.jsx(l,{ref:u,...a,className:F(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?v.jsx(pd,{children:s}):s})});sg.displayName="Card";const mo=Object.assign(sg,{Img:eg,Title:ig,Subtitle:rg,Body:pd,Link:ng,Text:og,Header:Zv,Footer:Xv,ImgOverlay:tg});function JS(e){const t=h.useRef(e);return t.current=e,t}function lg(e){const t=JS(e);h.useEffect(()=>()=>t.current(),[])}const Uc=2**31-1;function ag(e,t,n){const r=n-Date.now();e.current=r<=Uc?setTimeout(t,r):setTimeout(()=>ag(e,t,n),Uc)}function ug(){const e=dd(),t=h.useRef();return lg(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(o,i=0){e()&&(n(),i<=Uc?t.current=setTimeout(o,i):ag(t,o,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function ZS(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}function ek({as:e,bsPrefix:t,className:n,...r}){t=U(t,"col");const o=Fm(),i=Bm(),s=[],l=[];return o.forEach(a=>{const u=r[a];delete r[a];let c,p,f;typeof u=="object"&&u!=null?{span:c,offset:p,order:f}=u:c=u;const x=a!==i?`-${a}`:"";c&&s.push(c===!0?`${t}${x}`:`${t}${x}-${c}`),f!=null&&l.push(`order${x}-${f}`),p!=null&&l.push(`offset${x}-${p}`)}),[{...r,className:F(n,...s,...l)},{as:e,bsPrefix:t,spans:s}]}const sn=h.forwardRef((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:s}]=ek(e);return v.jsx(o,{...r,ref:t,className:F(n,!s.length&&i)})});sn.displayName="Col";const cg=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const s=U(e,"container"),l=typeof t=="string"?`-${t}`:"-fluid";return v.jsx(n,{ref:i,...o,className:F(r,t?`${s}${l}`:s)})});cg.displayName="Container";var tk=Function.prototype.bind.call(Function.prototype.call,[].slice);function zr(e,t){return tk(e.querySelectorAll(t))}var xh=Object.prototype.hasOwnProperty;function Sh(e,t,n){for(n of e.keys())if(wi(n,t))return n}function wi(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&wi(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=Sh(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=Sh(t,o),!o)||!wi(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(xh.call(e,n)&&++r&&!xh.call(t,n)||!(n in t)||!wi(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function nk(e){const t=dd();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ft="top",Dt="bottom",Ft="right",dt="left",hd="auto",is=[ft,Dt,Ft,dt],bo="start",Wi="end",rk="clippingParents",fg="viewport",Xo="popper",ok="reference",kh=is.reduce(function(e,t){return e.concat([t+"-"+bo,t+"-"+Wi])},[]),dg=[].concat(is,[hd]).reduce(function(e,t){return e.concat([t,t+"-"+bo,t+"-"+Wi])},[]),ik="beforeRead",sk="read",lk="afterRead",ak="beforeMain",uk="main",ck="afterMain",fk="beforeWrite",dk="write",pk="afterWrite",hk=[ik,sk,lk,ak,uk,ck,fk,dk,pk];function dn(e){return e.split("-")[0]}function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nr(e){var t=St(e).Element;return e instanceof t||e instanceof Element}function pn(e){var t=St(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function md(e){if(typeof ShadowRoot>"u")return!1;var t=St(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Cr=Math.max,Fl=Math.min,Oo=Math.round;function Wc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pg(){return!/^((?!chrome|android).)*safari/i.test(Wc())}function To(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&pn(e)&&(o=e.offsetWidth>0&&Oo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Oo(r.height)/e.offsetHeight||1);var s=Nr(e)?St(e):window,l=s.visualViewport,a=!pg()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/o,c=(r.top+(a&&l?l.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:c,right:u+p,bottom:c+f,left:u,x:u,y:c}}function yd(e){var t=To(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&md(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ur(e){return e?(e.nodeName||"").toLowerCase():null}function Mn(e){return St(e).getComputedStyle(e)}function mk(e){return["table","td","th"].indexOf(ur(e))>=0}function hr(e){return((Nr(e)?e.ownerDocument:e.document)||window.document).documentElement}function ha(e){return ur(e)==="html"?e:e.assignedSlot||e.parentNode||(md(e)?e.host:null)||hr(e)}function Eh(e){return!pn(e)||Mn(e).position==="fixed"?null:e.offsetParent}function yk(e){var t=/firefox/i.test(Wc()),n=/Trident/i.test(Wc());if(n&&pn(e)){var r=Mn(e);if(r.position==="fixed")return null}var o=ha(e);for(md(o)&&(o=o.host);pn(o)&&["html","body"].indexOf(ur(o))<0;){var i=Mn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ss(e){for(var t=St(e),n=Eh(e);n&&mk(n)&&Mn(n).position==="static";)n=Eh(n);return n&&(ur(n)==="html"||ur(n)==="body"&&Mn(n).position==="static")?t:n||yk(e)||t}function vd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xi(e,t,n){return Cr(e,Fl(t,n))}function vk(e,t,n){var r=xi(e,t,n);return r>n?n:r}function mg(){return{top:0,right:0,bottom:0,left:0}}function yg(e){return Object.assign({},mg(),e)}function vg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yg(typeof t!="number"?t:vg(t,is))};function wk(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=dn(n.placement),a=vd(l),u=[dt,Ft].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!s)){var p=gk(o.padding,n),f=yd(i),x=a==="y"?ft:dt,g=a==="y"?Dt:Ft,w=n.rects.reference[c]+n.rects.reference[a]-s[a]-n.rects.popper[c],E=s[a]-n.rects.reference[a],m=ss(i),d=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,y=w/2-E/2,k=p[x],_=d-f[c]-p[g],S=d/2-f[c]/2+y,C=xi(k,S,_),b=a;n.modifiersData[r]=(t={},t[b]=C,t.centerOffset=C-S,t)}}function xk(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||hg(t.elements.popper,o)&&(t.elements.arrow=o))}const Sk={name:"arrow",enabled:!0,phase:"main",fn:wk,effect:xk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ro(e){return e.split("-")[1]}var kk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ek(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Oo(n*o)/o||0,y:Oo(r*o)/o||0}}function Ch(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,p=e.isFixed,f=s.x,x=f===void 0?0:f,g=s.y,w=g===void 0?0:g,E=typeof c=="function"?c({x,y:w}):{x,y:w};x=E.x,w=E.y;var m=s.hasOwnProperty("x"),d=s.hasOwnProperty("y"),y=dt,k=ft,_=window;if(u){var S=ss(n),C="clientHeight",b="clientWidth";if(S===St(n)&&(S=hr(n),Mn(S).position!=="static"&&l==="absolute"&&(C="scrollHeight",b="scrollWidth")),S=S,o===ft||(o===dt||o===Ft)&&i===Wi){k=Dt;var $=p&&S===_&&_.visualViewport?_.visualViewport.height:S[C];w-=$-r.height,w*=a?1:-1}if(o===dt||(o===ft||o===Dt)&&i===Wi){y=Ft;var T=p&&S===_&&_.visualViewport?_.visualViewport.width:S[b];x-=T-r.width,x*=a?1:-1}}var P=Object.assign({position:l},u&&kk),D=c===!0?Ek({x,y:w},St(n)):{x,y:w};if(x=D.x,w=D.y,a){var M;return Object.assign({},P,(M={},M[k]=d?"0":"",M[y]=m?"0":"",M.transform=(_.devicePixelRatio||1)<=1?"translate("+x+"px, "+w+"px)":"translate3d("+x+"px, "+w+"px, 0)",M))}return Object.assign({},P,(t={},t[k]=d?w+"px":"",t[y]=m?x+"px":"",t.transform="",t))}function Ck(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:dn(t.placement),variation:Ro(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ch(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ch(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const _k={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ck,data:{}};var Ps={passive:!0};function bk(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=St(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ps)}),l&&a.addEventListener("resize",n.update,Ps),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ps)}),l&&a.removeEventListener("resize",n.update,Ps)}}const Ok={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bk,data:{}};var Tk={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(e){return e.replace(/left|right|bottom|top/g,function(t){return Tk[t]})}var Rk={start:"end",end:"start"};function _h(e){return e.replace(/start|end/g,function(t){return Rk[t]})}function gd(e){var t=St(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wd(e){return To(hr(e)).left+gd(e).scrollLeft}function Nk(e,t){var n=St(e),r=hr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var u=pg();(u||!u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+wd(e),y:a}}function $k(e){var t,n=hr(e),r=gd(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Cr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Cr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+wd(e),a=-r.scrollTop;return Mn(o||n).direction==="rtl"&&(l+=Cr(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function xd(e){var t=Mn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gg(e){return["html","body","#document"].indexOf(ur(e))>=0?e.ownerDocument.body:pn(e)&&xd(e)?e:gg(ha(e))}function Si(e,t){var n;t===void 0&&(t=[]);var r=gg(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=St(r),s=o?[i].concat(i.visualViewport||[],xd(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(Si(ha(s)))}function Vc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pk(e,t){var n=To(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function bh(e,t,n){return t===fg?Vc(Nk(e,n)):Nr(t)?Pk(t,n):Vc($k(hr(e)))}function jk(e){var t=Si(ha(e)),n=["absolute","fixed"].indexOf(Mn(e).position)>=0,r=n&&pn(e)?ss(e):e;return Nr(r)?t.filter(function(o){return Nr(o)&&hg(o,r)&&ur(o)!=="body"}):[]}function Ak(e,t,n,r){var o=t==="clippingParents"?jk(e):[].concat(t),i=[].concat(o,[n]),s=i[0],l=i.reduce(function(a,u){var c=bh(e,u,r);return a.top=Cr(c.top,a.top),a.right=Fl(c.right,a.right),a.bottom=Fl(c.bottom,a.bottom),a.left=Cr(c.left,a.left),a},bh(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function wg(e){var t=e.reference,n=e.element,r=e.placement,o=r?dn(r):null,i=r?Ro(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(o){case ft:a={x:s,y:t.y-n.height};break;case Dt:a={x:s,y:t.y+t.height};break;case Ft:a={x:t.x+t.width,y:l};break;case dt:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=o?vd(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case bo:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Wi:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function Vi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?rk:l,u=n.rootBoundary,c=u===void 0?fg:u,p=n.elementContext,f=p===void 0?Xo:p,x=n.altBoundary,g=x===void 0?!1:x,w=n.padding,E=w===void 0?0:w,m=yg(typeof E!="number"?E:vg(E,is)),d=f===Xo?ok:Xo,y=e.rects.popper,k=e.elements[g?d:f],_=Ak(Nr(k)?k:k.contextElement||hr(e.elements.popper),a,c,s),S=To(e.elements.reference),C=wg({reference:S,element:y,strategy:"absolute",placement:o}),b=Vc(Object.assign({},y,C)),$=f===Xo?b:S,T={top:_.top-$.top+m.top,bottom:$.bottom-_.bottom+m.bottom,left:_.left-$.left+m.left,right:$.right-_.right+m.right},P=e.modifiersData.offset;if(f===Xo&&P){var D=P[o];Object.keys(T).forEach(function(M){var H=[Ft,Dt].indexOf(M)>=0?1:-1,W=[ft,Dt].indexOf(M)>=0?"y":"x";T[M]+=D[W]*H})}return T}function Lk(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?dg:a,c=Ro(r),p=c?l?kh:kh.filter(function(g){return Ro(g)===c}):is,f=p.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=p);var x=f.reduce(function(g,w){return g[w]=Vi(e,{placement:w,boundary:o,rootBoundary:i,padding:s})[dn(w)],g},{});return Object.keys(x).sort(function(g,w){return x[g]-x[w]})}function Mk(e){if(dn(e)===hd)return[];var t=tl(e);return[_h(e),t,_h(t)]}function Ik(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!0:s,a=n.fallbackPlacements,u=n.padding,c=n.boundary,p=n.rootBoundary,f=n.altBoundary,x=n.flipVariations,g=x===void 0?!0:x,w=n.allowedAutoPlacements,E=t.options.placement,m=dn(E),d=m===E,y=a||(d||!g?[tl(E)]:Mk(E)),k=[E].concat(y).reduce(function(q,ne){return q.concat(dn(ne)===hd?Lk(t,{placement:ne,boundary:c,rootBoundary:p,padding:u,flipVariations:g,allowedAutoPlacements:w}):ne)},[]),_=t.rects.reference,S=t.rects.popper,C=new Map,b=!0,$=k[0],T=0;T=0,W=H?"width":"height",X=Vi(t,{placement:P,boundary:c,rootBoundary:p,altBoundary:f,padding:u}),K=H?M?Ft:dt:M?Dt:ft;_[W]>S[W]&&(K=tl(K));var O=tl(K),I=[];if(i&&I.push(X[D]<=0),l&&I.push(X[K]<=0,X[O]<=0),I.every(function(q){return q})){$=P,b=!1;break}C.set(P,I)}if(b)for(var z=g?3:1,G=function(ne){var ve=k.find(function(Me){var Ke=C.get(Me);if(Ke)return Ke.slice(0,ne).every(function(_t){return _t})});if(ve)return $=ve,"break"},J=z;J>0;J--){var ye=G(J);if(ye==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const Dk={name:"flip",enabled:!0,phase:"main",fn:Ik,requiresIfExists:["offset"],data:{_skip:!1}};function Oh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Th(e){return[ft,Ft,Dt,dt].some(function(t){return e[t]>=0})}function Fk(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Vi(t,{elementContext:"reference"}),l=Vi(t,{altBoundary:!0}),a=Oh(s,r),u=Oh(l,o,i),c=Th(a),p=Th(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}const Bk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fk};function zk(e,t,n){var r=dn(e),o=[dt,ft].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[dt,Ft].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Uk(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=dg.reduce(function(c,p){return c[p]=zk(p,t.rects,i),c},{}),l=s[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const Wk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uk};function Vk(e){var t=e.state,n=e.name;t.modifiersData[n]=wg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Hk={name:"popperOffsets",enabled:!0,phase:"read",fn:Vk,data:{}};function Kk(e){return e==="x"?"y":"x"}function Qk(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,l=s===void 0?!1:s,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,p=n.padding,f=n.tether,x=f===void 0?!0:f,g=n.tetherOffset,w=g===void 0?0:g,E=Vi(t,{boundary:a,rootBoundary:u,padding:p,altBoundary:c}),m=dn(t.placement),d=Ro(t.placement),y=!d,k=vd(m),_=Kk(k),S=t.modifiersData.popperOffsets,C=t.rects.reference,b=t.rects.popper,$=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,T=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(S){if(i){var M,H=k==="y"?ft:dt,W=k==="y"?Dt:Ft,X=k==="y"?"height":"width",K=S[k],O=K+E[H],I=K-E[W],z=x?-b[X]/2:0,G=d===bo?C[X]:b[X],J=d===bo?-b[X]:-C[X],ye=t.elements.arrow,q=x&&ye?yd(ye):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mg(),ve=ne[H],Me=ne[W],Ke=xi(0,C[X],q[X]),_t=y?C[X]/2-z-Ke-ve-T.mainAxis:G-Ke-ve-T.mainAxis,gn=y?-C[X]/2+z+Ke+Me+T.mainAxis:J+Ke+Me+T.mainAxis,wn=t.elements.arrow&&ss(t.elements.arrow),xn=wn?k==="y"?wn.clientTop||0:wn.clientLeft||0:0,Qe=(M=P==null?void 0:P[k])!=null?M:0,fe=K+_t-Qe-xn,V=K+gn-Qe,Be=xi(x?Fl(O,fe):O,K,x?Cr(I,V):I);S[k]=Be,D[k]=Be-K}if(l){var Ze,ht=k==="x"?ft:dt,Bo=k==="x"?Dt:Ft,ge=S[_],Wt=_==="y"?"height":"width",Lr=ge+E[ht],Mr=ge-E[Bo],mr=[ft,dt].indexOf(m)!==-1,zo=(Ze=P==null?void 0:P[_])!=null?Ze:0,Ir=mr?Lr:ge-C[Wt]-b[Wt]-zo+T.altAxis,zn=mr?ge+C[Wt]+b[Wt]-zo-T.altAxis:Mr,N=x&&mr?vk(Ir,ge,zn):xi(x?Ir:Lr,ge,x?zn:Mr);S[_]=N,D[_]=N-ge}t.modifiersData[r]=D}}const Gk={name:"preventOverflow",enabled:!0,phase:"main",fn:Qk,requiresIfExists:["offset"]};function qk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Yk(e){return e===St(e)||!pn(e)?gd(e):qk(e)}function Xk(e){var t=e.getBoundingClientRect(),n=Oo(t.width)/e.offsetWidth||1,r=Oo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Jk(e,t,n){n===void 0&&(n=!1);var r=pn(t),o=pn(t)&&Xk(t),i=hr(t),s=To(e,o,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((ur(t)!=="body"||xd(i))&&(l=Yk(t)),pn(t)?(a=To(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=wd(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function Zk(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&o(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function eE(e){var t=Zk(e);return hk.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function tE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Rh={placement:"bottom",modifiers:[],strategy:"absolute"};function Nh(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[o]=e[o]);return n}const lE={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},aE={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},uE=[];function cE(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:i="absolute",modifiers:s=uE}=n,l=sE(n,iE);const a=h.useRef(s),u=h.useRef(),c=h.useCallback(()=>{var E;(E=u.current)==null||E.update()},[]),p=h.useCallback(()=>{var E;(E=u.current)==null||E.forceUpdate()},[]),[f,x]=nk(h.useState({placement:o,update:c,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),g=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const m={},d={};Object.keys(E.elements).forEach(y=>{m[y]=E.styles[y],d[y]=E.attributes[y]}),x({state:E,styles:m,attributes:d,update:c,forceUpdate:p,placement:E.placement})}}),[c,p,x]),w=h.useMemo(()=>(wi(a.current,s)||(a.current=s),a.current),[s]);return h.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:o,strategy:i,modifiers:[...w,g,lE]})},[i,o,g,r,w]),h.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=oE(e,t,Object.assign({},l,{placement:o,strategy:i,modifiers:[...w,aE,g]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,x(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Hi(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var fE=function(){},dE=fE;const pE=Xi(dE),$h=()=>{};function hE(e){return e.button===0}function mE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const nl=e=>e&&("current"in e?e.current:e),Ph={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function yE(e,t=$h,{disabled:n,clickTrigger:r="click"}={}){const o=h.useRef(!1),i=h.useRef(!1),s=h.useCallback(u=>{const c=nl(e);pE(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!c||mE(u)||!hE(u)||!!Hi(c,u.target)||i.current,i.current=!1},[e]),l=nt(u=>{const c=nl(e);c&&Hi(c,u.target)&&(i.current=!0)}),a=nt(u=>{o.current||t(u)});h.useEffect(()=>{var u,c;if(n||e==null)return;const p=Zi(nl(e)),f=p.defaultView||window;let x=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,g=null;Ph[r]&&(g=Tn(p,Ph[r],l,!0));const w=Tn(p,r,s,!0),E=Tn(p,r,d=>{if(d===x){x=void 0;return}a(d)});let m=[];return"ontouchstart"in p.documentElement&&(m=[].slice.call(p.body.children).map(d=>Tn(d,"mousemove",$h))),()=>{g==null||g(),w(),E(),m.forEach(d=>d())}},[e,n,r,s,l,a])}function vE(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function gE(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function wE({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:s,arrowElement:l,popperConfig:a={}}){var u,c,p,f,x;const g=vE(a.modifiers);return Object.assign({},a,{placement:n,enabled:e,strategy:i?"fixed":a.strategy,modifiers:gE(Object.assign({},g,{eventListeners:{enabled:t,options:(u=g.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},(c=g.preventOverflow)==null?void 0:c.options):(p=g.preventOverflow)==null?void 0:p.options}),offset:{options:Object.assign({offset:o},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!l,options:Object.assign({},(x=g.arrow)==null?void 0:x.options,{element:l})}),flip:Object.assign({enabled:!!r},g.flip)}))})}const xE=h.createContext(null),SE="data-rr-ui-";function kE(e){return`${SE}${e}`}const xg=h.createContext(fa?window:void 0);xg.Provider;function Sd(){return h.useContext(xg)}const Sg=h.createContext(null);Sg.displayName="InputGroupContext";const Lo=h.createContext(null);Lo.displayName="NavbarContext";de.string,de.bool,de.bool,de.bool,de.bool;const kg=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:o=!1,thumbnail:i=!1,...s},l)=>(e=U(e,"img"),v.jsx("img",{ref:l,...s,className:F(t,n&&`${e}-fluid`,r&&"rounded",o&&"rounded-circle",i&&`${e}-thumbnail`)})));kg.displayName="Image";const EE={type:de.string,tooltip:de.bool,as:de.elementType},ma=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>v.jsx(e,{...o,ref:i,className:F(t,`${n}-${r?"tooltip":"feedback"}`)}));ma.displayName="Feedback";ma.propTypes=EE;const In=h.createContext({}),ls=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:i=!1,as:s="input",...l},a)=>{const{controlId:u}=h.useContext(In);return t=U(t,"form-check-input"),v.jsx(s,{...l,ref:a,type:r,id:e||u,className:F(n,t,o&&"is-valid",i&&"is-invalid")})});ls.displayName="FormCheckInput";const Bl=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:i}=h.useContext(In);return e=U(e,"form-check-label"),v.jsx("label",{...r,ref:o,htmlFor:n||i,className:F(t,e)})});Bl.displayName="FormCheckLabel";const Eg=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:o=!1,disabled:i=!1,isValid:s=!1,isInvalid:l=!1,feedbackTooltip:a=!1,feedback:u,feedbackType:c,className:p,style:f,title:x="",type:g="checkbox",label:w,children:E,as:m="input",...d},y)=>{t=U(t,"form-check"),n=U(n,"form-switch");const{controlId:k}=h.useContext(In),_=h.useMemo(()=>({controlId:e||k}),[k,e]),S=!E&&w!=null&&w!==!1||ZS(E,Bl),C=v.jsx(ls,{...d,type:g==="switch"?"checkbox":g,ref:y,isValid:s,isInvalid:l,disabled:i,as:m});return v.jsx(In.Provider,{value:_,children:v.jsx("div",{style:f,className:F(p,S&&t,r&&`${t}-inline`,o&&`${t}-reverse`,g==="switch"&&n),children:E||v.jsxs(v.Fragment,{children:[C,S&&v.jsx(Bl,{title:x,children:w}),u&&v.jsx(ma,{type:c,tooltip:a,children:u})]})})})});Eg.displayName="FormCheck";const zl=Object.assign(Eg,{Input:ls,Label:Bl}),Cg=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:i,isValid:s=!1,isInvalid:l=!1,plaintext:a,readOnly:u,as:c="input",...p},f)=>{const{controlId:x}=h.useContext(In);return e=U(e,"form-control"),v.jsx(c,{...p,type:t,size:r,ref:f,readOnly:u,id:o||x,className:F(i,a?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,s&&"is-valid",l&&"is-invalid")})});Cg.displayName="FormControl";const CE=Object.assign(Cg,{Feedback:ma}),_g=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"form-floating"),v.jsx(n,{ref:o,className:F(e,t),...r})));_g.displayName="FormFloating";const kd=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const o=h.useMemo(()=>({controlId:e}),[e]);return v.jsx(In.Provider,{value:o,children:v.jsx(t,{...n,ref:r})})});kd.displayName="FormGroup";const bg=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:i,...s},l)=>{const{controlId:a}=h.useContext(In);t=U(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=F(o,t,r&&"visually-hidden",n&&u);return i=i||a,n?v.jsx(sn,{ref:l,as:"label",className:c,htmlFor:i,...s}):v.jsx(e,{ref:l,className:c,htmlFor:i,...s})});bg.displayName="FormLabel";const Og=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:i}=h.useContext(In);return e=U(e,"form-range"),v.jsx("input",{...r,type:"range",ref:o,className:F(t,e),id:n||i})});Og.displayName="FormRange";const Tg=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:i=!1,id:s,...l},a)=>{const{controlId:u}=h.useContext(In);return e=U(e,"form-select"),v.jsx("select",{...l,size:n,ref:a,className:F(r,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:s||u})});Tg.displayName="FormSelect";const Rg=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=U(e,"form-text"),v.jsx(n,{...o,ref:i,className:F(t,e,r&&"text-muted")})));Rg.displayName="FormText";const Ng=h.forwardRef((e,t)=>v.jsx(zl,{...e,ref:t,type:"switch"}));Ng.displayName="Switch";const _E=Object.assign(Ng,{Input:zl.Input,Label:zl.Label}),$g=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},s)=>(e=U(e,"form-floating"),v.jsxs(kd,{ref:s,className:F(t,e),controlId:r,...i,children:[n,v.jsx("label",{htmlFor:r,children:o})]})));$g.displayName="FloatingLabel";const bE={_ref:de.any,validated:de.bool,as:de.elementType},Ed=h.forwardRef(({className:e,validated:t,as:n="form",...r},o)=>v.jsx(n,{...r,ref:o,className:F(e,t&&"was-validated")}));Ed.displayName="Form";Ed.propTypes=bE;const tt=Object.assign(Ed,{Group:kd,Control:CE,Floating:_g,Check:zl,Switch:_E,Label:bg,Text:Rg,Range:Og,Select:Tg,FloatingLabel:$g}),ya=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=U(t,"input-group-text"),v.jsx(n,{ref:o,className:F(e,t),...r})));ya.displayName="InputGroupText";const OE=e=>v.jsx(ya,{children:v.jsx(ls,{type:"checkbox",...e})}),TE=e=>v.jsx(ya,{children:v.jsx(ls,{type:"radio",...e})}),Pg=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},s)=>{e=U(e,"input-group");const l=h.useMemo(()=>({}),[]);return v.jsx(Sg.Provider,{value:l,children:v.jsx(o,{ref:s,...i,className:F(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});Pg.displayName="InputGroup";const $n=Object.assign(Pg,{Text:ya,Radio:TE,Checkbox:OE});function Au(e){e===void 0&&(e=Zi());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function RE(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const jh=kE("modal-open");class Cd{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return RE(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[r]:o.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Rn(o,r)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(jh,""),Rn(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(jh),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Lu=(e,t)=>fa?e==null?(t||Zi()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Hc(e,t){const n=Sd(),[r,o]=h.useState(()=>Lu(e,n==null?void 0:n.document));if(!r){const i=Lu(e);i&&o(i)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const i=Lu(e);i!==r&&o(i)},[e,r]),r}function NE({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:o}){const i=h.useRef(null),s=h.useRef(t),l=nt(n);h.useEffect(()=>{t?s.current=!0:l(i.current)},[t,l]);const a=jr(i,e.ref),u=h.cloneElement(e,{ref:a});return t?u:o||!s.current&&r?null:u}function jg(e){return e.code==="Escape"||e.keyCode===27}function $E(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const PE=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function jE(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function AE(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:l,children:a}=e,u=jE(e,PE);const{major:c}=$E(),p=c>=19?a.props.ref:a.ref,f=h.useRef(null),x=jr(f,typeof a=="function"?null:p),g=S=>C=>{S&&f.current&&S(f.current,C)},w=h.useCallback(g(t),[t]),E=h.useCallback(g(n),[n]),m=h.useCallback(g(r),[r]),d=h.useCallback(g(o),[o]),y=h.useCallback(g(i),[i]),k=h.useCallback(g(s),[s]),_=h.useCallback(g(l),[l]);return Object.assign({},u,{nodeRef:f},t&&{onEnter:w},n&&{onEntering:E},r&&{onEntered:m},o&&{onExit:d},i&&{onExiting:y},s&&{onExited:k},l&&{addEndListener:_},{children:typeof a=="function"?(S,C)=>a(S,Object.assign({},C,{ref:x})):h.cloneElement(a,{ref:x})})}const LE=["component"];function ME(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}const IE=h.forwardRef((e,t)=>{let{component:n}=e,r=ME(e,LE);const o=AE(r);return v.jsx(n,Object.assign({ref:t},o))});function DE({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),o=nt(t);return Dl(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Dl(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function FE({children:e,in:t,onExited:n,onEntered:r,transition:o}){const[i,s]=h.useState(!t);t&&i&&s(!1);const l=DE({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(s(!0),n==null||n(u.element)))};Promise.resolve(o(u)).then(c,p=>{throw u.in||s(!0),p})}}),a=jr(l,e.ref);return i&&!t?null:h.cloneElement(e,{ref:a})}function Kc(e,t,n){return e?v.jsx(IE,Object.assign({},n,{component:e})):t?v.jsx(FE,Object.assign({},n,{transition:t})):v.jsx(NE,Object.assign({},n))}const BE=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function zE(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}let Mu;function UE(e){return Mu||(Mu=new Cd({ownerDocument:e==null?void 0:e.document})),Mu}function WE(e){const t=Sd(),n=e||UE(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(o=>{r.current.dialog=o},[]),setBackdropRef:h.useCallback(o=>{r.current.backdrop=o},[])})}const Ag=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:o,style:i,children:s,backdrop:l=!0,keyboard:a=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:p,runTransition:f,backdropTransition:x,runBackdropTransition:g,autoFocus:w=!0,enforceFocus:E=!0,restoreFocus:m=!0,restoreFocusOptions:d,renderDialog:y,renderBackdrop:k=V=>v.jsx("div",Object.assign({},V)),manager:_,container:S,onShow:C,onHide:b=()=>{},onExit:$,onExited:T,onExiting:P,onEnter:D,onEntering:M,onEntered:H}=e,W=zE(e,BE);const X=Sd(),K=Hc(S),O=WE(_),I=dd(),z=zS(n),[G,J]=h.useState(!n),ye=h.useRef(null);h.useImperativeHandle(t,()=>O,[O]),fa&&!z&&n&&(ye.current=Au(X==null?void 0:X.document)),n&&G&&J(!1);const q=nt(()=>{if(O.add(),gn.current=Tn(document,"keydown",Ke),_t.current=Tn(document,"focus",()=>setTimeout(ve),!0),C&&C(),w){var V,Be;const Ze=Au((V=(Be=O.dialog)==null?void 0:Be.ownerDocument)!=null?V:X==null?void 0:X.document);O.dialog&&Ze&&!Hi(O.dialog,Ze)&&(ye.current=Ze,O.dialog.focus())}}),ne=nt(()=>{if(O.remove(),gn.current==null||gn.current(),_t.current==null||_t.current(),m){var V;(V=ye.current)==null||V.focus==null||V.focus(d),ye.current=null}});h.useEffect(()=>{!n||!K||q()},[n,K,q]),h.useEffect(()=>{G&&ne()},[G,ne]),lg(()=>{ne()});const ve=nt(()=>{if(!E||!I()||!O.isTopModal())return;const V=Au(X==null?void 0:X.document);O.dialog&&V&&!Hi(O.dialog,V)&&O.dialog.focus()}),Me=nt(V=>{V.target===V.currentTarget&&(u==null||u(V),l===!0&&b())}),Ke=nt(V=>{a&&jg(V)&&O.isTopModal()&&(c==null||c(V),V.defaultPrevented||b())}),_t=h.useRef(),gn=h.useRef(),wn=(...V)=>{J(!0),T==null||T(...V)};if(!K)return null;const xn=Object.assign({role:r,ref:O.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},W,{style:i,className:o,tabIndex:-1});let Qe=y?y(xn):v.jsx("div",Object.assign({},xn,{children:h.cloneElement(s,{role:"document"})}));Qe=Kc(p,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:$,onExiting:P,onExited:wn,onEnter:D,onEntering:M,onEntered:H,children:Qe});let fe=null;return l&&(fe=k({ref:O.setBackdropRef,onClick:Me}),fe=Kc(x,g,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:fe})),v.jsx(v.Fragment,{children:Sr.createPortal(v.jsxs(v.Fragment,{children:[fe,Qe]}),K)})});Ag.displayName="Modal";const VE=Object.assign(Ag,{Manager:Cd});function Qc(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function HE(e,t){e.classList?e.classList.add(t):Qc(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ah(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function KE(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ah(e.className,t):e.setAttribute("class",Ah(e.className&&e.className.baseVal||"",t))}const Ur={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Lg extends Cd{adjustAndStore(t,n,r){const o=n.style[t];n.dataset[t]=o,Rn(n,{[t]:`${parseFloat(Rn(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Rn(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(HE(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";zr(n,Ur.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),zr(n,Ur.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),zr(n,Ur.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();KE(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";zr(n,Ur.FIXED_CONTENT).forEach(i=>this.restore(r,i)),zr(n,Ur.STICKY_CONTENT).forEach(i=>this.restore(o,i)),zr(n,Ur.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let Iu;function QE(e){return Iu||(Iu=new Lg(e)),Iu}const Mg=h.createContext({onHide(){}}),GE=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...i},s)=>{const l=h.useContext(Mg),a=nt(()=>{l==null||l.onHide(),r==null||r()});return v.jsxs("div",{ref:s,...i,children:[o,n&&v.jsx(pa,{"aria-label":e,variant:t,onClick:a})]})}),Ig=h.forwardRef(({bsPrefix:e,className:t,as:n,...r},o)=>{e=U(e,"navbar-brand");const i=n||(r.href?"a":"span");return v.jsx(i,{...r,ref:o,className:F(t,e)})});Ig.displayName="NavbarBrand";const Dg=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=U(t,"navbar-collapse");const o=h.useContext(Lo);return v.jsx(da,{in:!!(o&&o.expanded),...n,children:v.jsx("div",{ref:r,className:t,children:e})})});Dg.displayName="NavbarCollapse";const Fg=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:i,...s},l)=>{e=U(e,"navbar-toggler");const{onToggle:a,expanded:u}=h.useContext(Lo)||{},c=nt(p=>{i&&i(p),a&&a()});return o==="button"&&(s.type="button"),v.jsx(o,{...s,ref:l,onClick:c,"aria-label":r,className:F(t,e,!u&&"collapsed"),children:n||v.jsx("span",{className:`${e}-icon`})})});Fg.displayName="NavbarToggle";const Gc=new WeakMap,Lh=(e,t)=>{if(!e||!t)return;const n=Gc.get(t)||new Map;Gc.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function qE(e,t=typeof window>"u"?void 0:window){const n=Lh(e,t),[r,o]=h.useState(()=>n?n.matches:!1);return Dl(()=>{let i=Lh(e,t);if(!i)return o(!1);let s=Gc.get(t);const l=()=>{o(i.matches)};return i.refCount++,i.addListener(l),l(),()=>{i.removeListener(l),i.refCount--,i.refCount<=0&&(s==null||s.delete(i.media)),i=void 0}},[e]),r}function YE(e){const t=Object.keys(e);function n(l,a){return l===a?a:l?`${l} and ${a}`:a}function r(l){return t[Math.min(t.indexOf(l)+1,t.length-1)]}function o(l){const a=r(l);let u=e[a];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(l){let a=e[l];return typeof a=="number"&&(a=`${a}px`),`(min-width: ${a})`}function s(l,a,u){let c;typeof l=="object"?(c=l,u=a,a=!0):(a=a||!0,c={[l]:a});let p=h.useMemo(()=>Object.entries(c).reduce((f,[x,g])=>((g==="up"||g===!0)&&(f=n(f,i(x))),(g==="down"||g===!0)&&(f=n(f,o(x))),f),""),[JSON.stringify(c)]);return qE(p,u)}return s}const XE=YE({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Bg=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"offcanvas-body"),v.jsx(n,{ref:o,className:F(e,t),...r})));Bg.displayName="OffcanvasBody";const JE={[Nt]:"show",[_n]:"show"},zg=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:o=!1,unmountOnExit:i=!1,appear:s=!1,...l},a)=>(e=U(e,"offcanvas"),v.jsx(cd,{ref:a,addEndListener:ud,in:r,mountOnEnter:o,unmountOnExit:i,appear:s,...l,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:F(t,n.props.className,(u===Nt||u===_o)&&`${e}-toggling`,JE[u])})})));zg.displayName="OffcanvasToggling";const Ug=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=U(e,"offcanvas-header"),v.jsx(GE,{ref:i,...o,className:F(t,e),closeLabel:n,closeButton:r})));Ug.displayName="OffcanvasHeader";const ZE=fd("h5"),Wg=h.forwardRef(({className:e,bsPrefix:t,as:n=ZE,...r},o)=>(t=U(t,"offcanvas-title"),v.jsx(n,{ref:o,className:F(e,t),...r})));Wg.displayName="OffcanvasTitle";function eC(e){return v.jsx(zg,{...e})}function tC(e){return v.jsx(Ui,{...e})}const Vg=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:o="start",responsive:i,show:s=!1,backdrop:l=!0,keyboard:a=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:p,onHide:f,container:x,autoFocus:g=!0,enforceFocus:w=!0,restoreFocus:E=!0,restoreFocusOptions:m,onEntered:d,onExit:y,onExiting:k,onEnter:_,onEntering:S,onExited:C,backdropClassName:b,manager:$,renderStaticNode:T=!1,...P},D)=>{const M=h.useRef();e=U(e,"offcanvas");const{onToggle:H}=h.useContext(Lo)||{},[W,X]=h.useState(!1),K=XE(i||"xs","up");h.useEffect(()=>{X(i?s&&!K:s)},[s,i,K]);const O=nt(()=>{H==null||H(),f==null||f()}),I=h.useMemo(()=>({onHide:O}),[O]);function z(){return $||(u?(M.current||(M.current=new Lg({handleContainerOverflow:!1})),M.current):QE())}const G=(ne,...ve)=>{ne&&(ne.style.visibility="visible"),_==null||_(ne,...ve)},J=(ne,...ve)=>{ne&&(ne.style.visibility=""),C==null||C(...ve)},ye=h.useCallback(ne=>v.jsx("div",{...ne,className:F(`${e}-backdrop`,b)}),[b,e]),q=ne=>v.jsx("div",{...ne,...P,className:F(t,i?`${e}-${i}`:e,`${e}-${o}`),"aria-labelledby":r,children:n});return v.jsxs(v.Fragment,{children:[!W&&(i||T)&&q({}),v.jsx(Mg.Provider,{value:I,children:v.jsx(VE,{show:W,ref:D,backdrop:l,container:x,keyboard:a,autoFocus:g,enforceFocus:w&&!u,restoreFocus:E,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:p,onHide:O,onEnter:G,onEntering:S,onEntered:d,onExit:y,onExiting:k,onExited:J,manager:z(),transition:eC,backdropTransition:tC,renderBackdrop:ye,renderDialog:q})})]})});Vg.displayName="Offcanvas";const si=Object.assign(Vg,{Body:Bg,Header:Ug,Title:Wg}),Hg=h.forwardRef((e,t)=>{const n=h.useContext(Lo);return v.jsx(si,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});Hg.displayName="NavbarOffcanvas";const Kg=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=U(t,"navbar-text"),v.jsx(n,{ref:o,className:F(e,t),...r})));Kg.displayName="NavbarText";const Qg=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:o="light",bg:i,fixed:s,sticky:l,className:a,as:u="nav",expanded:c,onToggle:p,onSelect:f,collapseOnSelect:x=!1,...g}=uw(e,{expanded:"onToggle"}),w=U(n,"navbar"),E=h.useCallback((...y)=>{f==null||f(...y),x&&c&&(p==null||p(!1))},[f,x,c,p]);g.role===void 0&&u!=="nav"&&(g.role="navigation");let m=`${w}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const d=h.useMemo(()=>({onToggle:()=>p==null?void 0:p(!c),bsPrefix:w,expanded:!!c,expand:r}),[w,c,r,p]);return v.jsx(Lo.Provider,{value:d,children:v.jsx(xE.Provider,{value:E,children:v.jsx(u,{ref:t,...g,className:F(a,w,r&&m,o&&`${w}-${o}`,i&&`bg-${i}`,l&&`sticky-${l}`,s&&`fixed-${s}`)})})})});Qg.displayName="Navbar";const Du=Object.assign(Qg,{Brand:Ig,Collapse:Dg,Offcanvas:Hg,Text:Kg,Toggle:Fg}),nC=()=>{};function rC(e,t,{disabled:n,clickTrigger:r}={}){const o=t||nC;yE(e,o,{disabled:n,clickTrigger:r});const i=nt(s=>{jg(s)&&o(s)});h.useEffect(()=>{if(n||e==null)return;const s=Zi(nl(e));let l=(s.defaultView||window).event;const a=Tn(s,"keyup",u=>{if(u===l){l=void 0;return}i(u)});return()=>{a()}},[e,n,i])}const Gg=h.forwardRef((e,t)=>{const{flip:n,offset:r,placement:o,containerPadding:i,popperConfig:s={},transition:l,runTransition:a}=e,[u,c]=wh(),[p,f]=wh(),x=jr(c,t),g=Hc(e.container),w=Hc(e.target),[E,m]=h.useState(!e.show),d=cE(w,u,wE({placement:o,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:p,popperConfig:s}));e.show&&E&&m(!1);const y=(...P)=>{m(!0),e.onExited&&e.onExited(...P)},k=e.show||!E;if(rC(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!k)return null;const{onExit:_,onExiting:S,onEnter:C,onEntering:b,onEntered:$}=e;let T=e.children(Object.assign({},d.attributes.popper,{style:d.styles.popper,ref:x}),{popper:d,placement:o,show:!!e.show,arrowProps:Object.assign({},d.attributes.arrow,{style:d.styles.arrow,ref:f})});return T=Kc(l,a,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:T,onExit:_,onExiting:S,onExited:y,onEnter:C,onEntering:b,onEntered:$}),g?Sr.createPortal(T,g):null});Gg.displayName="Overlay";const qg=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"popover-header"),v.jsx(n,{ref:o,className:F(e,t),...r})));qg.displayName="PopoverHeader";const _d=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"popover-body"),v.jsx(n,{ref:o,className:F(e,t),...r})));_d.displayName="PopoverBody";function Yg(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function Xg(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const oC=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,body:i,arrowProps:s,hasDoneInitialMeasure:l,popper:a,show:u,...c},p)=>{const f=U(e,"popover"),x=zm(),[g]=(t==null?void 0:t.split("-"))||[],w=Yg(g,x);let E=r;return u&&!l&&(E={...r,...Xg(a==null?void 0:a.strategy)}),v.jsxs("div",{ref:p,role:"tooltip",style:E,"x-placement":g,className:F(n,f,g&&`bs-popover-${w}`),...c,children:[v.jsx("div",{className:"popover-arrow",...s}),i?v.jsx(_d,{children:o}):o]})}),iC=Object.assign(oC,{Header:qg,Body:_d,POPPER_OFFSET:[0,8]}),Jg=h.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:o,arrowProps:i,hasDoneInitialMeasure:s,popper:l,show:a,...u},c)=>{e=U(e,"tooltip");const p=zm(),[f]=(t==null?void 0:t.split("-"))||[],x=Yg(f,p);let g=r;return a&&!s&&(g={...r,...Xg(l==null?void 0:l.strategy)}),v.jsxs("div",{ref:c,style:g,role:"tooltip","x-placement":f,className:F(n,e,`bs-tooltip-${x}`),...u,children:[v.jsx("div",{className:"tooltip-arrow",...i}),v.jsx("div",{className:`${e}-inner`,children:o})]})});Jg.displayName="Tooltip";const Zg=Object.assign(Jg,{TOOLTIP_OFFSET:[0,6]});function sC(e){const t=h.useRef(null),n=U(void 0,"popover"),r=U(void 0,"tooltip"),o=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(Qc(t.current,n))return iC.POPPER_OFFSET;if(Qc(t.current,r))return Zg.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[o]]}function lC(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=o=>n(Il(o))),t.ref=r.__wrapped||(r.__wrapped=o=>r(Il(o)))}const e0=h.forwardRef(({children:e,transition:t=Ui,popperConfig:n={},rootClose:r=!1,placement:o="top",show:i=!1,...s},l)=>{const a=h.useRef({}),[u,c]=h.useState(null),[p,f]=sC(s.offset),x=jr(l,p),g=t===!0?Ui:t||void 0,w=nt(E=>{c(E),n==null||n.onFirstUpdate==null||n.onFirstUpdate(E)});return Dl(()=>{u&&s.target&&(a.current.scheduleUpdate==null||a.current.scheduleUpdate())},[u,s.target]),h.useEffect(()=>{i||c(null)},[i]),v.jsx(Gg,{...s,ref:x,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:w},transition:g,rootClose:r,placement:o,show:i,children:(E,{arrowProps:m,popper:d,show:y})=>{var k;lC(E,m);const _=d==null?void 0:d.placement,S=Object.assign(a.current,{state:d==null?void 0:d.state,scheduleUpdate:d==null?void 0:d.update,placement:_,outOfBoundaries:(d==null||(k=d.state)==null||(k=k.modifiersData.hide)==null?void 0:k.isReferenceHidden)||!1,strategy:n.strategy}),C=!!u;return typeof e=="function"?e({...E,placement:_,show:y,...!t&&y&&{className:"show"},popper:S,arrowProps:m,hasDoneInitialMeasure:C}):h.cloneElement(e,{...E,placement:_,arrowProps:m,popper:S,hasDoneInitialMeasure:C,className:F(e.props.className,!t&&y&&"show"),style:{...e.props.style,...E.style}})}})});e0.displayName="Overlay";function aC(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Mh(e,t,n){const[r]=t,o=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==o)&&!Hi(o,i)&&e(...t)}de.oneOf(["click","hover","focus"]);const uC=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:o,defaultShow:i=!1,onToggle:s,delay:l,placement:a,flip:u=a&&a.indexOf("auto")!==-1,...c})=>{const p=h.useRef(null),f=jr(p,n.ref),x=ug(),g=h.useRef(""),[w,E]=Dm(o,i,s),m=aC(l),{onFocus:d,onBlur:y,onClick:k}=typeof n!="function"?h.Children.only(n).props:{},_=W=>{f(Il(W))},S=h.useCallback(()=>{if(x.clear(),g.current="show",!m.show){E(!0);return}x.set(()=>{g.current==="show"&&E(!0)},m.show)},[m.show,E,x]),C=h.useCallback(()=>{if(x.clear(),g.current="hide",!m.hide){E(!1);return}x.set(()=>{g.current==="hide"&&E(!1)},m.hide)},[m.hide,E,x]),b=h.useCallback((...W)=>{S(),d==null||d(...W)},[S,d]),$=h.useCallback((...W)=>{C(),y==null||y(...W)},[C,y]),T=h.useCallback((...W)=>{E(!w),k==null||k(...W)},[k,E,w]),P=h.useCallback((...W)=>{Mh(S,W,"fromElement")},[S]),D=h.useCallback((...W)=>{Mh(C,W,"toElement")},[C]),M=e==null?[]:[].concat(e),H={ref:_};return M.indexOf("click")!==-1&&(H.onClick=T),M.indexOf("focus")!==-1&&(H.onFocus=b,H.onBlur=$),M.indexOf("hover")!==-1&&(H.onMouseOver=P,H.onMouseOut=D),v.jsxs(v.Fragment,{children:[typeof n=="function"?n(H):h.cloneElement(n,H),v.jsx(e0,{...c,show:w,onHide:C,flip:u,placement:a,popperConfig:r,target:p.current,children:t})]})},Ul=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=U(e,"row"),s=Fm(),l=Bm(),a=`${i}-cols`,u=[];return s.forEach(c=>{const p=r[c];delete r[c];let f;p!=null&&typeof p=="object"?{cols:f}=p:f=p;const x=c!==l?`-${c}`:"";f!=null&&u.push(`${a}${x}-${f}`)}),v.jsx(n,{ref:o,...r,className:F(t,i,...u)})});Ul.displayName="Row";const t0=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:o="div",className:i,...s},l)=>{e=U(e,"spinner");const a=`${e}-${n}`;return v.jsx(o,{ref:l,...s,className:F(i,a,r&&`${a}-${r}`,t&&`text-${t}`)})});t0.displayName="Spinner";const cC={[Nt]:"showing",[_o]:"showing show"},n0=h.forwardRef((e,t)=>v.jsx(Ui,{...e,ref:t,transitionClasses:cC}));n0.displayName="ToastFade";const r0=h.createContext({onClose(){}}),o0=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:o,children:i,...s},l)=>{e=U(e,"toast-header");const a=h.useContext(r0),u=nt(c=>{a==null||a.onClose==null||a.onClose(c)});return v.jsxs("div",{ref:l,...s,className:F(e,o),children:[i,r&&v.jsx(pa,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});o0.displayName="ToastHeader";const i0=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=U(t,"toast-body"),v.jsx(n,{ref:o,className:F(e,t),...r})));i0.displayName="ToastBody";const s0=h.forwardRef(({bsPrefix:e,className:t,transition:n=n0,show:r=!0,animation:o=!0,delay:i=5e3,autohide:s=!1,onClose:l,onEntered:a,onExit:u,onExiting:c,onEnter:p,onEntering:f,onExited:x,bg:g,...w},E)=>{e=U(e,"toast");const m=h.useRef(i),d=h.useRef(l);h.useEffect(()=>{m.current=i,d.current=l},[i,l]);const y=ug(),k=!!(s&&r),_=h.useCallback(()=>{k&&(d.current==null||d.current())},[k]);h.useEffect(()=>{y.set(_,m.current)},[y,_]);const S=h.useMemo(()=>({onClose:l}),[l]),C=!!(n&&o),b=v.jsx("div",{...w,ref:E,className:F(e,t,g&&`bg-${g}`,!C&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return v.jsx(r0.Provider,{value:S,children:C&&n?v.jsx(n,{in:r,onEnter:p,onEntering:f,onEntered:a,onExit:u,onExiting:c,onExited:x,unmountOnExit:!0,children:b}):b})});s0.displayName="Toast";const ki=Object.assign(s0,{Body:i0,Header:o0}),fC={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},bd=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:o="div",...i},s)=>(e=U(e,"toast-container"),v.jsx(o,{ref:s,...i,className:F(e,t&&fC[t],n&&`position-${n}`,r)})));bd.displayName="ToastContainer";const dC=()=>{},Od=h.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:o,onChange:i,value:s,disabled:l,id:a,inputRef:u,...c},p)=>(e=U(e,"btn-check"),v.jsxs(v.Fragment,{children:[v.jsx("input",{className:e,name:t,type:o,value:s,ref:u,autoComplete:"off",checked:!!r,disabled:!!l,onChange:i||dC,id:a}),v.jsx(os,{...c,ref:p,className:F(n,l&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:a})]})));Od.displayName="ToggleButton";const vn=Object.create(null);vn.open="0";vn.close="1";vn.ping="2";vn.pong="3";vn.message="4";vn.upgrade="5";vn.noop="6";const rl=Object.create(null);Object.keys(vn).forEach(e=>{rl[vn[e]]=e});const qc={type:"error",data:"parser error"},l0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",a0=typeof ArrayBuffer=="function",u0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Td=({type:e,data:t},n,r)=>l0&&t instanceof Blob?n?r(t):Ih(t,r):a0&&(t instanceof ArrayBuffer||u0(t))?n?r(t):Ih(new Blob([t]),r):r(vn[e]+(t||"")),Ih=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Dh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Fu;function pC(e,t){if(l0&&e.data instanceof Blob)return e.data.arrayBuffer().then(Dh).then(t);if(a0&&(e.data instanceof ArrayBuffer||u0(e.data)))return t(Dh(e.data));Td(e,!1,n=>{Fu||(Fu=new TextEncoder),t(Fu.encode(n))})}const Fh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",li=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[o++]=(s&15)<<4|l>>2,c[o++]=(l&3)<<6|a&63;return u},mC=typeof ArrayBuffer=="function",Rd=(e,t)=>{if(typeof e!="string")return{type:"message",data:c0(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:yC(e.substring(1),t)}:rl[n]?e.length>1?{type:rl[n],data:e.substring(1)}:{type:rl[n]}:qc},yC=(e,t)=>{if(mC){const n=hC(e);return c0(n,t)}else return{base64:!0,data:e}},c0=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},f0="",vC=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{Td(i,!1,l=>{r[s]=l,++o===n&&t(r.join(f0))})})},gC=(e,t)=>{const n=e.split(f0),r=[];for(let o=0;o{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);const i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Bu;function js(e){return e.reduce((t,n)=>t+n.length,0)}function As(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;oMath.pow(2,21)-1){l.enqueue(qc);break}o=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(js(n)e){l.enqueue(qc);break}}}})}const d0=4;function je(e){if(e)return SC(e)}function SC(e){for(var t in je.prototype)e[t]=je.prototype[t];return e}je.prototype.on=je.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};je.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};je.prototype.off=je.prototype.removeListener=je.prototype.removeAllListeners=je.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const kC=$t.setTimeout,EC=$t.clearTimeout;function va(e,t){t.useNativeTimers?(e.setTimeoutFn=kC.bind($t),e.clearTimeoutFn=EC.bind($t)):(e.setTimeoutFn=$t.setTimeout.bind($t),e.clearTimeoutFn=$t.clearTimeout.bind($t))}const CC=1.33;function _C(e){return typeof e=="string"?bC(e):Math.ceil((e.byteLength||e.size)*CC)}function bC(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}function OC(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function TC(e){let t={},n=e.split("&");for(let r=0,o=n.length;r0);return t}function m0(){const e=Uh(+new Date);return e!==zh?(Bh=0,zh=e):e+"."+Uh(Bh++)}for(;Ls{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};gC(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,vC(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=m0()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new hn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class hn extends je{constructor(t,n){super(),va(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=p0(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new v0(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=hn.requestsCount++,hn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=PC,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete hn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}hn.requestsCount=0;hn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wh);else if(typeof addEventListener=="function"){const e="onpagehide"in $t?"pagehide":"unload";addEventListener(e,Wh,!1)}}function Wh(){for(let e in hn.requests)hn.requests.hasOwnProperty(e)&&hn.requests[e].abort()}const $d=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Ms=$t.WebSocket||$t.MozWebSocket,Vh=!0,LC="arraybuffer",Hh=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class MC extends Nd{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Hh?{}:p0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Vh&&!Hh?n?new Ms(t,n):new Ms(t):new Ms(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{Vh&&this.ws.send(i)}catch{}o&&$d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=m0()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!Ms}}class IC extends Nd{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=xC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=wC();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:l,value:a})=>{l||(this.onPacket(a),i())}).catch(l=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&$d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const DC={websocket:MC,webtransport:IC,polling:AC},FC=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,BC=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Xc(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=FC.exec(e||""),i={},s=14;for(;s--;)i[BC[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=zC(i,i.path),i.queryKey=UC(i,i.query),i}function zC(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function UC(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let g0=class Gr extends je{constructor(t,n={}){super(),this.binaryType=LC,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Xc(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Xc(n.host).host),va(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=TC(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=d0,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new DC[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Gr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Gr.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",p=>{if(!r)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Gr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=p=>{const f=new Error("probe error: "+p);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function l(){s("transport closed")}function a(){s("socket closed")}function u(p){n&&p.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",l),this.off("close",a),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",l),this.once("close",a),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Gr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Gr.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,w0=Object.prototype.toString,KC=typeof Blob=="function"||typeof Blob<"u"&&w0.call(Blob)==="[object BlobConstructor]",QC=typeof File=="function"||typeof File<"u"&&w0.call(File)==="[object FileConstructor]";function Pd(e){return VC&&(e instanceof ArrayBuffer||HC(e))||KC&&e instanceof Blob||QC&&e instanceof File}function ol(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let l=0;l{this.io.clearTimeoutFn(i),n.apply(this,l)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,l)=>s?o(s):r(l);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Y.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Y.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Y.EVENT:case Y.BINARY_EVENT:this.onevent(t);break;case Y.ACK:case Y.BINARY_ACK:this.onack(t);break;case Y.DISCONNECT:this.ondisconnect();break;case Y.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Y.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Y.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Mo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Mo.prototype.reset=function(){this.attempts=0};Mo.prototype.setMin=function(e){this.ms=e};Mo.prototype.setMax=function(e){this.max=e};Mo.prototype.setJitter=function(e){this.jitter=e};class ef extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,va(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Mo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||e2;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new g0(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Gt(n,"open",function(){r.onopen(),t&&t()}),i=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=Gt(n,"error",i);if(this._timeout!==!1){const l=this._timeout,a=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},l);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Gt(t,"ping",this.onping.bind(this)),Gt(t,"data",this.ondata.bind(this)),Gt(t,"error",this.onerror.bind(this)),Gt(t,"close",this.onclose.bind(this)),Gt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){$d(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new x0(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Jo={};function il(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=WC(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Jo[o]&&i in Jo[o].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let a;return l?a=new ef(r,t):(Jo[o]||(Jo[o]=new ef(r,t)),a=Jo[o]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(il,{Manager:ef,Socket:x0,io:il,connect:il});const S0=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},n2=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&S0(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},r2=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const l=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=S0(s,l)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},ai=window.location.hostname,ui=window.location.port,o2=`ws://${ai}:${ui}/`,Cn=il(o2,{path:"/ws/socket.io",transports:["websocket"]}),i2=(e,t)=>{t?Cn.emit("update_value",{access_path:e.full_access_path,value:e},t):Cn.emit("update_value",{access_path:e.full_access_path,value:e})},k0=(e,t=[],n={},r)=>{const o=n2(t),i=r2(n);Cn.emit("trigger_method",{access_path:e,args:o,kwargs:i})},E0=te.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return v.jsx(bd,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?v.jsxs(ki,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[v.jsxs(ki.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[v.jsx("strong",{className:"me-auto",children:o.levelname}),v.jsx("small",{children:o.timeStamp})]}),v.jsx(ki.Body,{children:o.message})]},o.id):null)})});E0.displayName="Notifications";const tf=te.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:l}=o();return v.jsx(bd,{position:"bottom-center",className:"toastContainer",children:v.jsx(ki,{show:t,onClose:r,delay:l,autohide:l!==void 0,bg:s,children:v.jsxs(ki.Body,{className:"d-flex justify-content-between",children:[i,v.jsx(os,{variant:"close",size:"sm",onClick:r})]})})})});tf.displayName="ConnectionToast";function C0(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function s2(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function l2(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(Gh()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=Gh(),e[t];throw new Error(`Key not found: ${t}`)}}function Qh(e,t,n=!1){const r=s2(t);try{return l2(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function a2(e,t,n){const r=C0(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let a=0;a{const{docString:t}=e;if(!t)return null;const n=v.jsx(Zg,{id:"tooltip",children:t});return v.jsx(uC,{placement:"bottom",overlay:n,children:v.jsx(Yv,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});tn.displayName="DocStringComponent";const b0=te.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:l,id:a}=e,u=h.useRef(0);h.useEffect(()=>{u.current++}),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const c=p=>{s({type:"bool",value:p,full_access_path:n,readonly:r,doc:o})};return v.jsxs("div",{className:"component buttonComponent",id:a,children:[!1,v.jsxs(Od,{id:`toggle-check-${a}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:l,disabled:r,onChange:p=>c(p.currentTarget.checked),children:[l,v.jsx(tn,{docString:o})]})]})});b0.displayName="ButtonComponent";const u2=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let l=0;s?l=Math.pow(10,o+1-n):l=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?l:-l)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},f2=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{if(e==="."&&t.includes("."))return{value:t,selectionStart:n};let o=t;return r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1}},Wl=te.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:l,addNotification:a,changeCallback:u=()=>{},displayName:c,id:p}=e,[f,x]=h.useState(null),[g,w]=h.useState(n.toString());h.useRef(0);const E=d=>{const{key:y,target:k}=d,_=k;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;d.preventDefault();const{value:S}=_,C=_.selectionEnd??0;let b=_.selectionStart??0,$=S;if(d.ctrlKey&&y==="a"){_.setSelectionRange(0,S.length);return}else if(y==="-")if(b===0&&!S.startsWith("-"))$="-"+S,b++;else if(S.startsWith("-")&&b===1)$=S.substring(1),b--;else return;else if(y>="0"&&y<="9")({value:$,selectionStart:b}=qh(y,S,b,C));else if(y==="."&&(o==="float"||o==="Quantity"))({value:$,selectionStart:b}=qh(y,S,b,C));else if(y==="ArrowUp"||y==="ArrowDown")({value:$,selectionStart:b}=u2(y,S,b));else if(y==="Backspace")({value:$,selectionStart:b}=c2(S,b,C));else if(y==="Delete")({value:$,selectionStart:b}=f2(S,b,C));else if(y==="Enter"&&!s){let T;o==="Quantity"?T={type:"Quantity",value:{magnitude:Number($),unit:l},full_access_path:t,readonly:r,doc:i}:T={type:o,value:Number($),full_access_path:t,readonly:r,doc:i},u(T);return}else return;if(s){let T;o==="Quantity"?T={type:"Quantity",value:{magnitude:Number($),unit:l},full_access_path:t,readonly:r,doc:i}:T={type:o,value:Number($),full_access_path:t,readonly:r,doc:i},u(T)}w($),x(b)},m=()=>{if(!s){let d;o==="Quantity"?d={type:"Quantity",value:{magnitude:Number(g),unit:l},full_access_path:t,readonly:r,doc:i}:d={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(d)}};return h.useEffect(()=>{const d=o==="int"?parseInt(g):parseFloat(g);n!==d&&w(n.toString());let y=`${t} changed to ${e.value}`;l===void 0?y+=".":y+=` ${l}.`,a(y)},[n]),h.useEffect(()=>{const d=document.getElementsByName(p)[0];d&&f!==null&&d.setSelectionRange(f,f)}),v.jsxs("div",{className:"component numberComponent",id:p,children:[!1,v.jsxs($n,{children:[c&&v.jsxs($n.Text,{children:[c,v.jsx(tn,{docString:i})]}),v.jsx(tt.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:p,onKeyDown:E,onBlur:m,className:s&&!r?"instantUpdate":""}),l&&v.jsx($n.Text,{children:l})]})]})});Wl.displayName="NumberComponent";const Ki={black:"#000",white:"#fff"},Wr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Vr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Kr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Zo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},d2={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Qi(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?We(Io,--pt):0,No--,$e===10&&(No=1,wa--),$e}function wt(){return $e=pt2||qi($e)>3?"":" "}function R2(e,t){for(;--t&&wt()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return as(e,sl()+(t<6&&mn()==32&&wt()==32))}function rf(e){for(;wt();)switch($e){case e:return pt;case 34:case 39:e!==34&&e!==39&&rf($e);break;case 40:e===41&&rf(e);break;case 92:wt();break}return pt}function N2(e,t){for(;wt()&&e+$e!==57;)if(e+$e===84&&mn()===47)break;return"/*"+as(t,pt-1)+"*"+ga(e===47?e:wt())}function $2(e){for(;!qi(mn());)wt();return as(e,pt)}function P2(e){return A0(al("",null,null,null,[""],e=j0(e),0,[0],e))}function al(e,t,n,r,o,i,s,l,a){for(var u=0,c=0,p=s,f=0,x=0,g=0,w=1,E=1,m=1,d=0,y="",k=o,_=i,S=r,C=y;E;)switch(g=d,d=wt()){case 40:if(g!=108&&We(C,p-1)==58){nf(C+=se(ll(d),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:C+=ll(d);break;case 9:case 10:case 13:case 32:C+=T2(g);break;case 92:C+=R2(sl()-1,7);continue;case 47:switch(mn()){case 42:case 47:Is(j2(N2(wt(),sl()),t,n),a);break;default:C+="/"}break;case 123*w:l[u++]=ln(C)*m;case 125*w:case 59:case 0:switch(d){case 0:case 125:E=0;case 59+c:m==-1&&(C=se(C,/\f/g,"")),x>0&&ln(C)-p&&Is(x>32?Xh(C+";",r,n,p-1):Xh(se(C," ","")+";",r,n,p-2),a);break;case 59:C+=";";default:if(Is(S=Yh(C,t,n,u,c,o,l,y,k=[],_=[],p),i),d===123)if(c===0)al(C,t,S,S,k,i,p,l,_);else switch(f===99&&We(C,3)===110?100:f){case 100:case 108:case 109:case 115:al(e,S,S,r&&Is(Yh(e,S,S,0,0,o,l,y,o,k=[],p),_),o,_,p,l,r?k:_);break;default:al(C,S,S,S,[""],_,0,l,_)}}u=c=x=0,w=m=1,y=C="",p=s;break;case 58:p=1+ln(C),x=g;default:if(w<1){if(d==123)--w;else if(d==125&&w++==0&&O2()==125)continue}switch(C+=ga(d),d*w){case 38:m=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(ln(C)-1)*m,m=1;break;case 64:mn()===45&&(C+=ll(wt())),f=mn(),c=p=ln(y=C+=$2(sl())),d++;break;case 45:g===45&&ln(C)==2&&(w=0)}}return i}function Yh(e,t,n,r,o,i,s,l,a,u,c){for(var p=o-1,f=o===0?i:[""],x=Md(f),g=0,w=0,E=0;g0?f[m]+" "+d:se(d,/&\f/g,f[m])))&&(a[E++]=y);return xa(e,t,n,o===0?Ad:l,a,u,c)}function j2(e,t,n){return xa(e,t,n,R0,ga(b2()),Gi(e,2,-2),0)}function Xh(e,t,n,r){return xa(e,t,n,Ld,Gi(e,0,r),Gi(e,r+1,-1),r)}function yo(e,t){for(var n="",r=Md(e),o=0;o6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Vl+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nf(e,"stretch")?L0(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,ln(e)-3-(~nf(e,"!important")&&10))){case 107:return se(e,":",":"+ie)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(We(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return ie+e+Ye+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+Ye+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+Ye+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+Ye+e+e}return e}var U2=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ld:t.return=L0(t.value,t.length);break;case N0:return yo([ei(t,{value:se(t.value,"@","@"+ie)})],o);case Ad:if(t.length)return _2(t.props,function(i){switch(C2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yo([ei(t,{props:[se(i,/:(read-\w+)/,":"+Vl+"$1")]})],o);case"::placeholder":return yo([ei(t,{props:[se(i,/:(plac\w+)/,":"+ie+"input-$1")]}),ei(t,{props:[se(i,/:(plac\w+)/,":"+Vl+"$1")]}),ei(t,{props:[se(i,/:(plac\w+)/,Ye+"input-$1")]})],o)}return""})}},W2=[U2],M0=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var E=w.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var o=t.stylisPlugins||W2,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var E=w.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var t_={animationIterationCount:1,aspectRatio: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},n_=/[A-Z]|^ms/g,r_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,W0=function(t){return t.charCodeAt(1)===45},Zh=function(t){return t!=null&&typeof t!="boolean"},zu=T0(function(e){return W0(e)?e:e.replace(n_,"-$&").toLowerCase()}),em=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(r_,function(r,o,i){return an={name:o,styles:i,next:an},o})}return t_[t]!==1&&!W0(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yi(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return an={name:n.name,styles:n.styles,next:an},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)an={name:r.name,styles:r.styles,next:an},r=r.next;var o=n.styles+";";return o}return o_(e,t,n)}case"function":{if(e!==void 0){var i=an,s=n(e);return an=i,Yi(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function o_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?c_:f_},im=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},d_=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return z0(n,r,o),s_(function(){return U0(n,r,o)}),null},p_=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var l=im(t,n,r),a=l||om(o),u=!a("as");return function(){var c=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)p.push.apply(p,c);else{p.push(c[0][0]);for(var f=c.length,x=1;xt(y_(o)?n:o):t;return v.jsx(a_,{styles:r})}function g_(e,t){return of(e,t)}const w_=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},x_=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:v_,StyledEngineProvider:m_,ThemeContext:$a,css:G0,default:g_,internal_processStyles:w_,keyframes:u_},Symbol.toStringTag,{value:"Module"}));function qn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function q0(e){if(!qn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=q0(e[n])}),t}function yn(e,t,n={clone:!0}){const r=n.clone?A({},e):e;return qn(e)&&qn(t)&&Object.keys(t).forEach(o=>{qn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&qn(e[o])?r[o]=yn(e[o],t[o],n):n.clone?r[o]=qn(t[o])?q0(t[o]):t[o]:r[o]=t[o]}),r}const S_=Object.freeze(Object.defineProperty({__proto__:null,default:yn,isPlainObject:qn},Symbol.toStringTag,{value:"Module"})),k_=["values","unit","step"],E_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>A({},n,{[r.key]:r.val}),{})};function Y0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=en(e,k_),i=E_(t),s=Object.keys(i);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,x){const g=s.indexOf(x);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:x)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${zd[e]}px)`};function Dn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||sm;return t.reduce((s,l,a)=>(s[i.up(i.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const i=r.breakpoints||sm;return Object.keys(t).reduce((s,l)=>{if(Object.keys(i.values||zd).indexOf(l)!==-1){const a=i.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function __(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function b_(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Yt(e){if(typeof e!="string")throw new Error(Qi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const O_=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));function Pa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Hl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Pa(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,u=Pa(a,r)||{};return Dn(s,l,p=>{let f=Hl(u,o,p);return p===f&&typeof p=="string"&&(f=Hl(u,o,`${t}${p==="default"?"":Yt(p)}`,p)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function T_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const R_={m:"margin",p:"padding"},N_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$_=T_(e=>{if(e.length>2)if(lm[e])e=lm[e];else return[e];const[t,n]=e.split(""),r=R_[t],o=N_[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ud=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ud,...Wd];function us(e,t,n,r){var o;const i=(o=Pa(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function X0(e){return us(e,"spacing",8)}function cs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function P_(e,t){return n=>e.reduce((r,o)=>(r[o]=cs(t,n),r),{})}function j_(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=$_(n),i=P_(o,r),s=e[n];return Dn(e,s,i)}function J0(e,t){const n=X0(e.theme);return Object.keys(e).map(r=>j_(e,t,r,n)).reduce(Ei,{})}function Ce(e){return J0(e,Ud)}Ce.propTypes={};Ce.filterProps=Ud;function _e(e){return J0(e,Wd)}_e.propTypes={};_e.filterProps=Wd;function A_(e=8){if(e.mui)return e;const t=X0({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function ja(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ei(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Pt(e){return typeof e!="number"?e:`${e}px solid`}function zt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const L_=zt("border",Pt),M_=zt("borderTop",Pt),I_=zt("borderRight",Pt),D_=zt("borderBottom",Pt),F_=zt("borderLeft",Pt),B_=zt("borderColor"),z_=zt("borderTopColor"),U_=zt("borderRightColor"),W_=zt("borderBottomColor"),V_=zt("borderLeftColor"),H_=zt("outline",Pt),K_=zt("outlineColor"),Aa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=us(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:cs(t,r)});return Dn(e,e.borderRadius,n)}return null};Aa.propTypes={};Aa.filterProps=["borderRadius"];ja(L_,M_,I_,D_,F_,B_,z_,U_,W_,V_,Aa,H_,K_);const La=e=>{if(e.gap!==void 0&&e.gap!==null){const t=us(e.theme,"spacing",8),n=r=>({gap:cs(t,r)});return Dn(e,e.gap,n)}return null};La.propTypes={};La.filterProps=["gap"];const Ma=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=us(e.theme,"spacing",8),n=r=>({columnGap:cs(t,r)});return Dn(e,e.columnGap,n)}return null};Ma.propTypes={};Ma.filterProps=["columnGap"];const Ia=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=us(e.theme,"spacing",8),n=r=>({rowGap:cs(t,r)});return Dn(e,e.rowGap,n)}return null};Ia.propTypes={};Ia.filterProps=["rowGap"];const Q_=Te({prop:"gridColumn"}),G_=Te({prop:"gridRow"}),q_=Te({prop:"gridAutoFlow"}),Y_=Te({prop:"gridAutoColumns"}),X_=Te({prop:"gridAutoRows"}),J_=Te({prop:"gridTemplateColumns"}),Z_=Te({prop:"gridTemplateRows"}),eb=Te({prop:"gridTemplateAreas"}),tb=Te({prop:"gridArea"});ja(La,Ma,Ia,Q_,G_,q_,Y_,X_,J_,Z_,eb,tb);function vo(e,t){return t==="grey"?t:e}const nb=Te({prop:"color",themeKey:"palette",transform:vo}),rb=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vo}),ob=Te({prop:"backgroundColor",themeKey:"palette",transform:vo});ja(nb,rb,ob);function yt(e){return e<=1&&e!==0?`${e*100}%`:e}const ib=Te({prop:"width",transform:yt}),Vd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||zd[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:yt(n)}};return Dn(e,e.maxWidth,t)}return null};Vd.filterProps=["maxWidth"];const sb=Te({prop:"minWidth",transform:yt}),lb=Te({prop:"height",transform:yt}),ab=Te({prop:"maxHeight",transform:yt}),ub=Te({prop:"minHeight",transform:yt});Te({prop:"size",cssProperty:"width",transform:yt});Te({prop:"size",cssProperty:"height",transform:yt});const cb=Te({prop:"boxSizing"});ja(ib,Vd,sb,lb,ab,ub,cb);const fb={border:{themeKey:"borders",transform:Pt},borderTop:{themeKey:"borders",transform:Pt},borderRight:{themeKey:"borders",transform:Pt},borderBottom:{themeKey:"borders",transform:Pt},borderLeft:{themeKey:"borders",transform:Pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Aa},color:{themeKey:"palette",transform:vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vo},backgroundColor:{themeKey:"palette",transform:vo},p:{style:_e},pt:{style:_e},pr:{style:_e},pb:{style:_e},pl:{style:_e},px:{style:_e},py:{style:_e},padding:{style:_e},paddingTop:{style:_e},paddingRight:{style:_e},paddingBottom:{style:_e},paddingLeft:{style:_e},paddingX:{style:_e},paddingY:{style:_e},paddingInline:{style:_e},paddingInlineStart:{style:_e},paddingInlineEnd:{style:_e},paddingBlock:{style:_e},paddingBlockStart:{style:_e},paddingBlockEnd:{style:_e},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:La},rowGap:{style:Ia},columnGap:{style:Ma},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yt},maxWidth:{style:Vd},minWidth:{transform:yt},height:{transform:yt},maxHeight:{transform:yt},minHeight:{transform:yt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},fs=fb;function db(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pb(e,t){return typeof e=="function"?e(t):e}function Z0(){function e(n,r,o,i){const s={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:u,transform:c,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Pa(o,u)||{};return p?p(s):Dn(s,r,g=>{let w=Hl(f,c,g);return g===w&&typeof g=="string"&&(w=Hl(f,c,`${n}${g==="default"?"":Yt(g)}`,g)),a===!1?w:{[a]:w}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:fs;function l(a){let u=a;if(typeof a=="function")u=a(i);else if(typeof a!="object")return a;if(!u)return null;const c=__(i.breakpoints),p=Object.keys(c);let f=c;return Object.keys(u).forEach(x=>{const g=pb(u[x],i);if(g!=null)if(typeof g=="object")if(s[x])f=Ei(f,e(x,g,i,s));else{const w=Dn({theme:i},g,E=>({[x]:E}));db(w,g)?f[x]=t({sx:g,theme:i}):f=Ei(f,w)}else f=Ei(f,e(x,g,i,s))}),b_(p,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const e1=Z0();e1.filterProps=["sx"];const Hd=e1;function t1(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const hb=["breakpoints","palette","spacing","shape"];function Kd(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=en(e,hb),l=Y0(n),a=A_(o);let u=yn({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},r),spacing:a,shape:A({},C_,i)},s);return u.applyStyles=t1,u=t.reduce((c,p)=>yn(c,p),u),u.unstable_sxConfig=A({},fs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(p){return Hd({sx:p,theme:this})},u}const mb=Object.freeze(Object.defineProperty({__proto__:null,default:Kd,private_createBreakpoints:Y0,unstable_applyStyles:t1},Symbol.toStringTag,{value:"Module"}));function yb(e){return Object.keys(e).length===0}function vb(e=null){const t=h.useContext($a);return!t||yb(t)?e:t}const gb=Kd();function wb(e=gb){return vb(e)}const xb=["sx"],Sb=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:fs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function kb(e){const{sx:t}=e,n=en(e,xb),{systemProps:r,otherProps:o}=Sb(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return qn(l)?A({},r,l):r}:i=A({},r,t),A({},o,{sx:i})}const Eb=Object.freeze(Object.defineProperty({__proto__:null,default:Hd,extendSxProp:kb,unstable_createStyleFunctionSx:Z0,unstable_defaultSxConfig:fs},Symbol.toStringTag,{value:"Module"})),am=e=>e,Cb=()=>{let e=am;return{configure(t){e=t},generate(t){return e(t)},reset(){e=am}}},_b=Cb();function n1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=r1(e,o,n)}),r}var o1={exports:{}},ce={};/** - * @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. - */var Qd=Symbol.for("react.element"),Gd=Symbol.for("react.portal"),Da=Symbol.for("react.fragment"),Fa=Symbol.for("react.strict_mode"),Ba=Symbol.for("react.profiler"),za=Symbol.for("react.provider"),Ua=Symbol.for("react.context"),Tb=Symbol.for("react.server_context"),Wa=Symbol.for("react.forward_ref"),Va=Symbol.for("react.suspense"),Ha=Symbol.for("react.suspense_list"),Ka=Symbol.for("react.memo"),Qa=Symbol.for("react.lazy"),Rb=Symbol.for("react.offscreen"),i1;i1=Symbol.for("react.module.reference");function Ut(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qd:switch(e=e.type,e){case Da:case Ba:case Fa:case Va:case Ha:return e;default:switch(e=e&&e.$$typeof,e){case Tb:case Ua:case Wa:case Qa:case Ka:case za:return e;default:return t}}case Gd:return t}}}ce.ContextConsumer=Ua;ce.ContextProvider=za;ce.Element=Qd;ce.ForwardRef=Wa;ce.Fragment=Da;ce.Lazy=Qa;ce.Memo=Ka;ce.Portal=Gd;ce.Profiler=Ba;ce.StrictMode=Fa;ce.Suspense=Va;ce.SuspenseList=Ha;ce.isAsyncMode=function(){return!1};ce.isConcurrentMode=function(){return!1};ce.isContextConsumer=function(e){return Ut(e)===Ua};ce.isContextProvider=function(e){return Ut(e)===za};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qd};ce.isForwardRef=function(e){return Ut(e)===Wa};ce.isFragment=function(e){return Ut(e)===Da};ce.isLazy=function(e){return Ut(e)===Qa};ce.isMemo=function(e){return Ut(e)===Ka};ce.isPortal=function(e){return Ut(e)===Gd};ce.isProfiler=function(e){return Ut(e)===Ba};ce.isStrictMode=function(e){return Ut(e)===Fa};ce.isSuspense=function(e){return Ut(e)===Va};ce.isSuspenseList=function(e){return Ut(e)===Ha};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Da||e===Ba||e===Fa||e===Va||e===Ha||e===Rb||typeof e=="object"&&e!==null&&(e.$$typeof===Qa||e.$$typeof===Ka||e.$$typeof===za||e.$$typeof===Ua||e.$$typeof===Wa||e.$$typeof===i1||e.getModuleId!==void 0)};ce.typeOf=Ut;o1.exports=ce;var um=o1.exports;const Nb=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function s1(e){const t=`${e}`.match(Nb);return t&&t[1]||""}function l1(e,t=""){return e.displayName||e.name||s1(e)||t}function cm(e,t,n){const r=l1(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function $b(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return l1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case um.ForwardRef:return cm(e,e.render,"ForwardRef");case um.Memo:return cm(e,e.type,"memo");default:return}}}const Pb=Object.freeze(Object.defineProperty({__proto__:null,default:$b,getFunctionName:s1},Symbol.toStringTag,{value:"Module"}));function a1(e,t){const n=A({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=A({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=A({},i),Object.keys(o).forEach(s=>{n[r][s]=a1(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function jb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:a1(t.components[n].defaultProps,r)}function Ab({props:e,name:t,defaultTheme:n,themeId:r}){let o=wb(n);return r&&(o=o[r]||o),jb({theme:o,name:t,props:e})}const u1=typeof window<"u"?h.useLayoutEffect:h.useEffect;function qr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Lb=Object.freeze(Object.defineProperty({__proto__:null,default:qr},Symbol.toStringTag,{value:"Module"}));function ul(e){return e&&e.ownerDocument||document}function Mb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ib({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),l=o?e:i,a=h.useCallback(u=>{o||s(u)},[]);return[l,a]}function Wu(e){const t=h.useRef(e);return u1(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function lf(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Mb(n,t)})},e)}class qd{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new qd}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let Ga=!0,af=!1;const Db=new qd,Fb={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Bb(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Fb[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function zb(e){e.metaKey||e.altKey||e.ctrlKey||(Ga=!0)}function Vu(){Ga=!1}function Ub(){this.visibilityState==="hidden"&&af&&(Ga=!0)}function Wb(e){e.addEventListener("keydown",zb,!0),e.addEventListener("mousedown",Vu,!0),e.addEventListener("pointerdown",Vu,!0),e.addEventListener("touchstart",Vu,!0),e.addEventListener("visibilitychange",Ub,!0)}function Vb(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ga||Bb(t)}function Hb(){const e=h.useCallback(o=>{o!=null&&Wb(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(af=!0,Db.start(100,()=>{af=!1}),t.current=!1,!0):!1}function r(o){return Vb(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Kb={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Qb(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const l=t(s);l!==""&&i.push(l),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const Gb=h.createContext(),qb=()=>{const e=h.useContext(Gb);return e??!1};function Yb(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},c1={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c1);var f1=c1.exports;const Xb=cr(p2),Jb=cr(Lb);var d1=f1;Object.defineProperty(Re,"__esModule",{value:!0});var fm=Re.alpha=y1;Re.blend=uO;Re.colorChannel=void 0;var uf=Re.darken=Xd;Re.decomposeColor=Bt;Re.emphasize=v1;var Zb=Re.getContrastRatio=oO;Re.getLuminance=Kl;Re.hexToRgb=p1;Re.hslToRgb=m1;var cf=Re.lighten=Jd;Re.private_safeAlpha=iO;Re.private_safeColorChannel=void 0;Re.private_safeDarken=sO;Re.private_safeEmphasize=aO;Re.private_safeLighten=lO;Re.recomposeColor=Do;Re.rgbToHex=rO;var dm=d1(Xb),eO=d1(Jb);function Yd(e,t=0,n=1){return(0,eO.default)(e,t,n)}function p1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function tO(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Bt(e){if(e.type)return e;if(e.charAt(0)==="#")return Bt(p1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,dm.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,dm.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const h1=e=>{const t=Bt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=h1;const nO=(e,t)=>{try{return h1(e)}catch{return e}};Re.private_safeColorChannel=nO;function Do(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function rO(e){if(e.indexOf("#")===0)return e;const{values:t}=Bt(e);return`#${t.map((n,r)=>tO(r===3?Math.round(255*n):n)).join("")}`}function m1(e){e=Bt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),Do({type:l,values:a})}function Kl(e){e=Bt(e);let t=e.type==="hsl"||e.type==="hsla"?Bt(m1(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oO(e,t){const n=Kl(e),r=Kl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function y1(e,t){return e=Bt(e),t=Yd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Do(e)}function iO(e,t,n){try{return y1(e,t)}catch{return e}}function Xd(e,t){if(e=Bt(e),t=Yd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Do(e)}function sO(e,t,n){try{return Xd(e,t)}catch{return e}}function Jd(e,t){if(e=Bt(e),t=Yd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Do(e)}function lO(e,t,n){try{return Jd(e,t)}catch{return e}}function v1(e,t=.15){return Kl(e)>.5?Xd(e,t):Jd(e,t)}function aO(e,t,n){try{return v1(e,t)}catch{return e}}function uO(e,t,n,r=1){const o=(a,u)=>Math.round((a**(1/r)*(1-n)+u**(1/r)*n)**r),i=Bt(e),s=Bt(t),l=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Do({type:"rgb",values:l})}const cO=["mode","contrastThreshold","tonalOffset"],pm={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ki.white,default:Ki.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hu={text:{primary:Ki.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ki.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function hm(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=cf(e.main,o):t==="dark"&&(e.dark=uf(e.main,i)))}function fO(e="light"){return e==="dark"?{main:Hr[200],light:Hr[50],dark:Hr[400]}:{main:Hr[700],light:Hr[400],dark:Hr[800]}}function dO(e="light"){return e==="dark"?{main:Vr[200],light:Vr[50],dark:Vr[400]}:{main:Vr[500],light:Vr[300],dark:Vr[700]}}function pO(e="light"){return e==="dark"?{main:Wr[500],light:Wr[300],dark:Wr[700]}:{main:Wr[700],light:Wr[400],dark:Wr[800]}}function hO(e="light"){return e==="dark"?{main:Kr[400],light:Kr[300],dark:Kr[700]}:{main:Kr[700],light:Kr[500],dark:Kr[900]}}function mO(e="light"){return e==="dark"?{main:Qr[400],light:Qr[300],dark:Qr[700]}:{main:Qr[800],light:Qr[500],dark:Qr[900]}}function yO(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:"#ed6c02",light:Zo[500],dark:Zo[900]}}function vO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=en(e,cO),i=e.primary||fO(t),s=e.secondary||dO(t),l=e.error||pO(t),a=e.info||hO(t),u=e.success||mO(t),c=e.warning||yO(t);function p(w){return Zb(w,Hu.text.primary)>=n?Hu.text.primary:pm.text.primary}const f=({color:w,name:E,mainShade:m=500,lightShade:d=300,darkShade:y=700})=>{if(w=A({},w),!w.main&&w[m]&&(w.main=w[m]),!w.hasOwnProperty("main"))throw new Error(Qi(11,E?` (${E})`:"",m));if(typeof w.main!="string")throw new Error(Qi(12,E?` (${E})`:"",JSON.stringify(w.main)));return hm(w,"light",d,r),hm(w,"dark",y,r),w.contrastText||(w.contrastText=p(w.main)),w},x={dark:Hu,light:pm};return yn(A({common:A({},Ki),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:u,name:"success"}),grey:d2,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r},x[t]),o)}const gO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function wO(e){return Math.round(e*1e5)/1e5}const mm={textTransform:"uppercase"},ym='"Roboto", "Helvetica", "Arial", sans-serif';function xO(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ym,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:p}=n,f=en(n,gO),x=o/14,g=p||(m=>`${m/u*x}rem`),w=(m,d,y,k,_)=>A({fontFamily:r,fontWeight:m,fontSize:g(d),lineHeight:y},r===ym?{letterSpacing:`${wO(k/d)}em`}:{},_,c),E={h1:w(i,96,1.167,-1.5),h2:w(i,60,1.2,-.5),h3:w(s,48,1.167,0),h4:w(s,34,1.235,.25),h5:w(s,24,1.334,0),h6:w(l,20,1.6,.15),subtitle1:w(s,16,1.75,.15),subtitle2:w(l,14,1.57,.1),body1:w(s,16,1.5,.15),body2:w(s,14,1.43,.15),button:w(l,14,1.75,.4,mm),caption:w(s,12,1.66,.4),overline:w(s,12,2.66,1,mm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yn(A({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},E),f,{clone:!1})}const SO=.2,kO=.14,EO=.12;function we(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${SO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${kO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${EO})`].join(",")}const CO=["none",we(0,2,1,-1,0,1,1,0,0,1,3,0),we(0,3,1,-2,0,2,2,0,0,1,5,0),we(0,3,3,-2,0,3,4,0,0,1,8,0),we(0,2,4,-1,0,4,5,0,0,1,10,0),we(0,3,5,-1,0,5,8,0,0,1,14,0),we(0,3,5,-1,0,6,10,0,0,1,18,0),we(0,4,5,-2,0,7,10,1,0,2,16,1),we(0,5,5,-3,0,8,10,1,0,3,14,2),we(0,5,6,-3,0,9,12,1,0,3,16,2),we(0,6,6,-3,0,10,14,1,0,4,18,3),we(0,6,7,-4,0,11,15,1,0,4,20,3),we(0,7,8,-4,0,12,17,2,0,5,22,4),we(0,7,8,-4,0,13,19,2,0,5,24,4),we(0,7,9,-4,0,14,21,2,0,5,26,4),we(0,8,9,-5,0,15,22,2,0,6,28,5),we(0,8,10,-5,0,16,24,2,0,6,30,5),we(0,8,11,-5,0,17,26,2,0,6,32,5),we(0,9,11,-5,0,18,28,2,0,7,34,6),we(0,9,12,-6,0,19,29,2,0,7,36,6),we(0,10,13,-6,0,20,31,3,0,8,38,7),we(0,10,13,-6,0,21,33,3,0,8,40,7),we(0,10,14,-6,0,22,35,3,0,8,42,7),we(0,11,14,-7,0,23,36,3,0,9,44,8),we(0,11,15,-7,0,24,38,3,0,9,46,8)],_O=["duration","easing","delay"],bO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},OO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vm(e){return`${Math.round(e)}ms`}function TO(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function RO(e){const t=A({},bO,e.easing),n=A({},OO,e.duration);return A({getAutoHeightDuration:TO,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=i;return en(i,_O),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:vm(s)} ${l} ${typeof a=="string"?a:vm(a)}`).join(",")}},e,{easing:t,duration:n})}const NO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$O=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function PO(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=en(e,$O);if(e.vars)throw new Error(Qi(18));const l=vO(r),a=Kd(e);let u=yn(a,{mixins:Yb(a.breakpoints,n),palette:l,shadows:CO.slice(),typography:xO(l,i),transitions:RO(o),zIndex:A({},NO)});return u=yn(u,s),u=t.reduce((c,p)=>yn(c,p),u),u.unstable_sxConfig=A({},fs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(p){return Hd({sx:p,theme:this})},u}const g1=PO();function jO({props:e,name:t}){return Ab({props:e,name:t,defaultTheme:g1,themeId:O0})}var ds={},Ku={exports:{}},gm;function AO(){return gm||(gm=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ku)),Ku.exports}const LO=cr(x_),MO=cr(S_),IO=cr(O_),DO=cr(Pb),FO=cr(mb),BO=cr(Eb);var Fo=f1;Object.defineProperty(ds,"__esModule",{value:!0});var zO=ds.default=eT;ds.shouldForwardProp=cl;ds.systemDefaultTheme=void 0;var Ot=Fo(Q0()),ff=Fo(AO()),wm=GO(LO),UO=MO;Fo(IO);Fo(DO);var WO=Fo(FO),VO=Fo(BO);const HO=["ownerState"],KO=["variants"],QO=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function w1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(w1=function(r){return r?n:t})(e)}function GO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=w1(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function qO(e){return Object.keys(e).length===0}function YO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const XO=ds.systemDefaultTheme=(0,WO.default)(),JO=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ds({defaultTheme:e,theme:t,themeId:n}){return qO(t)?e:t[n]||t}function ZO(e){return e?(t,n)=>n[e]:null}function fl(e,t){let{ownerState:n}=t,r=(0,ff.default)(t,HO);const o=typeof e=="function"?e((0,Ot.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>fl(i,(0,Ot.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let l=(0,ff.default)(o,KO);return i.forEach(a=>{let u=!0;typeof a.props=="function"?u=a.props((0,Ot.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(c=>{(n==null?void 0:n[c])!==a.props[c]&&r[c]!==a.props[c]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Ot.default)({ownerState:n},r,n)):a.style))}),l}return o}function eT(e={}){const{themeId:t,defaultTheme:n=XO,rootShouldForwardProp:r=cl,slotShouldForwardProp:o=cl}=e,i=s=>(0,VO.default)((0,Ot.default)({},s,{theme:Ds((0,Ot.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,l={})=>{(0,wm.internal_processStyles)(s,_=>_.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:a,slot:u,skipVariantsResolver:c,skipSx:p,overridesResolver:f=ZO(JO(u))}=l,x=(0,ff.default)(l,QO),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,w=p||!1;let E,m=cl;u==="Root"||u==="root"?m=r:u?m=o:YO(s)&&(m=void 0);const d=(0,wm.default)(s,(0,Ot.default)({shouldForwardProp:m,label:E},x)),y=_=>typeof _=="function"&&_.__emotion_real!==_||(0,UO.isPlainObject)(_)?S=>fl(_,(0,Ot.default)({},S,{theme:Ds({theme:S.theme,defaultTheme:n,themeId:t})})):_,k=(_,...S)=>{let C=y(_);const b=S?S.map(y):[];a&&f&&b.push(P=>{const D=Ds((0,Ot.default)({},P,{defaultTheme:n,themeId:t}));if(!D.components||!D.components[a]||!D.components[a].styleOverrides)return null;const M=D.components[a].styleOverrides,H={};return Object.entries(M).forEach(([W,X])=>{H[W]=fl(X,(0,Ot.default)({},P,{theme:D}))}),f(P,H)}),a&&!g&&b.push(P=>{var D;const M=Ds((0,Ot.default)({},P,{defaultTheme:n,themeId:t})),H=M==null||(D=M.components)==null||(D=D[a])==null?void 0:D.variants;return fl({variants:H},(0,Ot.default)({},P,{theme:M}))}),w||b.push(i);const $=b.length-S.length;if(Array.isArray(_)&&$>0){const P=new Array($).fill("");C=[..._,...P],C.raw=[..._.raw,...P]}const T=d(C,...b);return s.muiName&&(T.muiName=s.muiName),T};return d.withConfig&&(k.withConfig=d.withConfig),k}}function Zd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const tT=e=>Zd(e)&&e!=="classes",Ar=zO({themeId:O0,defaultTheme:g1,rootShouldForwardProp:tT});function nT(e){return jO}function Ci(e){return typeof e=="string"}function rT(e,t,n){return e===void 0||Ci(e)?t:A({},t,{ownerState:A({},t.ownerState,n)})}function oT(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function dl(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function iT(e,t,n){return typeof e=="function"?e(t,n):e}function xm(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function sT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=A({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),w=A({},n,o,r);return x.length>0&&(w.className=x),Object.keys(g).length>0&&(w.style=g),{props:w,internalRef:void 0}}const s=dl(A({},o,r)),l=xm(r),a=xm(o),u=t(s),c=sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p=A({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=A({},u,n,a,l);return c.length>0&&(f.className=c),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}}const lT=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=en(e,lT),l=i?{}:iT(r,o),{props:a,internalRef:u}=sT(A({},s,{externalSlotProps:l})),c=lf(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return rT(n,A({},a,{ref:c}),o)}const aT=2;function x1(e,t){return e-t}function Sm(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const l=Math.abs(t-i);return o===null||l({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},pT=e=>e;let Us;function Em(){return Us===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Us=CSS.supports("touch-action","none"):Us=!0),Us}function hT(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:a=0,name:u,onChange:c,onChangeCommitted:p,orientation:f="horizontal",rootRef:x,scale:g=pT,step:w=1,shiftStep:E=10,tabIndex:m,value:d}=e,y=h.useRef(),[k,_]=h.useState(-1),[S,C]=h.useState(-1),[b,$]=h.useState(!1),T=h.useRef(0),[P,D]=Ib({controlled:d,default:n??a,name:"Slider"}),M=c&&((N,j,B)=>{const re=N.nativeEvent||N,oe=new re.constructor(re.type,re);Object.defineProperty(oe,"target",{writable:!0,value:{value:j,name:u}}),c(oe,j,B)}),H=Array.isArray(P);let W=H?P.slice().sort(x1):[P];W=W.map(N=>N==null?a:qr(N,a,l));const X=s===!0&&w!==null?[...Array(Math.floor((l-a)/w)+1)].map((N,j)=>({value:a+w*j})):s||[],K=X.map(N=>N.value),{isFocusVisibleRef:O,onBlur:I,onFocus:z,ref:G}=Hb(),[J,ye]=h.useState(-1),q=h.useRef(),ne=lf(G,q),ve=lf(x,ne),Me=N=>j=>{var B;const re=Number(j.currentTarget.getAttribute("data-index"));z(j),O.current===!0&&ye(re),C(re),N==null||(B=N.onFocus)==null||B.call(N,j)},Ke=N=>j=>{var B;I(j),O.current===!1&&ye(-1),C(-1),N==null||(B=N.onBlur)==null||B.call(N,j)},_t=(N,j)=>{const B=Number(N.currentTarget.getAttribute("data-index")),re=W[B],oe=K.indexOf(re);let Z=j;if(X&&w==null){const Vt=K[K.length-1];Z>Vt?Z=Vt:Zj=>{var B;if(w!==null){const re=Number(j.currentTarget.getAttribute("data-index")),oe=W[re];let Z=null;(j.key==="ArrowLeft"||j.key==="ArrowDown")&&j.shiftKey||j.key==="PageDown"?Z=Math.max(oe-E,a):((j.key==="ArrowRight"||j.key==="ArrowUp")&&j.shiftKey||j.key==="PageUp")&&(Z=Math.min(oe+E,l)),Z!==null&&(_t(j,Z),j.preventDefault())}N==null||(B=N.onKeyDown)==null||B.call(N,j)};u1(()=>{if(r&&q.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&k!==-1&&_(-1),r&&J!==-1&&ye(-1);const wn=N=>j=>{var B;(B=N.onChange)==null||B.call(N,j),_t(j,j.target.valueAsNumber)},xn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const fe=({finger:N,move:j=!1})=>{const{current:B}=q,{width:re,height:oe,bottom:Z,left:Vt}=B.getBoundingClientRect();let nn;Qe.indexOf("vertical")===0?nn=(Z-N.y)/oe:nn=(N.x-Vt)/re,Qe.indexOf("-reverse")!==-1&&(nn=1-nn);let le;if(le=uT(nn,a,l),w)le=fT(le,w,a);else{const Dr=Sm(K,le);le=K[Dr]}le=qr(le,a,l);let bt=0;if(H){j?bt=xn.current:bt=Sm(W,le),o&&(le=qr(le,W[bt-1]||-1/0,W[bt+1]||1/0));const Dr=le;le=km({values:W,newValue:le,index:bt}),o&&j||(bt=le.indexOf(Dr),xn.current=bt)}return{newValue:le,activeIndex:bt}},V=Wu(N=>{const j=Fs(N,y);if(!j)return;if(T.current+=1,N.type==="mousemove"&&N.buttons===0){Be(N);return}const{newValue:B,activeIndex:re}=fe({finger:j,move:!0});Bs({sliderRef:q,activeIndex:re,setActive:_}),D(B),!b&&T.current>aT&&$(!0),M&&!zs(B,P)&&M(N,B,re)}),Be=Wu(N=>{const j=Fs(N,y);if($(!1),!j)return;const{newValue:B}=fe({finger:j,move:!0});_(-1),N.type==="touchend"&&C(-1),p&&p(N,B),y.current=void 0,ht()}),Ze=Wu(N=>{if(r)return;Em()||N.preventDefault();const j=N.changedTouches[0];j!=null&&(y.current=j.identifier);const B=Fs(N,y);if(B!==!1){const{newValue:oe,activeIndex:Z}=fe({finger:B});Bs({sliderRef:q,activeIndex:Z,setActive:_}),D(oe),M&&!zs(oe,P)&&M(N,oe,Z)}T.current=0;const re=ul(q.current);re.addEventListener("touchmove",V,{passive:!0}),re.addEventListener("touchend",Be,{passive:!0})}),ht=h.useCallback(()=>{const N=ul(q.current);N.removeEventListener("mousemove",V),N.removeEventListener("mouseup",Be),N.removeEventListener("touchmove",V),N.removeEventListener("touchend",Be)},[Be,V]);h.useEffect(()=>{const{current:N}=q;return N.addEventListener("touchstart",Ze,{passive:Em()}),()=>{N.removeEventListener("touchstart",Ze),ht()}},[ht,Ze]),h.useEffect(()=>{r&&ht()},[r,ht]);const Bo=N=>j=>{var B;if((B=N.onMouseDown)==null||B.call(N,j),r||j.defaultPrevented||j.button!==0)return;j.preventDefault();const re=Fs(j,y);if(re!==!1){const{newValue:Z,activeIndex:Vt}=fe({finger:re});Bs({sliderRef:q,activeIndex:Vt,setActive:_}),D(Z),M&&!zs(Z,P)&&M(j,Z,Vt)}T.current=0;const oe=ul(q.current);oe.addEventListener("mousemove",V,{passive:!0}),oe.addEventListener("mouseup",Be)},ge=Ql(H?W[0]:a,a,l),Wt=Ql(W[W.length-1],a,l)-ge,Lr=(N={})=>{const j=dl(N),B={onMouseDown:Bo(j||{})},re=A({},j,B);return A({},N,{ref:ve},re)},Mr=N=>j=>{var B;(B=N.onMouseOver)==null||B.call(N,j);const re=Number(j.currentTarget.getAttribute("data-index"));C(re)},mr=N=>j=>{var B;(B=N.onMouseLeave)==null||B.call(N,j),C(-1)};return{active:k,axis:Qe,axisProps:dT,dragging:b,focusedThumbIndex:J,getHiddenInputProps:(N={})=>{var j;const B=dl(N),re={onChange:wn(B||{}),onFocus:Me(B||{}),onBlur:Ke(B||{}),onKeyDown:gn(B||{})},oe=A({},B,re);return A({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(l),"aria-valuemin":g(a),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(j=e.step)!=null?j:void 0,disabled:r},N,oe,{style:A({},Kb,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Lr,getThumbProps:(N={})=>{const j=dl(N),B={onMouseOver:Mr(j||{}),onMouseLeave:mr(j||{})};return A({},N,j,B)},marks:X,open:S,range:H,rootRef:ve,trackLeap:Wt,trackOffset:ge,values:W,getThumbStyle:N=>({pointerEvents:k!==-1&&k!==N?"none":void 0})}}const mT=e=>!e||!Ci(e);function yT(e){return r1("MuiSlider",e)}const At=Ob("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),vT=e=>{const{open:t}=e;return{offset:sr(t&&At.valueLabelOpen),circle:At.valueLabelCircle,label:At.valueLabelLabel}};function gT(e){const{children:t,className:n,value:r}=e,o=vT(e);return t?h.cloneElement(t,{className:sr(t.props.className)},v.jsxs(h.Fragment,{children:[t.props.children,v.jsx("span",{className:sr(o.offset,n),"aria-hidden":!0,children:v.jsx("span",{className:o.circle,children:v.jsx("span",{className:o.label,children:r})})})]})):null}const wT=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],xT=nT();function Cm(e){return e}const ST=Ar("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Yt(n.color)}`],n.size!=="medium"&&t[`size${Yt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${At.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${At.dragging}`]:{[`& .${At.thumb}, & .${At.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),kT=Ar("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ET=Ar("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:A({backgroundColor:cf(e.palette[n].main,.62),borderColor:cf(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:uf(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:uf(e.palette[n].main,.5)})))}))]}}),CT=Ar("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Yt(n.color)}`],n.size!=="medium"&&t[`thumbSize${Yt(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${At.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${At.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${fm(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${At.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${fm(e.palette[n].main,.16)}`})}}))]}}),_T=Ar(gT,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${At.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${At.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),bT=Ar("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zd(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),OT=Ar("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zd(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),TT=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:l,size:a}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${Yt(l)}`,a&&`size${Yt(a)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",a&&`thumbSize${Yt(a)}`,l&&`thumbColor${Yt(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Qb(u,yT,s)},RT=({children:e})=>e,NT=h.forwardRef(function(t,n){var r,o,i,s,l,a,u,c,p,f,x,g,w,E,m,d,y,k,_,S,C,b,$,T;const P=xT({props:t,name:"MuiSlider"}),D=qb(),{"aria-label":M,"aria-valuetext":H,"aria-labelledby":W,component:X="span",components:K={},componentsProps:O={},color:I="primary",classes:z,className:G,disableSwap:J=!1,disabled:ye=!1,getAriaLabel:q,getAriaValueText:ne,marks:ve=!1,max:Me=100,min:Ke=0,orientation:_t="horizontal",shiftStep:gn=10,size:wn="medium",step:xn=1,scale:Qe=Cm,slotProps:fe,slots:V,track:Be="normal",valueLabelDisplay:Ze="off",valueLabelFormat:ht=Cm}=P,Bo=en(P,wT),ge=A({},P,{isRtl:D,max:Me,min:Ke,classes:z,disabled:ye,disableSwap:J,orientation:_t,marks:ve,color:I,size:wn,step:xn,shiftStep:gn,scale:Qe,track:Be,valueLabelDisplay:Ze,valueLabelFormat:ht}),{axisProps:Wt,getRootProps:Lr,getHiddenInputProps:Mr,getThumbProps:mr,open:zo,active:Ir,axis:zn,focusedThumbIndex:N,range:j,dragging:B,marks:re,values:oe,trackOffset:Z,trackLeap:Vt,getThumbStyle:nn}=hT(A({},ge,{rootRef:n}));ge.marked=re.length>0&&re.some(Ne=>Ne.label),ge.dragging=B,ge.focusedThumbIndex=N;const le=TT(ge),bt=(r=(o=V==null?void 0:V.root)!=null?o:K.Root)!=null?r:ST,Dr=(i=(s=V==null?void 0:V.rail)!=null?s:K.Rail)!=null?i:kT,np=(l=(a=V==null?void 0:V.track)!=null?a:K.Track)!=null?l:ET,rp=(u=(c=V==null?void 0:V.thumb)!=null?c:K.Thumb)!=null?u:CT,op=(p=(f=V==null?void 0:V.valueLabel)!=null?f:K.ValueLabel)!=null?p:_T,Xa=(x=(g=V==null?void 0:V.mark)!=null?g:K.Mark)!=null?x:bT,Ja=(w=(E=V==null?void 0:V.markLabel)!=null?E:K.MarkLabel)!=null?w:OT,ip=(m=(d=V==null?void 0:V.input)!=null?d:K.Input)!=null?m:"input",Za=(y=fe==null?void 0:fe.root)!=null?y:O.root,R1=(k=fe==null?void 0:fe.rail)!=null?k:O.rail,eu=(_=fe==null?void 0:fe.track)!=null?_:O.track,tu=(S=fe==null?void 0:fe.thumb)!=null?S:O.thumb,nu=(C=fe==null?void 0:fe.valueLabel)!=null?C:O.valueLabel,N1=(b=fe==null?void 0:fe.mark)!=null?b:O.mark,$1=($=fe==null?void 0:fe.markLabel)!=null?$:O.markLabel,P1=(T=fe==null?void 0:fe.input)!=null?T:O.input,j1=Wn({elementType:bt,getSlotProps:Lr,externalSlotProps:Za,externalForwardedProps:Bo,additionalProps:A({},mT(bt)&&{as:X}),ownerState:A({},ge,Za==null?void 0:Za.ownerState),className:[le.root,G]}),A1=Wn({elementType:Dr,externalSlotProps:R1,ownerState:ge,className:le.rail}),L1=Wn({elementType:np,externalSlotProps:eu,additionalProps:{style:A({},Wt[zn].offset(Z),Wt[zn].leap(Vt))},ownerState:A({},ge,eu==null?void 0:eu.ownerState),className:le.track}),ru=Wn({elementType:rp,getSlotProps:mr,externalSlotProps:tu,ownerState:A({},ge,tu==null?void 0:tu.ownerState),className:le.thumb}),M1=Wn({elementType:op,externalSlotProps:nu,ownerState:A({},ge,nu==null?void 0:nu.ownerState),className:le.valueLabel}),ou=Wn({elementType:Xa,externalSlotProps:N1,ownerState:ge,className:le.mark}),iu=Wn({elementType:Ja,externalSlotProps:$1,ownerState:ge,className:le.markLabel}),I1=Wn({elementType:ip,getSlotProps:Mr,externalSlotProps:P1,ownerState:ge});return v.jsxs(bt,A({},j1,{children:[v.jsx(Dr,A({},A1)),v.jsx(np,A({},L1)),re.filter(Ne=>Ne.value>=Ke&&Ne.value<=Me).map((Ne,ze)=>{const su=Ql(Ne.value,Ke,Me),ps=Wt[zn].offset(su);let Sn;return Be===!1?Sn=oe.indexOf(Ne.value)!==-1:Sn=Be==="normal"&&(j?Ne.value>=oe[0]&&Ne.value<=oe[oe.length-1]:Ne.value<=oe[0])||Be==="inverted"&&(j?Ne.value<=oe[0]||Ne.value>=oe[oe.length-1]:Ne.value>=oe[0]),v.jsxs(h.Fragment,{children:[v.jsx(Xa,A({"data-index":ze},ou,!Ci(Xa)&&{markActive:Sn},{style:A({},ps,ou.style),className:sr(ou.className,Sn&&le.markActive)})),Ne.label!=null?v.jsx(Ja,A({"aria-hidden":!0,"data-index":ze},iu,!Ci(Ja)&&{markLabelActive:Sn},{style:A({},ps,iu.style),className:sr(le.markLabel,iu.className,Sn&&le.markLabelActive),children:Ne.label})):null]},ze)}),oe.map((Ne,ze)=>{const su=Ql(Ne,Ke,Me),ps=Wt[zn].offset(su),Sn=Ze==="off"?RT:op;return v.jsx(Sn,A({},!Ci(Sn)&&{valueLabelFormat:ht,valueLabelDisplay:Ze,value:typeof ht=="function"?ht(Qe(Ne),ze):ht,index:ze,open:zo===ze||Ir===ze||Ze==="on",disabled:ye},M1,{children:v.jsx(rp,A({"data-index":ze},ru,{className:sr(le.thumb,ru.className,Ir===ze&&le.active,N===ze&&le.focusVisible),style:A({},ps,nn(ze),ru.style),children:v.jsx(ip,A({"data-index":ze,"aria-label":q?q(ze):M,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":ne?ne(Qe(Ne),ze):H,value:oe[ze]},I1))}))}),ze)})]}))}),S1=te.memo(e=>{const t=h.useRef(0),[n,r]=h.useState(!1),{fullAccessPath:o,value:i,min:s,max:l,stepSize:a,docString:u,isInstantUpdate:c,addNotification:p,changeCallback:f=()=>{},displayName:x,id:g}=e;h.useEffect(()=>{t.current++}),h.useEffect(()=>{p(`${o} changed to ${i.value}.`)},[e.value]),h.useEffect(()=>{p(`${o}.min changed to ${s.value}.`)},[e.min]),h.useEffect(()=>{p(`${o}.max changed to ${l.value}.`)},[e.max]),h.useEffect(()=>{p(`${o}.stepSize changed to ${a.value}.`)},[e.stepSize]);const w=(P,D)=>{Array.isArray(D)&&(D=D[0]);let M;i.type==="Quantity"?M={type:"Quantity",value:{magnitude:D,unit:i.value.unit},full_access_path:`${o}.value`,readonly:i.readonly,doc:u}:M={type:i.type,value:D,full_access_path:`${o}.value`,readonly:i.readonly,doc:u},f(M)},E=(P,D,M)=>{let H;M.type==="Quantity"?H={type:M.type,value:{magnitude:P,unit:M.value.unit},full_access_path:`${o}.${D}`,readonly:M.readonly,doc:null}:H={type:M.type,value:P,full_access_path:`${o}.${D}`,readonly:M.readonly,doc:null},f(H)},m=P=>{let D=0,M;const H=P.readonly;return P.type==="int"||P.type==="float"?D=P.value:P.type==="Quantity"&&(D=P.value.magnitude,M=P.value.unit),[D,H,M]},[d,y,k]=m(i),[_,S]=m(s),[C,b]=m(l),[$,T]=m(a);return v.jsxs("div",{className:"component sliderComponent",id:g,children:[!1,v.jsxs(Ul,{children:[v.jsx(sn,{xs:"auto",xl:"auto",children:v.jsxs($n.Text,{children:[x,v.jsx(tn,{docString:u})]})}),v.jsx(sn,{xs:"5",xl:!0,children:v.jsx(NT,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:y,value:d,onChange:(P,D)=>w(P,D),min:_,max:C,step:$,marks:[{value:_,label:`${_}`},{value:C,label:`${C}`}]})}),v.jsx(sn,{xs:"3",xl:!0,children:v.jsx(Wl,{isInstantUpdate:c,fullAccessPath:`${o}.value`,docString:u,readOnly:y,type:i.type,value:d,unit:k,addNotification:()=>{},changeCallback:f,id:g+"-value"})}),v.jsx(sn,{xs:"auto",children:v.jsx(Od,{id:`button-${g}`,onClick:()=>r(!n),type:"checkbox",checked:n,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":n,children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[v.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),v.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),v.jsx(da,{in:n,children:v.jsx(tt.Group,{children:v.jsxs(Ul,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[v.jsxs(sn,{xs:"auto",children:[v.jsx(tt.Label,{children:"Min Value"}),v.jsx(tt.Control,{type:"number",value:_,disabled:S,onChange:P=>E(Number(P.target.value),"min",s)})]}),v.jsxs(sn,{xs:"auto",children:[v.jsx(tt.Label,{children:"Max Value"}),v.jsx(tt.Control,{type:"number",value:C,disabled:b,onChange:P=>E(Number(P.target.value),"max",l)})]}),v.jsxs(sn,{xs:"auto",children:[v.jsx(tt.Label,{children:"Step Size"}),v.jsx(tt.Control,{type:"number",value:$,disabled:T,onChange:P=>E(Number(P.target.value),"step_size",a)})]})]})})})]})});S1.displayName="SliderComponent";const k1=te.memo(e=>{const{attribute:t,addNotification:n,displayName:r,id:o}=e,{full_access_path:i,value:s,doc:l,enum:a,readonly:u}=t;let{changeCallback:c}=e;c===void 0&&(c=g=>{x(()=>String(g.value))});const p=h.useRef(0),[f,x]=h.useState(s);return h.useEffect(()=>{p.current++}),h.useEffect(()=>{x(()=>s),n(`${i} changed to ${s}.`)},[s]),v.jsxs("div",{className:"component enumComponent",id:o,children:[!1,v.jsx(Ul,{children:v.jsxs(sn,{className:"d-flex align-items-center",children:[v.jsxs($n.Text,{children:[r,v.jsx(tn,{docString:l})]}),u?v.jsx(tt.Control,{style:t.type=="ColouredEnum"?{backgroundColor:a[f]}:{},value:t.type=="ColouredEnum"?f:a[f],name:i,disabled:!0}):v.jsx(tt.Select,{"aria-label":"example-select",value:f,name:i,style:t.type=="ColouredEnum"?{backgroundColor:a[f]}:{},onChange:g=>c({type:t.type,name:t.name,enum:a,value:g.target.value,full_access_path:i,readonly:t.readonly,doc:t.doc}),children:Object.entries(a).map(([g,w])=>v.jsx("option",{value:g,children:t.type=="ColouredEnum"?g:w},g))})]})})]})});k1.displayName="EnumComponent";const ep=te.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;const s=h.useRef(0),l=h.useRef(null),a=()=>{const c=`Method ${t} was triggered.`;r(c)},u=async c=>{c.preventDefault(),k0(t),a()};return h.useEffect(()=>{s.current++}),v.jsxs("div",{className:"component methodComponent",id:i,children:[!1,v.jsx(tt,{onSubmit:u,ref:l,children:v.jsxs(os,{className:"component",variant:"primary",type:"submit",children:[`${o} `,v.jsx(tn,{docString:n})]})})]})});ep.displayName="MethodComponent";const E1=te.memo(e=>{const{fullAccessPath:t,docString:n,value:r,addNotification:o,displayName:i,id:s}=e;if(!e.render)return null;const l=h.useRef(0),a=h.useRef(null),[u,c]=h.useState(!1),p=t.split(".").at(-1),f=t.slice(0,-(p.length+1));h.useEffect(()=>{l.current++;let g;r===null?g=`${t} task was stopped.`:g=`${t} was started.`,o(g),c(!1)},[e.value]);const x=async g=>{g.preventDefault();let w;r!=null?w=`stop_${p}`:w=`start_${p}`;const E=[f,w].filter(m=>m).join(".");c(!0),k0(E)};return v.jsxs("div",{className:"component asyncMethodComponent",id:s,children:[!1,v.jsx(tt,{onSubmit:x,ref:a,children:v.jsxs($n,{children:[v.jsxs($n.Text,{children:[i,v.jsx(tn,{docString:n})]}),v.jsx(os,{id:`button-${s}`,type:"submit",children:u?v.jsx(t0,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});E1.displayName="AsyncMethodComponent";const C1=te.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:l,id:a}=e,u=h.useRef(0),[c,p]=h.useState(e.value);h.useEffect(()=>{u.current++},[o,c,u]),h.useEffect(()=>{e.value!==c&&p(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const f=w=>{p(w.target.value),o&&s({type:"str",value:w.target.value,full_access_path:t,readonly:n,doc:r})},x=w=>{w.key==="Enter"&&!o&&(s({type:"str",value:c,full_access_path:t,readonly:n,doc:r}),w.preventDefault())},g=()=>{o||s({type:"str",value:c,full_access_path:t,readonly:n,doc:r})};return v.jsxs("div",{className:"component stringComponent",id:a,children:[!1,v.jsxs($n,{children:[v.jsxs($n.Text,{children:[l,v.jsx(tn,{docString:r})]}),v.jsx(tt.Control,{type:"text",name:a,value:c,disabled:n,onChange:f,onKeyDown:x,onBlur:g,className:o&&!n?"instantUpdate":""})]})]})});C1.displayName="StringComponent";const _1=te.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e,s=h.useRef(0);return h.useEffect(()=>{s.current++},[e]),v.jsxs("div",{className:"listComponent",id:i,children:[!1,v.jsx(tn,{docString:n}),t.map(l=>v.jsx($o,{attribute:l,isInstantUpdate:r,addNotification:o},l.full_access_path))]})});_1.displayName="ListComponent";var $T=["color","size","title","className"];function df(){return df=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var qa=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=PT(e,$T);return te.createElement("svg",df({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?te.createElement("title",null,o):null,te.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});qa.propTypes={color:de.string,size:de.oneOfType([de.string,de.number]),title:de.string,className:de.string};qa.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var AT=["color","size","title","className"];function pf(){return pf=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MT(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Ya=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=LT(e,AT);return te.createElement("svg",pf({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?te.createElement("title",null,o):null,te.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});Ya.propTypes={color:de.string,size:de.oneOfType([de.string,de.number]),title:de.string,className:de.string};Ya.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const tp=te.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=h.useState(()=>{const l=localStorage.getItem(`dataServiceComponent-${o}-open`);return l!==null?JSON.parse(l):!0});return h.useEffect(()=>{localStorage.setItem(`dataServiceComponent-${o}-open`,JSON.stringify(i))},[i]),r!==""?v.jsx("div",{className:"component dataServiceComponent",id:o,children:v.jsxs(mo,{children:[v.jsxs(mo.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?v.jsx(qa,{}):v.jsx(Ya,{})]}),v.jsx(da,{in:i,children:v.jsx(mo.Body,{children:Object.entries(e).map(([l,a])=>v.jsx($o,{attribute:a,isInstantUpdate:t,addNotification:n},l))})})]})}):v.jsx("div",{className:"component dataServiceComponent",id:o,children:Object.entries(e).map(([l,a])=>v.jsx($o,{attribute:a,isInstantUpdate:t,addNotification:n},l))})});tp.displayName="DataServiceComponent";const b1=te.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:l,...a}=t,u=s.value;return v.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&v.jsxs("div",{className:"overlayContent",children:[v.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),v.jsx(ep,{fullAccessPath:`${e}.connect`,docString:l.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),v.jsx(tp,{props:a,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});b1.displayName="DeviceConnectionComponent";const O1=te.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:l}=e,a=h.useRef(0),[u,c]=h.useState(!0);return h.useEffect(()=>{a.current++}),h.useEffect(()=>{i(`${t} changed.`)},[e.value]),v.jsx("div",{className:"component imageComponent",id:l,children:v.jsxs(mo,{children:[v.jsxs(mo.Header,{onClick:()=>c(!u),style:{cursor:"pointer"},children:[s,v.jsx(tn,{docString:r}),u?v.jsx(qa,{}):v.jsx(Ya,{})]}),v.jsx(da,{in:u,children:v.jsxs(mo.Body,{children:[!1,o===""&&n===""?v.jsx("p",{children:"No image set in the backend."}):v.jsx(kg,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});O1.displayName="ImageComponent";function IT(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const T1=te.memo(e=>{const{value:t,docString:n,isInstantUpdate:r,addNotification:o,id:i}=e,s=h.useRef(0),l=Object.values(t);return h.useEffect(()=>{s.current++},[e]),v.jsxs("div",{className:"listComponent",id:i,children:[!1,v.jsx(tn,{docString:n}),l.map(a=>v.jsx($o,{attribute:a,isInstantUpdate:r,addNotification:o},a.full_access_path))]})});T1.displayName="DictComponent";const DT=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},FT=e=>{const t=[],n=C0(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return DT(t)},$o=te.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=IT(r),i=h.useContext(_0);let s=FT(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}function l(a,u=()=>{}){i2(a,u)}return e.type==="bool"?v.jsx(b0,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:l,displayName:s,id:o}):e.type==="float"||e.type==="int"?v.jsx(Wl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:l,displayName:s,id:o}):e.type==="Quantity"?v.jsx(Wl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:l,displayName:s,id:o}):e.type==="NumberSlider"?v.jsx(S1,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:l,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?v.jsx(k1,{attribute:e,addNotification:n,changeCallback:l,displayName:s,id:o}):e.type==="method"?e.async?v.jsx(E1,{fullAccessPath:r,docString:e.doc,value:e.value,addNotification:n,displayName:s,id:o,render:e.frontend_render}):v.jsx(ep,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?v.jsx(C1,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:l,displayName:s,id:o}):e.type==="DataService"?v.jsx(tp,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?v.jsx(b1,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?v.jsx(_1,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?v.jsx(T1,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?v.jsx(O1,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):v.jsx("div",{children:r},r)});$o.displayName="GenericComponent";const BT=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:a2(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},zT=()=>{const[e,t]=h.useReducer(BT,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,l]=h.useState(()=>{const S=localStorage.getItem("isInstantUpdate");return S!==null?JSON.parse(S):!1}),[a,u]=h.useState(!1),[c,p]=h.useState(()=>{const S=localStorage.getItem("showNotification");return S!==null?JSON.parse(S):!1}),[f,x]=h.useState([]),[g,w]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${ai}:${ui}/custom.css`).then(S=>{if(S.ok){const C=document.createElement("link");C.href=`http://${ai}:${ui}/custom.css`,C.type="text/css",C.rel="stylesheet",document.head.appendChild(C)}}).catch(console.error),Cn.on("connect",()=>{fetch(`http://${ai}:${ui}/service-properties`).then(S=>S.json()).then(S=>{t({type:"SET_DATA",data:S}),r(S.name),document.title=S.name}),fetch(`http://${ai}:${ui}/web-settings`).then(S=>S.json()).then(S=>i(S)),w("connected")}),Cn.on("disconnect",()=>{w("disconnected"),setTimeout(()=>{w(S=>S==="disconnected"?"reconnecting":S)},2e3)}),Cn.on("notify",k),Cn.on("log",_),()=>{Cn.off("notify",k),Cn.off("log",_)}),[]),h.useEffect(()=>{localStorage.setItem("isInstantUpdate",JSON.stringify(s))},[s]),h.useEffect(()=>{localStorage.setItem("showNotification",JSON.stringify(c))},[c]);const E=h.useCallback((S,C="DEBUG")=>{const b=new Date().toISOString().substring(11,19),$=Math.random();x(T=>[{levelname:C,id:$,message:S,timeStamp:b},...T])},[]),m=S=>{x(C=>C.filter(b=>b.id!==S))},d=()=>u(!1),y=()=>u(!0);function k(S){const{full_access_path:C,value:b}=S.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:C,newValue:b})}function _(S){E(S.message,S.levelname)}return e?v.jsxs(v.Fragment,{children:[v.jsx(Du,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:v.jsxs(cg,{fluid:!0,children:[v.jsx(Du.Brand,{children:n}),v.jsx(Du.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),v.jsx(E0,{showNotification:c,notifications:f,removeNotificationById:m}),v.jsxs(si,{show:a,onHide:d,placement:"end",style:{zIndex:9999},children:[v.jsx(si.Header,{closeButton:!0,children:v.jsx(si.Title,{children:"Settings"})}),v.jsxs(si.Body,{children:[v.jsx(tt.Check,{checked:s,onChange:S=>l(S.target.checked),type:"switch",label:"Enable Instant Update"}),v.jsx(tt.Check,{checked:c,onChange:S=>p(S.target.checked),type:"switch",label:"Show Notifications"})]})]}),v.jsx("div",{className:"App navbarOffset",children:v.jsx(_0.Provider,{value:o,children:v.jsx($o,{attribute:e,isInstantUpdate:s,addNotification:E})})}),v.jsx(tf,{connectionStatus:g})]}):v.jsx(tf,{connectionStatus:g})};var hf={},_m=Kv;hf.createRoot=_m.createRoot,hf.hydrateRoot=_m.hydrateRoot;hf.createRoot(document.getElementById("root")).render(v.jsx(te.StrictMode,{children:v.jsx(zT,{})})); diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index 1e23780..99709a7 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -6,7 +6,7 @@ - +