diff --git a/.gitignore b/.gitignore index 4368b1570..cd18bf4c0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ build/ package/*.tar package/*.tar.gz develop-eggs/ -dist/ downloads/ eggs/ .eggs/ diff --git a/depthai_demo.py b/depthai_demo.py index edcfd7afd..a9c0272d5 100755 --- a/depthai_demo.py +++ b/depthai_demo.py @@ -1,14 +1,10 @@ #!/usr/bin/env python3 import sys +import time if sys.version_info[0] < 3: raise Exception("Must be using Python 3") -import argparse -import json import os -import time -import traceback -from functools import cmp_to_key from itertools import cycle from pathlib import Path import platform @@ -42,7 +38,7 @@ from log_system_information import make_sys_report from depthai_helpers.supervisor import Supervisor from depthai_helpers.arg_manager import parseArgs -from depthai_helpers.config_manager import ConfigManager, DEPTHAI_ZOO, DEPTHAI_VIDEOS +from depthai_helpers.config_manager import ConfigManager, DEPTHAI_ZOO, DEPTHAI_VIDEOS, prepareConfManager from depthai_helpers.metrics import MetricManager from depthai_helpers.version_check import checkRequirementsVersion from depthai_sdk import FPSHandler, loadModule, getDeviceInfo, downloadYTVideo, Previews, createBlankFrame @@ -120,9 +116,10 @@ def run_all(self, conf): self.setup(conf) self.run() - def __init__(self, displayFrames=True, onNewFrame = noop, onShowFrame = noop, onNn = noop, onReport = noop, onSetup = noop, onTeardown = noop, onIter = noop, onAppSetup = noop, onAppStart = noop, shouldRun = lambda: True, showDownloadProgress=None, collectMetrics=False): + def __init__(self, displayFrames=True, consumeFrames=True, onNewFrame = noop, onShowFrame = noop, onNn = noop, onReport = noop, onPipeline = noop, onSetup = noop, onTeardown = noop, onIter = noop, onAppSetup = noop, onAppStart = noop, shouldRun = lambda: True, showDownloadProgress=None, collectMetrics=False): self._openvinoVersion = None self._displayFrames = displayFrames + self._consumeFrames = consumeFrames self.toggleMetrics(collectMetrics) self.onNewFrame = onNewFrame @@ -130,6 +127,7 @@ def __init__(self, displayFrames=True, onNewFrame = noop, onShowFrame = noop, on self.onNn = onNn self.onReport = onReport self.onSetup = onSetup + self.onPipeline = onPipeline self.onTeardown = onTeardown self.onIter = onIter self.shouldRun = shouldRun @@ -137,7 +135,7 @@ def __init__(self, displayFrames=True, onNewFrame = noop, onShowFrame = noop, on self.onAppSetup = onAppSetup self.onAppStart = onAppStart - def setCallbacks(self, onNewFrame=None, onShowFrame=None, onNn=None, onReport=None, onSetup=None, onTeardown=None, onIter=None, onAppSetup=None, onAppStart=None, shouldRun=None, showDownloadProgress=None): + def setCallbacks(self, onNewFrame=None, onShowFrame=None, onNn=None, onReport=None, onPipeline=None, onSetup=None, onTeardown=None, onIter=None, onAppSetup=None, onAppStart=None, shouldRun=None, showDownloadProgress=None): if onNewFrame is not None: self.onNewFrame = onNewFrame if onShowFrame is not None: @@ -146,6 +144,8 @@ def setCallbacks(self, onNewFrame=None, onShowFrame=None, onNn=None, onReport=No self.onNn = onNn if onReport is not None: self.onReport = onReport + if onPipeline is not None: + self.onPipeline = onPipeline if onSetup is not None: self.onSetup = onSetup if onTeardown is not None: @@ -227,16 +227,16 @@ def setup(self, conf: ConfigManager): if self._conf.leftCameraEnabled: self._pm.createLeftCam(self._monoRes, self._conf.args.monoFps, orientation=self._conf.args.cameraOrientation.get(Previews.left.name), - xout=Previews.left.name in self._conf.args.show) + xout=Previews.left.name in self._conf.args.show and self._consumeFrames) if self._conf.rightCameraEnabled: self._pm.createRightCam(self._monoRes, self._conf.args.monoFps, orientation=self._conf.args.cameraOrientation.get(Previews.right.name), - xout=Previews.right.name in self._conf.args.show) + xout=Previews.right.name in self._conf.args.show and self._consumeFrames) if self._conf.rgbCameraEnabled: self._pm.createColorCam(previewSize=self._conf.previewSize, res=self._rgbRes, fps=self._conf.args.rgbFps, orientation=self._conf.args.cameraOrientation.get(Previews.color.name), fullFov=not self._conf.args.disableFullFovNn, - xout=Previews.color.name in self._conf.args.show) + xout=Previews.color.name in self._conf.args.show and self._consumeFrames) if self._conf.useDepth: self._pm.createDepth( @@ -247,10 +247,10 @@ def setup(self, conf: ConfigManager): self._conf.args.lrcThreshold, self._conf.args.extendedDisparity, self._conf.args.subpixel, - useDepth=Previews.depth.name in self._conf.args.show or Previews.depthRaw.name in self._conf.args.show, - useDisparity=Previews.disparity.name in self._conf.args.show or Previews.disparityColor.name in self._conf.args.show, - useRectifiedLeft=Previews.rectifiedLeft.name in self._conf.args.show, - useRectifiedRight=Previews.rectifiedRight.name in self._conf.args.show, + useDepth=Previews.depth.name in self._conf.args.show or Previews.depthRaw.name in self._conf.args.show and self._consumeFrames, + useDisparity=Previews.disparity.name in self._conf.args.show or Previews.disparityColor.name in self._conf.args.show and self._consumeFrames, + useRectifiedLeft=Previews.rectifiedLeft.name in self._conf.args.show and self._consumeFrames, + useRectifiedRight=Previews.rectifiedRight.name in self._conf.args.show and self._consumeFrames, ) self._encManager = None @@ -269,10 +269,11 @@ def setup(self, conf: ConfigManager): sbbScaleFactor=self._conf.args.sbbScaleFactor, fullFov=not self._conf.args.disableFullFovNn, ) - self._pm.addNn(nn=self._nn, xoutNnInput=Previews.nnInput.name in self._conf.args.show, + self._pm.addNn(nn=self._nn, xoutNnInput=Previews.nnInput.name in self._conf.args.show and self._consumeFrames, xoutSbb=self._conf.args.spatialBoundingBox and self._conf.useDepth) def run(self): + self.onPipeline(self._pm.pipeline, self._pm.nodes) self._device.startPipeline(self._pm.pipeline) self._pm.createDefaultQueues(self._device) if self._conf.useNN: @@ -307,7 +308,8 @@ def run(self): if any(self._cameraConfig.values()): self._updateCameraConfigs() - self._pv.createQueues(self._device, self._createQueueCallback) + if self._consumeFrames: + self._pv.createQueues(self._device, self._createQueueCallback) if self._encManager is not None: self._encManager.createDefaultQueues(self._device) @@ -359,7 +361,8 @@ def loop(self): self.timer = time.monotonic() if self._conf.useCamera: - self._pv.prepareFrames(callback=self.onNewFrame) + if self._consumeFrames: + self._pv.prepareFrames(callback=self.onNewFrame) if self._encManager is not None: self._encManager.parseQueues() @@ -552,457 +555,37 @@ def _printSysInfo(self, info): print(','.join(map(str, data.values())), file=self._reportFile) -def prepareConfManager(in_args): - confManager = ConfigManager(in_args) - confManager.linuxCheckApplyUsbRules() - if not confManager.useCamera: - if str(confManager.args.video).startswith('https'): - confManager.args.video = downloadYTVideo(confManager.args.video, DEPTHAI_VIDEOS) - print("Youtube video downloaded.") - if not Path(confManager.args.video).exists(): - raise ValueError("Path {} does not exists!".format(confManager.args.video)) - return confManager - - -def runQt(): - from gui.main import DemoQtGui - from PyQt5.QtWidgets import QMessageBox - from PyQt5.QtCore import QObject, pyqtSignal, QRunnable, QThreadPool - - - class WorkerSignals(QObject): - updateConfSignal = pyqtSignal(list) - updateDownloadProgressSignal = pyqtSignal(int, int) - updatePreviewSignal = pyqtSignal(np.ndarray) - setDataSignal = pyqtSignal(list) - exitSignal = pyqtSignal() - errorSignal = pyqtSignal(str) - - class Worker(QRunnable): - def __init__(self, instance, parent, conf, selectedPreview=None): - super(Worker, self).__init__() - self.running = False - self.selectedPreview = selectedPreview - self.instance = instance - self.parent = parent - self.conf = conf - self.callback_module = loadModule(conf.args.callback) - self.file_callbacks = { - callbackName: getattr(self.callback_module, callbackName) - for callbackName in ["shouldRun", "onNewFrame", "onShowFrame", "onNn", "onReport", "onSetup", "onTeardown", "onIter"] - if callable(getattr(self.callback_module, callbackName, None)) - } - self.instance.setCallbacks(**self.file_callbacks) - self.signals = WorkerSignals() - self.signals.exitSignal.connect(self.terminate) - self.signals.updateConfSignal.connect(self.updateConf) - - - def run(self): - self.running = True - self.signals.setDataSignal.emit(["restartRequired", False]) - self.instance.setCallbacks(shouldRun=self.shouldRun, onShowFrame=self.onShowFrame, onSetup=self.onSetup, onAppSetup=self.onAppSetup, onAppStart=self.onAppStart, showDownloadProgress=self.showDownloadProgress) - self.conf.args.bandwidth = "auto" - if self.conf.args.deviceId is None: - devices = dai.Device.getAllAvailableDevices() - if len(devices) > 0: - defaultDevice = next(map( - lambda info: info.getMxId(), - filter(lambda info: info.desc.protocol == dai.XLinkProtocol.X_LINK_USB_VSC, devices) - ), None) - if defaultDevice is None: - defaultDevice = devices[0].getMxId() - self.conf.args.deviceId = defaultDevice - if Previews.color.name not in self.conf.args.show: - self.conf.args.show.append(Previews.color.name) - if Previews.nnInput.name not in self.conf.args.show: - self.conf.args.show.append(Previews.nnInput.name) - if Previews.depth.name not in self.conf.args.show and Previews.disparityColor.name not in self.conf.args.show: - self.conf.args.show.append(Previews.depth.name) - if Previews.depthRaw.name not in self.conf.args.show and Previews.disparity.name not in self.conf.args.show: - self.conf.args.show.append(Previews.depthRaw.name) - if Previews.left.name not in self.conf.args.show: - self.conf.args.show.append(Previews.left.name) - if Previews.rectifiedLeft.name not in self.conf.args.show: - self.conf.args.show.append(Previews.rectifiedLeft.name) - if Previews.right.name not in self.conf.args.show: - self.conf.args.show.append(Previews.right.name) - if Previews.rectifiedRight.name not in self.conf.args.show: - self.conf.args.show.append(Previews.rectifiedRight.name) - try: - self.instance.run_all(self.conf) - except KeyboardInterrupt: - sys.exit(0) - except Exception as ex: - self.onError(ex) - - def terminate(self): - self.running = False - self.signals.setDataSignal.emit(["restartRequired", False]) - - - def updateConf(self, argsList): - self.conf.args = argparse.Namespace(**dict(argsList)) - - def onError(self, ex: Exception): - self.signals.errorSignal.emit(''.join(traceback.format_tb(ex.__traceback__) + [str(ex)])) - self.signals.setDataSignal.emit(["restartRequired", True]) - - def shouldRun(self): - if "shouldRun" in self.file_callbacks: - return self.running and self.file_callbacks["shouldRun"]() - return self.running - - def onShowFrame(self, frame, source): - if "onShowFrame" in self.file_callbacks: - self.file_callbacks["onShowFrame"](frame, source) - if source == self.selectedPreview: - self.signals.updatePreviewSignal.emit(frame) - - def onAppSetup(self, app): - setupFrame = createBlankFrame(500, 500) - cv2.putText(setupFrame, "Preparing {} app...".format(app.appName), (150, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) - cv2.putText(setupFrame, "Preparing {} app...".format(app.appName), (150, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) - self.signals.updatePreviewSignal.emit(setupFrame) - - def onAppStart(self, app): - setupFrame = createBlankFrame(500, 500) - cv2.putText(setupFrame, "Running {} app... (check console)".format(app.appName), (100, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) - cv2.putText(setupFrame, "Running {} app... (check console)".format(app.appName), (100, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) - self.signals.updatePreviewSignal.emit(setupFrame) - - def showDownloadProgress(self, curr, total): - self.signals.updateDownloadProgressSignal.emit(curr, total) - - def onSetup(self, instance): - if "onSetup" in self.file_callbacks: - self.file_callbacks["onSetup"](instance) - self.signals.updateConfSignal.emit(list(vars(self.conf.args).items())) - self.signals.setDataSignal.emit(["previewChoices", self.conf.args.show]) - devices = [self.instance._deviceInfo.getMxId()] + list(map(lambda info: info.getMxId(), dai.Device.getAllAvailableDevices())) - self.signals.setDataSignal.emit(["deviceChoices", devices]) - if instance._nnManager is not None: - self.signals.setDataSignal.emit(["countLabels", instance._nnManager._labels]) - else: - self.signals.setDataSignal.emit(["countLabels", []]) - self.signals.setDataSignal.emit(["depthEnabled", self.conf.useDepth]) - self.signals.setDataSignal.emit(["statisticsAccepted", self.instance.metrics is not None]) - self.signals.setDataSignal.emit(["modelChoices", sorted(self.conf.getAvailableZooModels(), key=cmp_to_key(lambda a, b: -1 if a == "mobilenet-ssd" else 1 if b == "mobilenet-ssd" else -1 if a < b else 1))]) - - - class GuiApp(DemoQtGui): - def __init__(self): - super().__init__() - self.confManager = prepareConfManager(args) - self.running = False - self.selectedPreview = self.confManager.args.show[0] if len(self.confManager.args.show) > 0 else "color" - self.useDisparity = False - self.dataInitialized = False - self.appInitialized = False - self.threadpool = QThreadPool() - self._demoInstance = Demo(displayFrames=False) - - def updateArg(self, arg_name, arg_value, shouldUpdate=True): - setattr(self.confManager.args, arg_name, arg_value) - if shouldUpdate: - self.worker.signals.setDataSignal.emit(["restartRequired", True]) - - - def showError(self, error): - print(error, file=sys.stderr) - msgBox = QMessageBox() - msgBox.setIcon(QMessageBox.Critical) - msgBox.setText(error) - msgBox.setWindowTitle("An error occured") - msgBox.setStandardButtons(QMessageBox.Ok) - msgBox.exec() - - def setupDataCollection(self): - try: - with Path(".consent").open() as f: - accepted = json.load(f)["statistics"] - except: - accepted = True - - self._demoInstance.toggleMetrics(accepted) - - def start(self): - self.setupDataCollection() - self.running = True - self.worker = Worker(self._demoInstance, parent=self, conf=self.confManager, selectedPreview=self.selectedPreview) - self.worker.signals.updatePreviewSignal.connect(self.updatePreview) - self.worker.signals.updateDownloadProgressSignal.connect(self.updateDownloadProgress) - self.worker.signals.setDataSignal.connect(self.setData) - self.worker.signals.errorSignal.connect(self.showError) - self.threadpool.start(self.worker) - if not self.appInitialized: - self.appInitialized = True - exit_code = self.startGui() - self.stop(wait=False) - sys.exit(exit_code) - - def stop(self, wait=True): - if hasattr(self._demoInstance, "_device"): - current_mxid = self._demoInstance._device.getMxId() - else: - current_mxid = self.confManager.args.deviceId - self.worker.signals.exitSignal.emit() - self.threadpool.waitForDone(10000) - - if wait and current_mxid is not None: - start = time.time() - while time.time() - start < 30: - if current_mxid in list(map(lambda info: info.getMxId(), dai.Device.getAllAvailableDevices())): - break - else: - time.sleep(0.1) - else: - print(f"[Warning] Device not available again after 30 seconds! MXID: {current_mxid}") - - def restartDemo(self): - self.stop() - self.start() - - def guiOnDepthConfigUpdate(self, median=None, dct=None, sigma=None, lrc=None, lrcThreshold=None): - self._demoInstance._pm.updateDepthConfig(self._demoInstance._device, median=median, dct=dct, sigma=sigma, lrc=lrc, lrcThreshold=lrcThreshold) - if median is not None: - if median == dai.MedianFilter.MEDIAN_OFF: - self.updateArg("stereoMedianSize", 0, False) - elif median == dai.MedianFilter.KERNEL_3x3: - self.updateArg("stereoMedianSize", 3, False) - elif median == dai.MedianFilter.KERNEL_5x5: - self.updateArg("stereoMedianSize", 5, False) - elif median == dai.MedianFilter.KERNEL_7x7: - self.updateArg("stereoMedianSize", 7, False) - if dct is not None: - self.updateArg("disparityConfidenceThreshold", dct, False) - if sigma is not None: - self.updateArg("sigma", sigma, False) - if lrc is not None: - self.updateArg("stereoLrCheck", lrc, False) - if lrcThreshold is not None: - self.updateArg("lrcThreshold", lrcThreshold, False) - - def guiOnCameraConfigUpdate(self, name, exposure=None, sensitivity=None, saturation=None, contrast=None, brightness=None, sharpness=None): - if exposure is not None: - newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraExposure or []))) + [(name, exposure)] - self._demoInstance._cameraConfig["exposure"] = newValue - self.updateArg("cameraExposure", newValue, False) - if sensitivity is not None: - newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraSensitivity or []))) + [(name, sensitivity)] - self._demoInstance._cameraConfig["sensitivity"] = newValue - self.updateArg("cameraSensitivity", newValue, False) - if saturation is not None: - newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraSaturation or []))) + [(name, saturation)] - self._demoInstance._cameraConfig["saturation"] = newValue - self.updateArg("cameraSaturation", newValue, False) - if contrast is not None: - newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraContrast or []))) + [(name, contrast)] - self._demoInstance._cameraConfig["contrast"] = newValue - self.updateArg("cameraContrast", newValue, False) - if brightness is not None: - newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraBrightness or []))) + [(name, brightness)] - self._demoInstance._cameraConfig["brightness"] = newValue - self.updateArg("cameraBrightness", newValue, False) - if sharpness is not None: - newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraSharpness or []))) + [(name, sharpness)] - self._demoInstance._cameraConfig["sharpness"] = newValue - self.updateArg("cameraSharpness", newValue, False) - - self._demoInstance._updateCameraConfigs() - - def guiOnDepthSetupUpdate(self, depthFrom=None, depthTo=None, subpixel=None, extended=None): - if depthFrom is not None: - self.updateArg("minDepth", depthFrom) - if depthTo is not None: - self.updateArg("maxDepth", depthTo) - if subpixel is not None: - self.updateArg("subpixel", subpixel) - if extended is not None: - self.updateArg("extendedDisparity", extended) - - def guiOnCameraSetupUpdate(self, name, fps=None, resolution=None): - if fps is not None: - if name == "color": - self.updateArg("rgbFps", fps) - else: - self.updateArg("monoFps", fps) - if resolution is not None: - if name == "color": - self.updateArg("rgbResolution", resolution) - else: - self.updateArg("monoResolution", resolution) - - def guiOnAiSetupUpdate(self, cnn=None, shave=None, source=None, fullFov=None, sbb=None, sbbFactor=None, ov=None, countLabel=None): - if cnn is not None: - self.updateArg("cnnModel", cnn) - if shave is not None: - self.updateArg("shaves", shave) - if source is not None: - self.updateArg("camera", source) - if fullFov is not None: - self.updateArg("disableFullFovNn", not fullFov) - if sbb is not None: - self.updateArg("spatialBoundingBox", sbb) - if sbbFactor is not None: - self.updateArg("sbbScaleFactor", sbbFactor) - if ov is not None: - self.updateArg("openvinoVersion", ov) - if countLabel is not None or cnn is not None: - self.updateArg("countLabel", countLabel) - - def guiOnPreviewChangeSelected(self, selected): - self.worker.selectedPreview = selected - self.selectedPreview = selected - - def guiOnSelectDevice(self, selected): - self.updateArg("deviceId", selected) - - def guiOnReloadDevices(self): - devices = list(map(lambda info: info.getMxId(), dai.Device.getAllAvailableDevices())) - if hasattr(self._demoInstance, "_deviceInfo"): - devices.insert(0, self._demoInstance._deviceInfo.getMxId()) - self.worker.signals.setDataSignal.emit(["deviceChoices", devices]) - if len(devices) > 0: - self.worker.signals.setDataSignal.emit(["restartRequired", True]) - - def guiOnStaticticsConsent(self, value): - try: - with Path('.consent').open('w') as f: - json.dump({"statistics": value}, f) - except: - pass - self.worker.signals.setDataSignal.emit(["restartRequired", True]) - - def guiOnToggleSync(self, value): - self.updateArg("sync", value) - - def guiOnToggleColorEncoding(self, enabled, fps): - oldConfig = self.confManager.args.encode or {} - if enabled: - oldConfig["color"] = fps - elif "color" in self.confManager.args.encode: - del oldConfig["color"] - self.updateArg("encode", oldConfig) - - def guiOnToggleLeftEncoding(self, enabled, fps): - oldConfig = self.confManager.args.encode or {} - if enabled: - oldConfig["left"] = fps - elif "color" in self.confManager.args.encode: - del oldConfig["left"] - self.updateArg("encode", oldConfig) - - def guiOnToggleRightEncoding(self, enabled, fps): - oldConfig = self.confManager.args.encode or {} - if enabled: - oldConfig["right"] = fps - elif "color" in self.confManager.args.encode: - del oldConfig["right"] - self.updateArg("encode", oldConfig) - - def guiOnSelectReportingOptions(self, temp, cpu, memory): - options = [] - if temp: - options.append("temp") - if cpu: - options.append("cpu") - if memory: - options.append("memory") - self.updateArg("report", options) - - def guiOnSelectReportingPath(self, value): - self.updateArg("reportFile", value) - - def guiOnSelectEncodingPath(self, value): - self.updateArg("encodeOutput", value) - - def guiOnToggleDepth(self, value): - self.updateArg("disableDepth", not value) - selectedPreviews = [Previews.rectifiedRight.name, Previews.rectifiedLeft.name] + ([Previews.disparity.name, Previews.disparityColor.name] if self.useDisparity else [Previews.depth.name, Previews.depthRaw.name]) - depthPreviews = [Previews.rectifiedRight.name, Previews.rectifiedLeft.name, Previews.depth.name, Previews.depthRaw.name, Previews.disparity.name, Previews.disparityColor.name] - filtered = list(filter(lambda name: name not in depthPreviews, self.confManager.args.show)) - if value: - updated = filtered + selectedPreviews - if self.selectedPreview not in updated: - self.selectedPreview = updated[0] - self.updateArg("show", updated) - else: - updated = filtered + [Previews.left.name, Previews.right.name] - if self.selectedPreview not in updated: - self.selectedPreview = updated[0] - self.updateArg("show", updated) - - def guiOnToggleNN(self, value): - self.updateArg("disableNeuralNetwork", not value) - filtered = list(filter(lambda name: name != Previews.nnInput.name, self.confManager.args.show)) - if value: - updated = filtered + [Previews.nnInput.name] - if self.selectedPreview not in updated: - self.selectedPreview = updated[0] - self.updateArg("show", filtered + [Previews.nnInput.name]) - else: - if self.selectedPreview not in filtered: - self.selectedPreview = filtered[0] - self.updateArg("show", filtered) - - def guiOnRunApp(self, appName): - self.stop() - self.updateArg("app", appName, shouldUpdate=False) - self.setData(["runningApp", appName]) - self.start() - - def guiOnTerminateApp(self, appName): - self.stop() - self.updateArg("app", None, shouldUpdate=False) - self.setData(["runningApp", ""]) - self.start() - - def guiOnToggleDisparity(self, value): - self.useDisparity = value - depthPreviews = [Previews.depth.name, Previews.depthRaw.name] - disparityPreviews = [Previews.disparity.name, Previews.disparityColor.name] - if value: - filtered = list(filter(lambda name: name not in depthPreviews, self.confManager.args.show)) - updated = filtered + disparityPreviews - if self.selectedPreview not in updated: - self.selectedPreview = updated[0] - self.updateArg("show", updated) - else: - filtered = list(filter(lambda name: name not in disparityPreviews, self.confManager.args.show)) - updated = filtered + depthPreviews - if self.selectedPreview not in updated: - self.selectedPreview = updated[0] - self.updateArg("show", updated) - GuiApp().start() - - -def runOpenCv(): - confManager = prepareConfManager(args) - demo = Demo() - demo.run_all(confManager) +def runOpenCv(in_args, instance): + confManager = prepareConfManager(in_args) + instance.run_all(confManager) if __name__ == "__main__": try: if args.noSupervisor: if args.guiType == "qt": - runQt() + from gui.qt.main import runQt + runQt(args, Demo(displayFrames=False)) + elif args.guiType == "web": + from gui.web.main import runWeb + runWeb(args, Demo(displayFrames=False, consumeFrames=False)) else: args.guiType = "cv" - runOpenCv() + runOpenCv(args, Demo(displayFrames=True)) else: s = Supervisor() - if args.guiType != "cv": + if args.guiType in ("auto", "qt"): available = s.checkQtAvailability() if args.guiType == "qt" and not available: raise RuntimeError("QT backend is not available, run the script with --guiType \"cv\" to use OpenCV backend") - if args.guiType == "auto" and platform.machine() == 'aarch64': # Disable Qt by default on Jetson due to Qt issues - args.guiType = "cv" - elif available: + if available: args.guiType = "qt" - else: + if args.guiType in ("auto", "cv"): + if args.guiType == "auto" and platform.machine() == 'aarch64': # Disable Qt by default on Jetson due to Qt issues args.guiType = "cv" + args.guiType = "cv" + if args.guiType in ("auto", "web"): + args.guiType = "web" s.runDemo(args) except KeyboardInterrupt: sys.exit(0) diff --git a/depthai_helpers/arg_manager.py b/depthai_helpers/arg_manager.py index d295f0980..8135c8928 100644 --- a/depthai_helpers/arg_manager.py +++ b/depthai_helpers/arg_manager.py @@ -47,17 +47,19 @@ def orientationCast(arg): openvinoVersions = list(map(lambda name: name.replace("VERSION_", ""), filter(lambda name: name.startswith("VERSION_"), vars(dai.OpenVINO.Version)))) -_streamChoices = ("nnInput", "color", "left", "right", "depth", "depthRaw", "disparity", "disparityColor", "rectifiedLeft", "rectifiedRight") +streamChoices = ("nnInput", "color", "left", "right", "depth", "depthRaw", "disparity", "disparityColor", "rectifiedLeft", "rectifiedRight") try: import cv2 colorMaps = list(map(lambda name: name[len("COLORMAP_"):], filter(lambda name: name.startswith("COLORMAP_"), vars(cv2)))) except: colorMaps = None projectRoot = Path(__file__).parent.parent +cameraChoices = ["left", "right", "color"] +reportingChoices = ["temp", "cpu", "memory"] def parseArgs(): parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter) - parser.add_argument('-cam', '--camera', choices=["left", "right", "color"], default="color", help="Use one of DepthAI cameras for inference (conflicts with -vid)") + parser.add_argument('-cam', '--camera', choices=cameraChoices, default="color", help="Use one of DepthAI cameras for inference (conflicts with -vid)") parser.add_argument('-vid', '--video', type=str, help="Path to video file (or YouTube link) to be used for inference (conflicts with -cam)") parser.add_argument('-dd', '--disableDepth', action="store_true", help="Disable depth information") parser.add_argument('-dnn', '--disableNeuralNetwork', action="store_true", help="Disable neural network inference") @@ -79,7 +81,7 @@ def parseArgs(): help="Sigma value for Bilateral Filter applied on depth. Default: %(default)s") parser.add_argument("-med", "--stereoMedianSize", default=7, type=int, choices=[0, 3, 5, 7], help="Disparity / depth median filter kernel size (N x N) . 0 = filtering disabled. Default: %(default)s") - parser.add_argument('-lrc', '--stereoLrCheck', action="store_true", + parser.add_argument('-dlrc', '--disableStereoLrCheck', action="store_false", dest="stereoLrCheck", help="Enable stereo 'Left-Right check' feature.") parser.add_argument('-ext', '--extendedDisparity', action="store_true", help="Enable stereo 'Extended Disparity' feature.") @@ -101,8 +103,8 @@ def parseArgs(): help="Display spatial bounding box (ROI) when displaying spatial information. The Z coordinate get's calculated from the ROI (average)") parser.add_argument("-sbbsf", "--sbbScaleFactor", default=0.3, type=float, help="Spatial bounding box scale factor. Sometimes lower scale factor can give better depth (Z) result. Default: %(default)s") - parser.add_argument('-s', '--show', default=[], nargs="+", choices=_streamChoices, help="Choose which previews to show. Default: %(default)s") - parser.add_argument('--report', nargs="+", default=[], choices=["temp", "cpu", "memory"], help="Display device utilization data") + parser.add_argument('-s', '--show', default=[], nargs="+", choices=streamChoices, help="Choose which previews to show. Default: %(default)s") + parser.add_argument('--report', nargs="+", default=[], choices=reportingChoices, help="Display device utilization data") parser.add_argument('--reportFile', help="Save report data to specified target file in CSV format") parser.add_argument("-monor", "--monoResolution", default=400, type=int, choices=[400,720,800], help="Mono cam res height: (1280x)720, (1280x)800 or (640x)400. Default: %(default)s") @@ -119,7 +121,7 @@ def parseArgs(): "If set to \"high\", the output streams will stay uncompressed\n" "If set to \"low\", the output streams will be MJPEG-encoded\n" "If set to \"auto\" (default), the optimal bandwidth will be selected based on your connection type and speed") - parser.add_argument('-gt', '--guiType', type=str, default="auto", choices=["auto", "qt", "cv"], help="Specify GUI type of the demo. \"cv\" uses built-in OpenCV display methods, \"qt\" uses Qt to display interactive GUI. \"auto\" will use OpenCV for Raspberry Pi and Qt for other platforms") + parser.add_argument('-gt', '--guiType', type=str, default="auto", choices=["auto", "qt", "cv", "web"], help="Specify GUI type of the demo. \"cv\" uses built-in OpenCV display methods, \"qt\" uses Qt to display interactive GUI. \"auto\" will use OpenCV for Raspberry Pi and Qt for other platforms") parser.add_argument('-usbs', '--usbSpeed', type=str, default="usb3", choices=["usb2", "usb3"], help="Force USB communication speed. Default: %(default)s") parser.add_argument('-enc', '--encode', type=_comaSeparated(default=30.0, cast=float), nargs="+", default=[], help="Define which cameras to encode (record) \n" @@ -144,4 +146,6 @@ def parseArgs(): parser.add_argument('--skipVersionCheck', action="store_true", help="Disable libraries version check") parser.add_argument('--noSupervisor', action="store_true", help="Disable supervisor check") parser.add_argument('--sync', action="store_true", help="Enable frame and NN synchronization. If enabled, all frames and NN results will be synced before preview (same sequence number)") + parser.add_argument('--host', default="127.0.0.1", help="Specify host address to which web server will bind (used only with guiType set to `web`)") + parser.add_argument('--port', default=8090, type=int, help="Specify port to which web server will bind (used only with guiType set to `web`)") return parser.parse_args() diff --git a/depthai_helpers/config_manager.py b/depthai_helpers/config_manager.py index ba2dccc0e..b9bd82024 100644 --- a/depthai_helpers/config_manager.py +++ b/depthai_helpers/config_manager.py @@ -8,6 +8,7 @@ from depthai_helpers.cli_utils import cliPrint, PrintColors from depthai_sdk.previews import Previews +from depthai_sdk import downloadYTVideo DEPTHAI_ZOO = Path(__file__).parent.parent / Path(f"resources/nn/") @@ -274,3 +275,14 @@ def dispMultiplier(self): return val +def prepareConfManager(in_args): + confManager = ConfigManager(in_args) + confManager.linuxCheckApplyUsbRules() + if not confManager.useCamera: + if str(confManager.args.video).startswith('https'): + confManager.args.video = downloadYTVideo(confManager.args.video, DEPTHAI_VIDEOS) + print("Youtube video downloaded.") + if not Path(confManager.args.video).exists(): + raise ValueError("Path {} does not exists!".format(confManager.args.video)) + return confManager + diff --git a/depthai_helpers/supervisor.py b/depthai_helpers/supervisor.py index 4d92695a3..1eeff22cd 100644 --- a/depthai_helpers/supervisor.py +++ b/depthai_helpers/supervisor.py @@ -39,7 +39,7 @@ def runDemo(self, args): print("Waiting 5s for the device to be discoverable again...") time.sleep(5) args.guiType = "cv" - if args.guiType == "cv": + else: new_env = env.copy() new_env["DEPTHAI_INSTALL_SIGNAL_HANDLER"] = "0" new_args = createNewArgs(args) diff --git a/depthai_sdk/setup.py b/depthai_sdk/setup.py index 1674786b9..e3ddc81d4 100644 --- a/depthai_sdk/setup.py +++ b/depthai_sdk/setup.py @@ -7,7 +7,7 @@ setup( name='depthai-sdk', - version='1.1.6', + version='1.1.7', description='This package contains convenience classes and functions that help in most common tasks while using DepthAI API', long_description=io.open("README.md", encoding="utf-8").read(), long_description_content_type="text/markdown", @@ -19,6 +19,9 @@ packages=['depthai_sdk'], package_dir={"": "src"}, # https://stackoverflow.com/a/67238346/5494277 install_requires=required, + extras_require = { + 'turbojpeg': ["PyTurboJPEG"] + }, include_package_data=True, project_urls={ "Bug Tracker": "https://github.com/luxonis/depthai/issues", diff --git a/gui/.gitignore b/gui/.gitignore deleted file mode 100644 index fab7372d7..000000000 --- a/gui/.gitignore +++ /dev/null @@ -1,73 +0,0 @@ -# This file is used to ignore files which are generated -# ---------------------------------------------------------------------------- - -*~ -*.autosave -*.a -*.core -*.moc -*.o -*.obj -*.orig -*.rej -*.so -*.so.* -*_pch.h.cpp -*_resource.rc -*.qm -.#* -*.*# -core -!core/ -tags -.DS_Store -.directory -*.debug -Makefile* -*.prl -*.app -moc_*.cpp -ui_*.h -qrc_*.cpp -Thumbs.db -*.res -*.rc -/.qmake.cache -/.qmake.stash - -# qtcreator generated files -*.pro.user* - -# xemacs temporary files -*.flc - -# Vim temporary files -.*.swp - -# Visual Studio generated files -*.ib_pdb_index -*.idb -*.ilk -*.pdb -*.sln -*.suo -*.vcproj -*vcproj.*.*.user -*.ncb -*.sdf -*.opensdf -*.vcxproj -*vcxproj.* - -# MinGW generated files -*.Debug -*.Release - -# Python byte code -*.pyc - -# Binaries -# -------- -*.dll -*.exe - diff --git a/gui/main.py b/gui/main.py deleted file mode 100644 index 6fc5670f4..000000000 --- a/gui/main.py +++ /dev/null @@ -1,360 +0,0 @@ -# This Python file uses the following encoding: utf-8 -import sys -from pathlib import Path - -import blobconverter -import cv2 -from PyQt5.QtQml import QQmlApplicationEngine, qmlRegisterType, qmlRegisterSingletonType, QQmlEngine -from PyQt5.QtQuick import QQuickPaintedItem -from PyQt5.QtGui import QImage -from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, QRunnable, QThreadPool -import depthai as dai - -# To be used on the @QmlElement decorator -# (QML_IMPORT_MINOR_VERSION is optional) -from PyQt5.QtWidgets import QApplication -from depthai_sdk import Previews, resizeLetterbox, createBlankFrame - - -class Singleton(type(QQuickPaintedItem)): - _instances = {} - def __call__(cls, *args, **kwargs): - if cls not in cls._instances: - cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) - return cls._instances[cls] - - -instance = None - - -# @QmlElement -class ImageWriter(QQuickPaintedItem): - frame = QImage() - - def __init__(self, parent): - super().__init__(parent) - self.setRenderTarget(QQuickPaintedItem.FramebufferObject) - self.setProperty("parent", parent) - - def paint(self, painter): - painter.drawImage(0, 0, self.frame) - - def update_frame(self, image): - self.frame = image - self.update() - - -# @QmlElement -class AppBridge(QObject): - @pyqtSlot() - def applyAndRestart(self): - instance.restartDemo() - - @pyqtSlot() - def reloadDevices(self): - instance.guiOnReloadDevices() - - @pyqtSlot(bool) - def toggleStatisticsConsent(self, value): - instance.guiOnStaticticsConsent(value) - - @pyqtSlot(bool) - def toggleSync(self, value): - instance.guiOnToggleSync(value) - - @pyqtSlot(str) - def runApp(self, appName): - instance.guiOnRunApp(appName) - - @pyqtSlot(str) - def terminateApp(self, appName): - instance.guiOnTerminateApp(appName) - - @pyqtSlot(str) - def selectDevice(self, value): - instance.guiOnSelectDevice(value) - - @pyqtSlot(bool, bool, bool) - def selectReportingOptions(self, temp, cpu, memory): - instance.guiOnSelectReportingOptions(temp, cpu, memory) - - @pyqtSlot(str) - def selectReportingPath(self, value): - instance.guiOnSelectReportingPath(value) - - @pyqtSlot(str) - def selectEncodingPath(self, value): - instance.guiOnSelectEncodingPath(value) - - @pyqtSlot(bool, int) - def toggleColorEncoding(self, enabled, fps): - instance.guiOnToggleColorEncoding(enabled, fps) - - @pyqtSlot(bool, int) - def toggleLeftEncoding(self, enabled, fps): - instance.guiOnToggleLeftEncoding(enabled, fps) - - @pyqtSlot(bool, int) - def toggleRightEncoding(self, enabled, fps): - instance.guiOnToggleRightEncoding(enabled, fps) - - @pyqtSlot(bool) - def toggleDepth(self, enabled): - instance.guiOnToggleDepth(enabled) - - @pyqtSlot(bool) - def toggleNN(self, enabled): - instance.guiOnToggleNN(enabled) - - @pyqtSlot(bool) - def toggleDisparity(self, enabled): - instance.guiOnToggleDisparity(enabled) - - -# @QmlElement -class AIBridge(QObject): - @pyqtSlot(str) - def setCnnModel(self, name): - instance.guiOnAiSetupUpdate(cnn=name) - - @pyqtSlot(int) - def setShaves(self, value): - instance.guiOnAiSetupUpdate(shave=value) - - @pyqtSlot(str) - def setModelSource(self, value): - instance.guiOnAiSetupUpdate(source=value) - - @pyqtSlot(bool) - def setFullFov(self, value): - instance.guiOnAiSetupUpdate(fullFov=value) - - @pyqtSlot(bool) - def setSbb(self, value): - instance.guiOnAiSetupUpdate(sbb=value) - - @pyqtSlot(float) - def setSbbFactor(self, value): - if instance.writer is not None: - instance.guiOnAiSetupUpdate(sbbFactor=value) - - @pyqtSlot(str) - def setOvVersion(self, state): - instance.guiOnAiSetupUpdate(ov=state.replace("VERSION_", "")) - - @pyqtSlot(str) - def setCountLabel(self, state): - instance.guiOnAiSetupUpdate(countLabel=state) - - -# @QmlElement -class PreviewBridge(QObject): - @pyqtSlot(str) - def changeSelected(self, state): - instance.guiOnPreviewChangeSelected(state) - - -# @QmlElement -class DepthBridge(QObject): - @pyqtSlot(bool) - def toggleSubpixel(self, state): - instance.guiOnDepthSetupUpdate(subpixel=state) - - @pyqtSlot(bool) - def toggleExtendedDisparity(self, state): - instance.guiOnDepthSetupUpdate(extended=state) - - @pyqtSlot(bool) - def toggleLeftRightCheck(self, state): - instance.guiOnDepthConfigUpdate(lrc=state) - - @pyqtSlot(int) - def setDisparityConfidenceThreshold(self, value): - instance.guiOnDepthConfigUpdate(dct=value) - - @pyqtSlot(int) - def setLrcThreshold(self, value): - instance.guiOnDepthConfigUpdate(lrcThreshold=value) - - @pyqtSlot(int) - def setBilateralSigma(self, value): - instance.guiOnDepthConfigUpdate(sigma=value) - - @pyqtSlot(int, int) - def setDepthRange(self, valFrom, valTo): - instance.guiOnDepthSetupUpdate(depthFrom=int(valFrom * 1000), depthTo=int(valTo * 1000)) - - @pyqtSlot(str) - def setMedianFilter(self, state): - value = getattr(dai.MedianFilter, state) - instance.guiOnDepthConfigUpdate(median=value) - - -# @QmlElement -class ColorCamBridge(QObject): - name = "color" - - @pyqtSlot(int, int) - def setIsoExposure(self, iso, exposure): - if iso > 0 and exposure > 0: - instance.guiOnCameraConfigUpdate("color", sensitivity=iso, exposure=exposure) - - @pyqtSlot(int) - def setContrast(self, value): - instance.guiOnCameraConfigUpdate("color", contrast=value) - - @pyqtSlot(int) - def setBrightness(self, value): - instance.guiOnCameraConfigUpdate("color", brightness=value) - - @pyqtSlot(int) - def setSaturation(self, value): - instance.guiOnCameraConfigUpdate("color", saturation=value) - - @pyqtSlot(int) - def setSharpness(self, value): - instance.guiOnCameraConfigUpdate("color", sharpness=value) - - @pyqtSlot(int) - def setFps(self, value): - instance.guiOnCameraSetupUpdate("color", fps=value) - - @pyqtSlot(str) - def setResolution(self, state): - if state == "THE_1080_P": - instance.guiOnCameraSetupUpdate("color", resolution=1080) - elif state == "THE_4_K": - instance.guiOnCameraSetupUpdate("color", resolution=2160) - elif state == "THE_12_MP": - instance.guiOnCameraSetupUpdate("color", resolution=3040) - - -# @QmlElement -class MonoCamBridge(QObject): - - @pyqtSlot(int, int) - def setIsoExposure(self, iso, exposure): - if iso > 0 and exposure > 0: - instance.guiOnCameraConfigUpdate("left", sensitivity=iso, exposure=exposure) - instance.guiOnCameraConfigUpdate("right", sensitivity=iso, exposure=exposure) - - @pyqtSlot(int) - def setContrast(self, value): - instance.guiOnCameraConfigUpdate("left", contrast=value) - instance.guiOnCameraConfigUpdate("right", contrast=value) - - @pyqtSlot(int) - def setBrightness(self, value): - instance.guiOnCameraConfigUpdate("left", brightness=value) - instance.guiOnCameraConfigUpdate("right", brightness=value) - - @pyqtSlot(int) - def setSaturation(self, value): - instance.guiOnCameraConfigUpdate("left", saturation=value) - instance.guiOnCameraConfigUpdate("right", saturation=value) - - @pyqtSlot(int) - def setSharpness(self, value): - instance.guiOnCameraConfigUpdate("left", sharpness=value) - instance.guiOnCameraConfigUpdate("right", sharpness=value) - - @pyqtSlot(int) - def setFps(self, value): - instance.guiOnCameraSetupUpdate("left", fps=value) - instance.guiOnCameraSetupUpdate("right", fps=value) - - @pyqtSlot(str) - def setResolution(self, state): - if state == "THE_720_P": - instance.guiOnCameraSetupUpdate("left", resolution=720) - instance.guiOnCameraSetupUpdate("right", resolution=720) - elif state == "THE_800_P": - instance.guiOnCameraSetupUpdate("left", resolution=800) - instance.guiOnCameraSetupUpdate("right", resolution=800) - elif state == "THE_400_P": - instance.guiOnCameraSetupUpdate("left", resolution=400) - instance.guiOnCameraSetupUpdate("right", resolution=400) - - -class DemoQtGui: - instance = None - writer = None - window = None - progressFrame = None - - def __init__(self): - global instance - self.app = QApplication([sys.argv[0]]) - self.engine = QQmlApplicationEngine() - self.engine.quit.connect(self.app.quit) - instance = self - qmlRegisterType(ImageWriter, 'dai.gui', 1, 0, 'ImageWriter') - qmlRegisterType(AppBridge, 'dai.gui', 1, 0, 'AppBridge') - qmlRegisterType(AIBridge, 'dai.gui', 1, 0, 'AIBridge') - qmlRegisterType(PreviewBridge, 'dai.gui', 1, 0, 'PreviewBridge') - qmlRegisterType(DepthBridge, 'dai.gui', 1, 0, 'DepthBridge') - qmlRegisterType(ColorCamBridge, 'dai.gui', 1, 0, 'ColorCamBridge') - qmlRegisterType(MonoCamBridge, 'dai.gui', 1, 0, 'MonoCamBridge') - self.engine.addImportPath(str(Path(__file__).parent / "views")) - self.engine.load(str(Path(__file__).parent / "views" / "root.qml")) - self.window = self.engine.rootObjects()[0] - if not self.engine.rootObjects(): - raise RuntimeError("Unable to start GUI - no root objects!") - - def setData(self, data): - name, value = data - self.window.setProperty(name, value) - - def updatePreview(self, frame): - w, h = int(self.writer.width()), int(self.writer.height()) - scaledFrame = resizeLetterbox(frame, (w, h)) - if len(frame.shape) == 3: - img = QImage(scaledFrame.data, w, h, frame.shape[2] * w, 29) # 29 - QImage.Format_BGR888 - else: - img = QImage(scaledFrame.data, w, h, w, 24) # 24 - QImage.Format_Grayscale8 - self.writer.update_frame(img) - - def updateDownloadProgress(self, curr, total): - frame = self.createProgressFrame(curr / total) - img = QImage(frame.data, frame.shape[1], frame.shape[0], frame.shape[2] * frame.shape[1], 29) # 29 - QImage.Format_BGR888 - self.writer.update_frame(img) - - def createProgressFrame(self, donePercentage=None): - confManager = getattr(self, "confManager", None) - w, h = int(self.writer.width()), int(self.writer.height()) - if self.progressFrame is None: - self.progressFrame = createBlankFrame(w, h) - downloadText = "Downloading model blob..." - textsize = cv2.getTextSize(downloadText, cv2.FONT_HERSHEY_TRIPLEX, 0.5, 4)[0][0] - offset = int((w - textsize) / 2) - cv2.putText(self.progressFrame, downloadText, (offset, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) - cv2.putText(self.progressFrame, downloadText, (offset, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) - - newFrame = self.progressFrame.copy() - if donePercentage is not None: - cv2.rectangle(newFrame, (100, 300), (460, 350), (255, 255, 255), cv2.FILLED) - cv2.rectangle(newFrame, (110, 310), (int(110 + 340 * donePercentage), 340), (0, 0, 0), cv2.FILLED) - return newFrame - - def showSetupFrame(self, text): - w, h = int(self.writer.width()), int(self.writer.height()) - setupFrame = createBlankFrame(w, h) - cv2.putText(setupFrame, text, (200, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) - cv2.putText(setupFrame, text, (200, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) - img = QImage(setupFrame.data, w, h, setupFrame.shape[2] * w, 29) # 29 - QImage.Format_BGR888 - self.writer.update_frame(img) - - def startGui(self): - self.writer = self.window.findChild(QObject, "writer") - self.showSetupFrame("Starting demo...") - medianChoices = list(filter(lambda name: name.startswith('KERNEL_') or name.startswith('MEDIAN_'), vars(dai.MedianFilter).keys()))[::-1] - self.setData(["medianChoices", medianChoices]) - colorChoices = list(filter(lambda name: name[0].isupper(), vars(dai.ColorCameraProperties.SensorResolution).keys())) - self.setData(["colorResolutionChoices", colorChoices]) - monoChoices = list(filter(lambda name: name[0].isupper(), vars(dai.MonoCameraProperties.SensorResolution).keys())) - self.setData(["monoResolutionChoices", monoChoices]) - self.setData(["modelSourceChoices", [Previews.color.name, Previews.left.name, Previews.right.name]]) - versionChoices = sorted(filter(lambda name: name.startswith("VERSION_"), vars(dai.OpenVINO).keys()), reverse=True) - self.setData(["ovVersions", versionChoices]) - self.createProgressFrame() - return self.app.exec() diff --git a/gui/README.md b/gui/qt/README.md similarity index 100% rename from gui/README.md rename to gui/qt/README.md diff --git a/gui/__init__.py b/gui/qt/__init__.py similarity index 100% rename from gui/__init__.py rename to gui/qt/__init__.py diff --git a/gui/depthai_demo.pyproject b/gui/qt/depthai_demo.pyproject similarity index 100% rename from gui/depthai_demo.pyproject rename to gui/qt/depthai_demo.pyproject diff --git a/gui/qt/main.py b/gui/qt/main.py new file mode 100644 index 000000000..ced523af8 --- /dev/null +++ b/gui/qt/main.py @@ -0,0 +1,766 @@ +# This Python file uses the following encoding: utf-8 +import argparse +import json +import sys +import time +import traceback +from functools import cmp_to_key +from pathlib import Path + +import cv2 +import numpy as np +from PyQt5.QtQml import QQmlApplicationEngine, qmlRegisterType +from PyQt5.QtQuick import QQuickPaintedItem +from PyQt5.QtGui import QImage +from PyQt5.QtWidgets import QMessageBox +from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, QRunnable, QThreadPool +import depthai as dai + +# To be used on the @QmlElement decorator +# (QML_IMPORT_MINOR_VERSION is optional) +from PyQt5.QtWidgets import QApplication +from depthai_sdk import Previews, resizeLetterbox, createBlankFrame, loadModule + +from depthai_helpers.arg_manager import projectRoot +from depthai_helpers.config_manager import prepareConfManager + + +class Singleton(type(QQuickPaintedItem)): + _instances = {} + def __call__(cls, *args, **kwargs): + if cls not in cls._instances: + cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs) + return cls._instances[cls] + + +instance = None + + +# @QmlElement +class ImageWriter(QQuickPaintedItem): + frame = QImage() + + def __init__(self, parent): + super().__init__(parent) + self.setRenderTarget(QQuickPaintedItem.FramebufferObject) + self.setProperty("parent", parent) + + def paint(self, painter): + painter.drawImage(0, 0, self.frame) + + def update_frame(self, image): + self.frame = image + self.update() + + +# @QmlElement +class AppBridge(QObject): + @pyqtSlot() + def applyAndRestart(self): + instance.restartDemo() + + @pyqtSlot() + def reloadDevices(self): + instance.guiOnReloadDevices() + + @pyqtSlot(bool) + def toggleStatisticsConsent(self, value): + instance.guiOnStaticticsConsent(value) + + @pyqtSlot(bool) + def guiOnToggleSync(self, value): + self.updateArg("sync", value) + + @pyqtSlot(str) + def runApp(self, appName): + instance.guiOnRunApp(appName) + + @pyqtSlot(str) + def terminateApp(self, appName): + instance.guiOnTerminateApp(appName) + + @pyqtSlot(str) + def selectDevice(self, value): + instance.guiOnSelectDevice(value) + + @pyqtSlot(bool, bool, bool) + def selectReportingOptions(self, temp, cpu, memory): + instance.guiOnSelectReportingOptions(temp, cpu, memory) + + @pyqtSlot(str) + def selectReportingPath(self, value): + instance.guiOnSelectReportingPath(value) + + @pyqtSlot(str) + def selectEncodingPath(self, value): + instance.guiOnSelectEncodingPath(value) + + @pyqtSlot(bool, int) + def toggleColorEncoding(self, enabled, fps): + instance.guiOnToggleColorEncoding(enabled, fps) + + @pyqtSlot(bool, int) + def toggleLeftEncoding(self, enabled, fps): + instance.guiOnToggleLeftEncoding(enabled, fps) + + @pyqtSlot(bool, int) + def toggleRightEncoding(self, enabled, fps): + instance.guiOnToggleRightEncoding(enabled, fps) + + @pyqtSlot(bool) + def toggleDepth(self, enabled): + instance.guiOnToggleDepth(enabled) + + @pyqtSlot(bool) + def toggleNN(self, enabled): + instance.guiOnToggleNN(enabled) + + @pyqtSlot(bool) + def toggleDisparity(self, enabled): + instance.guiOnToggleDisparity(enabled) + + +# @QmlElement +class AIBridge(QObject): + @pyqtSlot(str) + def setCnnModel(self, name): + instance.guiOnAiSetupUpdate(cnn=name) + + @pyqtSlot(int) + def setShaves(self, value): + instance.guiOnAiSetupUpdate(shave=value) + + @pyqtSlot(str) + def setModelSource(self, value): + instance.guiOnAiSetupUpdate(source=value) + + @pyqtSlot(bool) + def setFullFov(self, value): + instance.guiOnAiSetupUpdate(fullFov=value) + + @pyqtSlot(bool) + def setSbb(self, value): + instance.guiOnAiSetupUpdate(sbb=value) + + @pyqtSlot(float) + def setSbbFactor(self, value): + if instance.writer is not None: + instance.guiOnAiSetupUpdate(sbbFactor=value) + + @pyqtSlot(str) + def setOvVersion(self, state): + instance.guiOnAiSetupUpdate(ov=state.replace("VERSION_", "")) + + @pyqtSlot(str) + def setCountLabel(self, state): + instance.guiOnAiSetupUpdate(countLabel=state) + + +# @QmlElement +class PreviewBridge(QObject): + @pyqtSlot(str) + def changeSelected(self, state): + instance.guiOnPreviewChangeSelected(state) + + +# @QmlElement +class DepthBridge(QObject): + @pyqtSlot(bool) + def toggleSubpixel(self, state): + instance.guiOnDepthSetupUpdate(subpixel=state) + + @pyqtSlot(bool) + def toggleExtendedDisparity(self, state): + instance.guiOnDepthSetupUpdate(extended=state) + + @pyqtSlot(bool) + def toggleLeftRightCheck(self, state): + instance.guiOnDepthConfigUpdate(lrc=state) + + @pyqtSlot(int) + def setDisparityConfidenceThreshold(self, value): + instance.guiOnDepthConfigUpdate(dct=value) + + @pyqtSlot(int) + def setLrcThreshold(self, value): + instance.guiOnDepthConfigUpdate(lrcThreshold=value) + + @pyqtSlot(int) + def setBilateralSigma(self, value): + instance.guiOnDepthConfigUpdate(sigma=value) + + @pyqtSlot(int, int) + def setDepthRange(self, valFrom, valTo): + instance.guiOnDepthSetupUpdate(depthFrom=int(valFrom * 1000), depthTo=int(valTo * 1000)) + + @pyqtSlot(str) + def setMedianFilter(self, state): + value = getattr(dai.MedianFilter, state) + instance.guiOnDepthConfigUpdate(median=value) + + +# @QmlElement +class ColorCamBridge(QObject): + name = "color" + + @pyqtSlot(int, int) + def setIsoExposure(self, iso, exposure): + if iso > 0 and exposure > 0: + instance.guiOnCameraConfigUpdate("color", sensitivity=iso, exposure=exposure) + + @pyqtSlot(int) + def setContrast(self, value): + instance.guiOnCameraConfigUpdate("color", contrast=value) + + @pyqtSlot(int) + def setBrightness(self, value): + instance.guiOnCameraConfigUpdate("color", brightness=value) + + @pyqtSlot(int) + def setSaturation(self, value): + instance.guiOnCameraConfigUpdate("color", saturation=value) + + @pyqtSlot(int) + def setSharpness(self, value): + instance.guiOnCameraConfigUpdate("color", sharpness=value) + + @pyqtSlot(int) + def setFps(self, value): + instance.guiOnCameraSetupUpdate("color", fps=value) + + @pyqtSlot(str) + def setResolution(self, state): + if state == "THE_1080_P": + instance.guiOnCameraSetupUpdate("color", resolution=1080) + elif state == "THE_4_K": + instance.guiOnCameraSetupUpdate("color", resolution=2160) + elif state == "THE_12_MP": + instance.guiOnCameraSetupUpdate("color", resolution=3040) + + +# @QmlElement +class MonoCamBridge(QObject): + + @pyqtSlot(int, int) + def setIsoExposure(self, iso, exposure): + if iso > 0 and exposure > 0: + instance.guiOnCameraConfigUpdate("left", sensitivity=iso, exposure=exposure) + instance.guiOnCameraConfigUpdate("right", sensitivity=iso, exposure=exposure) + + @pyqtSlot(int) + def setContrast(self, value): + instance.guiOnCameraConfigUpdate("left", contrast=value) + instance.guiOnCameraConfigUpdate("right", contrast=value) + + @pyqtSlot(int) + def setBrightness(self, value): + instance.guiOnCameraConfigUpdate("left", brightness=value) + instance.guiOnCameraConfigUpdate("right", brightness=value) + + @pyqtSlot(int) + def setSaturation(self, value): + instance.guiOnCameraConfigUpdate("left", saturation=value) + instance.guiOnCameraConfigUpdate("right", saturation=value) + + @pyqtSlot(int) + def setSharpness(self, value): + instance.guiOnCameraConfigUpdate("left", sharpness=value) + instance.guiOnCameraConfigUpdate("right", sharpness=value) + + @pyqtSlot(int) + def setFps(self, value): + instance.guiOnCameraSetupUpdate("left", fps=value) + instance.guiOnCameraSetupUpdate("right", fps=value) + + @pyqtSlot(str) + def setResolution(self, state): + if state == "THE_720_P": + instance.guiOnCameraSetupUpdate("left", resolution=720) + instance.guiOnCameraSetupUpdate("right", resolution=720) + elif state == "THE_800_P": + instance.guiOnCameraSetupUpdate("left", resolution=800) + instance.guiOnCameraSetupUpdate("right", resolution=800) + elif state == "THE_400_P": + instance.guiOnCameraSetupUpdate("left", resolution=400) + instance.guiOnCameraSetupUpdate("right", resolution=400) + + +class DemoQtGui: + instance = None + writer = None + window = None + progressFrame = None + + def __init__(self): + global instance + self.app = QApplication([sys.argv[0]]) + self.engine = QQmlApplicationEngine() + self.engine.quit.connect(self.app.quit) + instance = self + qmlRegisterType(ImageWriter, 'dai.gui', 1, 0, 'ImageWriter') + qmlRegisterType(AppBridge, 'dai.gui', 1, 0, 'AppBridge') + qmlRegisterType(AIBridge, 'dai.gui', 1, 0, 'AIBridge') + qmlRegisterType(PreviewBridge, 'dai.gui', 1, 0, 'PreviewBridge') + qmlRegisterType(DepthBridge, 'dai.gui', 1, 0, 'DepthBridge') + qmlRegisterType(ColorCamBridge, 'dai.gui', 1, 0, 'ColorCamBridge') + qmlRegisterType(MonoCamBridge, 'dai.gui', 1, 0, 'MonoCamBridge') + self.engine.addImportPath(str(Path(__file__).parent / "views")) + self.engine.load(str(Path(__file__).parent / "views" / "root.qml")) + self.window = self.engine.rootObjects()[0] + if not self.engine.rootObjects(): + raise RuntimeError("Unable to start GUI - no root objects!") + + def setData(self, data): + name, value = data + self.window.setProperty(name, value) + + def updatePreview(self, frame): + w, h = int(self.writer.width()), int(self.writer.height()) + scaledFrame = resizeLetterbox(frame, (w, h)) + if len(frame.shape) == 3: + img = QImage(scaledFrame.data, w, h, frame.shape[2] * w, 29) # 29 - QImage.Format_BGR888 + else: + img = QImage(scaledFrame.data, w, h, w, 24) # 24 - QImage.Format_Grayscale8 + self.writer.update_frame(img) + + def updateDownloadProgress(self, curr, total): + frame = self.createProgressFrame(curr / total) + img = QImage(frame.data, frame.shape[1], frame.shape[0], frame.shape[2] * frame.shape[1], 29) # 29 - QImage.Format_BGR888 + self.writer.update_frame(img) + + def createProgressFrame(self, donePercentage=None): + confManager = getattr(self, "confManager", None) + w, h = int(self.writer.width()), int(self.writer.height()) + if self.progressFrame is None: + self.progressFrame = createBlankFrame(w, h) + downloadText = "Downloading model blob..." + textsize = cv2.getTextSize(downloadText, cv2.FONT_HERSHEY_TRIPLEX, 0.5, 4)[0][0] + offset = int((w - textsize) / 2) + cv2.putText(self.progressFrame, downloadText, (offset, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) + cv2.putText(self.progressFrame, downloadText, (offset, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) + + newFrame = self.progressFrame.copy() + if donePercentage is not None: + cv2.rectangle(newFrame, (100, 300), (460, 350), (255, 255, 255), cv2.FILLED) + cv2.rectangle(newFrame, (110, 310), (int(110 + 340 * donePercentage), 340), (0, 0, 0), cv2.FILLED) + return newFrame + + def showSetupFrame(self, text): + w, h = int(self.writer.width()), int(self.writer.height()) + setupFrame = createBlankFrame(w, h) + cv2.putText(setupFrame, text, (200, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) + cv2.putText(setupFrame, text, (200, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) + img = QImage(setupFrame.data, w, h, setupFrame.shape[2] * w, 29) # 29 - QImage.Format_BGR888 + self.writer.update_frame(img) + + def startGui(self): + self.writer = self.window.findChild(QObject, "writer") + self.showSetupFrame("Starting demo...") + medianChoices = list(filter(lambda name: name.startswith('KERNEL_') or name.startswith('MEDIAN_'), vars(dai.MedianFilter).keys()))[::-1] + self.setData(["medianChoices", medianChoices]) + colorChoices = list(filter(lambda name: name[0].isupper(), vars(dai.ColorCameraProperties.SensorResolution).keys())) + self.setData(["colorResolutionChoices", colorChoices]) + monoChoices = list(filter(lambda name: name[0].isupper(), vars(dai.MonoCameraProperties.SensorResolution).keys())) + self.setData(["monoResolutionChoices", monoChoices]) + self.setData(["modelSourceChoices", [Previews.color.name, Previews.left.name, Previews.right.name]]) + versionChoices = sorted(filter(lambda name: name.startswith("VERSION_"), vars(dai.OpenVINO).keys()), reverse=True) + self.setData(["ovVersions", versionChoices]) + self.createProgressFrame() + return self.app.exec() + +class WorkerSignals(QObject): + updateConfSignal = pyqtSignal(list) + updateDownloadProgressSignal = pyqtSignal(int, int) + updatePreviewSignal = pyqtSignal(np.ndarray) + setDataSignal = pyqtSignal(list) + exitSignal = pyqtSignal() + errorSignal = pyqtSignal(str) + +class Worker(QRunnable): + def __init__(self, instance, parent, conf, selectedPreview=None): + super(Worker, self).__init__() + self.running = False + self.selectedPreview = selectedPreview + self.instance = instance + self.parent = parent + self.conf = conf + self.callback_module = loadModule(conf.args.callback) + self.file_callbacks = { + callbackName: getattr(self.callback_module, callbackName) + for callbackName in ["shouldRun", "onNewFrame", "onShowFrame", "onNn", "onReport", "onSetup", "onTeardown", "onIter"] + if callable(getattr(self.callback_module, callbackName, None)) + } + self.instance.setCallbacks(**self.file_callbacks) + self.signals = WorkerSignals() + self.signals.exitSignal.connect(self.terminate) + self.signals.updateConfSignal.connect(self.updateConf) + + + def run(self): + self.running = True + self.signals.setDataSignal.emit(["restartRequired", False]) + self.instance.setCallbacks(shouldRun=self.shouldRun, onShowFrame=self.onShowFrame, onSetup=self.onSetup, onAppSetup=self.onAppSetup, onAppStart=self.onAppStart, showDownloadProgress=self.showDownloadProgress) + self.conf.args.bandwidth = "auto" + if self.conf.args.deviceId is None: + devices = dai.Device.getAllAvailableDevices() + if len(devices) > 0: + defaultDevice = next(map( + lambda info: info.getMxId(), + filter(lambda info: info.desc.protocol == dai.XLinkProtocol.X_LINK_USB_VSC, devices) + ), None) + if defaultDevice is None: + defaultDevice = devices[0].getMxId() + self.conf.args.deviceId = defaultDevice + self.conf.args.show = [ + Previews.color.name, Previews.nnInput.name, Previews.depth.name, Previews.depthRaw.name, Previews.left.name, + Previews.rectifiedLeft.name, Previews.right.name, Previews.rectifiedRight.name + ] + try: + self.instance.run_all(self.conf) + except KeyboardInterrupt: + sys.exit(0) + except Exception as ex: + self.onError(ex) + + def terminate(self): + self.running = False + self.signals.setDataSignal.emit(["restartRequired", False]) + + + def updateConf(self, argsList): + self.conf.args = argparse.Namespace(**dict(argsList)) + + def onError(self, ex: Exception): + self.signals.errorSignal.emit(''.join(traceback.format_tb(ex.__traceback__) + [str(ex)])) + self.signals.setDataSignal.emit(["restartRequired", True]) + + def shouldRun(self): + if "shouldRun" in self.file_callbacks: + return self.running and self.file_callbacks["shouldRun"]() + return self.running + + def onShowFrame(self, frame, source): + if "onShowFrame" in self.file_callbacks: + self.file_callbacks["onShowFrame"](frame, source) + if source == self.selectedPreview: + self.signals.updatePreviewSignal.emit(frame) + + def onAppSetup(self, app): + setupFrame = createBlankFrame(500, 500) + cv2.putText(setupFrame, "Preparing {} app...".format(app.appName), (150, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) + cv2.putText(setupFrame, "Preparing {} app...".format(app.appName), (150, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) + self.signals.updatePreviewSignal.emit(setupFrame) + + def onAppStart(self, app): + setupFrame = createBlankFrame(500, 500) + cv2.putText(setupFrame, "Running {} app... (check console)".format(app.appName), (100, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (255, 255, 255), 4, cv2.LINE_AA) + cv2.putText(setupFrame, "Running {} app... (check console)".format(app.appName), (100, 250), cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1, cv2.LINE_AA) + self.signals.updatePreviewSignal.emit(setupFrame) + + def showDownloadProgress(self, curr, total): + self.signals.updateDownloadProgressSignal.emit(curr, total) + + def onSetup(self, instance): + if "onSetup" in self.file_callbacks: + self.file_callbacks["onSetup"](instance) + self.signals.updateConfSignal.emit(list(vars(self.conf.args).items())) + self.signals.setDataSignal.emit(["previewChoices", self.conf.args.show]) + devices = [self.instance._deviceInfo.getMxId()] + list(map(lambda info: info.getMxId(), dai.Device.getAllAvailableDevices())) + self.signals.setDataSignal.emit(["deviceChoices", devices]) + if instance._nnManager is not None: + self.signals.setDataSignal.emit(["countLabels", instance._nnManager._labels]) + else: + self.signals.setDataSignal.emit(["countLabels", []]) + self.signals.setDataSignal.emit(["depthEnabled", self.conf.useDepth]) + self.signals.setDataSignal.emit(["statisticsAccepted", self.instance.metrics is not None]) + self.signals.setDataSignal.emit(["modelChoices", sorted(self.conf.getAvailableZooModels(), key=cmp_to_key(lambda a, b: -1 if a == "mobilenet-ssd" else 1 if b == "mobilenet-ssd" else -1 if a < b else 1))]) + + +class GuiApp(DemoQtGui): + def __init__(self, instance, args): + super().__init__() + self.confManager = prepareConfManager(args) + self.running = False + self.selectedPreview = self.confManager.args.show[0] if len(self.confManager.args.show) > 0 else "color" + self.useDisparity = False + self.dataInitialized = False + self.appInitialized = False + self.threadpool = QThreadPool() + self._demoInstance = instance + + def updateArg(self, arg_name, arg_value, shouldUpdate=True): + setattr(self.confManager.args, arg_name, arg_value) + if shouldUpdate: + self.worker.signals.setDataSignal.emit(["restartRequired", True]) + + + def showError(self, error): + print(error, file=sys.stderr) + msgBox = QMessageBox() + msgBox.setIcon(QMessageBox.Critical) + msgBox.setText(error) + msgBox.setWindowTitle("An error occured") + msgBox.setStandardButtons(QMessageBox.Ok) + msgBox.exec() + + def setupDataCollection(self): + try: + with Path(projectRoot / ".consent").open() as f: + accepted = json.load(f)["statistics"] + except: + accepted = True + + self._demoInstance.toggleMetrics(accepted) + + def start(self): + self.setupDataCollection() + self.running = True + self.worker = Worker(self._demoInstance, parent=self, conf=self.confManager, selectedPreview=self.selectedPreview) + self.worker.signals.updatePreviewSignal.connect(self.updatePreview) + self.worker.signals.updateDownloadProgressSignal.connect(self.updateDownloadProgress) + self.worker.signals.setDataSignal.connect(self.setData) + self.worker.signals.errorSignal.connect(self.showError) + self.threadpool.start(self.worker) + if not self.appInitialized: + self.appInitialized = True + exit_code = self.startGui() + self.stop(wait=False) + sys.exit(exit_code) + + def stop(self, wait=True): + if hasattr(self._demoInstance, "_device"): + current_mxid = self._demoInstance._device.getMxId() + else: + current_mxid = self.confManager.args.deviceId + self.worker.signals.exitSignal.emit() + self.threadpool.waitForDone(10000) + + if wait and current_mxid is not None: + start = time.time() + while time.time() - start < 30: + if current_mxid in list(map(lambda info: info.getMxId(), dai.Device.getAllAvailableDevices())): + break + else: + time.sleep(0.1) + else: + print(f"[Warning] Device not available again after 30 seconds! MXID: {current_mxid}") + + def restartDemo(self): + self.stop() + self.start() + + def guiOnDepthConfigUpdate(self, median=None, dct=None, sigma=None, lrc=None, lrcThreshold=None): + self._demoInstance._pm.updateDepthConfig(self._demoInstance._device, median=median, dct=dct, sigma=sigma, lrc=lrc, lrcThreshold=lrcThreshold) + if median is not None: + if median == dai.MedianFilter.MEDIAN_OFF: + self.updateArg("stereoMedianSize", 0, False) + elif median == dai.MedianFilter.KERNEL_3x3: + self.updateArg("stereoMedianSize", 3, False) + elif median == dai.MedianFilter.KERNEL_5x5: + self.updateArg("stereoMedianSize", 5, False) + elif median == dai.MedianFilter.KERNEL_7x7: + self.updateArg("stereoMedianSize", 7, False) + if dct is not None: + self.updateArg("disparityConfidenceThreshold", dct, False) + if sigma is not None: + self.updateArg("sigma", sigma, False) + if lrc is not None: + self.updateArg("stereoLrCheck", lrc, False) + if lrcThreshold is not None: + self.updateArg("lrcThreshold", lrcThreshold, False) + + def guiOnCameraConfigUpdate(self, name, exposure=None, sensitivity=None, saturation=None, contrast=None, brightness=None, sharpness=None): + if exposure is not None: + newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraExposure or []))) + [(name, exposure)] + self._demoInstance._cameraConfig["exposure"] = newValue + self.updateArg("cameraExposure", newValue, False) + if sensitivity is not None: + newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraSensitivity or []))) + [(name, sensitivity)] + self._demoInstance._cameraConfig["sensitivity"] = newValue + self.updateArg("cameraSensitivity", newValue, False) + if saturation is not None: + newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraSaturation or []))) + [(name, saturation)] + self._demoInstance._cameraConfig["saturation"] = newValue + self.updateArg("cameraSaturation", newValue, False) + if contrast is not None: + newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraContrast or []))) + [(name, contrast)] + self._demoInstance._cameraConfig["contrast"] = newValue + self.updateArg("cameraContrast", newValue, False) + if brightness is not None: + newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraBrightness or []))) + [(name, brightness)] + self._demoInstance._cameraConfig["brightness"] = newValue + self.updateArg("cameraBrightness", newValue, False) + if sharpness is not None: + newValue = list(filter(lambda item: item[0] == name, (self.confManager.args.cameraSharpness or []))) + [(name, sharpness)] + self._demoInstance._cameraConfig["sharpness"] = newValue + self.updateArg("cameraSharpness", newValue, False) + + self._demoInstance._updateCameraConfigs() + + def guiOnDepthSetupUpdate(self, depthFrom=None, depthTo=None, subpixel=None, extended=None): + if depthFrom is not None: + self.updateArg("minDepth", depthFrom) + if depthTo is not None: + self.updateArg("maxDepth", depthTo) + if subpixel is not None: + self.updateArg("subpixel", subpixel) + if extended is not None: + self.updateArg("extendedDisparity", extended) + + def guiOnCameraSetupUpdate(self, name, fps=None, resolution=None): + if fps is not None: + if name == "color": + self.updateArg("rgbFps", fps) + else: + self.updateArg("monoFps", fps) + if resolution is not None: + if name == "color": + self.updateArg("rgbResolution", resolution) + else: + self.updateArg("monoResolution", resolution) + + def guiOnAiSetupUpdate(self, cnn=None, shave=None, source=None, fullFov=None, sbb=None, sbbFactor=None, ov=None, countLabel=None): + if cnn is not None: + self.updateArg("cnnModel", cnn) + if shave is not None: + self.updateArg("shaves", shave) + if source is not None: + self.updateArg("camera", source) + if fullFov is not None: + self.updateArg("disableFullFovNn", not fullFov) + if sbb is not None: + self.updateArg("spatialBoundingBox", sbb) + if sbbFactor is not None: + self.updateArg("sbbScaleFactor", sbbFactor) + if ov is not None: + self.updateArg("openvinoVersion", ov) + if countLabel is not None or cnn is not None: + self.updateArg("countLabel", countLabel) + + def guiOnPreviewChangeSelected(self, selected): + self.worker.selectedPreview = selected + self.selectedPreview = selected + + def guiOnSelectDevice(self, selected): + self.updateArg("deviceId", selected) + + def guiOnReloadDevices(self): + devices = list(map(lambda info: info.getMxId(), dai.Device.getAllAvailableDevices())) + if hasattr(self._demoInstance, "_deviceInfo"): + devices.insert(0, self._demoInstance._deviceInfo.getMxId()) + self.worker.signals.setDataSignal.emit(["deviceChoices", devices]) + if len(devices) > 0: + self.worker.signals.setDataSignal.emit(["restartRequired", True]) + + def guiOnStaticticsConsent(self, value): + try: + with Path(projectRoot / ".consent").open('w') as f: + json.dump({"statistics": value}, f) + except: + pass + self.worker.signals.setDataSignal.emit(["restartRequired", True]) + + def guiOnToggleSync(self, value): + self.updateArg("sync", value) + + def guiOnToggleColorEncoding(self, enabled, fps): + oldConfig = self.confManager.args.encode or {} + if enabled: + oldConfig["color"] = fps + elif "color" in self.confManager.args.encode: + del oldConfig["color"] + self.updateArg("encode", oldConfig) + + def guiOnToggleLeftEncoding(self, enabled, fps): + oldConfig = self.confManager.args.encode or {} + if enabled: + oldConfig["left"] = fps + elif "color" in self.confManager.args.encode: + del oldConfig["left"] + self.updateArg("encode", oldConfig) + + def guiOnToggleRightEncoding(self, enabled, fps): + oldConfig = self.confManager.args.encode or {} + if enabled: + oldConfig["right"] = fps + elif "color" in self.confManager.args.encode: + del oldConfig["right"] + self.updateArg("encode", oldConfig) + + def guiOnSelectReportingOptions(self, temp, cpu, memory): + options = [] + if temp: + options.append("temp") + if cpu: + options.append("cpu") + if memory: + options.append("memory") + self.updateArg("report", options) + + def guiOnSelectReportingPath(self, value): + self.updateArg("reportFile", value) + + def guiOnSelectEncodingPath(self, value): + self.updateArg("encodeOutput", value) + + def guiOnToggleDepth(self, value): + self.updateArg("disableDepth", not value) + selectedPreviews = [Previews.rectifiedRight.name, Previews.rectifiedLeft.name] + ([Previews.disparity.name, Previews.disparityColor.name] if self.useDisparity else [Previews.depth.name, Previews.depthRaw.name]) + depthPreviews = [Previews.rectifiedRight.name, Previews.rectifiedLeft.name, Previews.depth.name, Previews.depthRaw.name, Previews.disparity.name, Previews.disparityColor.name] + filtered = list(filter(lambda name: name not in depthPreviews, self.confManager.args.show)) + if value: + updated = filtered + selectedPreviews + if self.selectedPreview not in updated: + self.selectedPreview = updated[0] + self.updateArg("show", updated) + else: + updated = filtered + [Previews.left.name, Previews.right.name] + if self.selectedPreview not in updated: + self.selectedPreview = updated[0] + self.updateArg("show", updated) + + def guiOnToggleNN(self, value): + self.updateArg("disableNeuralNetwork", not value) + filtered = list(filter(lambda name: name != Previews.nnInput.name, self.confManager.args.show)) + if value: + updated = filtered + [Previews.nnInput.name] + if self.selectedPreview not in updated: + self.selectedPreview = updated[0] + self.updateArg("show", filtered + [Previews.nnInput.name]) + else: + if self.selectedPreview not in filtered: + self.selectedPreview = filtered[0] + self.updateArg("show", filtered) + + def guiOnRunApp(self, appName): + self.stop() + self.updateArg("app", appName, shouldUpdate=False) + self.setData(["runningApp", appName]) + self.start() + + def guiOnTerminateApp(self, appName): + self.stop() + self.updateArg("app", None, shouldUpdate=False) + self.setData(["runningApp", ""]) + self.start() + + def guiOnToggleDisparity(self, value): + self.useDisparity = value + depthPreviews = [Previews.depth.name, Previews.depthRaw.name] + disparityPreviews = [Previews.disparity.name, Previews.disparityColor.name] + if value: + filtered = list(filter(lambda name: name not in depthPreviews, self.confManager.args.show)) + updated = filtered + disparityPreviews + if self.selectedPreview not in updated: + self.selectedPreview = updated[0] + self.updateArg("show", updated) + else: + filtered = list(filter(lambda name: name not in disparityPreviews, self.confManager.args.show)) + updated = filtered + depthPreviews + if self.selectedPreview not in updated: + self.selectedPreview = updated[0] + self.updateArg("show", updated) + + +def runQt(args, demo_instance): + GuiApp(demo_instance, args).start() diff --git a/gui/views/AIProperties.qml b/gui/qt/views/AIProperties.qml similarity index 100% rename from gui/views/AIProperties.qml rename to gui/qt/views/AIProperties.qml diff --git a/gui/views/CameraPreview.qml b/gui/qt/views/CameraPreview.qml similarity index 100% rename from gui/views/CameraPreview.qml rename to gui/qt/views/CameraPreview.qml diff --git a/gui/views/CameraProperties.qml b/gui/qt/views/CameraProperties.qml similarity index 100% rename from gui/views/CameraProperties.qml rename to gui/qt/views/CameraProperties.qml diff --git a/gui/views/DepthProperties.qml b/gui/qt/views/DepthProperties.qml similarity index 100% rename from gui/views/DepthProperties.qml rename to gui/qt/views/DepthProperties.qml diff --git a/gui/views/MiscProperties.qml b/gui/qt/views/MiscProperties.qml similarity index 100% rename from gui/views/MiscProperties.qml rename to gui/qt/views/MiscProperties.qml diff --git a/gui/views/root.qml b/gui/qt/views/root.qml similarity index 100% rename from gui/views/root.qml rename to gui/qt/views/root.qml diff --git a/gui/web/404.html b/gui/web/404.html new file mode 100644 index 000000000..74d3f21cf --- /dev/null +++ b/gui/web/404.html @@ -0,0 +1,10 @@ + + + + + Not Found | DepthAI Demo + + +Requested page was not found + + \ No newline at end of file diff --git a/gui/web/dist/404.html b/gui/web/dist/404.html new file mode 100644 index 000000000..74d3f21cf --- /dev/null +++ b/gui/web/dist/404.html @@ -0,0 +1,10 @@ + + + + + Not Found | DepthAI Demo + + +Requested page was not found + + \ No newline at end of file diff --git a/gui/web/dist/596.js b/gui/web/dist/596.js new file mode 100644 index 000000000..b07f4aff0 --- /dev/null +++ b/gui/web/dist/596.js @@ -0,0 +1 @@ +(self.webpackChunksrc=self.webpackChunksrc||[]).push([[596],{6988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>X});var r=n(1413),o=n(9439),a=n(4942),i=n(4925),u=n(7294),l=n(4184),c=n.n(l);const s=(0,u.createContext)({});var f=n(1002);function d(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function p(e){return e<=1?100*Number(e)+"%":e}function v(e){return 1===e.length?"0"+e:String(e)}function h(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function m(e){return y(e)/255}function y(e){return parseInt(e,16)}var g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function b(e){var t,n,r,o={r:0,g:0,b:0},a=1,i=null,u=null,l=null,c=!1,s=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(g[e])e=g[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=C.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=C.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=C.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=C.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=C.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=C.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=C.hex8.exec(e))return{r:y(n[1]),g:y(n[2]),b:y(n[3]),a:m(n[4]),format:t?"name":"hex8"};if(n=C.hex6.exec(e))return{r:y(n[1]),g:y(n[2]),b:y(n[3]),format:t?"name":"hex"};if(n=C.hex4.exec(e))return{r:y(n[1]+n[1]),g:y(n[2]+n[2]),b:y(n[3]+n[3]),a:m(n[4]+n[4]),format:t?"name":"hex8"};if(n=C.hex3.exec(e))return{r:y(n[1]+n[1]),g:y(n[2]+n[2]),b:y(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(S(e.r)&&S(e.g)&&S(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*d(t,255),g:255*d(n,255),b:255*d(r,255)},c=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):S(e.h)&&S(e.s)&&S(e.v)?(i=p(e.s),u=p(e.v),o=function(e,t,n){e=6*d(e,360),t=d(t,100),n=d(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),u=n*(1-(1-o)*t),l=r%6;return{r:255*[n,i,a,a,u,n][l],g:255*[u,n,n,i,a,a][l],b:255*[a,a,u,n,n,i][l]}}(e.h,i,u),c=!0,s="hsv"):S(e.h)&&S(e.s)&&S(e.l)&&(i=p(e.s),l=p(e.l),o=function(e,t,n){var r,o,a;if(e=d(e,360),t=d(t,100),n=d(n,100),0===t)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,u=2*n-i;r=h(u,i,e+1/3),o=h(u,i,e),a=h(u,i,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,i,l),c=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(a=e.a)),a=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(a),{ok:c,format:e.format||s,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a}}var w="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",E="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",x="[\\s|\\(]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")[,|\\s]+("+w+")\\s*\\)?",C={CSS_UNIT:new RegExp(w),rgb:new RegExp("rgb"+E),rgba:new RegExp("rgba"+x),hsl:new RegExp("hsl"+E),hsla:new RegExp("hsla"+x),hsv:new RegExp("hsv"+E),hsva:new RegExp("hsva"+x),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function S(e){return Boolean(C.CSS_UNIT.exec(String(e)))}var k=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function _(e){var t=function(e,t,n){e=d(e,255),t=d(t,255),n=d(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,u=r-o,l=0===r?0:u/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/u+(t=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function N(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function T(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function M(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=b(e),o=5;o>0;o-=1){var a=_(r),i=Z(b({h:P(a,o,!0),s:N(a,o,!0),v:T(a,o,!0)}));n.push(i)}n.push(Z(r));for(var u=1;u<=4;u+=1){var l=_(r),c=Z(b({h:P(l,u),s:N(l,u),v:T(l,u)}));n.push(c)}return"dark"===t.theme?k.map((function(e){var r=e.index,o=e.opacity;return Z(O(b(t.backgroundColor||"#141414"),b(n[r]),100*o))})):n}var R={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},j={};Object.keys(R).forEach((function(e){A[e]=M(R[e]),A[e].primary=A[e][5],j[e]=M(R[e],{theme:"dark",backgroundColor:"#141414"}),j[e].primary=j[e][5]}));A.red,A.volcano,A.gold,A.orange,A.yellow,A.lime,A.green,A.cyan,A.blue,A.geekblue,A.purple,A.magenta,A.grey;var I=n(334),L=n(4958);function D(e){return"object"===(0,f.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"==typeof e.icon)}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else t[n]=r;return t}),{})}function F(e,t,n){return n?u.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},z(e.attrs)),n),(e.children||[]).map((function(n,r){return F(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):u.createElement(e.tag,(0,r.Z)({key:t},z(e.attrs)),(e.children||[]).map((function(n,r){return F(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function V(e){return M(e)[0]}function U(e){return e?Array.isArray(e)?e:[e]:[]}var B="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",H=["icon","className","onClick","style","primaryColor","secondaryColor"],W={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var K=function(e){var t,n,o=e.icon,a=e.className,l=e.onClick,c=e.style,f=e.primaryColor,d=e.secondaryColor,p=(0,i.Z)(e,H),v=W;if(f&&(v={primaryColor:f,secondaryColor:d||V(f)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=(0,u.useContext)(s).csp;(0,u.useEffect)((function(){(0,L.hq)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=D(o),n="icon should be icon definiton, but got ".concat(o),(0,I.ZP)(t,"[@ant-design/icons] ".concat(n)),!D(o))return null;var h=o;return h&&"function"==typeof h.icon&&(h=(0,r.Z)((0,r.Z)({},h),{},{icon:h.icon(v.primaryColor,v.secondaryColor)})),F(h.icon,"svg-".concat(h.name),(0,r.Z)({className:a,onClick:l,style:c,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},p))};K.displayName="IconReact",K.getTwoToneColors=function(){return(0,r.Z)({},W)},K.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;W.primaryColor=t,W.secondaryColor=n||V(t),W.calculated=!!n};const $=K;function q(e){var t=U(e),n=(0,o.Z)(t,2),r=n[0],a=n[1];return $.setTwoToneColors({primaryColor:r,secondaryColor:a})}var Y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];q("#1890ff");var G=u.forwardRef((function(e,t){var n,l=e.className,f=e.icon,d=e.spin,p=e.rotate,v=e.tabIndex,h=e.onClick,m=e.twoToneColor,y=(0,i.Z)(e,Y),g=u.useContext(s).prefixCls,b=void 0===g?"anticon":g,w=c()(b,(n={},(0,a.Z)(n,"".concat(b,"-").concat(f.name),!!f.name),(0,a.Z)(n,"".concat(b,"-spin"),!!d||"loading"===f.name),n),l),E=v;void 0===E&&h&&(E=-1);var x=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,C=U(m),S=(0,o.Z)(C,2),k=S[0],_=S[1];return u.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":f.name},y),{},{ref:t,tabIndex:E,onClick:h,className:w}),u.createElement($,{icon:f,primaryColor:k,secondaryColor:_,style:x}))}));G.displayName="AntdIcon",G.getTwoToneColor=function(){var e=$.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},G.setTwoToneColor=q;const X=G},2577:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"border-outer",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="BorderOuterOutlined";const l=o.forwardRef(u)},5008:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="CameraOutlined";const l=o.forwardRef(u)},9508:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="CheckOutlined";const l=o.forwardRef(u)},3061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="CloseCircleFilled";const l=o.forwardRef(u)},4549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="CloseOutlined";const l=o.forwardRef(u)},1457:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="ExperimentOutlined";const l=o.forwardRef(u)},7085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="LoadingOutlined";const l=o.forwardRef(u)},9934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="PlayCircleOutlined";const l=o.forwardRef(u)},1870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="QuestionCircleOutlined";const l=o.forwardRef(u)},6570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="SearchOutlined";const l=o.forwardRef(u)},5739:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1413),o=n(7294);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 01-3 3h-74a3 3 0 01-3-3v-74a3 3 0 013-3h74a3 3 0 013 3v74z"}}]},name:"sliders",theme:"outlined"};var i=n(6988),u=function(e,t){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:a}))};u.displayName="SlidersOutlined";const l=o.forwardRef(u)},7757:(e,t,n)=>{e.exports=n(5666)},5304:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function l(e,t){return 2===u(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===u(e)?e.get(t):e[t]}function s(e,t,n){var r=u(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return U&&e instanceof Map}function p(e){return B&&e instanceof Set}function v(e){return e.o||e.t}function h(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=G(e);delete t[$];for(var n=Y(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&i(e,(function(e,t){return m(t,!0)}),!0)),e}function y(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=X[e];return t||r(18,e),t}function w(e,t){X[e]||(X[e]=t)}function E(){return F}function x(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function C(e){S(e),e.p.forEach(_),e.p=null}function S(e){e===F&&(F=e.l)}function k(e){return F={p:[],l:F,h:e,m:!0,_:0}}function _(e){var t=e[$];0===t.i||1===t.i?t.j():t.O=!0}function Z(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,o),o?(n[$].P&&(C(t),r(4)),a(e)&&(e=O(t,e),t.l||N(t,e)),t.u&&b("Patches").M(n[$].t,e,t.u,t.s)):e=O(t,n,[]),C(t),t.u&&t.v(t.u,t.s),e!==W?e:void 0}function O(e,t,n){if(g(t))return t;var r=t[$];if(!r)return i(t,(function(o,a){return P(e,r,t,o,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return N(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=h(r.k):r.o;i(3===r.i?new Set(o):o,(function(t,a){return P(e,r,o,t,a,n)})),N(e,o,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function P(e,t,n,r,i,u){if(o(i)){var c=O(e,i,u&&t&&3!==t.i&&!l(t.D,r)?u.concat(r):void 0);if(s(n,r,c),!o(c))return;e.m=!1}if(a(i)&&!g(i)){if(!e.h.F&&e._<1)return;O(e,i),t&&t.A.l||N(e,i)}}function N(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&m(t,n)}function T(e,t){var n=e[$];return(n?v(n):e)[t]}function M(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function A(e){e.o||(e.o=h(e.t))}function j(e,t,n){var r=d(t)?b("MapSet").N(t,n):p(t)?b("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:E(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,a=Q;n&&(o=[r],a=J);var i=Proxy.revocable(o,a),u=i.revoke,l=i.proxy;return r.k=l,r.j=u,l}(t,n):b("ES5").J(t,n);return(n?n.A:E()).p.push(r),r}function I(e){return o(e)||r(22,e),function e(t){if(!a(t))return t;var n,r=t[$],o=u(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=L(t,o),r.I=!1}else n=L(t,o);return i(n,(function(t,o){r&&c(r.t,t)===o||s(n,t,e(o))})),3===o?new Set(n):n}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h(e)}function D(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[$];return Q.get(t,e)},set:function(t){var n=this[$];Q.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][$];if(!o.P)switch(o.i){case 5:r(o)&&R(o);break;case 4:n(o)&&R(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var a=r[o];if(a!==$){var i=t[a];if(void 0===i&&!l(t,a))return!0;var u=n[a],c=u&&u[$];if(c?c.t!==i:!f(u,i))return!0}}var s=!!t[$];return r.length!==Y(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;rAe,hg:()=>Ue,oM:()=>Le});var z,F,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),U="undefined"!=typeof Map,B="undefined"!=typeof Set,H="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,W=V?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),K=V?Symbol.for("immer-draftable"):"__$immer_draftable",$=V?Symbol.for("immer-state"):"__$immer_state",q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,G=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},Q={get:function(e,t){if(t===$)return e;var n=v(e);if(!l(n,t))return function(e,t,n){var r,o=M(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!a(r)?r:r===T(e.t,t)?(A(e),e.o[t]=j(e.A.h,r,e)):r},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,n){var r=M(v(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=T(v(e),t),a=null==o?void 0:o[$];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(f(n,o)&&(void 0!==n||l(e.t,t)))return!0;A(e),R(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==T(e.t,t)||t in e.t?(e.D[t]=!1,A(e),R(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=v(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},J={};i(Q,(function(e,t){J[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),J.deleteProperty=function(e,t){return J.set.call(this,e,t,void 0)},J.set=function(e,t,n){return Q.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.g=H,this.F=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var u=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),a=1;a1?r-1:0),a=1;a=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var a=b("Patches").$;return o(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);const re=ne;var oe=n(1413);function ae(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ie="function"==typeof Symbol&&Symbol.observable||"@@observable",ue=function(){return Math.random().toString(36).substring(7).split("").join(".")},le={INIT:"@@redux/INIT"+ue(),REPLACE:"@@redux/REPLACE"+ue(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ue()}};function ce(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function se(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ae(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ae(1));return n(se)(e,t)}if("function"!=typeof e)throw new Error(ae(2));var o=e,a=t,i=[],u=i,l=!1;function c(){u===i&&(u=i.slice())}function s(){if(l)throw new Error(ae(3));return a}function f(e){if("function"!=typeof e)throw new Error(ae(4));if(l)throw new Error(ae(5));var t=!0;return c(),u.push(e),function(){if(t){if(l)throw new Error(ae(6));t=!1,c();var n=u.indexOf(e);u.splice(n,1),i=null}}}function d(e){if(!ce(e))throw new Error(ae(7));if(void 0===e.type)throw new Error(ae(8));if(l)throw new Error(ae(9));try{l=!0,a=o(a,e)}finally{l=!1}for(var t=i=u,n=0;n0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]{"use strict";n.d(t,{Z:()=>o});var r=n(334);const o=function(e,t,n){(0,r.ZP)(e,"[antd: ".concat(t,"] ").concat(n))}},3603:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)}},6159:(e,t,n)=>{"use strict";n.d(t,{l$:()=>o,Tm:()=>a});var r=n(7294),o=r.isValidElement;function a(e,t){return function(e,t,n){return o(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},3355:(e,t,n)=>{"use strict";n.d(t,{b:()=>r,a:()=>o});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{Z:()=>w});var r=n(5671),o=n(3144),a=n(7326),i=n(9340),u=n(1129),l=n(7294),c=n(4958),s=n(2550),f=n(5164),d=0,p={};function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=d++,r=t;function o(){(r-=1)<=0?(e(),delete p[n]):p[n]=(0,f.Z)(o)}return p[n]=(0,f.Z)(o),n}v.cancel=function(e){void 0!==e&&(f.Z.cancel(p[e]),delete p[e])},v.ids=p;var h,m=n(6032),y=n(6159);function g(e){return!e||null===e.offsetParent||e.hidden}function b(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var w=function(e){(0,i.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).containerRef=l.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o,i=e.props,u=i.insertExtraNode;if(!(i.disabled||!t||g(t)||t.className.indexOf("-leave")>=0)){e.extraNode=document.createElement("div");var l=(0,a.Z)(e).extraNode,s=e.context.getPrefixCls;l.className="".concat(s(""),"-click-animating-node");var f=e.getAttributeName();if(t.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&b(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){l.style.borderColor=n;var d=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,p=d instanceof Document?d.body:null!==(o=d.firstChild)&&void 0!==o?o:d;h=(0,c.hq)("\n [".concat(s(""),"-click-animating-without-extra-node='true']::after, .").concat(s(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}u&&t.appendChild(l),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!g(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),v.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=v((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!l.isValidElement(r))return r;var o=e.containerRef;return(0,s.Yr)(r)&&(o=(0,s.sQ)(r.ref,e.containerRef)),(0,y.Tm)(r,{ref:o})},e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),h&&(h.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return l.createElement(m.C,null,this.renderWave)}}]),n}(l.Component);w.contextType=m.E_},404:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(7462),o=n(4942),a=n(9439),i=n(1002),u=n(7294),l=n(4184),c=n.n(l),s=n(8423),f=n(6032),d=n(3144),p=n(5671),v=(0,d.Z)((function e(t){(0,p.Z)(this,e),this.error=new Error("unreachable case: ".concat(JSON.stringify(t)))})),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(S,"` at https://ant.design/components/icon")),(0,b.Z)(!(O&&N(v)),"Button","`link` or `text` button can't be a `ghost` button.");var te=$("btn",p),ne=!1!==q,re=E||L,oe=re&&{large:"lg",small:"sm",middle:void 0}[re]||"",ae=F?"loading":S,ie=c()(te,(n={},(0,o.Z)(n,"".concat(te,"-").concat(v),v),(0,o.Z)(n,"".concat(te,"-").concat(g),"default"!==g&&g),(0,o.Z)(n,"".concat(te,"-").concat(oe),oe),(0,o.Z)(n,"".concat(te,"-icon-only"),!C&&0!==C&&!!ae),(0,o.Z)(n,"".concat(te,"-background-ghost"),O&&!N(v)),(0,o.Z)(n,"".concat(te,"-loading"),F),(0,o.Z)(n,"".concat(te,"-two-chinese-chars"),H&&ne),(0,o.Z)(n,"".concat(te,"-block"),R),(0,o.Z)(n,"".concat(te,"-dangerous"),!!h),(0,o.Z)(n,"".concat(te,"-rtl"),"rtl"===Y),n),x),ue=S&&!F?S:u.createElement(k,{existIcon:!!S,prefixCls:te,loading:!!F}),le=C||0===C?function(e,t){var n=!1,r=[];return u.Children.forEach(e,(function(e){var t=(0,i.Z)(e),o="string"===t||"number"===t;if(n&&o){var a=r.length-1,u=r[a];r[a]="".concat(u).concat(e)}else r.push(e);n=o})),u.Children.map(r,(function(e){return T(e,t)}))}(C,Q()&&ne):null,ce=(0,s.Z)(I,["navigate"]);if(void 0!==ce.href)return u.createElement("a",(0,r.Z)({},ce,{className:ie,onClick:ee,ref:G}),ue,le);var se=u.createElement("button",(0,r.Z)({},I,{type:j,className:ie,onClick:ee,ref:G}),ue,le);return N(v)?se:u.createElement(y.Z,{disabled:!!F},se)},R=u.forwardRef(M);R.displayName="Button",R.Group=m,R.__ANT_BUTTON=!0;const A=R},9144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(4942),o=n(7462),a=n(7294),i=n(4184),u=n.n(i),l=n(8423),c=n(6032),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{Z:()=>v});var r=n(4942),o=n(7462),a=n(1002),i=n(7294),u=n(4184),l=n.n(u),c=n(9134),s=n(6032),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0){var A=m[0]/2;R.paddingLeft=A,R.paddingRight=A}if(m&&m[1]>0&&!g){var j=m[1]/2;R.paddingTop=j,R.paddingBottom=j}return Z&&(R.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(Z),!1!==y||R.minWidth||(R.minWidth=0)),i.createElement("div",(0,o.Z)({},P,{style:(0,o.Z)((0,o.Z)({},R),O),className:M,ref:t}),_)}));p.displayName="Col";const v=p},7647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294).createContext(void 0);const o=r},6032:(e,t,n)=>{"use strict";n.d(t,{C:()=>g,E_:()=>y});var r=n(7294),o=n(7462),a=n(4942),i=n(4184),u=n.n(i),l=n(4069);const c=function(){var e=(0,r.useContext(y).getPrefixCls)("empty-img-default");return r.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("g",{transform:"translate(24 31.67)"},r.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),r.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),r.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),r.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),r.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),r.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),r.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},r.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),r.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const s=function(){var e=(0,r.useContext(y).getPrefixCls)("empty-img-simple");return r.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},r.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),r.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},r.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),r.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};var f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(4942),a=n(7294),i=n(4184),u=n.n(i),l=n(6032),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?"-".concat(v):v,C=!!y,S="left"===v&&null!=h,k="right"===v&&null!=h,_=u()(E,"".concat(E,"-").concat(d),(n={},(0,o.Z)(n,"".concat(E,"-with-text"),C),(0,o.Z)(n,"".concat(E,"-with-text").concat(x),C),(0,o.Z)(n,"".concat(E,"-dashed"),!!g),(0,o.Z)(n,"".concat(E,"-plain"),!!b),(0,o.Z)(n,"".concat(E,"-rtl"),"rtl"===l),(0,o.Z)(n,"".concat(E,"-no-default-orientation-margin-left"),S),(0,o.Z)(n,"".concat(E,"-no-default-orientation-margin-right"),k),n),m),Z=(0,r.Z)((0,r.Z)({},S&&{marginLeft:h}),k&&{marginRight:h});return a.createElement("div",(0,r.Z)({className:_},w,{role:"separator"}),y&&a.createElement("span",{className:"".concat(E,"-inner-text"),style:Z},y))}))}},9134:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(7294).createContext)({})},9430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(4942),o=n(5671),a=n(3144),i=n(9340),u=n(1129),l=n(7294),c=n(4184),s=n.n(c),f=n(3061),d=n(3355),p=n(6159),v=n(7737),h=(0,d.b)("text","input");function m(e){return!(!e.addonBefore&&!e.addonAfter)}const y=function(e){(0,i.Z)(n,e);var t=(0,u.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).containerRef=l.createRef(),e.onInputMouseUp=function(t){var n;if(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target)){var r=e.props.triggerFocus;null==r||r()}},e}return(0,a.Z)(n,[{key:"renderClearIcon",value:function(e){var t,n=this.props,o=n.allowClear,a=n.value,i=n.disabled,u=n.readOnly,c=n.handleReset,d=n.suffix;if(!o)return null;var p=!i&&!u&&a,v="".concat(e,"-clear-icon");return l.createElement(f.Z,{onClick:c,onMouseDown:function(e){return e.preventDefault()},className:s()((t={},(0,r.Z)(t,"".concat(v,"-hidden"),!p),(0,r.Z)(t,"".concat(v,"-has-suffix"),!!d),t),v),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,r=t.allowClear;return n||r?l.createElement("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,o=this.props,a=o.focused,i=o.value,u=o.prefix,c=o.className,f=o.size,d=o.suffix,h=o.disabled,y=o.allowClear,g=o.direction,b=o.style,w=o.readOnly,E=o.bordered,x=o.hidden;if(!(0,v.b)(this.props))return(0,p.Tm)(t,{value:i});var C=this.renderSuffix(e),S=u?l.createElement("span",{className:"".concat(e,"-prefix")},u):null,k=s()("".concat(e,"-affix-wrapper"),(n={},(0,r.Z)(n,"".concat(e,"-affix-wrapper-focused"),a),(0,r.Z)(n,"".concat(e,"-affix-wrapper-disabled"),h),(0,r.Z)(n,"".concat(e,"-affix-wrapper-sm"),"small"===f),(0,r.Z)(n,"".concat(e,"-affix-wrapper-lg"),"large"===f),(0,r.Z)(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),d&&y&&i),(0,r.Z)(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===g),(0,r.Z)(n,"".concat(e,"-affix-wrapper-readonly"),w),(0,r.Z)(n,"".concat(e,"-affix-wrapper-borderless"),!E),(0,r.Z)(n,"".concat(c),!m(this.props)&&c),n));return l.createElement("span",{ref:this.containerRef,className:k,style:b,onMouseUp:this.onInputMouseUp,hidden:x},S,(0,p.Tm)(t,{style:null,value:i,className:(0,v.X)(e,E,f,h)}),C)}},{key:"renderInputWithLabel",value:function(e,t){var n,o=this.props,a=o.addonBefore,i=o.addonAfter,u=o.style,c=o.size,f=o.className,d=o.direction,v=o.hidden;if(!m(this.props))return t;var h="".concat(e,"-group"),y="".concat(h,"-addon"),g=a?l.createElement("span",{className:y},a):null,b=i?l.createElement("span",{className:y},i):null,w=s()("".concat(e,"-wrapper"),h,(0,r.Z)({},"".concat(h,"-rtl"),"rtl"===d)),E=s()("".concat(e,"-group-wrapper"),(n={},(0,r.Z)(n,"".concat(e,"-group-wrapper-sm"),"small"===c),(0,r.Z)(n,"".concat(e,"-group-wrapper-lg"),"large"===c),(0,r.Z)(n,"".concat(e,"-group-wrapper-rtl"),"rtl"===d),n),f);return l.createElement("span",{className:E,style:u,hidden:v},l.createElement("span",{className:w},g,(0,p.Tm)(t,{style:null}),b))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n,o=this.props,a=o.value,i=o.allowClear,u=o.className,c=o.style,f=o.direction,d=o.bordered,v=o.hidden;if(!i)return(0,p.Tm)(t,{value:a});var h=s()("".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),(n={},(0,r.Z)(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===f),(0,r.Z)(n,"".concat(e,"-affix-wrapper-borderless"),!d),(0,r.Z)(n,"".concat(u),!m(this.props)&&u),n));return l.createElement("span",{className:h,style:c,hidden:v},(0,p.Tm)(t,{style:null,value:a}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===h[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}]),n}(l.Component)},7749:(e,t,n)=>{"use strict";n.d(t,{D7:()=>w,rJ:()=>E,nH:()=>x,ZP:()=>S});var r=n(1002),o=n(3433),a=n(7462),i=n(4942),u=n(5671),l=n(3144),c=n(9340),s=n(1129),f=n(7294),d=n(4184),p=n.n(d),v=n(8423),h=n(9430),m=n(6032),y=n(7647),g=n(1687),b=n(7737);function w(e){return null==e?"":String(e)}function E(e,t,n,r){if(n){var o=t;if("click"===t.type){var a=e.cloneNode(!0);return o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function x(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var C=function(e){(0,c.Z)(n,e);var t=(0,s.Z)(n);function n(e){var l;(0,u.Z)(this,n),(l=t.call(this,e)).direction="ltr",l.focus=function(e){x(l.input,e)},l.saveClearableInput=function(e){l.clearableInput=e},l.saveInput=function(e){l.input=e},l.onFocus=function(e){var t=l.props.onFocus;l.setState({focused:!0},l.clearPasswordValueAttribute),null==t||t(e)},l.onBlur=function(e){var t=l.props.onBlur;l.setState({focused:!1},l.clearPasswordValueAttribute),null==t||t(e)},l.handleReset=function(e){l.setValue("",(function(){l.focus()})),E(l.input,e,l.props.onChange)},l.renderInput=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=l.props,u=o.className,c=o.addonBefore,s=o.addonAfter,d=o.size,h=o.disabled,m=o.htmlSize,y=(0,v.Z)(l.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered","htmlSize","showCount"]);return f.createElement("input",(0,a.Z)({autoComplete:r.autoComplete},y,{onChange:l.handleChange,onFocus:l.onFocus,onBlur:l.onBlur,onKeyDown:l.handleKeyDown,className:p()((0,b.X)(e,n,d||t,h,l.direction),(0,i.Z)({},u,u&&!c&&!s)),ref:l.saveInput,size:m}))},l.clearPasswordValueAttribute=function(){l.removePasswordTimeout=setTimeout((function(){l.input&&"password"===l.input.getAttribute("type")&&l.input.hasAttribute("value")&&l.input.removeAttribute("value")}))},l.handleChange=function(e){l.setValue(e.target.value,l.clearPasswordValueAttribute),E(l.input,e,l.props.onChange)},l.handleKeyDown=function(e){var t=l.props,n=t.onPressEnter,r=t.onKeyDown;n&&13===e.keyCode&&n(e),null==r||r(e)},l.renderShowCountSuffix=function(e){var t=l.state.value,n=l.props,a=n.maxLength,u=n.suffix,c=n.showCount,s=Number(a)>0;if(u||c){var d=(0,o.Z)(w(t)).length,v=null;return v="object"===(0,r.Z)(c)?c.formatter({count:d,maxLength:a}):"".concat(d).concat(s?" / ".concat(a):""),f.createElement(f.Fragment,null,!!c&&f.createElement("span",{className:p()("".concat(e,"-show-count-suffix"),(0,i.Z)({},"".concat(e,"-show-count-has-suffix"),!!u))},v),u)}return null},l.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,r=e.input,o=l.state,i=o.value,u=o.focused,c=l.props,s=c.prefixCls,d=c.bordered,p=void 0===d||d,v=t("input",s);l.direction=n;var m=l.renderShowCountSuffix(v);return f.createElement(y.Z.Consumer,null,(function(e){return f.createElement(h.Z,(0,a.Z)({size:e},l.props,{prefixCls:v,inputType:"input",value:w(i),element:l.renderInput(v,e,p,r),handleReset:l.handleReset,ref:l.saveClearableInput,direction:n,focused:u,triggerFocus:l.focus,bordered:p,suffix:m}))}))};var c=void 0===e.value?e.defaultValue:e.value;return l.state={value:c,focused:!1,prevValue:e.value},l}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return(0,b.b)(e)!==(0,b.b)(this.props)&&(0,g.Z)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(e,t,n){this.input.setSelectionRange(e,t,n)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null==t||t()}},{key:"render",value:function(){return f.createElement(m.C,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),e.disabled&&(r.focused=!1),r}}]),n}(f.Component);C.defaultProps={type:"text"};const S=C},5839:(e,t,n)=>{"use strict";n.d(t,{Z:()=>j});var r,o=n(1002),a=n(7462),i=n(4942),u=n(9439),l=n(3433),c=n(7294),s=n(5671),f=n(3144),d=n(9340),p=n(1129),v=n(1413),h=n(8717),m=n(8423),y=n(4184),g=n.n(y),b="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",w=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],E={};function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&E[n])return E[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),u=w.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:u,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(E[n]=l),l}var C,S=n(6774),k=n.n(S);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(C||(C={}));const _=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e){var o;return(0,s.Z)(this,n),(o=t.call(this,e)).nextFrameActionId=void 0,o.resizeFrameId=void 0,o.textArea=void 0,o.saveTextArea=function(e){o.textArea=e},o.handleResize=function(e){var t=o.state.resizeStatus,n=o.props,r=n.autoSize,a=n.onResize;t===C.NONE&&("function"==typeof a&&a(e),r&&o.resizeOnNextFrame())},o.resizeOnNextFrame=function(){cancelAnimationFrame(o.nextFrameActionId),o.nextFrameActionId=requestAnimationFrame(o.resizeTextarea)},o.resizeTextarea=function(){var e=o.props.autoSize;if(e&&o.textArea){var t=e.minRows,n=e.maxRows,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var a=x(e,t),i=a.paddingSize,u=a.borderSize,l=a.boxSizing,c=a.sizingStyle;r.setAttribute("style","".concat(c,";").concat(b)),r.value=e.value||e.placeholder||"";var s,f=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,p=r.scrollHeight;if("border-box"===l?p+=u:"content-box"===l&&(p-=i),null!==n||null!==o){r.value=" ";var v=r.scrollHeight-i;null!==n&&(f=v*n,"border-box"===l&&(f=f+i+u),p=Math.max(f,p)),null!==o&&(d=v*o,"border-box"===l&&(d=d+i+u),s=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:f,maxHeight:d,overflowY:s,resize:"none"}}(o.textArea,!1,t,n);o.setState({textareaStyles:a,resizeStatus:C.RESIZING},(function(){cancelAnimationFrame(o.resizeFrameId),o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:C.RESIZED},(function(){o.resizeFrameId=requestAnimationFrame((function(){o.setState({resizeStatus:C.NONE}),o.fixFirefoxAutoScroll()}))}))}))}))}},o.renderTextArea=function(){var e=o.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,u=e.onResize,l=e.className,s=e.disabled,f=o.state,d=f.textareaStyles,p=f.resizeStatus,y=(0,m.Z)(o.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=g()(n,l,(0,i.Z)({},"".concat(n,"-disabled"),s));"value"in y&&(y.value=y.value||"");var w=(0,v.Z)((0,v.Z)((0,v.Z)({},o.props.style),d),p===C.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c.createElement(h.Z,{onResize:o.handleResize,disabled:!(r||u)},c.createElement("textarea",(0,a.Z)({},y,{className:b,style:w,ref:o.saveTextArea})))},o.state={textareaStyles:{},resizeStatus:C.NONE},o}return(0,f.Z)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&k()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(c.Component);const Z=function(e){(0,d.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;(0,s.Z)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return(0,f.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c.createElement(_,(0,a.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(c.Component);var O=n(1770),P=n(9430),N=n(6032),T=n(7749),M=n(7647),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0,Y=k("input",r);c.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=I.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;(0,T.nH)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=I.current)||void 0===e?void 0:e.blur()}}}));var G=c.createElement(Z,(0,a.Z)({},(0,m.Z)(C,["allowClear"]),{className:g()((n={},(0,i.Z)(n,"".concat(Y,"-borderless"),!f),(0,i.Z)(n,h,h&&!p),(0,i.Z)(n,"".concat(Y,"-sm"),"small"===j||"small"===b),(0,i.Z)(n,"".concat(Y,"-lg"),"large"===j||"large"===b),n)),style:p?void 0:y,prefixCls:Y,onCompositionStart:function(e){V(!0),null==w||w(e)},onChange:function(e){var t=e.target.value;!F&&q&&(t=A(t,v)),$(t),(0,T.rJ)(e.currentTarget,e,x,t)},onCompositionEnd:function(e){V(!1);var t=e.currentTarget.value;q&&(t=A(t,v)),t!==H&&($(t),(0,T.rJ)(e.currentTarget,e,x,t)),null==E||E(e)},ref:I})),X=(0,T.D7)(H);F||!q||null!==C.value&&void 0!==C.value||(X=A(X,v));var Q=c.createElement(P.Z,(0,a.Z)({},C,{prefixCls:Y,direction:_,inputType:"text",value:X,element:G,handleReset:function(e){var t,n;$("",(function(){var e;null===(e=I.current)||void 0===e||e.focus()})),(0,T.rJ)(null===(n=null===(t=I.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e,x)},ref:L,bordered:f,style:p?void 0:y}));if(p){var J=(0,l.Z)(X).length,ee="";return ee="object"===(0,o.Z)(p)?p.formatter({count:J,maxLength:v}):"".concat(J).concat(q?" / ".concat(v):""),c.createElement("div",{hidden:K,className:g()("".concat(Y,"-textarea"),(0,i.Z)({},"".concat(Y,"-textarea-rtl"),"rtl"===_),"".concat(Y,"-textarea-show-count"),h),style:y,"data-count":ee},Q)}return Q}))},5019:(e,t,n)=>{"use strict";n.d(t,{Z:()=>A});var r=n(7749),o=n(4942),a=n(7294),i=n(4184),u=n.n(i),l=n(6032);const c=function(e){return a.createElement(l.C,null,(function(t){var n,r=t.getPrefixCls,i=t.direction,l=e.prefixCls,c=e.className,s=void 0===c?"":c,f=r("input-group",l),d=u()(f,(n={},(0,o.Z)(n,"".concat(f,"-lg"),"large"===e.size),(0,o.Z)(n,"".concat(f,"-sm"),"small"===e.size),(0,o.Z)(n,"".concat(f,"-compact"),e.compact),(0,o.Z)(n,"".concat(f,"-rtl"),"rtl"===i),n),s);return a.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))};var s=n(7462),f=n(2550),d=n(6570),p=n(404),v=n(7647),h=n(6159),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{X:()=>i,b:()=>u});var r=n(4942),o=n(4184),a=n.n(o);function i(e,t,n,o,i){var u;return a()(e,(u={},(0,r.Z)(u,"".concat(e,"-sm"),"small"===n),(0,r.Z)(u,"".concat(e,"-lg"),"large"===n),(0,r.Z)(u,"".concat(e,"-disabled"),o),(0,r.Z)(u,"".concat(e,"-rtl"),"rtl"===i),(0,r.Z)(u,"".concat(e,"-borderless"),!t),u))}function u(e){return!!(e.prefix||e.suffix||e.allowClear)}},4069:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h,E:()=>m});var r=n(7462),o=n(5671),a=n(3144),i=n(9340),u=n(1129),l=n(7294);const c={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};const s={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var f={lang:(0,r.Z)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},c),timePickerLocale:(0,r.Z)({},s)};var d="${label} is not a valid ${type}";const p={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:f,TimePicker:s,Calendar:f,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:d,method:d,array:d,object:d,number:d,date:d,boolean:d,integer:d,float:d,regexp:d,email:d,url:d,hex:d},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};const v=(0,l.createContext)(void 0);var h=function(e){(0,i.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||p[null!=t?t:"global"],o=this.context,a=t&&o?o[t]:{};return(0,r.Z)((0,r.Z)({},n instanceof Function?n():n),a||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?p.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(l.Component);function m(e,t){var n=l.useContext(v),o=l.useMemo((function(){var o=t||p[e||"global"],a=e&&n?n[e]:{};return(0,r.Z)((0,r.Z)({},"function"==typeof o?o():o),a||{})}),[e,t,n]);return[o]}h.defaultProps={componentName:"global"},h.contextType=v},2905:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(7462),o=n(4942),a=n(1002),i=n(9439),u=n(7294),l=n(4184),c=n.n(l),s=n(6032),f=n(9134),d=n(3355),p=["xxl","xl","lg","md","sm","xs"],v={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},h=new Map,m=-1,y={};const g={matchHandlers:{},dispatch:function(e){return y=e,h.forEach((function(e){return e(y)})),h.size>=1},subscribe:function(e){return h.size||this.register(),m+=1,h.set(m,e),e(y),m},unsubscribe:function(e){h.delete(e),h.size||this.unregister()},unregister:function(){var e=this;Object.keys(v).forEach((function(t){var n=v[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),h.clear()},register:function(){var e=this;Object.keys(v).forEach((function(t){var n=v[t],a=function(n){var a=n.matches;e.dispatch((0,r.Z)((0,r.Z)({},y),(0,o.Z)({},t,a)))},i=window.matchMedia(n);i.addListener(a),e.matchHandlers[n]={mql:i,listener:a},a(i)}))}};var b,w=n(8924),E=function(){if(!(0,w.Z)()||!window.document.documentElement)return!1;if(void 0!==b)return b;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),b=1===e.scrollHeight,document.body.removeChild(e),b};var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0?I[0]/-2:void 0,F=I[1]>0?I[1]/-2:void 0;if(z&&(D.marginLeft=z,D.marginRight=z),M){var V=(0,i.Z)(I,2);D.rowGap=V[1]}else F&&(D.marginTop=F,D.marginBottom=F);var U=(0,i.Z)(I,2),B=U[0],H=U[1],W=u.useMemo((function(){return{gutter:[B,H],wrap:C,supportFlexGap:M}}),[B,H,C,M]);return u.createElement(f.Z.Provider,{value:W},u.createElement("div",(0,r.Z)({},S,{className:L,style:(0,r.Z)((0,r.Z)({},D),m),ref:t}),y))})));C.displayName="Row";const S=C},2929:(e,t,n)=>{"use strict";n.d(t,{Z:()=>jt});var r=n(4942),o=n(7462),a=n(7294),i=n(8423),u=n(4184),l=n.n(u),c=n(3433),s=n(1413),f=n(9439),d=n(4925),p=n(1002),v=n(334),h=n(1770),m=n(5105),y=n(1131),g=n(2550),b=n(8924);const w=(0,b.Z)()?a.useLayoutEffect:a.useEffect;var E=n(3878),x=n(9199),C=n(181),S=n(5267);function k(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function _(e,t){var n=e||{};return{label:n.label||(t?"children":"label"),value:n.value||"value",options:n.options||"options"}}function Z(e){var t=(0,s.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,v.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function O(e,t){if(!t||!t.length)return null;var n=!1;var r=function e(t,r){var o,a=(o=r,(0,E.Z)(o)||(0,x.Z)(o)||(0,C.Z)(o)||(0,S.Z)()),i=a[0],u=a.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce((function(t,n){return[].concat((0,c.Z)(t),(0,c.Z)(e(n,u)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}var P=n(285),N=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],T=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),u=e.children,c=e.popupElement,f=e.containerWidth,p=e.animation,v=e.transitionName,h=e.dropdownStyle,m=e.dropdownClassName,y=e.direction,g=void 0===y?"ltr":y,b=e.placement,w=e.dropdownMatchSelectWidth,E=e.dropdownRender,x=e.dropdownAlign,C=e.getPopupContainer,S=e.empty,k=e.getTriggerDOMNode,_=e.onPopupVisibleChange,Z=e.onPopupMouseEnter,O=(0,d.Z)(e,N),T="".concat(n,"-dropdown"),M=c;E&&(M=E(c));var R=a.useMemo((function(){return function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(w)}),[w]),A=p?"".concat(T,"-").concat(p):v,j=a.useRef(null);a.useImperativeHandle(t,(function(){return{getPopupElement:function(){return j.current}}}));var I=(0,s.Z)({minWidth:f},h);return"number"==typeof w?I.width=w:w&&(I.width=f),a.createElement(P.Z,(0,o.Z)({},O,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:b||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:T,popupTransitionName:A,popup:a.createElement("div",{ref:j,onMouseEnter:Z},M),popupAlign:x,popupVisible:i,getPopupContainer:C,popupClassName:l()(m,(0,r.Z)({},"".concat(T,"-empty"),S)),popupStyle:I,getTriggerDOMNode:k,onPopupVisibleChange:_}),u)},M=a.forwardRef(T);M.displayName="SelectTrigger";const R=M;var A="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),j="aria-",I="data-";function L(e,t){return 0===e.indexOf(t)}function D(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,s.Z)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||L(n,j))||t.data&&L(n,I)||t.attr&&A.includes(n))&&(r[n]=e[n])})),r}var z=n(9214);const F=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,u=e.onClick,c=e.children;return t="function"==typeof r?r(o):r,a.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:u,"aria-hidden":!0},void 0!==t?t:a.createElement("span",{className:l()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},c))};var V=function(e,t){var n,r,o=e.prefixCls,i=e.id,u=e.inputElement,c=e.disabled,f=e.tabIndex,d=e.autoFocus,p=e.autoComplete,v=e.editable,h=e.activeDescendantId,m=e.value,y=e.maxLength,b=e.onKeyDown,w=e.onMouseDown,E=e.onChange,x=e.onPaste,C=e.onCompositionStart,S=e.onCompositionEnd,k=e.open,_=e.attrs,Z=u||a.createElement("input",null),O=Z,P=O.ref,N=O.props,T=N.onKeyDown,M=N.onChange,R=N.onMouseDown,A=N.onCompositionStart,j=N.onCompositionEnd,I=N.style;return Z=a.cloneElement(Z,(0,s.Z)((0,s.Z)({id:i,ref:(0,g.sQ)(t,P),disabled:c,tabIndex:f,autoComplete:p||"off",type:"search",autoFocus:d,className:l()("".concat(o,"-selection-search-input"),null===(n=Z)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),style:(0,s.Z)((0,s.Z)({},I),{},{opacity:v?null:0}),role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":h},_),{},{value:v?m:"",maxLength:y,readOnly:!v,unselectable:v?null:"on",onKeyDown:function(e){b(e),T&&T(e)},onMouseDown:function(e){w(e),R&&R(e)},onChange:function(e){E(e),M&&M(e)},onCompositionStart:function(e){C(e),A&&A(e)},onCompositionEnd:function(e){S(e),j&&j(e)},onPaste:x}))},U=a.forwardRef(V);U.displayName="Input";const B=U;function H(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var W="undefined"!=typeof window&&window.document&&window.document.documentElement;var K=function(e){e.preventDefault(),e.stopPropagation()};const $=function(e){var t,n,o=e.id,i=e.prefixCls,u=e.values,c=e.open,s=e.searchValue,d=e.inputRef,p=e.placeholder,v=e.disabled,h=e.mode,m=e.showSearch,y=e.autoFocus,g=e.autoComplete,b=e.activeDescendantId,w=e.tabIndex,E=e.removeIcon,x=e.maxTagCount,C=e.maxTagTextLength,S=e.maxTagPlaceholder,k=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,_=e.tagRender,Z=e.onToggleOpen,O=e.onRemove,P=e.onInputChange,N=e.onInputPaste,T=e.onInputKeyDown,M=e.onInputMouseDown,R=e.onInputCompositionStart,A=e.onInputCompositionEnd,j=a.useRef(null),I=(0,a.useState)(0),L=(0,f.Z)(I,2),V=L[0],U=L[1],H=(0,a.useState)(!1),$=(0,f.Z)(H,2),q=$[0],Y=$[1],G="".concat(i,"-selection"),X=c||"tags"===h?s:"",Q="tags"===h||m&&(c||q);function J(e,t,n,o,i){return a.createElement("span",{className:l()("".concat(G,"-item"),(0,r.Z)({},"".concat(G,"-item-disabled"),n)),title:"string"==typeof e||"number"==typeof e?e.toString():void 0},a.createElement("span",{className:"".concat(G,"-item-content")},t),o&&a.createElement(F,{className:"".concat(G,"-item-remove"),onMouseDown:K,onClick:i,customizeIcon:E},"×"))}t=function(){U(j.current.scrollWidth)},n=[X],W?a.useLayoutEffect(t,n):a.useEffect(t,n);var ee=a.createElement("div",{className:"".concat(G,"-search"),style:{width:V},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},a.createElement(B,{ref:d,open:c,prefixCls:i,id:o,inputElement:null,disabled:v,autoFocus:y,autoComplete:g,editable:Q,activeDescendantId:b,value:X,onKeyDown:T,onMouseDown:M,onChange:P,onPaste:N,onCompositionStart:R,onCompositionEnd:A,tabIndex:w,attrs:D(e,!0)}),a.createElement("span",{ref:j,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},X," ")),te=a.createElement(z.Z,{prefixCls:"".concat(G,"-overflow"),data:u,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!v&&!t,i=n;if("number"==typeof C&&("string"==typeof n||"number"==typeof n)){var u=String(i);u.length>C&&(i="".concat(u.slice(0,C),"..."))}var l=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof _?function(e,t,n,r,o){return a.createElement("span",{onMouseDown:function(e){K(e),Z(!c)}},_({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,l):J(n,i,t,o,l)},renderRest:function(e){var t="function"==typeof k?k(e):k;return J(t,t,!1)},suffix:ee,itemKey:"key",maxCount:x});return a.createElement(a.Fragment,null,te,!u.length&&!X&&a.createElement("span",{className:"".concat(G,"-placeholder")},p))};const q=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,u=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,s=e.mode,d=e.open,p=e.values,v=e.placeholder,h=e.tabIndex,m=e.showSearch,y=e.searchValue,g=e.activeValue,b=e.maxLength,w=e.onInputKeyDown,E=e.onInputMouseDown,x=e.onInputChange,C=e.onInputPaste,S=e.onInputCompositionStart,k=e.onInputCompositionEnd,_=a.useState(!1),Z=(0,f.Z)(_,2),O=Z[0],P=Z[1],N="combobox"===s,T=N||m,M=p[0],R=y||"";N&&g&&!O&&(R=g),a.useEffect((function(){N&&P(!1)}),[N,g]);var A=!("combobox"!==s&&!d&&!m)&&!!R,j=!M||"string"!=typeof M.label&&"number"!=typeof M.label?void 0:M.label.toString();return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(n,"-selection-search")},a.createElement(B,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:u,autoComplete:l,editable:T,activeDescendantId:c,value:R,onKeyDown:w,onMouseDown:E,onChange:function(e){P(!0),x(e)},onPaste:C,onCompositionStart:S,onCompositionEnd:k,tabIndex:h,attrs:D(e,!0),maxLength:N?b:void 0})),!N&&M&&!A&&a.createElement("span",{className:"".concat(n,"-selection-item"),title:j},M.label),function(){if(M)return null;var e=A?{visibility:"hidden"}:void 0;return a.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},v)}())};function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=a.useRef(null),n=a.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return a.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var G=function(e,t){var n=(0,a.useRef)(null),r=(0,a.useRef)(!1),i=e.prefixCls,u=e.open,l=e.mode,c=e.showSearch,s=e.tokenWithEnter,d=e.onSearch,p=e.onSearchSubmit,v=e.onToggleOpen,h=e.onInputKeyDown,y=e.domRef;a.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=Y(0),b=(0,f.Z)(g,2),w=b[0],E=b[1],x=(0,a.useRef)(null),C=function(e){!1!==d(e,!0,r.current)&&v(!0)},S={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==m.Z.UP&&n!==m.Z.DOWN||e.preventDefault(),h&&h(e),n!==m.Z.ENTER||"tags"!==l||r.current||u||null==p||p(e.target.value),t=n,[m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(t)||v(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(s&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");x.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==l&&C(e.target.value)}},k="multiple"===l||"tags"===l?a.createElement($,(0,o.Z)({},e,S)):a.createElement(q,(0,o.Z)({},e,S));return a.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||e.preventDefault(),("combobox"===l||c&&t)&&u||(u&&d("",!0,!1),v())}},k)},X=a.forwardRef(G);X.displayName="Selector";const Q=X;var J=a.createContext(null);var ee=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","suffix"],te=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ne(e){return"tags"===e||"multiple"===e}var re=a.forwardRef((function(e,t){var n,i,u=e.id,v=e.prefixCls,b=e.className,E=e.showSearch,x=e.tagRender,C=e.direction,S=e.omitDomProps,k=e.displayValues,_=e.onDisplayValuesChange,Z=e.emptyOptions,P=e.notFoundContent,N=void 0===P?"Not Found":P,T=e.onClear,M=e.mode,A=e.disabled,j=e.loading,I=e.getInputElement,L=e.getRawInputElement,D=e.open,z=e.defaultOpen,V=e.onDropdownVisibleChange,U=e.activeValue,B=e.onActiveValueChange,H=e.activeDescendantId,W=e.searchValue,K=e.onSearch,$=e.onSearchSplit,q=e.tokenSeparators,G=e.allowClear,X=e.showArrow,re=e.inputIcon,oe=e.clearIcon,ae=e.OptionList,ie=e.animation,ue=e.transitionName,le=e.dropdownStyle,ce=e.dropdownClassName,se=e.dropdownMatchSelectWidth,fe=e.dropdownRender,de=e.dropdownAlign,pe=e.placement,ve=e.getPopupContainer,he=e.showAction,me=void 0===he?[]:he,ye=e.onFocus,ge=e.onBlur,be=e.onKeyUp,we=e.onKeyDown,Ee=e.onMouseDown,xe=e.suffix,Ce=(0,d.Z)(e,ee),Se=ne(M),ke=(void 0!==E?E:Se)||"combobox"===M,_e=(0,s.Z)({},Ce);te.forEach((function(e){delete _e[e]})),null==S||S.forEach((function(e){delete _e[e]}));var Ze=a.useState(!1),Oe=(0,f.Z)(Ze,2),Pe=Oe[0],Ne=Oe[1];a.useEffect((function(){Ne((0,y.Z)())}),[]);var Te=a.useRef(null),Me=a.useRef(null),Re=a.useRef(null),Ae=a.useRef(null),je=a.useRef(null),Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=a.useState(!1),n=(0,f.Z)(t,2),r=n[0],o=n[1],i=a.useRef(null),u=function(){window.clearTimeout(i.current)};return a.useEffect((function(){return u}),[]),[r,function(t,n){u(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},u]}(),Le=(0,f.Z)(Ie,3),De=Le[0],ze=Le[1],Fe=Le[2];a.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Ae.current)||void 0===e?void 0:e.focus,blur:null===(t=Ae.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=je.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ve=a.useMemo((function(){var e;if("combobox"!==M)return W;var t=null===(e=k[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[W,M,k]),Ue="combobox"===M&&"function"==typeof I&&I()||null,Be="function"==typeof L&&L(),He=(0,g.x1)(Me,null==Be||null===(n=Be.props)||void 0===n?void 0:n.ref),We=(0,h.Z)(void 0,{defaultValue:z,value:D}),Ke=(0,f.Z)(We,2),$e=Ke[0],qe=Ke[1],Ye=$e,Ge=!N&&Z;(A||Ge&&Ye&&"combobox"===M)&&(Ye=!1);var Xe=!Ge&&Ye,Qe=a.useCallback((function(e){var t=void 0!==e?e:!Ye;Ye===t||A||(qe(t),null==V||V(t))}),[A,Ye,qe,V]),Je=a.useMemo((function(){return(q||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[q]),et=function(e,t,n){var r=!0,o=e;null==B||B(null);var a=n?null:O(e,q);return"combobox"!==M&&a&&(o="",null==$||$(a),Qe(!1),r=!1),K&&Ve!==o&&K(o,{source:t?"typing":"effect"}),r};a.useEffect((function(){Ye||Se||"combobox"===M||et("",!1,!1)}),[Ye]),a.useEffect((function(){$e&&A&&qe(!1),A&&ze(!1)}),[A]);var tt=Y(),nt=(0,f.Z)(tt,2),rt=nt[0],ot=nt[1],at=a.useRef(!1),it=[];a.useEffect((function(){return function(){it.forEach((function(e){return clearTimeout(e)})),it.splice(0,it.length)}}),[]);var ut,lt=a.useState(null),ct=(0,f.Z)(lt,2),st=ct[0],ft=ct[1],dt=a.useState({}),pt=(0,f.Z)(dt,2)[1];w((function(){if(Xe){var e,t=Math.ceil(null===(e=Te.current)||void 0===e?void 0:e.offsetWidth);st===t||Number.isNaN(t)||ft(t)}}),[Xe]),Be&&(ut=function(e){Qe(e)}),function(e,t,n){var r=a.useRef(null);r.current={open:t,triggerOpen:n},a.useEffect((function(){function t(t){var n=t.target;n.shadowRoot&&t.composed&&(n=t.composedPath()[0]||n),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Te.current,null===(e=Re.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Qe);var vt,ht,mt=a.useMemo((function(){return(0,s.Z)((0,s.Z)({},e),{},{notFoundContent:N,open:Ye,triggerOpen:Xe,id:u,showSearch:ke,multiple:Se,toggleOpen:Qe})}),[e,N,Xe,Ye,u,ke,Se,Qe]),yt=void 0!==X?X:j||!Se&&"combobox"!==M;yt&&(vt=a.createElement(F,{className:l()("".concat(v,"-arrow"),(0,r.Z)({},"".concat(v,"-arrow-loading"),j)),customizeIcon:re,customizeIconProps:{loading:j,searchValue:Ve,open:Ye,focused:De,showSearch:ke}}));!A&&G&&(k.length||Ve)&&(ht=a.createElement(F,{className:"".concat(v,"-clear"),onMouseDown:function(){null==T||T(),_([],{type:"clear",values:k}),et("",!1,!1)},customizeIcon:oe},"×"));var gt,bt=a.createElement(ae,{ref:je}),wt=l()(v,b,(i={},(0,r.Z)(i,"".concat(v,"-focused"),De),(0,r.Z)(i,"".concat(v,"-multiple"),Se),(0,r.Z)(i,"".concat(v,"-single"),!Se),(0,r.Z)(i,"".concat(v,"-allow-clear"),G),(0,r.Z)(i,"".concat(v,"-show-arrow"),yt),(0,r.Z)(i,"".concat(v,"-disabled"),A),(0,r.Z)(i,"".concat(v,"-loading"),j),(0,r.Z)(i,"".concat(v,"-open"),Ye),(0,r.Z)(i,"".concat(v,"-customize-input"),Ue),(0,r.Z)(i,"".concat(v,"-show-search"),ke),(0,r.Z)(i,"".concat(v,"-has-suffix"),xe),i)),Et=a.createElement(R,{ref:Re,disabled:A,prefixCls:v,visible:Xe,popupElement:bt,containerWidth:st,animation:ie,transitionName:ue,dropdownStyle:le,dropdownClassName:ce,direction:C,dropdownMatchSelectWidth:se,dropdownRender:fe,dropdownAlign:de,placement:pe,getPopupContainer:ve,empty:Z,getTriggerDOMNode:function(){return Me.current},onPopupVisibleChange:ut,onPopupMouseEnter:function(){pt({})}},Be?a.cloneElement(Be,{ref:He}):a.createElement(Q,(0,o.Z)({},e,{domRef:Me,prefixCls:v,inputElement:Ue,ref:Ae,id:u,showSearch:ke,mode:M,activeDescendantId:H,tagRender:x,values:k,open:Ye,onToggleOpen:Qe,activeValue:U,searchValue:Ve,onSearch:et,onSearchSubmit:function(e){e&&e.trim()&&K(e,{source:"submit"})},onRemove:function(e){var t=k.filter((function(t){return t!==e}));_(t,{type:"remove",values:[e]})},tokenWithEnter:Je})));return gt=Be?Et:a.createElement("div",(0,o.Z)({className:wt},_e,{ref:Te,onMouseDown:function(e){var t,n=e.target,r=null===(t=Re.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=it.indexOf(o);-1!==t&&it.splice(t,1),Fe(),Pe||r.contains(document.activeElement)||null===(e=Ae.current)||void 0===e||e.focus()}));it.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),u=1;u=0;i-=1){var u=o[i];if(!u.disabled){o.splice(i,1),a=u;break}}a&&_(o,{type:"remove",values:[a]})}for(var l=arguments.length,s=new Array(l>1?l-1:0),f=1;f1?t-1:0),r=1;rn},e}return t=i,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,o=this.getSpinHeight(),i=this.getTop(),u=this.showScroll(),c=u&&n;return a.createElement("div",{ref:this.scrollbarRef,className:l()("".concat(r,"-scrollbar"),ve({},"".concat(r,"-scrollbar-show"),u)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},a.createElement("div",{ref:this.thumbRef,className:l()("".concat(r,"-scrollbar-thumb"),ve({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:o,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&me(t.prototype,n),r&&me(t,r),i}(a.Component);function Ce(e){var t=e.children,n=e.setRef,r=a.useCallback((function(e){n(e)}),[]);return a.cloneElement(t,{ref:r})}var Se=n(4203);function ke(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]&&arguments[1],a=e<0&&i.current.top||e>0&&i.current.bottom;return t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||o(),!n.current&&a}};var Ie=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Le(){return Le=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var He=[],We={overflowY:"auto",overflowAnchor:"none"};function Ke(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,u=e.itemHeight,c=e.fullHeight,s=void 0===c||c,f=e.style,d=e.data,p=e.children,v=e.itemKey,h=e.virtual,m=e.component,y=void 0===m?"div":m,g=e.onScroll,b=e.onVisibleChange,w=Be(e,Ie),E=!(!1===h||!i||!u),x=E&&d&&u*d.length>i,C=Ve((0,a.useState)(0),2),S=C[0],k=C[1],_=Ve((0,a.useState)(!1),2),Z=_[0],O=_[1],P=l()(r,o),N=d||He,T=(0,a.useRef)(),M=(0,a.useRef)(),R=(0,a.useRef)(),A=a.useCallback((function(e){return"function"==typeof v?v(e):null==e?void 0:e[v]}),[v]),j={getKey:A};function I(e){k((function(t){var n=function(e){var t=e;Number.isNaN(Q.current)||(t=Math.min(t,Q.current));return t=Math.max(t,0)}("function"==typeof e?e(t):e);return T.current.scrollTop=n,n}))}var L=(0,a.useRef)({start:0,end:N.length}),D=(0,a.useRef)(),z=Ve(Me(N,A),1)[0];D.current=z;var F=function(e,t,n){var r=Ze(a.useState(0),2),o=r[0],i=r[1],u=(0,a.useRef)(new Map),l=(0,a.useRef)(new _e),c=(0,a.useRef)(0);function s(){c.current+=1;var e=c.current;Promise.resolve().then((function(){e===c.current&&(u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,Se.Z)(e),r=n.offsetHeight;l.current.get(t)!==r&&l.current.set(t,n.offsetHeight)}})),i((function(e){return e+1})))}))}return[function(r,o){var a=e(r),i=u.current.get(a);o?(u.current.set(a,o),s()):u.current.delete(a),!i!=!o&&(o?null==t||t(r):null==n||n(r))},s,l.current,o]}(A,null,null),V=Ve(F,4),U=V[0],B=V[1],H=V[2],W=V[3],K=a.useMemo((function(){if(!E)return{scrollHeight:void 0,start:0,end:N.length-1,offset:void 0};var e;if(!x)return{scrollHeight:(null===(e=M.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:N.length-1,offset:void 0};for(var t,n,r,o=0,a=N.length,l=0;l=S&&void 0===t&&(t=l,n=o),d>S+i&&void 0===r&&(r=l),o=d}return void 0===t&&(t=0,n=0),void 0===r&&(r=N.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,N.length),offset:n}}),[x,E,S,N,W,i]),$=K.scrollHeight,q=K.start,Y=K.end,G=K.offset;L.current.start=q,L.current.end=Y;var X=$-i,Q=(0,a.useRef)(X);Q.current=X;var J=S<=0,ee=S>=X,te=je(J,ee);var ne=function(e,t,n,r){var o=(0,a.useRef)(0),i=(0,a.useRef)(null),u=(0,a.useRef)(null),l=(0,a.useRef)(!1),c=je(t,n);return[function(t){if(e){de.Z.cancel(i.current);var n=t.deltaY;o.current+=n,u.current=n,c(n)||(Ae||t.preventDefault(),i.current=(0,de.Z)((function(){var e=l.current?10:1;r(o.current*e),o.current=0})))}},function(t){e&&(l.current=t.detail===u.current)}]}(E,J,ee,(function(e){I((function(t){return t+e}))})),re=Ve(ne,2),oe=re[0],ae=re[1];!function(e,t,n){var r,o=(0,a.useRef)(!1),i=(0,a.useRef)(0),u=(0,a.useRef)(null),l=(0,a.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(l.current),l.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(l.current)}),16)}},s=function(){o.current=!1,r()},f=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),u.current=e.target,u.current.addEventListener("touchmove",c),u.current.addEventListener("touchend",s))};r=function(){u.current&&(u.current.removeEventListener("touchmove",c),u.current.removeEventListener("touchend",s))},a.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",f),function(){t.current.removeEventListener("touchstart",f),r(),clearInterval(l.current)}}),[e])}(E,T,(function(e,t){return!te(e,t)&&(oe({preventDefault:function(){},deltaY:e}),!0)})),(0,a.useLayoutEffect)((function(){function e(e){E&&e.preventDefault()}return T.current.addEventListener("wheel",oe),T.current.addEventListener("DOMMouseScroll",ae),T.current.addEventListener("MozMousePixelScroll",e),function(){T.current.removeEventListener("wheel",oe),T.current.removeEventListener("DOMMouseScroll",ae),T.current.removeEventListener("MozMousePixelScroll",e)}}),[E]);var ie=function(e,t,n,r,o,i,u,l){var c=a.useRef();return function(a){if(null!=a){if(de.Z.cancel(c.current),"number"==typeof a)u(a);else if(a&&"object"===Pe(a)){var s,f=a.align;s="index"in a?a.index:t.findIndex((function(e){return o(e)===a.key}));var d=a.offset,p=void 0===d?0:d;!function a(l,d){if(!(l<0)&&e.current){var v=e.current.clientHeight,h=!1,m=d;if(v){for(var y=d||f,g=0,b=0,w=0,E=Math.min(t.length,s),x=0;x<=E;x+=1){var C=o(t[x]);b=g;var S=n.get(C);g=w=b+(void 0===S?r:S),x===s&&void 0===S&&(h=!0)}var k=null;switch(y){case"top":k=b-p;break;case"bottom":k=w-v+p;break;default:var _=e.current.scrollTop;b<_?m="top":w>_+v&&(m="bottom")}null!==k&&k!==e.current.scrollTop&&u(k)}c.current=(0,de.Z)((function(){h&&i(),a(l-1,m)}))}}(3)}}else l()}}(T,N,H,u,A,B,I,(function(){var e;null===(e=R.current)||void 0===e||e.delayHidden()}));a.useImperativeHandle(t,(function(){return{scrollTo:ie}})),(0,a.useLayoutEffect)((function(){if(b){var e=N.slice(q,Y+1);b(e,N)}}),[q,Y,N]);var ue=function(e,t,n,r,o,i){var u=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=o(e,t+n,{}),l=u(e);return a.createElement(Ce,{key:l,setRef:function(t){return r(e,t)}},i)}))}(N,q,Y,U,p,j),le=null;return i&&(le=ze(Fe({},s?"height":"maxHeight",i),We),E&&(le.overflowY="hidden",Z&&(le.pointerEvents="none"))),a.createElement("div",Le({style:ze(ze({},f),{},{position:"relative"}),className:P},w),a.createElement(y,{className:"".concat(r,"-holder"),style:le,ref:T,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==S&&I(t),null==g||g(e)}},a.createElement(fe,{prefixCls:r,height:$,offset:G,onInnerResize:B,ref:M},ue)),E&&a.createElement(xe,{ref:R,prefixCls:r,scrollTop:S,height:i,scrollHeight:$,count:N.length,onScroll:function(e){I(e)},onStartMove:function(){O(!0)},onStopMove:function(){O(!1)}}))}var $e=a.forwardRef(Ke);$e.displayName="List";const qe=$e;const Ye=a.createContext(null);var Ge=["disabled","title","children","style","className"],Xe=function(e,t){var n=a.useContext(J),u=n.prefixCls,c=n.id,s=n.open,p=n.multiple,v=n.searchValue,h=n.toggleOpen,y=n.notFoundContent,g=n.onPopupScroll,b=a.useContext(Ye),w=b.flattenOptions,E=b.onActiveValue,x=b.defaultActiveFirstOption,C=b.onSelect,S=b.menuItemSelectedIcon,k=b.rawValues,_=b.fieldNames,Z=b.virtual,O=b.listHeight,P=b.listItemHeight,N="".concat(u,"-item"),T=(0,ae.Z)((function(){return w}),[s,w],(function(e,t){return t[0]&&e[1]!==t[1]})),M=a.useRef(null),R=function(e){e.preventDefault()},A=function(e){M.current&&M.current.scrollTo({index:e})},j=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];V(e);var n={source:t?"keyboard":"mouse"},r=T[e];r?E(r.data.value,e,n):E(null,-1,n)};(0,a.useEffect)((function(){U(!1!==x?j(0):-1)}),[T.length,v]),(0,a.useEffect)((function(){var e,t=setTimeout((function(){if(!p&&s&&1===k.size){var e=Array.from(k)[0],t=T.findIndex((function(t){return t.data.value===e}));-1!==t&&(U(t),A(t))}}));s&&(null===(e=M.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,v]);var B=function(e){void 0!==e&&C(e,{selected:!k.has(e)}),p||h(!1)};if(a.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:var r=0;if(t===m.Z.UP?r=-1:t===m.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===m.Z.N?r=1:t===m.Z.P&&(r=-1)),0!==r){var o=j(z+r,r);A(o),U(o,!0)}break;case m.Z.ENTER:var a=T[z];a&&!a.data.disabled?B(a.data.value):B(void 0),s&&e.preventDefault();break;case m.Z.ESC:h(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){A(e)}}})),0===T.length)return a.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(N,"-empty"),onMouseDown:R},y);var H=Object.keys(_).map((function(e){return _[e]})),W=function(e){return e.label},K=function(e){var t=T[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,u=D(n,!0),l=W(t);return t?a.createElement("div",(0,o.Z)({"aria-label":"string"!=typeof l||i?null:l},u,{key:e,role:i?"presentation":"option",id:"".concat(c,"_list_").concat(e),"aria-selected":k.has(r)}),r):null};return a.createElement(a.Fragment,null,a.createElement("div",{role:"listbox",id:"".concat(c,"_list"),style:{height:0,width:0,overflow:"hidden"}},K(z-1),K(z),K(z+1)),a.createElement(qe,{itemKey:"key",ref:M,data:T,height:O,itemHeight:P,fullHeight:!1,onMouseDown:R,onScroll:g,virtual:Z},(function(e,t){var n,u=e.group,c=e.groupOption,s=e.data,f=e.label,p=e.value,v=s.key;if(u)return a.createElement("div",{className:l()(N,"".concat(N,"-group"))},void 0!==f?f:v);var h=s.disabled,m=s.title,y=(s.children,s.style),g=s.className,b=(0,d.Z)(s,Ge),w=(0,i.Z)(b,H),E=k.has(p),x="".concat(N,"-option"),C=l()(N,x,g,(n={},(0,r.Z)(n,"".concat(x,"-grouped"),c),(0,r.Z)(n,"".concat(x,"-active"),z===t&&!h),(0,r.Z)(n,"".concat(x,"-disabled"),h),(0,r.Z)(n,"".concat(x,"-selected"),E),n)),_=W(e),Z=!S||"function"==typeof S||E,O=_||p,P="string"==typeof O||"number"==typeof O?O.toString():void 0;return void 0!==m&&(P=m),a.createElement("div",(0,o.Z)({},w,{"aria-selected":E,className:C,title:P,onMouseMove:function(){z===t||h||U(t)},onClick:function(){h||B(p)},style:y}),a.createElement("div",{className:"".concat(x,"-content")},O),a.isValidElement(S)||E,Z&&a.createElement(F,{className:"".concat(N,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:E}},E?"✓":null))})))},Qe=a.forwardRef(Xe);Qe.displayName="OptionList";const Je=Qe;var et=function(){return null};et.isSelectOption=!0;const tt=et;var nt=function(){return null};nt.isSelectOptGroup=!0;const rt=nt;var ot=n(344),at=["children","value"],it=["children"];function ut(e){var t=e.key,n=e.props,r=n.children,o=n.value,a=(0,d.Z)(n,at);return(0,s.Z)({key:t,value:void 0!==o?o:t,children:r},a)}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ot.Z)(e).map((function(e,n){if(!a.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,i=e.props,u=i.children,l=(0,d.Z)(i,it);return t||!r?ut(e):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},l),{},{options:lt(u)})})).filter((function(e){return e}))}function ct(e,t,n){return a.useMemo((function(){var r=e;!e&&(r=lt(t));var o=new Map,a=new Map;return function e(t){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=_(n,!1),i=a.label,u=a.value,l=a.options;function c(e,t){e.forEach((function(e){var n=e[i];if(t||!(l in e)){var a=e[u];o.push({key:k(e,o.length),groupOption:t,data:e,label:n,value:a})}else{var s=n;void 0===s&&r&&(s=e.label),o.push({key:k(e,o.length),group:!0,data:e,label:s}),c(e[l],!0)}}))}return c(e,!1),o}(Ce,{fieldNames:Q,childrenAsData:G})}),[Ce,Q,G]),ke=function(e){var t=ce(e);if(pe(t),K&&(t.length!==me.length||t.some((function(e,t){var n;return(null===(n=me[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=W?t:t.map((function(e){return e.value})),r=t.map((function(e){return Z(ye(e.value))}));K(Y?n:n[0],Y?r:r[0])}},_e=a.useState(null),Ze=(0,f.Z)(_e,2),Oe=Ze[0],Pe=Ze[1],Ne=a.useState(0),Te=(0,f.Z)(Ne,2),Me=Te[0],Re=Te[1],Ae=void 0!==j?j:"combobox"!==i,je=a.useCallback((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;Re(t),v&&"combobox"===i&&null!==e&&"keyboard"===o&&Pe(String(e))}),[v,i]),Ie=function(e,t){var n=function(){var t,n=ye(e);return[W?{label:null==n?void 0:n[Q.label],value:e,key:null!==(t=n.key)&&void 0!==t?t:e}:e,Z(n)]};if(t&&x){var r=n(),o=(0,f.Z)(r,2),a=o[0],i=o[1];x(a,i)}else if(!t&&C){var u=n(),l=(0,f.Z)(u,2),c=l[0],s=l[1];C(c,s)}},Le=pt((function(e,t){var n,r=!Y||t.selected;n=r?Y?[].concat((0,c.Z)(me),[e]):[e]:me.filter((function(t){return t.value!==e})),ke(n),Ie(e,r),"combobox"===i?Pe(""):ne&&!E||(re(""),Pe(""))})),De=a.useMemo((function(){var e=!1!==L&&!1!==O;return(0,s.Z)((0,s.Z)({},ae),{},{flattenOptions:Se,onActiveValue:je,defaultActiveFirstOption:Ae,onSelect:Le,menuItemSelectedIcon:I,rawValues:be,fieldNames:Q,virtual:e,listHeight:z,listItemHeight:V,childrenAsData:G})}),[ae,Se,je,Ae,Le,I,be,Q,L,O,z,V,G]);return a.createElement(Ye.Provider,{value:De},a.createElement(oe,(0,o.Z)({},$,{id:q,prefixCls:l,ref:t,omitDomProps:mt,mode:i,displayValues:ge,onDisplayValuesChange:function(e,t){ke(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){Ie(e.value,!1)}))},searchValue:te,onSearch:function(e,t){if(re(e),Pe(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&ke(e),null==b||b(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,c.Z)(be),[n])));ke(r),Ie(n,!0),re("")}}},onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=ue.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,c.Z)(be),(0,c.Z)(t))));ke(n),n.forEach((function(e){Ie(e,!0)}))},dropdownMatchSelectWidth:O,OptionList:Je,emptyOptions:!Se.length,activeValue:Oe,activeDescendantId:"".concat(q,"_list_").concat(Me)})))}));yt.Option=tt,yt.OptGroup=rt;const gt=yt;var bt=n(6032);const wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var Et=n(6988),xt=function(e,t){return a.createElement(Et.Z,(0,s.Z)((0,s.Z)({},e),{},{ref:t,icon:wt}))};xt.displayName="DownOutlined";const Ct=a.forwardRef(xt);var St=n(7085),kt=n(9508),_t=n(4549),Zt=n(3061),Ot=n(6570);var Pt=n(7647),Nt=n(3603),Tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{Z:()=>re});var r=n(1002),o=n(4942),a=n(7462),i=n(9439),u=n(7294),l=n(1413),c=n(5671),s=n(3144),f=n(9340),d=n(1129),p=n(334);const v=function(e){var t,n,r=e.className,a=e.included,i=e.vertical,c=e.style,s=e.length,f=e.offset,d=e.reverse;s<0&&(d=!d,s=Math.abs(s),f=100-f);var p=i?(t={},(0,o.Z)(t,d?"top":"bottom","".concat(f,"%")),(0,o.Z)(t,d?"bottom":"top","auto"),(0,o.Z)(t,"height","".concat(s,"%")),t):(n={},(0,o.Z)(n,d?"right":"left","".concat(f,"%")),(0,o.Z)(n,d?"left":"right","auto"),(0,o.Z)(n,"width","".concat(s,"%")),n),v=(0,l.Z)((0,l.Z)({},c),p);return a?u.createElement("div",{className:r,style:v}):null};var h=n(4925),m=n(3433),y=n(1120);function g(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,y.Z)(e)););return e}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=g(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},b.apply(this,arguments)}var w=n(4019),E=n(4184),x=n.n(E);const C=function(e){var t=e.prefixCls,n=e.vertical,r=e.reverse,a=e.marks,i=e.dots,c=e.step,s=e.included,f=e.lowerBound,d=e.upperBound,v=e.max,h=e.min,m=e.dotStyle,y=e.activeDotStyle,g=v-h,b=function(e,t,n,r,o,a){(0,p.ZP)(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var i=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=a;u+=r)-1===i.indexOf(u)&&i.push(u);return i}(0,a,i,c,h,v).map((function(e){var a,i="".concat(Math.abs(e-h)/g*100,"%"),c=!s&&e===d||s&&e<=d&&e>=f,p=n?(0,l.Z)((0,l.Z)({},m),{},(0,o.Z)({},r?"top":"bottom",i)):(0,l.Z)((0,l.Z)({},m),{},(0,o.Z)({},r?"right":"left",i));c&&(p=(0,l.Z)((0,l.Z)({},p),y));var v=x()((a={},(0,o.Z)(a,"".concat(t,"-dot"),!0),(0,o.Z)(a,"".concat(t,"-dot-active"),c),(0,o.Z)(a,"".concat(t,"-dot-reverse"),r),a));return u.createElement("span",{className:v,style:p,key:e})}));return u.createElement("div",{className:"".concat(t,"-step")},b)};const S=function(e){var t=e.className,n=e.vertical,a=e.reverse,i=e.marks,c=e.included,s=e.upperBound,f=e.lowerBound,d=e.max,p=e.min,v=e.onClickLabel,h=Object.keys(i),m=d-p,y=h.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var d,h=i[e],y="object"===(0,r.Z)(h)&&!u.isValidElement(h),g=y?h.label:h;if(!g&&0!==g)return null;var b=!c&&e===s||c&&e<=s&&e>=f,w=x()((d={},(0,o.Z)(d,"".concat(t,"-text"),!0),(0,o.Z)(d,"".concat(t,"-text-active"),b),d)),E=(0,o.Z)({marginBottom:"-50%"},a?"top":"bottom","".concat((e-p)/m*100,"%")),C=(0,o.Z)({transform:"translateX(".concat(a?"50%":"-50%",")"),msTransform:"translateX(".concat(a?"50%":"-50%",")")},a?"right":"left","".concat((e-p)/m*100,"%")),S=n?E:C,k=y?(0,l.Z)((0,l.Z)({},S),h.style):S;return u.createElement("span",{className:w,style:k,key:e,onMouseDown:function(t){return v(t,e)},onTouchStart:function(t){return v(t,e)}},g)}));return u.createElement("div",{className:t},y)};var k=function(e){(0,f.Z)(n,e);var t=(0,d.Z)(n);function n(){var e;return(0,c.Z)(this,n),(e=t.apply(this,arguments)).state={clickFocused:!1},e.setHandleRef=function(t){e.handle=t},e.handleMouseUp=function(){document.activeElement===e.handle&&e.setClickFocus(!0)},e.handleMouseDown=function(t){t.preventDefault(),e.focus()},e.handleBlur=function(){e.setClickFocus(!1)},e.handleKeyDown=function(){e.setClickFocus(!1)},e}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.onMouseUpListener=(0,w.Z)(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e,t,n,r=this.props,i=r.prefixCls,c=r.vertical,s=r.reverse,f=r.offset,d=r.style,p=r.disabled,v=r.min,m=r.max,y=r.value,g=r.tabIndex,b=r.ariaLabel,w=r.ariaLabelledBy,E=r.ariaValueTextFormatter,C=(0,h.Z)(r,["prefixCls","vertical","reverse","offset","style","disabled","min","max","value","tabIndex","ariaLabel","ariaLabelledBy","ariaValueTextFormatter"]),S=x()(this.props.className,(0,o.Z)({},"".concat(i,"-handle-click-focused"),this.state.clickFocused)),k=c?(e={},(0,o.Z)(e,s?"top":"bottom","".concat(f,"%")),(0,o.Z)(e,s?"bottom":"top","auto"),(0,o.Z)(e,"transform",s?null:"translateY(+50%)"),e):(t={},(0,o.Z)(t,s?"right":"left","".concat(f,"%")),(0,o.Z)(t,s?"left":"right","auto"),(0,o.Z)(t,"transform","translateX(".concat(s?"+":"-","50%)")),t),_=(0,l.Z)((0,l.Z)({},d),k),Z=g||0;return(p||null===g)&&(Z=null),E&&(n=E(y)),u.createElement("div",(0,a.Z)({ref:this.setHandleRef,tabIndex:Z},C,{className:S,style:_,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,role:"slider","aria-valuemin":v,"aria-valuemax":m,"aria-valuenow":y,"aria-disabled":!!p,"aria-label":b,"aria-labelledby":w,"aria-valuetext":n}))}}]),n}(u.Component),_=n(3935),Z=n(5105);function O(e,t){try{return Object.keys(t).some((function(n){return e.target===(0,_.findDOMNode)(t[n])}))}catch(e){return!1}}function P(e,t){var n=t.min,r=t.max;return er}function N(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function T(e,t){var n=t.marks,r=t.step,o=t.min,a=t.max,i=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.pow(10,M(r)),l=Math.floor((a*u-o*u)/(r*u)),c=Math.min((e-o)/r,l),s=Math.round(c)*r+o;i.push(s)}var f=i.map((function(t){return Math.abs(e-t)}));return i[f.indexOf(Math.min.apply(Math,(0,m.Z)(f)))]}function M(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function R(e,t){return e?t.clientY:t.pageX}function A(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function j(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function I(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function L(e,t){var n=t.step,r=isFinite(T(e,t))?T(e,t):0;return null===n?r:parseFloat(r.toFixed(M(n)))}function D(e){e.stopPropagation(),e.preventDefault()}function z(e,t,n){var r="increase",o="decrease",a=r;switch(e.keyCode){case Z.Z.UP:a=t&&n?o:r;break;case Z.Z.RIGHT:a=!t&&n?o:r;break;case Z.Z.DOWN:a=t&&n?r:o;break;case Z.Z.LEFT:a=!t&&n?r:o;break;case Z.Z.END:return function(e,t){return t.max};case Z.Z.HOME:return function(e,t){return t.min};case Z.Z.PAGE_UP:return function(e,t){return e+2*t.step};case Z.Z.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}(a,e,t)}}function F(){}function V(e){var t;return t=function(e){(0,f.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r;(0,c.Z)(this,n),(r=t.call(this,e)).onDown=function(e,t){var n=t,o=r.props,a=o.draggableTrack,i=o.vertical,u=r.state.bounds,l=a&&r.positionGetValue&&r.positionGetValue(n)||[],c=O(e,r.handlesRefs);if(r.dragTrack=a&&u.length>=2&&!c&&!l.map((function(e,t){var n=!!t||e>=u[t];return t===l.length-1?e<=u[t]:n})).some((function(e){return!e})),r.dragTrack)r.dragOffset=n,r.startBounds=(0,m.Z)(u);else{if(c){var s=j(i,e.target);r.dragOffset=n-s,n=s}else r.dragOffset=0;r.onStart(n)}},r.onMouseDown=function(e){if(0===e.button){r.removeDocumentEvents();var t=R(r.props.vertical,e);r.onDown(e,t),r.addDocumentMouseEvents()}},r.onTouchStart=function(e){if(!N(e)){var t=A(r.props.vertical,e);r.onDown(e,t),r.addDocumentTouchEvents(),D(e)}},r.onFocus=function(e){var t=r.props,n=t.onFocus,o=t.vertical;if(O(e,r.handlesRefs)&&!r.dragTrack){var a=j(o,e.target);r.dragOffset=0,r.onStart(a),D(e),n&&n(e)}},r.onBlur=function(e){var t=r.props.onBlur;r.dragTrack||r.onEnd(),t&&t(e)},r.onMouseUp=function(){r.handlesRefs[r.prevMovedHandleIndex]&&r.handlesRefs[r.prevMovedHandleIndex].clickFocus()},r.onMouseMove=function(e){if(r.sliderRef){var t=R(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)}else r.onEnd()},r.onTouchMove=function(e){if(!N(e)&&r.sliderRef){var t=A(r.props.vertical,e);r.onMove(e,t-r.dragOffset,r.dragTrack,r.startBounds)}else r.onEnd()},r.onKeyDown=function(e){r.sliderRef&&O(e,r.handlesRefs)&&r.onKeyboard(e)},r.onClickMarkLabel=function(e,t){e.stopPropagation(),r.onChange({value:t}),r.setState({value:t},(function(){return r.onEnd(!0)}))},r.saveSlider=function(e){r.sliderRef=e};var o=e.step,a=e.max,i=e.min,u=!isFinite(a-i)||(a-i)%o==0;return(0,p.ZP)(!o||Math.floor(o)!==o||u,"Slider[max] - Slider[min] (".concat(a-i,") should be a multiple of Slider[step] (").concat(o,")")),r.handlesRefs={},r}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){b((0,y.Z)(n.prototype),"componentWillUnmount",this)&&b((0,y.Z)(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=(0,w.Z)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=(0,w.Z)(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=(0,w.Z)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=(0,w.Z)(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){var e;this.props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,a=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-a)*(o-r)+r:a*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min,r=(e-n)/(t.max-n);return Math.max(0,100*r)}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,t=this.props,r=t.prefixCls,a=t.className,i=t.marks,c=t.dots,s=t.step,f=t.included,d=t.disabled,p=t.vertical,v=t.reverse,h=t.min,m=t.max,g=t.children,w=t.maximumTrackStyle,E=t.style,k=t.railStyle,_=t.dotStyle,Z=t.activeDotStyle,O=b((0,y.Z)(n.prototype),"render",this).call(this),P=O.tracks,N=O.handles,T=x()(r,(e={},(0,o.Z)(e,"".concat(r,"-with-marks"),Object.keys(i).length),(0,o.Z)(e,"".concat(r,"-disabled"),d),(0,o.Z)(e,"".concat(r,"-vertical"),p),(0,o.Z)(e,a,a),e));return u.createElement("div",{ref:this.saveSlider,className:T,onTouchStart:d?F:this.onTouchStart,onMouseDown:d?F:this.onMouseDown,onMouseUp:d?F:this.onMouseUp,onKeyDown:d?F:this.onKeyDown,onFocus:d?F:this.onFocus,onBlur:d?F:this.onBlur,style:E},u.createElement("div",{className:"".concat(r,"-rail"),style:(0,l.Z)((0,l.Z)({},w),k)}),P,u.createElement(C,{prefixCls:r,vertical:p,reverse:v,marks:i,dots:c,step:s,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:h,dotStyle:_,activeDotStyle:Z}),N,u.createElement(S,{className:"".concat(r,"-mark"),onClickLabel:d?F:this.onClickMarkLabel,vertical:p,marks:i,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:m,min:h,reverse:v}),g)}}]),n}(e),t.displayName="ComponentEnhancer(".concat(e.displayName,")"),t.defaultProps=(0,l.Z)((0,l.Z)({},e.defaultProps),{},{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=(0,h.Z)(e,["index"]);return delete n.dragging,null===n.value?null:u.createElement(k,(0,a.Z)({},n,{key:t}))},onBeforeChange:F,onChange:F,onAfterChange:F,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),t}const U=V(function(e){(0,f.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r;(0,c.Z)(this,n),(r=t.call(this,e)).positionGetValue=function(e){return[]},r.onEnd=function(e){var t=r.state.dragging;r.removeDocumentEvents(),(t||e)&&r.props.onAfterChange(r.getValue()),r.setState({dragging:!1})};var o=void 0!==e.defaultValue?e.defaultValue:e.min,a=void 0!==e.value?e.value:o;return r.state={value:r.trimAlignValue(a),dragging:!1},(0,p.ZP)(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),(0,p.ZP)(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),r}return(0,s.Z)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.min,o=n.max,a=n.value,i=n.onChange;if("min"in this.props||"max"in this.props){var u=void 0!==a?a:t.value,l=this.trimAlignValue(u,this.props);l!==t.value&&(this.setState({value:l}),r===e.min&&o===e.max||!P(u,this.props)||i(l))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?(0,l.Z)((0,l.Z)({},e),{},{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){D(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=z(e,t.vertical,n);if(r){D(e);var o=this.state.value,a=r(o,this.props),i=this.trimAlignValue(a);if(i===o)return;this.onChange({value:i}),this.props.onAfterChange(i),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){var e=this.props.startPoint||this.props.min;return this.state.value>e?e:this.state.value}},{key:"getUpperBound",value:function(){return this.state.value1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=(0,l.Z)((0,l.Z)({},this.props),t),r=I(e,n);return L(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,o=t.included,a=t.disabled,i=t.minimumTrackStyle,c=t.trackStyle,s=t.handleStyle,f=t.tabIndex,d=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,h=t.ariaValueTextFormatterForHandle,m=t.min,y=t.max,g=t.startPoint,b=t.reverse,w=t.handle,E=this.state,x=E.value,C=E.dragging,S=this.calcOffset(x),k=w({className:"".concat(n,"-handle"),prefixCls:n,vertical:r,offset:S,value:x,dragging:C,disabled:a,min:m,max:y,reverse:b,index:0,tabIndex:f,ariaLabel:d,ariaLabelledBy:p,ariaValueTextFormatter:h,style:s[0]||s,ref:function(t){return e.saveHandle(0,t)}}),_=void 0!==g?this.calcOffset(g):0,Z=c[0]||c;return{tracks:u.createElement(v,{className:"".concat(n,"-track"),vertical:r,included:o,offset:_,reverse:b,length:S-_,style:(0,l.Z)((0,l.Z)({},i),Z)}),handles:k}}}]),n}(u.Component));var B=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,a=o.allowCross,i=o.pushable,u=Number(i),l=I(t,o),c=l;return a||null==n||void 0===r||(n>0&&l<=r[n-1]+u&&(c=r[n-1]+u),n=r[n+1]-u&&(c=r[n+1]-u)),L(c,o)},H=function(e){(0,f.Z)(n,e);var t=(0,d.Z)(n);function n(e){var r;(0,c.Z)(this,n),(r=t.call(this,e)).positionGetValue=function(e){var t=r.getValue(),n=r.calcValueByPos(e),o=r.getClosestBound(n),a=r.getBoundNeedMoving(n,o);if(n===t[a])return null;var i=(0,m.Z)(t);return i[a]=n,i},r.onEnd=function(e){var t=r.state.handle;r.removeDocumentEvents(),t||(r.dragTrack=!1),(null!==t||e)&&r.props.onAfterChange(r.getValue()),r.setState({handle:null})};var o=e.count,a=e.min,i=e.max,u=Array.apply(void 0,(0,m.Z)(Array(o+1))).map((function(){return a})),l="defaultValue"in e?e.defaultValue:u,s=(void 0!==e.value?e.value:l).map((function(t,n){return B({value:t,handle:n,props:e})})),f=s[0]===i?0:s.length-1;return r.state={handle:null,recent:f,bounds:s},r}return(0,s.Z)(n,[{key:"calcValueByPos",value:function(e){return 0}},{key:"getSliderLength",value:function(){return 0}},{key:"calcOffset",value:function(e){return 0}},{key:"saveHandle",value:function(e,t){}},{key:"removeDocumentEvents",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.onChange,a=r.value,i=r.min,u=r.max;if(("min"in this.props||"max"in this.props)&&(i!==e.min||u!==e.max)){var l=a||t.bounds;if(l.some((function(e){return P(e,n.props)})))o(l.map((function(e){return I(e,n.props)})))}}},{key:"onChange",value:function(e){var t=this.props;if(!("value"in t))this.setState(e);else{var n={};["handle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}var r=(0,l.Z)((0,l.Z)({},this.state),e).bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var o=this.calcValueByPos(e);this.startValue=o,this.startPosition=e;var a=this.getClosestBound(o);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(o,a),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),o!==r[this.prevMovedHandleIndex]){var i=(0,m.Z)(n.bounds);i[this.prevMovedHandleIndex]=o,this.onChange({bounds:i})}}},{key:"onMove",value:function(e,t,n,r){D(e);var o=this.state,a=this.props,i=a.max||100,u=a.min||0;if(n){var l=a.vertical?-t:t;l=a.reverse?-l:l;var c=i-Math.max.apply(Math,(0,m.Z)(r)),s=u-Math.min.apply(Math,(0,m.Z)(r)),f=Math.min(Math.max(l/(this.getSliderLength()/(i-u)),s),c),d=r.map((function(e){return Math.floor(Math.max(Math.min(e+f,i),u))}));o.bounds.map((function(e,t){return e===d[t]})).some((function(e){return!e}))&&this.onChange({bounds:d})}else{var p=this.calcValueByPos(t);p!==o.bounds[o.handle]&&this.moveTo(p)}}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=z(e,t.vertical,n);if(r){D(e);var o=this.state,a=this.props,i=o.bounds,u=o.handle,l=i[null===u?o.recent:u],c=r(l,a),s=B({value:c,handle:u,bounds:o.bounds,props:a});if(s===l)return;this.moveTo(s,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r=t[r]&&(n=r);return Math.abs(t[n+1]-e)=r.length||o<0)return!1;var a=t+n,i=r[o],u=this.props.pushable,l=Number(u),c=n*(e[a]-i);return!!this.pushHandle(e,a,n,l-c)&&(e[t]=i,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return B({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,a=this.props,i=a.prefixCls,l=a.vertical,c=a.included,s=a.disabled,f=a.min,d=a.max,p=a.reverse,h=a.handle,m=a.trackStyle,y=a.handleStyle,g=a.tabIndex,b=a.ariaLabelGroupForHandles,w=a.ariaLabelledByGroupForHandles,E=a.ariaValueTextFormatterGroupForHandles,C=r.map((function(t){return e.calcOffset(t)})),S="".concat(i,"-handle"),k=r.map((function(t,r){var a,u=g[r]||0;(s||null===g[r])&&(u=null);var c=n===r;return h({className:x()((a={},(0,o.Z)(a,S,!0),(0,o.Z)(a,"".concat(S,"-").concat(r+1),!0),(0,o.Z)(a,"".concat(S,"-dragging"),c),a)),prefixCls:i,vertical:l,dragging:c,offset:C[r],value:t,index:r,tabIndex:u,min:f,max:d,reverse:p,disabled:s,style:y[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:b[r],ariaLabelledBy:w[r],ariaValueTextFormatter:E[r]})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,a=x()((n={},(0,o.Z)(n,"".concat(i,"-track"),!0),(0,o.Z)(n,"".concat(i,"-track-").concat(r),!0),n));return u.createElement(v,{className:a,vertical:l,reverse:p,included:c,offset:C[r-1],length:C[r]-C[r-1],style:m[t],key:r})})),handles:k}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(!("value"in e||"min"in e||"max"in e))return null;var n=e.value||t.bounds,r=n.map((function(n,r){return B({value:n,handle:r,bounds:t.bounds,props:e})}));if(t.bounds.length===r.length){if(r.every((function(e,n){return e===t.bounds[n]})))return null}else r=n.map((function(t,n){return B({value:t,handle:n,props:e})}));return(0,l.Z)((0,l.Z)({},t),{},{bounds:r})}}]),n}(u.Component);H.displayName="Range",H.defaultProps={count:1,allowCross:!0,pushable:!1,draggableTrack:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};const W=V(H);var K=n(1472),$=n(2550),q=n(5164);const Y=u.forwardRef((function(e,t){var n=e.visible,r=e.overlay,o=u.useRef(null),i=(0,$.sQ)(t,o),l=u.useRef(null);function c(){q.Z.cancel(l.current)}return u.useEffect((function(){return n?l.current=(0,q.Z)((function(){var e;null===(e=o.current)||void 0===e||e.forcePopupAlign()})):c(),c}),[n,r]),u.createElement(K.Z,(0,a.Z)({ref:i},e))}));var G=U;G.Range=W,G.Handle=k,G.createSliderWithTooltip=function(e){var t;return t=function(t){(0,f.Z)(r,t);var n=(0,d.Z)(r);function r(){var e;return(0,c.Z)(this,r),(e=n.apply(this,arguments)).state={visibles:{}},e.handleTooltipVisibleChange=function(t,n){e.setState((function(e){return{visibles:(0,l.Z)((0,l.Z)({},e.visibles),{},(0,o.Z)({},t,n))}}))},e.handleWithTooltip=function(t){var n,r=t.value,o=t.dragging,i=t.index,c=t.disabled,s=(0,h.Z)(t,["value","dragging","index","disabled"]),f=e.props,d=f.tipFormatter,p=f.tipProps,v=f.handleStyle,m=f.getTooltipContainer,y=p.prefixCls,g=void 0===y?"rc-slider-tooltip":y,b=p.overlay,w=void 0===b?d(r):b,E=p.placement,x=void 0===E?"top":E,C=p.visible,S=void 0!==C&&C,_=(0,h.Z)(p,["prefixCls","overlay","placement","visible"]);return n=Array.isArray(v)?v[i]||v[0]:v,u.createElement(Y,(0,a.Z)({},_,{getTooltipContainer:m,prefixCls:g,overlay:w,placement:x,visible:!c&&(e.state.visibles[i]||o)||S,key:i}),u.createElement(k,(0,a.Z)({},s,{style:(0,l.Z)({},n),value:r,onMouseEnter:function(){return e.handleTooltipVisibleChange(i,!0)},onMouseLeave:function(){return e.handleTooltipVisibleChange(i,!1)}})))},e}return(0,s.Z)(r,[{key:"render",value:function(){return u.createElement(e,(0,a.Z)({},this.props,{handle:this.handleWithTooltip}))}}]),r}(u.Component),t.defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{},getTooltipContainer:function(e){return e.parentNode}},t};const X=G;var Q=n(7901);const J=u.forwardRef((function(e,t){var n=e.visible,r=(0,u.useRef)(null),o=(0,u.useRef)(null);function i(){q.Z.cancel(o.current),o.current=null}return u.useEffect((function(){return n?o.current=(0,q.Z)((function(){var e;null===(e=r.current)||void 0===e||e.forcePopupAlign(),o.current=null})):i(),i}),[n,e.title]),u.createElement(Q.Z,(0,a.Z)({ref:(0,$.sQ)(r,t)},e))}));var ee=n(6032),te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{Z:()=>E});var r=n(7462),o=n(4942),a=n(5671),i=n(3144),u=n(9340),l=n(1129),c=n(7294),s=n(4184),f=n.n(s),d=n(8423),p=n(3279),v=n.n(p),h=n(6032),m=n(3355),y=n(6159),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{Z:()=>E});var r=n(7462),o=n(4942),a=n(7294),i=n(9439),u=n(4925),l=n(4184),c=n.n(l),s=n(1770),f=n(5105),d=a.forwardRef((function(e,t){var n,r=e.prefixCls,l=void 0===r?"rc-switch":r,d=e.className,p=e.checked,v=e.defaultChecked,h=e.disabled,m=e.loadingIcon,y=e.checkedChildren,g=e.unCheckedChildren,b=e.onClick,w=e.onChange,E=e.onKeyDown,x=(0,u.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),C=(0,s.Z)(!1,{value:p,defaultValue:v}),S=(0,i.Z)(C,2),k=S[0],_=S[1];function Z(e,t){var n=k;return h||(_(n=e),null==w||w(n,t)),n}var O=c()(l,d,(n={},(0,o.Z)(n,"".concat(l,"-checked"),k),(0,o.Z)(n,"".concat(l,"-disabled"),h),n));return a.createElement("button",Object.assign({},x,{type:"button",role:"switch","aria-checked":k,disabled:h,className:O,ref:t,onKeyDown:function(e){e.which===f.Z.LEFT?Z(!1,e):e.which===f.Z.RIGHT&&Z(!0,e),null==E||E(e)},onClick:function(e){var t=Z(!k,e);null==b||b(t,e)}}),m,a.createElement("span",{className:"".concat(l,"-inner")},k?y:g))}));d.displayName="Switch";const p=d;var v=n(7085),h=n(1790),m=n(6032),y=n(7647),g=n(1687),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{"use strict";n.d(t,{Z:()=>At});var r=n(7462),o=n(4942),a=n(7294),i=n(9439),u=n(1002),l=n(4925),c=n(1413),s=n(4184),f=n.n(s),d=n(344),p=n(1131),v=n(1770),h=n(3433),m=n(5164),y=n(8717);function g(e){var t=(0,a.useRef)(),n=(0,a.useRef)(!1);return(0,a.useEffect)((function(){return function(){n.current=!0,m.Z.cancel(t.current)}}),[]),function(){for(var r=arguments.length,o=new Array(r),a=0;a1&&(x.motionAppear=!1);var C=x.onVisibleChanged;return x.onVisibleChanged=function(e){return m.current||e||w(!0),null==C?void 0:C(e)},b?null:a.createElement(I,{mode:l,locked:!m.current},a.createElement(ye.Z,(0,r.Z)({visible:E},x,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,r=e.style;return a.createElement(ce,{id:t,className:n,style:r},u)})))}var be=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],we=["active"],Ee=function(e){var t,n=e.style,u=e.className,s=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),v=e.internalPopupClose,h=e.children,m=e.itemIcon,y=e.expandIcon,g=e.popupClassName,b=e.popupOffset,w=e.onClick,E=e.onMouseEnter,x=e.onMouseLeave,C=e.onTitleClick,S=e.onTitleMouseEnter,k=e.onTitleMouseLeave,_=(0,l.Z)(e,be),O=G(d),P=a.useContext(j),N=P.prefixCls,T=P.mode,M=P.openKeys,R=P.disabled,A=P.overflowDisabled,D=P.activeKey,U=P.selectedKeys,B=P.itemIcon,H=P.expandIcon,W=P.onItemClick,q=P.onOpenChange,Y=P.onActive,Q=a.useContext(X)._internalRenderSubMenuItem,J=a.useContext($).isSubPathKey,ee=K(),te="".concat(N,"-submenu"),ne=R||p,re=a.useRef(),oe=a.useRef();var ie=m||B,ue=y||H,le=M.includes(d),se=!A&&le,fe=J(U,d),de=L(d,ne,S,k),pe=de.active,ve=(0,l.Z)(de,we),he=a.useState(!1),ye=(0,i.Z)(he,2),Ee=ye[0],xe=ye[1],Ce=function(e){ne||xe(e)},Se=a.useMemo((function(){return pe||"inline"!==T&&(Ee||J([D],d))}),[T,pe,D,Ee,d,J]),ke=V(ee.length),_e=ae((function(e){null==w||w(z(e)),W(e)})),Ze=O&&"".concat(O,"-popup"),Oe=a.createElement("div",(0,r.Z)({role:"menuitem",style:ke,className:"".concat(te,"-title"),tabIndex:ne?null:-1,ref:re,title:"string"==typeof s?s:null,"data-menu-id":A&&O?null:O,"aria-expanded":se,"aria-haspopup":!0,"aria-controls":Ze,"aria-disabled":ne,onClick:function(e){ne||(null==C||C({key:d,domEvent:e}),"inline"===T&&q(d,!le))},onFocus:function(){Y(d)}},ve),s,a.createElement(F,{icon:"horizontal"!==T?ue:null,props:(0,c.Z)((0,c.Z)({},e),{},{isOpen:se,isSubMenu:!0})},a.createElement("i",{className:"".concat(te,"-arrow")}))),Pe=a.useRef(T);if("inline"!==T&&(Pe.current=ee.length>1?"vertical":T),!A){var Ne=Pe.current;Oe=a.createElement(me,{mode:Ne,prefixCls:te,visible:!v&&se&&"inline"!==T,popupClassName:g,popupOffset:b,popup:a.createElement(I,{mode:"horizontal"===Ne?"vertical":Ne},a.createElement(ce,{id:Ze,ref:oe},h)),disabled:ne,onVisibleChange:function(e){"inline"!==T&&q(d,e)}},Oe)}var Te=a.createElement(Z.Z.Item,(0,r.Z)({role:"none"},_,{component:"li",style:n,className:f()(te,"".concat(te,"-").concat(T),u,(t={},(0,o.Z)(t,"".concat(te,"-open"),se),(0,o.Z)(t,"".concat(te,"-active"),Se),(0,o.Z)(t,"".concat(te,"-selected"),fe),(0,o.Z)(t,"".concat(te,"-disabled"),ne),t)),onMouseEnter:function(e){Ce(!0),null==E||E({key:d,domEvent:e})},onMouseLeave:function(e){Ce(!1),null==x||x({key:d,domEvent:e})}}),Oe,!A&&a.createElement(ge,{id:Ze,open:se,keyPath:ee},h));return Q&&(Te=Q(Te,e,{selected:fe,active:Se,open:se,disabled:ne})),a.createElement(I,{onItemClick:_e,mode:"horizontal"===T?"vertical":T,itemIcon:ie,expandIcon:ue},Te)};function xe(e){var t,n=e.eventKey,r=e.children,o=K(n),i=oe(r,o),u=H();return a.useEffect((function(){if(u)return u.registerPath(n,o),function(){u.unregisterPath(n,o)}}),[o]),t=u?i:a.createElement(Ee,e,i),a.createElement(W.Provider,{value:o},t)}var Ce=n(5110);function Se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,Ce.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,h.Z)(e.querySelectorAll("*")).filter((function(e){return Se(e,t)}));return Se(e,t)&&n.unshift(e),n}var _e=b.Z.LEFT,Ze=b.Z.RIGHT,Oe=b.Z.UP,Pe=b.Z.DOWN,Ne=b.Z.ENTER,Te=b.Z.ESC,Me=b.Z.HOME,Re=b.Z.END,Ae=[Oe,Pe,_e,Ze];function je(e,t){return ke(e,!0).filter((function(e){return t.has(e)}))}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=je(e,t),a=o.length,i=o.findIndex((function(e){return n===e}));return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}function Le(e,t,n,r,i,u,l,c,s,f){var d=a.useRef(),p=a.useRef();p.current=t;var v=function(){m.Z.cancel(d.current)};return a.useEffect((function(){return function(){v()}}),[]),function(a){var h=a.which;if([].concat(Ae,[Ne,Te,Me,Re]).includes(h)){var y,g,b,w=function(){return y=new Set,g=new Map,b=new Map,u().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(Y(r,e),"']"));t&&(y.add(t),b.set(t,e),g.set(e,t))})),y};w();var E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(g.get(t),y),x=b.get(E),C=function(e,t,n,r){var a,i,u,l,c="prev",s="next",f="children",d="parent";if("inline"===e&&r===Ne)return{inlineTrigger:!0};var p=(a={},(0,o.Z)(a,Oe,c),(0,o.Z)(a,Pe,s),a),v=(i={},(0,o.Z)(i,_e,n?s:c),(0,o.Z)(i,Ze,n?c:s),(0,o.Z)(i,Pe,f),(0,o.Z)(i,Ne,f),i),h=(u={},(0,o.Z)(u,Oe,c),(0,o.Z)(u,Pe,s),(0,o.Z)(u,Ne,f),(0,o.Z)(u,Te,d),(0,o.Z)(u,_e,n?f:d),(0,o.Z)(u,Ze,n?d:f),u);switch(null===(l={inline:p,horizontal:v,vertical:h,inlineSub:p,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===l(x,!0).length,n,h);if(!C&&h!==Me&&h!==Re)return;(Ae.includes(h)||[Me,Re].includes(h))&&a.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=b.get(e);c(r),v(),d.current=(0,m.Z)((function(){p.current===r&&t.focus()}))}};if([Me,Re].includes(h)||C.sibling||!E){var k,_,Z=je(k=E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):i.current,y);_=h===Me?Z[0]:h===Re?Z[Z.length-1]:Ie(k,y,E,C.offset),S(_)}else if(C.inlineTrigger)s(x);else if(C.offset>0)s(x,!0),v(),d.current=(0,m.Z)((function(){w();var e=E.getAttribute("aria-controls"),t=Ie(document.getElementById(e),y);S(t)}),5);else if(C.offset<0){var O=l(x,!0),P=O[O.length-2],N=g.get(P);s(P,!1),S(N)}}null==f||f(a)}}var De=Math.random().toFixed(5).toString().slice(2),ze=0;var Fe="__RC_UTIL_PATH_SPLIT__",Ve=function(e){return e.join(Fe)},Ue="rc-menu-more";function Be(){var e=a.useState({}),t=(0,i.Z)(e,2)[1],n=(0,a.useRef)(new Map),r=(0,a.useRef)(new Map),o=a.useState([]),u=(0,i.Z)(o,2),l=u[0],c=u[1],s=(0,a.useRef)(0),f=(0,a.useRef)(!1),d=(0,a.useCallback)((function(e,o){var a=Ve(o);r.current.set(a,e),n.current.set(e,a),s.current+=1;var i,u=s.current;i=function(){u===s.current&&(f.current||t({}))},Promise.resolve().then(i)}),[]),p=(0,a.useCallback)((function(e,t){var o=Ve(t);r.current.delete(o),n.current.delete(e)}),[]),v=(0,a.useCallback)((function(e){c(e)}),[]),m=(0,a.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Fe);return t&&l.includes(o[0])&&o.unshift(Ue),o}),[l]),y=(0,a.useCallback)((function(e,t){return e.some((function(e){return m(e,!0).includes(t)}))}),[m]),g=(0,a.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Fe),o=new Set;return(0,h.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return a.useEffect((function(){return function(){f.current=!0}}),[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:v,isSubPathKey:y,getKeyPath:m,getKeys:function(){var e=(0,h.Z)(n.current.keys());return l.length&&e.push(Ue),e},getSubPathKeys:g}}var He=["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],We=[];const Ke=function(e){var t,n,u=e.prefixCls,s=void 0===u?"rc-menu":u,d=e.style,p=e.className,m=e.tabIndex,y=void 0===m?0:m,g=e.children,b=e.direction,w=e.id,E=e.mode,x=void 0===E?"vertical":E,C=e.inlineCollapsed,S=e.disabled,_=e.disabledOverflow,O=e.subMenuOpenDelay,P=void 0===O?.1:O,N=e.subMenuCloseDelay,T=void 0===N?.1:N,M=e.forceSubMenuRender,R=e.defaultOpenKeys,A=e.openKeys,j=e.activeKey,L=e.defaultActiveFirst,D=e.selectable,F=void 0===D||D,V=e.multiple,U=void 0!==V&&V,H=e.defaultSelectedKeys,W=e.selectedKeys,K=e.onSelect,Y=e.onDeselect,G=e.inlineIndent,Q=void 0===G?24:G,J=e.motion,ee=e.defaultMotions,te=e.triggerSubMenuAction,ne=void 0===te?"hover":te,ie=e.builtinPlacements,ue=e.itemIcon,le=e.expandIcon,ce=e.overflowedIndicator,se=void 0===ce?"...":ce,fe=e.overflowedIndicatorPopupClassName,de=e.getPopupContainer,pe=e.onClick,ve=e.onOpenChange,he=e.onKeyDown,me=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),ye=e._internalRenderSubMenuItem,ge=(0,l.Z)(e,He),be=oe(g,We),we=a.useState(!1),Ee=(0,i.Z)(we,2),Ce=Ee[0],Se=Ee[1],ke=a.useRef(),_e=function(e){var t=(0,v.Z)(e,{value:e}),n=(0,i.Z)(t,2),r=n[0],o=n[1];return a.useEffect((function(){ze+=1;var e="".concat(De,"-").concat(ze);o("rc-menu-uuid-".concat(e))}),[]),r}(w),Ze="rtl"===b;var Oe=a.useMemo((function(){return"inline"!==x&&"vertical"!==x||!C?[x,!1]:["vertical",C]}),[x,C]),Pe=(0,i.Z)(Oe,2),Ne=Pe[0],Te=Pe[1],Me=a.useState(0),Re=(0,i.Z)(Me,2),Ae=Re[0],je=Re[1],Ie=Ae>=be.length-1||"horizontal"!==Ne||_,Fe=(0,v.Z)(R,{value:A,postState:function(e){return e||We}}),Ve=(0,i.Z)(Fe,2),Ke=Ve[0],$e=Ve[1],qe=function(e){$e(e),null==ve||ve(e)},Ye=a.useState(Ke),Ge=(0,i.Z)(Ye,2),Xe=Ge[0],Qe=Ge[1],Je="inline"===Ne,et=a.useRef(!1);a.useEffect((function(){Je&&Qe(Ke)}),[Ke]),a.useEffect((function(){et.current?Je?$e(Xe):qe(We):et.current=!0}),[Je]);var tt=Be(),nt=tt.registerPath,rt=tt.unregisterPath,ot=tt.refreshOverflowKeys,at=tt.isSubPathKey,it=tt.getKeyPath,ut=tt.getKeys,lt=tt.getSubPathKeys,ct=a.useMemo((function(){return{registerPath:nt,unregisterPath:rt}}),[nt,rt]),st=a.useMemo((function(){return{isSubPathKey:at}}),[at]);a.useEffect((function(){ot(Ie?We:be.slice(Ae+1).map((function(e){return e.key})))}),[Ae,Ie]);var ft=(0,v.Z)(j||L&&(null===(t=be[0])||void 0===t?void 0:t.key),{value:j}),dt=(0,i.Z)(ft,2),pt=dt[0],vt=dt[1],ht=ae((function(e){vt(e)})),mt=ae((function(){vt(void 0)})),yt=(0,v.Z)(H||[],{value:W,postState:function(e){return Array.isArray(e)?e:null==e?We:[e]}}),gt=(0,i.Z)(yt,2),bt=gt[0],wt=gt[1],Et=ae((function(e){null==pe||pe(z(e)),function(e){if(F){var t,n=e.key,r=bt.includes(n);t=U?r?bt.filter((function(e){return e!==n})):[].concat((0,h.Z)(bt),[n]):[n],wt(t);var o=(0,c.Z)((0,c.Z)({},e),{},{selectedKeys:t});r?null==Y||Y(o):null==K||K(o)}!U&&Ke.length&&"inline"!==Ne&&qe(We)}(e)})),xt=ae((function(e,t){var n=Ke.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ne){var r=lt(e);n=n.filter((function(e){return!r.has(e)}))}k()(Ke,n)||qe(n)})),Ct=ae(de),St=Le(Ne,pt,Ze,_e,ke,ut,it,vt,(function(e,t){var n=null!=t?t:!Ke.includes(e);xt(e,n)}),he);a.useEffect((function(){Se(!0)}),[]);var kt=a.useMemo((function(){return{_internalRenderMenuItem:me,_internalRenderSubMenuItem:ye}}),[me,ye]),_t="horizontal"!==Ne||_?be:be.map((function(e,t){return a.createElement(I,{key:e.key,overflowDisabled:t>Ae},e)})),Zt=a.createElement(Z.Z,(0,r.Z)({id:w,ref:ke,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:re,className:f()(s,"".concat(s,"-root"),"".concat(s,"-").concat(Ne),p,(n={},(0,o.Z)(n,"".concat(s,"-inline-collapsed"),Te),(0,o.Z)(n,"".concat(s,"-rtl"),Ze),n)),dir:b,style:d,role:"menu",tabIndex:y,data:_t,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?be.slice(-t):null;return a.createElement(xe,{eventKey:Ue,title:se,disabled:Ie,internalPopupClose:0===t,popupClassName:fe},n)},maxCount:"horizontal"!==Ne||_?Z.Z.INVALIDATE:Z.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){je(e)},onKeyDown:St},ge));return a.createElement(X.Provider,{value:kt},a.createElement(q.Provider,{value:_e},a.createElement(I,{prefixCls:s,mode:Ne,openKeys:Ke,rtl:Ze,disabled:S,motion:Ce?J:null,defaultMotions:Ce?ee:null,activeKey:pt,onActive:ht,onInactive:mt,selectedKeys:bt,inlineIndent:Q,subMenuOpenDelay:P,subMenuCloseDelay:T,forceSubMenuRender:M,builtinPlacements:ie,triggerSubMenuAction:ne,getPopupContainer:Ct,itemIcon:ue,expandIcon:le,onItemClick:Et,onOpenChange:xt},a.createElement($.Provider,{value:st},Zt),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(B.Provider,{value:ct},be)))))};var $e=["className","title","eventKey","children"],qe=["children"],Ye=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,l.Z)(e,$e),u=a.useContext(j).prefixCls,c="".concat(u,"-item-group");return a.createElement("li",(0,r.Z)({},i,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),a.createElement("div",{className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),a.createElement("ul",{className:"".concat(c,"-list")},o))};var Ge=Ke;Ge.Item=re,Ge.SubMenu=xe,Ge.ItemGroup=function(e){var t=e.children,n=(0,l.Z)(e,qe),r=oe(t,K(n.eventKey));return H()?r:a.createElement(Ye,(0,M.Z)(n,["warnKey"]),r)},Ge.Divider=function(e){var t=e.className,n=e.style,r=a.useContext(j).prefixCls;return H()?null:a.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})};const Xe=Ge;var Qe={adjustX:1,adjustY:1},Je=[0,0];const et={topLeft:{points:["bl","tl"],overflow:Qe,offset:[0,-4],targetOffset:Je},topCenter:{points:["bc","tc"],overflow:Qe,offset:[0,-4],targetOffset:Je},topRight:{points:["br","tr"],overflow:Qe,offset:[0,-4],targetOffset:Je},bottomLeft:{points:["tl","bl"],overflow:Qe,offset:[0,4],targetOffset:Je},bottomCenter:{points:["tc","bc"],overflow:Qe,offset:[0,4],targetOffset:Je},bottomRight:{points:["tr","br"],overflow:Qe,offset:[0,4],targetOffset:Je}};var tt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"];function nt(e,t){var n=e.arrow,r=void 0!==n&&n,u=e.prefixCls,s=void 0===u?"rc-dropdown":u,d=e.transitionName,p=e.animation,v=e.align,h=e.placement,m=void 0===h?"bottomLeft":h,y=e.placements,g=void 0===y?et:y,b=e.getPopupContainer,w=e.showAction,E=e.hideAction,x=e.overlayClassName,C=e.overlayStyle,S=e.visible,k=e.trigger,_=void 0===k?["hover"]:k,Z=(0,l.Z)(e,tt),O=a.useState(),P=(0,i.Z)(O,2),N=P[0],T=P[1],M="visible"in e?S:N,R=a.useRef(null);a.useImperativeHandle(t,(function(){return R.current}));var A,j,I,L,D,z,F=function(){var t=e.overlay;return"function"==typeof t?t():t},V=function(t){var n=e.onOverlayClick,r=F().props;T(!1),n&&n(t),r.onClick&&r.onClick(t)},U=function(){var e=F(),t={prefixCls:"".concat(s,"-menu"),onClick:V};return"string"==typeof e.type&&delete t.prefixCls,a.createElement(a.Fragment,null,r&&a.createElement("div",{className:"".concat(s,"-arrow")}),a.cloneElement(e,t))},B=E;return B||-1===_.indexOf("contextMenu")||(B=["click"]),a.createElement(se.Z,(0,c.Z)((0,c.Z)({builtinPlacements:g},Z),{},{prefixCls:s,ref:R,popupClassName:f()(x,(0,o.Z)({},"".concat(s,"-show-arrow"),r)),popupStyle:C,action:_,showAction:w,hideAction:B||[],popupPlacement:m,popupAlign:v,popupTransitionName:d,popupAnimation:p,popupVisible:M,stretch:(D=e.minOverlayWidthMatchTrigger,z=e.alignPoint,("minOverlayWidthMatchTrigger"in e?D:!z)?"minWidth":""),popup:"function"==typeof e.overlay?U:U(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;T(t),"function"==typeof n&&n(t)},getPopupContainer:b}),(j=e.children,I=j.props?j.props:{},L=f()(I.className,void 0!==(A=e.openClassName)?A:"".concat(s,"-open")),N&&j?a.cloneElement(j,{className:L}):j))}const rt=a.forwardRef(nt);function ot(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}const at=a.forwardRef(ot);function it(e,t){var n=e.prefixCls,r=e.id,u=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,d=void 0===s?"More":s,p=e.moreTransitionName,v=e.style,h=e.className,m=e.editable,y=e.tabBarGutter,g=e.rtl,w=e.removeAriaLabel,E=e.onTabClick,x=(0,a.useState)(!1),C=(0,i.Z)(x,2),S=C[0],k=C[1],_=(0,a.useState)(null),Z=(0,i.Z)(_,2),O=Z[0],P=Z[1],N="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),M=null!==O?"".concat(N,"-").concat(O):null,R=null==l?void 0:l.dropdownAriaLabel;var A=a.createElement(Xe,{onClick:function(e){var t=e.key,n=e.domEvent;E(t,n),k(!1)},id:N,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[O],"aria-label":void 0!==R?R:"expanded dropdown"},u.map((function(e){var t=m&&!1!==e.closable&&!e.disabled;return a.createElement(re,{key:e.key,id:"".concat(N,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},a.createElement("span",null,e.tab),t&&a.createElement("button",{type:"button","aria-label":w||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(t){var n,r;t.stopPropagation(),n=t,r=e.key,n.preventDefault(),n.stopPropagation(),m.onEdit("remove",{key:r,event:n})}},e.closeIcon||m.removeIcon||"×"))})));function j(e){for(var t=u.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===O}))||0,r=t.length,o=0;ot?"left":"right"})})),H=(0,i.Z)(B,2),W=H[0],K=H[1],$=st(0,(function(e,t){!U&&R&&R({direction:e>t?"top":"bottom"})})),q=(0,i.Z)($,2),Y=q[0],G=q[1],X=(0,a.useState)(0),Q=(0,i.Z)(X,2),J=Q[0],ee=Q[1],te=(0,a.useState)(0),ne=(0,i.Z)(te,2),re=ne[0],oe=ne[1],ae=(0,a.useState)(0),ie=(0,i.Z)(ae,2),ue=ie[0],le=ie[1],ce=(0,a.useState)(0),se=(0,i.Z)(ce,2),fe=se[0],de=se[1],pe=(0,a.useState)(null),ve=(0,i.Z)(pe,2),he=ve[0],me=ve[1],ye=(0,a.useState)(null),ge=(0,i.Z)(ye,2),be=ge[0],we=ge[1],Ee=(0,a.useState)(0),xe=(0,i.Z)(Ee,2),Ce=xe[0],Se=xe[1],ke=(0,a.useState)(0),_e=(0,i.Z)(ke,2),Ze=_e[0],Oe=_e[1],Pe=function(e){var t=(0,a.useRef)([]),n=(0,a.useState)({}),r=(0,i.Z)(n,2)[1],o=(0,a.useRef)("function"==typeof e?e():e),u=g((function(){var e=o.current;t.current.forEach((function(t){e=t(e)})),t.current=[],o.current=e,r({})}));return[o.current,function(e){t.current.push(e),u()}]}(new Map),Ne=(0,i.Z)(Pe,2),Te=Ne[0],Me=Ne[1],Re=function(e,t,n){return(0,a.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||x,a=o.left+o.width,i=0;iIe?Ie:e}U?k?(je=0,Ie=Math.max(0,J-he)):(je=Math.min(0,he-J),Ie=0):(je=Math.min(0,be-re),Ie=0);var De=(0,a.useRef)(),ze=(0,a.useState)(),Fe=(0,i.Z)(ze,2),Ve=Fe[0],Ue=Fe[1];function Be(){Ue(Date.now())}function He(){window.clearTimeout(De.current)}function We(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=Re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(U){var n=W;k?t.rightW+he&&(n=t.right+t.width-he):t.left<-W?n=-t.left:t.left+t.width>-W+he&&(n=-(t.left+t.width-he)),G(0),K(Le(n))}else{var r=Y;t.top<-Y?r=-t.top:t.top+t.height>-Y+be&&(r=-(t.top+t.height-be)),K(0),G(Le(r))}}!function(e,t){var n=(0,a.useState)(),r=(0,i.Z)(n,2),o=r[0],u=r[1],l=(0,a.useState)(0),c=(0,i.Z)(l,2),s=c[0],f=c[1],d=(0,a.useState)(0),p=(0,i.Z)(d,2),v=p[0],h=p[1],m=(0,a.useState)(),y=(0,i.Z)(m,2),g=y[0],b=y[1],w=(0,a.useRef)(),E=(0,a.useRef)(),x=(0,a.useRef)(null);x.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;u({x:n,y:r}),window.clearInterval(w.current)},onTouchMove:function(e){if(o){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY;u({x:r,y:a});var i=r-o.x,l=a-o.y;t(i,l);var c=Date.now();f(c),h(c-s),b({x:i,y:l})}},onTouchEnd:function(){if(o&&(u(null),b(null),g)){var e=g.x/v,n=g.y/v,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var i=e,l=n;w.current=window.setInterval((function(){Math.abs(i)<.01&&Math.abs(l)<.01?window.clearInterval(w.current):t(20*(i*=ct),20*(l*=ct))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,a=Math.abs(n),i=Math.abs(r);a===i?o="x"===E.current?n:r:a>i?(o=n,E.current="x"):(o=r,E.current="y"),t(-o,-o)&&e.preventDefault()}},a.useEffect((function(){function t(e){x.current.onTouchMove(e)}function n(e){x.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){x.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){x.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(A,(function(e,t){function n(e,t){e((function(e){return Le(e+t)}))}if(U){if(he>=J)return!1;n(K,e)}else{if(be>=re)return!1;n(G,t)}return He(),Be(),!0})),(0,a.useEffect)((function(){return He(),Ve&&(De.current=window.setTimeout((function(){Ue(0)}),100)),He}),[Ve]);var Ke=function(e,t,n,r,o){var i,u,l,c=o.tabs,s=o.tabPosition,f=o.rtl;["top","bottom"].includes(s)?(i="width",u=f?"right":"left",l=Math.abs(t.left)):(i="height",u="top",l=-t.top);var d=t[i],p=n[i],v=r[i],h=d;return p+v>d&&(h=d-v),(0,a.useMemo)((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,r=0;rl+h){n=r-1;break}}for(var a=0,s=t-1;s>=0;s-=1)if((e.get(c[s].key)||C)[u]0,ht=W+he{"use strict";n.d(t,{Z:()=>k});var r=n(4942),o=n(9439),a=n(7462),i=n(7294),u=n(1472),l=n(1770),c=n(4184),s=n.n(c),f=n(3159),d={adjustX:1,adjustY:1},p={adjustX:0,adjustY:0},v=[0,0];function h(e){return"boolean"==typeof e?e?d:p:(0,a.Z)((0,a.Z)({},p),e)}var m=n(6159),y=n(6032),g=n(3355),b=((0,g.b)("success","processing","error","default","warning"),(0,g.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")),w=n(3603),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0||r.indexOf("Bottom")>=0?a.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(a.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?a.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(a.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},overlayInnerStyle:q,arrowContent:i.createElement("span",{className:"".concat(D,"-arrow-content"),style:V}),motion:{motionName:(0,w.m)(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),F?(0,m.Tm)(H,{className:K}):H)}));S.displayName="Tooltip",S.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};const k=S},7009:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ve});var r=n(7462),o=n(4942),a=n(7294),i=n(4184),u=n.n(i),l=n(2550),c=n(6032),s=n(1687),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ot){var u=t-n;return r.push(String(a).slice(0,u)),r}r.push(a),n=i}return e}const G=function(e){var t=e.enabledMeasure,n=e.children,o=e.text,i=e.width,u=e.rows,l=e.onEllipsis,c=a.useState([0,0,0]),s=(0,y.Z)(c,2),f=s[0],d=s[1],p=a.useState(0),v=(0,y.Z)(p,2),h=v[0],m=v[1],g=(0,y.Z)(f,3),w=g[0],E=g[1],x=g[2],C=a.useState(0),S=(0,y.Z)(C,2),k=S[0],_=S[1],Z=a.useRef(null),O=a.useRef(null),P=a.useMemo((function(){return(0,b.Z)(o)}),[o]),N=a.useMemo((function(){return function(e){var t=0;return e.forEach((function(e){q(e)?t+=String(e).length:t+=1})),t}(P)}),[P]),T=a.useMemo((function(){return t&&3===h?n(Y(P,E),E1&&Ge,et=function(e){var t;Re(!0),null===(t=We.onExpand)||void 0===t||t.call(We,e)},tt=a.useState(0),nt=(0,y.Z)(tt,2),rt=nt[0],ot=nt[1],at=function(e){var t;Le(e),Ie!==e&&(null===(t=We.onEllipsis)||void 0===t||t.call(We,e))};a.useEffect((function(){var e=U.current;if(He&&Ge&&e){var t=e.offsetWidth{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var r=n(4867),o=n(6026),a=n(4372),i=n(5327),u=n(4097),l=n(4109),c=n(7985),s=n(5061),f=n(5655),d=n(5263);e.exports=function(e){return new Promise((function(t,n){var p,v=e.data,h=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(v)&&delete h["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(b+":"+w)}var E=u(e.baseURL,e.url);function x(){if(g){var r="getAllResponseHeaders"in g?l(g.getAllResponseHeaders()):null,a={data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),y()}),(function(e){n(e),y()}),a),g=null}}if(g.open(e.method.toUpperCase(),i(E,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(x)},g.onabort=function(){g&&(n(s("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(s("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(s(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||c(E))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;C&&(h[e.xsrfHeaderName]=C)}"setRequestHeader"in g&&r.forEach(h,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?delete h[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),m&&"json"!==m&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){g&&(n(!e||e&&e.type?new d("canceled"):e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),v||(v=null),g.send(v)}))}},1609:(e,t,n)=>{"use strict";var r=n(4867),o=n(1849),a=n(321),i=n(7185);var u=function e(t){var n=new a(t),u=o(a.prototype.request,n);return r.extend(u,a.prototype,n),r.extend(u,n),u.create=function(n){return e(i(t,n))},u}(n(5655));u.Axios=a,u.Cancel=n(5263),u.CancelToken=n(4972),u.isCancel=n(6502),u.VERSION=n(7288).version,u.all=function(e){return Promise.all(e)},u.spread=n(8713),u.isAxiosError=n(6268),e.exports=u,e.exports.default=u},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var r=n(5263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(4867),o=n(5327),a=n(782),i=n(3572),u=n(7185),l=n(4875),c=l.validators;function s(e){this.defaults=e,this.interceptors={request:new a,response:new a}}s.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=u(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var a,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var f=[i,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(s),a=Promise.resolve(t);f.length;)a=a.then(f.shift(),f.shift());return a}for(var d=t;r.length;){var p=r.shift(),v=r.shift();try{d=p(d)}catch(e){v(e);break}}try{a=i(d)}catch(e){return Promise.reject(e)}for(;s.length;)a=a.then(s.shift(),s.shift());return a},s.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=u(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(u(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(u(r||{},{method:e,url:t,data:n}))}})),e.exports=s},782:(e,t,n)=>{"use strict";var r=n(4867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},4097:(e,t,n)=>{"use strict";var r=n(1793),o=n(7303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},5061:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},3572:(e,t,n)=>{"use strict";var r=n(4867),o=n(8527),a=n(6502),i=n(5655),u=n(5263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new u("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return l(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function u(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function l(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||a,o=t(e);r.isUndefined(o)&&t!==l||(n[e]=o)})),n}},6026:(e,t,n)=>{"use strict";var r=n(5061);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var r=n(4867),o=n(5655);e.exports=function(e,t,n){var a=this||o;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},5655:(e,t,n)=>{"use strict";var r=n(4867),o=n(6016),a=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(5448)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(i)})),e.exports=c},7288:e=>{e.exports={version:"0.25.0"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(4867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var u=e.indexOf("#");-1!==u&&(e=e.slice(0,u)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var u=[];u.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(a)&&u.push("domain="+a),!0===i&&u.push("secure"),document.cookie=u.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var r=n(4867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var r=n(4867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4109:(e,t,n)=>{"use strict";var r=n(4867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var r=n(7288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var u=e[a],l=void 0===u||i(u,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:o}},4867:(e,t,n)=>{"use strict";var r=n(1849),o=Object.prototype.toString;function a(e){return Array.isArray(e)}function i(e){return void 0===e}function u(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===o.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t{"use strict";var r=n(1742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,u,l,c,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),u=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),u.selectNodeContents(c),l.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(u):l.removeAllRanges()),c&&document.body.removeChild(c),i()}return s}},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var u=0;u0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=a),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),t.push(s))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?i:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=i;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(v){var o=p(n);o&&o!==v&&e(t,o,r)}var i=s(n);f&&(i=i.concat(f(n)));for(var u=l(t),h=l(n),m=0;m{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),o=n(401),a=n(7667),i=n(1327),u=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(7040),o=n(4125),a=n(2117),i=n(7518),u=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),o=n(1285),a=n(6e3),i=n(9916),u=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),o=n(619),a=n(2385);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(8407),o=n(7465),a=n(3779),i=n(7599),u=n(4758),l=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=u,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n{var r=n(2545),o=n(5694),a=n(1469),i=n(4144),u=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),s=!n&&o(e),f=!n&&!s&&i(e),d=!n&&!s&&!f&&l(e),p=n||s||f||d,v=p?r(e.length,String):[],h=v.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||u(m,h))||v.push(m);return v}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8866:(e,t,n)=>{var r=n(2488),o=n(1469);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},4239:(e,t,n)=>{var r=n(2705),o=n(9607),a=n(2333),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},9454:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),o=n(7005);e.exports=function e(t,n,a,i,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,u))}},2492:(e,t,n)=>{var r=n(6384),o=n(7114),a=n(8351),i=n(6096),u=n(4160),l=n(1469),c=n(4144),s=n(6719),f="[object Arguments]",d="[object Array]",p="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,m,y){var g=l(e),b=l(t),w=g?d:u(e),E=b?d:u(t),x=(w=w==f?p:w)==p,C=(E=E==f?p:E)==p,S=w==E;if(S&&c(e)){if(!c(t))return!1;g=!0,x=!1}if(S&&!x)return y||(y=new r),g||s(e)?o(e,t,n,h,m,y):a(e,t,w,n,h,m,y);if(!(1&n)){var k=x&&v.call(e,"__wrapped__"),_=C&&v.call(t,"__wrapped__");if(k||_){var Z=k?e.value():e,O=_?t.value():t;return y||(y=new r),m(Z,O,n,h,y)}}return!!S&&(y||(y=new r),i(e,t,n,h,m,y))}},8458:(e,t,n)=>{var r=n(3560),o=n(5346),a=n(3218),i=n(346),u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,s=l.toString,f=c.hasOwnProperty,d=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?d:u).test(i(e))}},8749:(e,t,n)=>{var r=n(4239),o=n(1780),a=n(7005),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},280:(e,t,n)=>{var r=n(5726),o=n(6916),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(7990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},7114:(e,t,n)=>{var r=n(8668),o=n(2908),a=n(4757);e.exports=function(e,t,n,i,u,l){var c=1&n,s=e.length,f=t.length;if(s!=f&&!(c&&f>s))return!1;var d=l.get(e),p=l.get(t);if(d&&p)return d==t&&p==e;var v=-1,h=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++v{var r=n(2705),o=n(1149),a=n(7813),i=n(7114),u=n(8776),l=n(1814),c=r?r.prototype:void 0,s=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var v=1&r;if(p||(p=l),e.size!=t.size&&!v)return!1;var h=d.get(e);if(h)return h==t;r|=2,d.set(e,t);var m=i(p(e),p(t),r,c,f,d);return d.delete(e),m;case"[object Symbol]":if(s)return s.call(e)==s.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,u){var l=1&n,c=r(e),s=c.length;if(s!=r(t).length&&!l)return!1;for(var f=s;f--;){var d=c[f];if(!(l?d in t:o.call(t,d)))return!1}var p=u.get(e),v=u.get(t);if(p&&v)return p==t&&v==e;var h=!0;u.set(e,t),u.set(t,e);for(var m=l;++f{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),o=n(9551),a=n(3674);e.exports=function(e){return r(e,a,o)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var r=n(8458),o=n(7801);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},9607:(e,t,n)=>{var r=n(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[u]=n:delete e[u]),o}},9551:(e,t,n)=>{var r=n(4963),o=n(479),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,u=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=u},4160:(e,t,n)=>{var r=n(8552),o=n(7071),a=n(3818),i=n(8525),u=n(577),l=n(4239),c=n(346),s="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",v="[object DataView]",h=c(r),m=c(o),y=c(a),g=c(i),b=c(u),w=l;(r&&w(new r(new ArrayBuffer(1)))!=v||o&&w(new o)!=s||a&&w(a.resolve())!=f||i&&w(new i)!=d||u&&w(new u)!=p)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case h:return v;case m:return s;case y:return f;case g:return d;case b:return p}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,o=n(4429),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),o=n(8407),a=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},1167:(e,t,n)=>{e=n.nmd(e);var r=n(1957),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=u},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5639:(e,t,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),o=n(7071),a=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3279:(e,t,n)=>{var r=n(3218),o=n(7771),a=n(4841),i=Math.max,u=Math.min;e.exports=function(e,t,n){var l,c,s,f,d,p,v=0,h=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=l,r=c;return l=c=void 0,v=t,f=e.apply(r,n)}function b(e){return v=e,d=setTimeout(E,t),h?g(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-v>=s}function E(){var e=o();if(w(e))return x(e);d=setTimeout(E,function(e){var n=t-(e-p);return m?u(n,s-(e-v)):n}(e))}function x(e){return d=void 0,y&&l?g(e):(l=c=void 0,f)}function C(){var e=o(),n=w(e);if(l=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(m)return clearTimeout(d),d=setTimeout(E,t),g(p)}return void 0===d&&(d=setTimeout(E,t)),f}return t=a(t)||0,r(n)&&(h=!!n.leading,s=(m="maxWait"in n)?i(a(n.maxWait)||0,t):s,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),v=0,l=p=c=d=void 0},C.flush=function(){return void 0===d?f:x(o())},C}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,n)=>{var r=n(9454),o=n(7005),a=Object.prototype,i=a.hasOwnProperty,u=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!u.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),o=n(1780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),o=n(5062),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,u=i&&i.exports===a?r.Buffer:void 0,l=(u?u.isBuffer:void 0)||o;e.exports=l},8446:(e,t,n)=>{var r=n(939);e.exports=function(e,t){return r(e,t)}},3560:(e,t,n)=>{var r=n(4239),o=n(3218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},6719:(e,t,n)=>{var r=n(8749),o=n(1717),a=n(1167),i=a&&a.isTypedArray,u=i?o(i):r;e.exports=u},3674:(e,t,n)=>{var r=n(4636),o=n(280),a=n(8612);e.exports=function(e){return a(e)?r(e):o(e)}},6486:function(e,t,n){var r;e=n.nmd(e),function(){var o,a="Expected a function",i="__lodash_hash_undefined__",u="__lodash_placeholder__",l=16,c=32,s=64,f=128,d=256,p=1/0,v=9007199254740991,h=NaN,m=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",s],["rearg",d]],g="[object Arguments]",b="[object Array]",w="[object Boolean]",E="[object Date]",x="[object Error]",C="[object Function]",S="[object GeneratorFunction]",k="[object Map]",_="[object Number]",Z="[object Object]",O="[object Promise]",P="[object RegExp]",N="[object Set]",T="[object String]",M="[object Symbol]",R="[object WeakMap]",A="[object ArrayBuffer]",j="[object DataView]",I="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",V="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(q.source),X=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(oe.source),ie=/^\s+/,ue=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Ze="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ne="['’]",Te="[\\ud800-\\udfff]",Me="["+Pe+"]",Re="["+Se+"]",Ae="\\d+",je="[\\u2700-\\u27bf]",Ie="["+_e+"]",Le="[^\\ud800-\\udfff"+Pe+Ae+ke+_e+Ze+"]",De="\\ud83c[\\udffb-\\udfff]",ze="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Ze+"]",Be="(?:"+Ie+"|"+Le+")",He="(?:"+Ue+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Re+"|"+De+")"+"?",qe="[\\ufe0e\\ufe0f]?",Ye=qe+$e+("(?:\\u200d(?:"+[ze,Fe,Ve].join("|")+")"+qe+$e+")*"),Ge="(?:"+[je,Fe,Ve].join("|")+")"+Ye,Xe="(?:"+[ze+Re+"?",Re,Fe,Ve,Te].join("|")+")",Qe=RegExp(Ne,"g"),Je=RegExp(Re,"g"),et=RegExp(De+"(?="+De+")|"+Xe+Ye,"g"),tt=RegExp([Ue+"?"+Ie+"+"+We+"(?="+[Me,Ue,"$"].join("|")+")",He+"+"+Ke+"(?="+[Me,Ue+Be,"$"].join("|")+")",Ue+"?"+Be+"+"+We,Ue+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ge].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Oe+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,it={};it[I]=it[L]=it[D]=it[z]=it[F]=it[V]=it[U]=it[B]=it[H]=!0,it[g]=it[b]=it[A]=it[w]=it[j]=it[E]=it[x]=it[C]=it[k]=it[_]=it[Z]=it[P]=it[N]=it[T]=it[R]=!1;var ut={};ut[g]=ut[b]=ut[A]=ut[j]=ut[w]=ut[E]=ut[I]=ut[L]=ut[D]=ut[z]=ut[F]=ut[k]=ut[_]=ut[Z]=ut[P]=ut[N]=ut[T]=ut[M]=ut[V]=ut[U]=ut[B]=ut[H]=!0,ut[x]=ut[C]=ut[R]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,st=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,dt="object"==typeof self&&self&&self.Object===Object&&self,pt=ft||dt||Function("return this")(),vt=t&&!t.nodeType&&t,ht=vt&&e&&!e.nodeType&&e,mt=ht&&ht.exports===vt,yt=mt&&ft.process,gt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),bt=gt&>.isArrayBuffer,wt=gt&>.isDate,Et=gt&>.isMap,xt=gt&>.isRegExp,Ct=gt&>.isSet,St=gt&>.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _t(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o-1}function Mt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Kt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function un(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var yn=function e(t){var n,r=(t=null==t?pt:yn.defaults(pt.Object(),t,yn.pick(pt,ot))).Array,ue=t.Date,Se=t.Error,ke=t.Function,_e=t.Math,Ze=t.Object,Oe=t.RegExp,Pe=t.String,Ne=t.TypeError,Te=r.prototype,Me=ke.prototype,Re=Ze.prototype,Ae=t["__core-js_shared__"],je=Me.toString,Ie=Re.hasOwnProperty,Le=0,De=(n=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ze=Re.toString,Fe=je.call(Ze),Ve=pt._,Ue=Oe("^"+je.call(Ie).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=mt?t.Buffer:o,He=t.Symbol,We=t.Uint8Array,Ke=Be?Be.allocUnsafe:o,$e=cn(Ze.getPrototypeOf,Ze),qe=Ze.create,Ye=Re.propertyIsEnumerable,Ge=Te.splice,Xe=He?He.isConcatSpreadable:o,et=He?He.iterator:o,nt=He?He.toStringTag:o,lt=function(){try{var e=va(Ze,"defineProperty");return e({},"",{}),e}catch(e){}}(),ft=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,dt=ue&&ue.now!==pt.Date.now&&ue.now,vt=t.setTimeout!==pt.setTimeout&&t.setTimeout,ht=_e.ceil,yt=_e.floor,gt=Ze.getOwnPropertySymbols,Dt=Be?Be.isBuffer:o,Kt=t.isFinite,gn=Te.join,bn=cn(Ze.keys,Ze),wn=_e.max,En=_e.min,xn=ue.now,Cn=t.parseInt,Sn=_e.random,kn=Te.reverse,_n=va(t,"DataView"),Zn=va(t,"Map"),On=va(t,"Promise"),Pn=va(t,"Set"),Nn=va(t,"WeakMap"),Tn=va(Ze,"create"),Mn=Nn&&new Nn,Rn={},An=Va(_n),jn=Va(Zn),In=Va(On),Ln=Va(Pn),Dn=Va(Nn),zn=He?He.prototype:o,Fn=zn?zn.valueOf:o,Vn=zn?zn.toString:o;function Un(e){if(ou(e)&&!$i(e)&&!(e instanceof Kn)){if(e instanceof Wn)return e;if(Ie.call(e,"__wrapped__"))return Ua(e)}return new Wn(e)}var Bn=function(){function e(){}return function(t){if(!ru(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,n,r,a,i){var u,l=1&t,c=2&t,s=4&t;if(n&&(u=a?n(e,r,a,i):n(e)),u!==o)return u;if(!ru(e))return e;var f=$i(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Mo(e,u)}else{var d=ya(e),p=d==C||d==S;if(Xi(e))return _o(e,l);if(d==Z||d==g||p&&!a){if(u=c||p?{}:ba(e),!l)return c?function(e,t){return Ro(e,ma(e),t)}(e,function(e,t){return e&&Ro(t,ju(t),e)}(u,e)):function(e,t){return Ro(e,ha(e),t)}(e,ir(u,e))}else{if(!ut[d])return a?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case A:return Zo(e);case w:case E:return new r(+e);case j:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case L:case D:case z:case F:case V:case U:case B:case H:return Oo(e,n);case k:return new r;case _:case T:return new r(e);case P:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new r;case M:return o=e,Fn?Ze(Fn.call(o)):{}}var o}(e,d,l)}}i||(i=new Xn);var v=i.get(e);if(v)return v;i.set(e,u),cu(e)?e.forEach((function(r){u.add(sr(r,t,n,r,e,i))})):au(e)&&e.forEach((function(r,o){u.set(o,sr(r,t,n,o,e,i))}));var h=f?o:(s?c?ua:ia:c?ju:Au)(e);return Zt(h||e,(function(r,o){h&&(r=e[o=r]),rr(u,o,sr(r,t,n,o,e,i))})),u}function fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ze(e);r--;){var a=n[r],i=t[a],u=e[a];if(u===o&&!(a in e)||!i(u))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Ne(a);return Aa((function(){e.apply(o,n)}),t)}function pr(e,t,n,r){var o=-1,a=Tt,i=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Rt(t,Xt(n))),r?(a=Mt,i=!1):t.length>=200&&(a=Jt,i=!1,t=new Gn(t));e:for(;++o-1},qn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(Zn||qn),string:new $n}},Yn.prototype.delete=function(e){var t=da(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return da(this,e).get(e)},Yn.prototype.has=function(e){return da(this,e).has(e)},Yn.prototype.set=function(e,t){var n=da(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,i),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new qn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!Zn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var vr=Io(xr),hr=Io(Cr,!0);function mr(e,t){var n=!0;return vr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function yr(e,t,n){for(var r=-1,a=e.length;++r0&&n(u)?t>1?br(u,t-1,n,r,o):At(o,u):r||(o[o.length]=u)}return o}var wr=Lo(),Er=Lo(!0);function xr(e,t){return e&&wr(e,t,Au)}function Cr(e,t){return e&&Er(e,t,Au)}function Sr(e,t){return Nt(t,(function(t){return eu(e[t])}))}function kr(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&nt}function Pr(e,t){return null!=e&&Ie.call(e,t)}function Nr(e,t){return null!=e&&t in Ze(e)}function Tr(e,t,n){for(var a=n?Mt:Tt,i=e[0].length,u=e.length,l=u,c=r(u),s=1/0,f=[];l--;){var d=e[l];l&&t&&(d=Rt(d,Xt(t))),s=En(d.length,s),c[l]=!n&&(t||i>=120&&d.length>=120)?new Gn(l&&d):o}d=e[0];var p=-1,v=c[0];e:for(;++p=u?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function $r(e,t,n){for(var r=-1,o=t.length,a={};++r-1;)u!==e&&Ge.call(u,l,1),Ge.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;Ea(o)?Ge.call(e,o,1):vo(e,o)}}return e}function Gr(e,t){return e+yt(Sn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>v)return n;do{t%2&&(n+=e),(t=yt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return ja(Pa(e,t,il),e+"")}function Jr(e){return Jn(Bu(e))}function eo(e,t){var n=Bu(e);return Da(n,cr(t,0,n.length))}function to(e,t,n,r){if(!ru(e))return e;for(var a=-1,i=(t=xo(t,e)).length,u=i-1,l=e;null!=l&&++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o>>1,i=e[a];null!==i&&!fu(i)&&(n?i<=t:i=200){var c=t?null:Qo(e);if(c)return fn(c);i=!1,o=Jt,l=new Gn}else l=t?[]:u;e:for(;++r=r?e:ao(e,t,n)}var ko=ft||function(e){return pt.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var n=e.length,r=Ke?Ke(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Oo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var n=e!==o,r=null===e,a=e==e,i=fu(e),u=t!==o,l=null===t,c=t==t,s=fu(t);if(!l&&!s&&!i&&e>t||i&&u&&c&&!l&&!s||r&&u&&c||!n&&c||!a)return 1;if(!r&&!i&&!s&&e1?n[a-1]:o,u=a>2?n[2]:o;for(i=e.length>3&&"function"==typeof i?(a--,i):o,u&&xa(n[0],n[1],u)&&(i=a<3?o:i,a=1),t=Ze(t);++r-1?a[i?t[u]:u]:o}}function Uo(e){return aa((function(t){var n=t.length,r=n,i=Wn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Ne(a);if(i&&!l&&"wrapper"==ca(u))var l=new Wn([],!0)}for(r=l?r:n;++r1&&b.reverse(),p&&sl))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var d=-1,p=!0,v=2&n?new Gn:o;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Zt(y,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(se):[]}(r),n)))}function La(e){var t=0,n=0;return function(){var r=xn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Da(e,t){var n=-1,r=e.length,a=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,li(e,n)}));function hi(e){var t=Un(e);return t.__chain__=!0,t}function mi(e,t){return t(e)}var yi=aa((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Kn&&Ea(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:mi,args:[a],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(a)}));var gi=Ao((function(e,t,n){Ie.call(e,n)?++e[n]:ur(e,n,1)}));var bi=Vo(Ka),wi=Vo($a);function Ei(e,t){return($i(e)?Zt:vr)(e,fa(t,3))}function xi(e,t){return($i(e)?Ot:hr)(e,fa(t,3))}var Ci=Ao((function(e,t,n){Ie.call(e,n)?e[n].push(t):ur(e,n,[t])}));var Si=Qr((function(e,t,n){var o=-1,a="function"==typeof t,i=Yi(e)?r(e.length):[];return vr(e,(function(e){i[++o]=a?kt(t,e,n):Mr(e,t,n)})),i})),ki=Ao((function(e,t,n){ur(e,n,t)}));function _i(e,t){return($i(e)?Rt:Vr)(e,fa(t,3))}var Zi=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Oi=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xa(e,t[0],t[1])?t=[]:n>2&&xa(t[0],t[1],t[2])&&(t=[t[0]]),Kr(e,br(t,1),[])})),Pi=dt||function(){return pt.Date.now()};function Ni(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,ea(e,f,o,o,o,o,t)}function Ti(e,t){var n;if("function"!=typeof t)throw new Ne(a);return e=yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Mi=Qr((function(e,t,n){var r=1;if(n.length){var o=sn(n,sa(Mi));r|=c}return ea(e,r,t,n,o)})),Ri=Qr((function(e,t,n){var r=3;if(n.length){var o=sn(n,sa(Ri));r|=c}return ea(t,r,e,n,o)}));function Ai(e,t,n){var r,i,u,l,c,s,f=0,d=!1,p=!1,v=!0;if("function"!=typeof e)throw new Ne(a);function h(t){var n=r,a=i;return r=i=o,f=t,l=e.apply(a,n)}function m(e){return f=e,c=Aa(g,t),d?h(e):l}function y(e){var n=e-s;return s===o||n>=t||n<0||p&&e-f>=u}function g(){var e=Pi();if(y(e))return b(e);c=Aa(g,function(e){var n=t-(e-s);return p?En(n,u-(e-f)):n}(e))}function b(e){return c=o,v&&r?h(e):(r=i=o,l)}function w(){var e=Pi(),n=y(e);if(r=arguments,i=this,s=e,n){if(c===o)return m(s);if(p)return ko(c),c=Aa(g,t),h(s)}return c===o&&(c=Aa(g,t)),l}return t=bu(t)||0,ru(n)&&(d=!!n.leading,u=(p="maxWait"in n)?wn(bu(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),w.cancel=function(){c!==o&&ko(c),f=0,r=s=i=c=o},w.flush=function(){return c===o?l:b(Pi())},w}var ji=Qr((function(e,t){return dr(e,1,t)})),Ii=Qr((function(e,t,n){return dr(e,bu(t)||0,n)}));function Li(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Li.Cache||Yn),n}function Di(e){if("function"!=typeof e)throw new Ne(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Li.Cache=Yn;var zi=Co((function(e,t){var n=(t=1==t.length&&$i(t[0])?Rt(t[0],Xt(fa())):Rt(br(t,1),Xt(fa()))).length;return Qr((function(r){for(var o=-1,a=En(r.length,n);++o=t})),Ki=Rr(function(){return arguments}())?Rr:function(e){return ou(e)&&Ie.call(e,"callee")&&!Ye.call(e,"callee")},$i=r.isArray,qi=bt?Xt(bt):function(e){return ou(e)&&Zr(e)==A};function Yi(e){return null!=e&&nu(e.length)&&!eu(e)}function Gi(e){return ou(e)&&Yi(e)}var Xi=Dt||bl,Qi=wt?Xt(wt):function(e){return ou(e)&&Zr(e)==E};function Ji(e){if(!ou(e))return!1;var t=Zr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!uu(e)}function eu(e){if(!ru(e))return!1;var t=Zr(e);return t==C||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function tu(e){return"number"==typeof e&&e==yu(e)}function nu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=v}function ru(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ou(e){return null!=e&&"object"==typeof e}var au=Et?Xt(Et):function(e){return ou(e)&&ya(e)==k};function iu(e){return"number"==typeof e||ou(e)&&Zr(e)==_}function uu(e){if(!ou(e)||Zr(e)!=Z)return!1;var t=$e(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Fe}var lu=xt?Xt(xt):function(e){return ou(e)&&Zr(e)==P};var cu=Ct?Xt(Ct):function(e){return ou(e)&&ya(e)==N};function su(e){return"string"==typeof e||!$i(e)&&ou(e)&&Zr(e)==T}function fu(e){return"symbol"==typeof e||ou(e)&&Zr(e)==M}var du=St?Xt(St):function(e){return ou(e)&&nu(e.length)&&!!it[Zr(e)]};var pu=Yo(Fr),vu=Yo((function(e,t){return e<=t}));function hu(e){if(!e)return[];if(Yi(e))return su(e)?vn(e):Mo(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=ya(e);return(t==k?ln:t==N?fn:Bu)(e)}function mu(e){return e?(e=bu(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function yu(e){var t=mu(e),n=t%1;return t==t?n?t-n:t:0}function gu(e){return e?cr(yu(e),0,m):0}function bu(e){if("number"==typeof e)return e;if(fu(e))return h;if(ru(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ru(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=ye.test(e);return n||be.test(e)?st(e.slice(2),n?2:8):me.test(e)?h:+e}function wu(e){return Ro(e,ju(e))}function Eu(e){return null==e?"":fo(e)}var xu=jo((function(e,t){if(_a(t)||Yi(t))Ro(t,Au(t),e);else for(var n in t)Ie.call(t,n)&&rr(e,n,t[n])})),Cu=jo((function(e,t){Ro(t,ju(t),e)})),Su=jo((function(e,t,n,r){Ro(t,ju(t),e,r)})),ku=jo((function(e,t,n,r){Ro(t,Au(t),e,r)})),_u=aa(lr);var Zu=Qr((function(e,t){e=Ze(e);var n=-1,r=t.length,a=r>2?t[2]:o;for(a&&xa(t[0],t[1],a)&&(r=1);++n1),t})),Ro(e,ua(e),n),r&&(n=sr(n,7,ra));for(var o=t.length;o--;)vo(n,t[o]);return n}));var zu=aa((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return Nu(e,n)}))}(e,t)}));function Fu(e,t){if(null==e)return{};var n=Rt(ua(e),(function(e){return[e]}));return t=fa(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Vu=Jo(Au),Uu=Jo(ju);function Bu(e){return null==e?[]:Qt(e,Au(e))}var Hu=zo((function(e,t,n){return t=t.toLowerCase(),e+(n?Wu(t):t)}));function Wu(e){return Ju(Eu(e).toLowerCase())}function Ku(e){return(e=Eu(e))&&e.replace(Ee,rn).replace(Je,"")}var $u=zo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qu=zo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yu=Do("toLowerCase");var Gu=zo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xu=zo((function(e,t,n){return e+(n?" ":"")+Ju(t)}));var Qu=zo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ju=Do("toUpperCase");function el(e,t,n){return e=Eu(e),(t=n?o:t)===o?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return kt(e,o,t)}catch(e){return Ji(e)?e:new Se(e)}})),nl=aa((function(e,t){return Zt(t,(function(t){t=Fa(t),ur(e,t,Mi(e[t],e))})),e}));function rl(e){return function(){return e}}var ol=Uo(),al=Uo(!0);function il(e){return e}function ul(e){return Lr("function"==typeof e?e:sr(e,1))}var ll=Qr((function(e,t){return function(n){return Mr(n,e,t)}})),cl=Qr((function(e,t){return function(n){return Mr(e,n,t)}}));function sl(e,t,n){var r=Au(t),o=Sr(t,r);null!=n||ru(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Sr(t,Au(t)));var a=!(ru(n)&&"chain"in n&&!n.chain),i=eu(e);return Zt(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),o=n.__actions__=Mo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function fl(){}var dl=Ko(Rt),pl=Ko(Pt),vl=Ko(Lt);function hl(e){return Ca(e)?Wt(Fa(e)):function(e){return function(t){return kr(t,e)}}(e)}var ml=qo(),yl=qo(!0);function gl(){return[]}function bl(){return!1}var wl=Wo((function(e,t){return e+t}),0),El=Xo("ceil"),xl=Wo((function(e,t){return e/t}),1),Cl=Xo("floor");var Sl,kl=Wo((function(e,t){return e*t}),1),_l=Xo("round"),Zl=Wo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ne(a);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ni,Un.assign=xu,Un.assignIn=Cu,Un.assignInWith=Su,Un.assignWith=ku,Un.at=_u,Un.before=Ti,Un.bind=Mi,Un.bindAll=nl,Un.bindKey=Ri,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $i(e)?e:[e]},Un.chain=hi,Un.chunk=function(e,t,n){t=(n?xa(e,t,n):t===o)?1:wn(yu(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,u=0,l=r(ht(a/t));ia?0:a+n),(r=r===o||r>a?a:yu(r))<0&&(r+=a),r=n>r?0:gu(r);n>>0)?(e=Eu(e))&&("string"==typeof t||null!=t&&!lu(t))&&!(t=fo(t))&&un(e)?So(vn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ne(a);return t=null==t?0:wn(yu(t),0),Qr((function(n){var r=n[t],o=So(n,0,t);return r&&At(o,r),kt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ao(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ao(e,0,(t=n||t===o?1:yu(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ao(e,(t=r-(t=n||t===o?1:yu(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?mo(e,fa(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?mo(e,fa(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ne(a);return ru(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ai(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=mi,Un.toArray=hu,Un.toPairs=Vu,Un.toPairsIn=Uu,Un.toPath=function(e){return $i(e)?Rt(e,Fa):fu(e)?[e]:Mo(za(Eu(e)))},Un.toPlainObject=wu,Un.transform=function(e,t,n){var r=$i(e),o=r||Xi(e)||du(e);if(t=fa(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:ru(e)&&eu(a)?Bn($e(e)):{}}return(o?Zt:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return Ni(e,1)},Un.union=oi,Un.unionBy=ai,Un.unionWith=ii,Un.uniq=function(e){return e&&e.length?po(e):[]},Un.uniqBy=function(e,t){return e&&e.length?po(e,fa(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Un.unset=function(e,t){return null==e||vo(e,t)},Un.unzip=ui,Un.unzipWith=li,Un.update=function(e,t,n){return null==e?e:ho(e,t,Eo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,Eo(n),r)},Un.values=Bu,Un.valuesIn=function(e){return null==e?[]:Qt(e,ju(e))},Un.without=ci,Un.words=el,Un.wrap=function(e,t){return Fi(Eo(t),e)},Un.xor=si,Un.xorBy=fi,Un.xorWith=di,Un.zip=pi,Un.zipObject=function(e,t){return bo(e||[],t||[],rr)},Un.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Un.zipWith=vi,Un.entries=Vu,Un.entriesIn=Uu,Un.extend=Cu,Un.extendWith=Su,sl(Un,Un),Un.add=wl,Un.attempt=tl,Un.camelCase=Hu,Un.capitalize=Wu,Un.ceil=El,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=bu(n))==n?n:0),t!==o&&(t=(t=bu(t))==t?t:0),cr(bu(e),t,n)},Un.clone=function(e){return sr(e,4)},Un.cloneDeep=function(e){return sr(e,5)},Un.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||fr(e,t,Au(t))},Un.deburr=Ku,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=xl,Un.endsWith=function(e,t,n){e=Eu(e),t=fo(t);var r=e.length,a=n=n===o?r:cr(yu(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Un.eq=Bi,Un.escape=function(e){return(e=Eu(e))&&X.test(e)?e.replace(Y,on):e},Un.escapeRegExp=function(e){return(e=Eu(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},Un.every=function(e,t,n){var r=$i(e)?Pt:mr;return n&&xa(e,t,n)&&(t=o),r(e,fa(t,3))},Un.find=bi,Un.findIndex=Ka,Un.findKey=function(e,t){return zt(e,fa(t,3),xr)},Un.findLast=wi,Un.findLastIndex=$a,Un.findLastKey=function(e,t){return zt(e,fa(t,3),Cr)},Un.floor=Cl,Un.forEach=Ei,Un.forEachRight=xi,Un.forIn=function(e,t){return null==e?e:wr(e,fa(t,3),ju)},Un.forInRight=function(e,t){return null==e?e:Er(e,fa(t,3),ju)},Un.forOwn=function(e,t){return e&&xr(e,fa(t,3))},Un.forOwnRight=function(e,t){return e&&Cr(e,fa(t,3))},Un.get=Pu,Un.gt=Hi,Un.gte=Wi,Un.has=function(e,t){return null!=e&&ga(e,t,Pr)},Un.hasIn=Nu,Un.head=Ya,Un.identity=il,Un.includes=function(e,t,n,r){e=Yi(e)?e:Bu(e),n=n&&!r?yu(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),su(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:yu(n);return o<0&&(o=wn(r+o,0)),Vt(e,t,o)},Un.inRange=function(e,t,n){return t=mu(t),n===o?(n=t,t=0):n=mu(n),function(e,t,n){return e>=En(t,n)&&e=-9007199254740991&&e<=v},Un.isSet=cu,Un.isString=su,Un.isSymbol=fu,Un.isTypedArray=du,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return ou(e)&&ya(e)==R},Un.isWeakSet=function(e){return ou(e)&&"[object WeakSet]"==Zr(e)},Un.join=function(e,t){return null==e?"":gn.call(e,t)},Un.kebabCase=$u,Un.last=Ja,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==o&&(a=(a=yu(n))<0?wn(r+a,0):En(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ft(e,Bt,a,!0)},Un.lowerCase=qu,Un.lowerFirst=Yu,Un.lt=pu,Un.lte=vu,Un.max=function(e){return e&&e.length?yr(e,il,Or):o},Un.maxBy=function(e,t){return e&&e.length?yr(e,fa(t,2),Or):o},Un.mean=function(e){return Ht(e,il)},Un.meanBy=function(e,t){return Ht(e,fa(t,2))},Un.min=function(e){return e&&e.length?yr(e,il,Fr):o},Un.minBy=function(e,t){return e&&e.length?yr(e,fa(t,2),Fr):o},Un.stubArray=gl,Un.stubFalse=bl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=kl,Un.nth=function(e,t){return e&&e.length?Wr(e,yu(t)):o},Un.noConflict=function(){return pt._===this&&(pt._=Ve),this},Un.noop=fl,Un.now=Pi,Un.pad=function(e,t,n){e=Eu(e);var r=(t=yu(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(yt(o),n)+e+$o(ht(o),n)},Un.padEnd=function(e,t,n){e=Eu(e);var r=(t=yu(t))?pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Sn();return En(e+a*(t-e+ct("1e-"+((a+"").length-1))),t)}return Gr(e,t)},Un.reduce=function(e,t,n){var r=$i(e)?jt:$t,o=arguments.length<3;return r(e,fa(t,4),n,o,vr)},Un.reduceRight=function(e,t,n){var r=$i(e)?It:$t,o=arguments.length<3;return r(e,fa(t,4),n,o,hr)},Un.repeat=function(e,t,n){return t=(n?xa(e,t,n):t===o)?1:yu(t),Xr(Eu(e),t)},Un.replace=function(){var e=arguments,t=Eu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,a=(t=xo(t,e)).length;for(a||(a=1,e=o);++rv)return[];var n=m,r=En(e,m);t=fa(t),e-=m;for(var o=Yt(r,t);++n=i)return e;var l=n-pn(r);if(l<1)return r;var c=u?So(u,0,l).join(""):e.slice(0,l);if(a===o)return c+r;if(u&&(l+=c.length-l),lu(a)){if(e.slice(l).search(a)){var s,f=c;for(a.global||(a=Oe(a.source,Eu(he.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var d=s.index;c=c.slice(0,d===o?l:d)}}else if(e.indexOf(fo(a),l)!=l){var p=c.lastIndexOf(a);p>-1&&(c=c.slice(0,p))}return c+r},Un.unescape=function(e){return(e=Eu(e))&&G.test(e)?e.replace(q,mn):e},Un.uniqueId=function(e){var t=++Le;return Eu(e)+t},Un.upperCase=Qu,Un.upperFirst=Ju,Un.each=Ei,Un.eachRight=xi,Un.first=Ya,sl(Un,(Sl={},xr(Un,(function(e,t){Ie.call(Un.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Un.VERSION="4.17.21",Zt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Zt(["drop","take"],(function(e,t){Kn.prototype[e]=function(n){n=n===o?1:wn(yu(n),0);var r=this.__filtered__&&!t?new Kn(this):this.clone();return r.__filtered__?r.__takeCount__=En(n,r.__takeCount__):r.__views__.push({size:En(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Zt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:fa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Zt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}})),Zt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}})),Kn.prototype.compact=function(){return this.filter(il)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Kn(this):this.map((function(n){return Mr(n,e,t)}))})),Kn.prototype.reject=function(e){return this.filter(Di(fa(e)))},Kn.prototype.slice=function(e,t){e=yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=yu(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(m)},xr(Kn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Un[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,l=t instanceof Kn,c=u[0],s=l||$i(t),f=function(e){var t=a.apply(Un,At([e],u));return r&&d?t[0]:t};s&&n&&"function"==typeof c&&1!=c.length&&(l=s=!1);var d=this.__chain__,p=!!this.__actions__.length,v=i&&!d,h=l&&!p;if(!i&&s){t=h?t:new Kn(this);var m=e.apply(t,u);return m.__actions__.push({func:mi,args:[f],thisArg:o}),new Wn(m,d)}return v&&h?e.apply(this,u):(m=this.thru(f),v?r?m.value()[0]:m.value():m)})})),Zt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($i(o)?o:[],e)}return this[n]((function(n){return t.apply($i(n)?n:[],e)}))}})),xr(Kn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ie.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Bo(o,2).name]=[{name:"wrapper",func:o}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Mo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mo(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$i(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Ua(n);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:mi,args:[ri],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ri)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return yo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,et&&(Un.prototype[et]=function(){return this}),Un}();pt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},7771:(e,t,n)=>{var r=n(5639);e.exports=function(){return r.Date.now()}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},4841:(e,t,n)=>{var r=n(7561),o=n(3218),a=n(3448),i=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,u,l=o(e),c=1;c{"use strict";n.d(t,{Z:()=>ie});var r=n(4942),o=n(1413),a=n(9439),i=n(1002),u=n(7294),l=n(4203),c=n(2550),s=n(4184),f=n.n(s),d=n(8924);function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var v,h,m,y=(v=(0,d.Z)(),h="undefined"!=typeof window?window:{},m={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")},v&&("AnimationEvent"in h||delete m.animationend.animation,"TransitionEvent"in h||delete m.transitionend.transition),m),g={};if((0,d.Z)()){var b=document.createElement("div");g=b.style}var w={};function E(e){if(w[e])return w[e];var t=y[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,z.Z)((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),c=(0,a.Z)(l,2),s=c[0],f=c[1];return D((function(){if(o!==M&&o!==I){var e=F.indexOf(o),n=F[e+1],r=t(o);false===r?i(n):s((function(e){function t(){e.isCanceled()||i(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),u.useEffect((function(){return function(){f()}}),[]),[function(){i(R)},o]};function B(e,t,n,i){var l=i.motionEnter,c=void 0===l||l,s=i.motionAppear,f=void 0===s||s,d=i.motionLeave,p=void 0===d||d,v=i.motionDeadline,h=i.motionLeaveImmediately,m=i.onAppearPrepare,y=i.onEnterPrepare,g=i.onLeavePrepare,b=i.onAppearStart,w=i.onEnterStart,E=i.onLeaveStart,x=i.onAppearActive,C=i.onEnterActive,S=i.onLeaveActive,Z=i.onAppearEnd,M=i.onEnterEnd,I=i.onLeaveEnd,z=i.onVisibleChanged,F=L(),B=(0,a.Z)(F,2),H=B[0],W=B[1],K=L(O),$=(0,a.Z)(K,2),q=$[0],Y=$[1],G=L(null),X=(0,a.Z)(G,2),Q=X[0],J=X[1],ee=(0,u.useRef)(!1),te=(0,u.useRef)(null),ne=(0,u.useRef)(!1),re=(0,u.useRef)(null);function oe(){return n()||re.current}var ae=(0,u.useRef)(!1);function ie(e){var t,n=oe();e&&!e.deadline&&e.target!==n||(q===P&&ae.current?t=null==Z?void 0:Z(n,e):q===N&&ae.current?t=null==M?void 0:M(n,e):q===T&&ae.current&&(t=null==I?void 0:I(n,e)),!1===t||ne.current||(Y(O),J(null)))}var ue=function(e){var t=(0,u.useRef)(),n=(0,u.useRef)(e);n.current=e;var r=u.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(_,r),e.removeEventListener(k,r))}return u.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(_,r),e.addEventListener(k,r),t.current=e)},o]}(ie),le=(0,a.Z)(ue,1)[0],ce=u.useMemo((function(){var e,t,n;switch(q){case"appear":return e={},(0,r.Z)(e,R,m),(0,r.Z)(e,A,b),(0,r.Z)(e,j,x),e;case"enter":return t={},(0,r.Z)(t,R,y),(0,r.Z)(t,A,w),(0,r.Z)(t,j,C),t;case"leave":return n={},(0,r.Z)(n,R,g),(0,r.Z)(n,A,E),(0,r.Z)(n,j,S),n;default:return{}}}),[q]),se=U(q,(function(e){if(e===R){var t=ce.prepare;return!!t&&t(oe())}var n;pe in ce&&J((null===(n=ce[pe])||void 0===n?void 0:n.call(ce,oe(),null))||null);return pe===j&&(le(oe()),v>0&&(clearTimeout(te.current),te.current=setTimeout((function(){ie({deadline:!0})}),v))),true})),fe=(0,a.Z)(se,2),de=fe[0],pe=fe[1],ve=V(pe);ae.current=ve,D((function(){W(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=P),r&&t&&c&&(n=N),(r&&!t&&p||!r&&h&&!t&&p)&&(n=T),n&&(Y(n),de()))}),[t]),(0,u.useEffect)((function(){(q===P&&!f||q===N&&!c||q===T&&!p)&&Y(O)}),[f,c,p]),(0,u.useEffect)((function(){return function(){clearTimeout(te.current),ne.current=!0}}),[]),(0,u.useEffect)((function(){void 0!==H&&q===O&&(null==z||z(H))}),[H,q]);var he=Q;return ce.prepare&&pe===A&&(he=(0,o.Z)({transition:"none"},he)),[q,pe,he,null!=H?H:t]}var H=n(5671),W=n(3144),K=n(9340),$=n(1129);const q=function(e){(0,K.Z)(n,e);var t=(0,$.Z)(n);function n(){return(0,H.Z)(this,n),t.apply(this,arguments)}return(0,W.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(u.Component);const Y=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,i.Z)(e)&&(t=e.transitionSupport);var s=u.forwardRef((function(e,t){var i=e.visible,s=void 0===i||i,d=e.removeOnLeave,p=void 0===d||d,v=e.forceRender,h=e.children,m=e.motionName,y=e.leavedClassName,g=e.eventProps,b=n(e),w=(0,u.useRef)(),E=(0,u.useRef)();var x=B(b,s,(function(){try{return(0,l.Z)(w.current||E.current)}catch(e){return null}}),e),C=(0,a.Z)(x,4),S=C[0],k=C[1],_=C[2],P=C[3],N=u.useRef(P);P&&(N.current=!0);var T=(0,u.useRef)(t);T.current=t;var M,j=u.useCallback((function(e){w.current=e,(0,c.mH)(T.current,e)}),[]),I=(0,o.Z)((0,o.Z)({},g),{},{visible:s});if(h)if(S!==O&&n(e)){var L,D;k===R?D="prepare":V(k)?D="active":k===A&&(D="start"),M=h((0,o.Z)((0,o.Z)({},I),{},{className:f()(Z(m,S),(L={},(0,r.Z)(L,Z(m,"".concat(S,"-").concat(D)),D),(0,r.Z)(L,m,"string"==typeof m),L)),style:_}),j)}else M=P?h((0,o.Z)({},I),j):!p&&N.current?h((0,o.Z)((0,o.Z)({},I),{},{className:y}),j):v?h((0,o.Z)((0,o.Z)({},I),{},{style:{display:"none"}}),j):null;else M=null;return u.createElement(q,{ref:E},M)}));return s.displayName="CSSMotion",s}(S);var G=n(7462),X=n(4925),Q="add",J="keep",ee="remove",te="removed";function ne(e){var t;return t=e&&"object"===(0,i.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ne)}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=re(e),u=re(t);i.forEach((function(e){for(var t=!1,i=r;i1}));return c.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ee}))).forEach((function(t){t.key===e&&(t.status=J)}))})),n}var ae=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,n=function(e){(0,K.Z)(r,e);var n=(0,$.Z)(r);function r(){var e;return(0,H.Z)(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,o.Z)((0,o.Z)({},e),{},{status:te})}))}}))},e}return(0,W.Z)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,a=r.children,i=r.onVisibleChanged,l=(0,X.Z)(r,["component","children","onVisibleChanged"]),c=o||u.Fragment,s={};return ae.forEach((function(e){s[e]=l[e],delete l[e]})),delete l.keys,u.createElement(c,l,n.map((function(n){var r=n.status,o=(0,X.Z)(n,["status"]),l=r===Q||r===J;return u.createElement(t,(0,G.Z)({},s,{key:o.key,visible:l,eventProps:o,onVisibleChanged:function(t){null==i||i(t,{key:o.key}),t||e.removeKey(o.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=re(n);return{keyEntities:oe(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==te||e.status!==ee}))}}}]),r}(u.Component);n.defaultProps={component:"div"}}(S);const ie=Y},9214:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(7462),o=n(1413),a=n(9439),i=n(4925),u=n(7294),l=n(4184),c=n.n(l),s=n(8717),f=void 0;function d(e,t){var n=e.prefixCls,a=e.invalidate,l=e.item,d=e.renderItem,p=e.responsive,v=e.registerSize,h=e.itemKey,m=e.className,y=e.style,g=e.children,b=e.display,w=e.order,E=e.component,x=void 0===E?"div":E,C=(0,i.Z)(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),S=p&&!b;function k(e){v(h,e)}u.useEffect((function(){return function(){k(null)}}),[]);var _,Z=d&&l!==f?d(l):g;a||(_={opacity:S?0:1,height:S?0:f,overflowY:S?"hidden":f,order:p?w:f,pointerEvents:S?"none":f,position:S?"absolute":f});var O={};S&&(O["aria-hidden"]=!0);var P=u.createElement(x,(0,r.Z)({className:c()(!a&&n,m),style:(0,o.Z)((0,o.Z)({},_),y)},O,C,{ref:t}),Z);return p&&(P=u.createElement(s.Z,{onResize:function(e){k(e.offsetWidth)}},P)),P}var p=u.forwardRef(d);p.displayName="Item";const v=p;var h=n(5164);var m=function(e,t){var n=u.useContext(b);if(!n){var o=e.component,a=void 0===o?"div":o,l=(0,i.Z)(e,["component"]);return u.createElement(a,(0,r.Z)({},l,{ref:t}))}var s=n.className,f=(0,i.Z)(n,["className"]),d=e.className,p=(0,i.Z)(e,["className"]);return u.createElement(b.Provider,{value:null},u.createElement(v,(0,r.Z)({ref:t,className:c()(s,d)},f,p)))},y=u.forwardRef(m);y.displayName="RawItem";const g=y;var b=u.createContext(null),w="responsive",E="invalidate";function x(e){return"+ ".concat(e.length," ...")}function C(e,t){var n=e.prefixCls,l=void 0===n?"rc-overflow":n,f=e.data,d=void 0===f?[]:f,p=e.renderItem,m=e.renderRawItem,y=e.itemKey,g=e.itemWidth,C=void 0===g?10:g,S=e.ssr,k=e.style,_=e.className,Z=e.maxCount,O=e.renderRest,P=e.renderRawRest,N=e.suffix,T=e.component,M=void 0===T?"div":T,R=e.itemComponent,A=e.onVisibleChange,j=(0,i.Z)(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),I=function(){var e=(0,u.useState)({}),t=(0,a.Z)(e,2)[1],n=(0,u.useRef)([]),r=(0,u.useRef)(!1),o=0,i=0;return(0,u.useEffect)((function(){return function(){r.current=!0}}),[]),function(e){var a=o;return o+=1,n.current.lengthZ,Ce=(0,u.useMemo)((function(){var e=d;return we?e=null===F&&L?d:d.slice(0,Math.min(d.length,U/C)):"number"==typeof Z&&(e=d.slice(0,Z)),e}),[d,C,F,Z,we]),Se=(0,u.useMemo)((function(){return we?d.slice(pe+1):d.slice(Ce.length)}),[d,Ce,we,pe]),ke=(0,u.useCallback)((function(e,t){var n;return"function"==typeof y?y(e):null!==(n=y&&(null==e?void 0:e[y]))&&void 0!==n?n:t}),[y]),_e=(0,u.useCallback)(p||function(e){return e},[p]);function Ze(e,t){de(e),t||(ye(eU){Ze(r-1),le(e-o-re+J);break}}N&&Pe(0)+re>U&&le(null)}}),[U,W,J,re,ke,Ce]);var Ne=me&&!!Se.length,Te={};null!==ue&&we&&(Te={position:"absolute",left:ue,top:0});var Me,Re={prefixCls:ge,responsive:we,component:R,invalidate:Ee},Ae=m?function(e,t){var n=ke(e,t);return u.createElement(b.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},Re),{},{order:t,item:e,itemKey:n,registerSize:Oe,display:t<=pe})},m(e,t))}:function(e,t){var n=ke(e,t);return u.createElement(v,(0,r.Z)({},Re,{order:t,key:n,item:e,renderItem:_e,itemKey:n,registerSize:Oe,display:t<=pe}))},je={order:Ne?pe:Number.MAX_SAFE_INTEGER,className:"".concat(ge,"-rest"),registerSize:function(e,t){ee(t),G(J)},display:Ne};if(P)P&&(Me=u.createElement(b.Provider,{value:(0,o.Z)((0,o.Z)({},Re),je)},P(Se)));else{var Ie=O||x;Me=u.createElement(v,(0,r.Z)({},Re,je),"function"==typeof Ie?Ie(Se):Ie)}var Le=u.createElement(M,(0,r.Z)({className:c()(!Ee&&l,_),style:k,ref:t},j),Ce.map(Ae),xe?Me:null,N&&u.createElement(v,(0,r.Z)({},Re,{order:pe,className:"".concat(ge,"-suffix"),registerSize:function(e,t){oe(t)},display:!0,style:Te}),N));return we&&(Le=u.createElement(s.Z,{onResize:function(e,t){V(t.clientWidth)}},Le)),Le}var S=u.forwardRef(C);S.displayName="Overflow",S.Item=g,S.RESPONSIVE=w,S.INVALIDATE=E;const k=S},8717:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(7462),o=n(7294),a=n(344),i=(n(334),n(1413)),u=n(2550),l=n(4203),c=n(1033),s=new Map;var f=new c.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=s.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var d=n(5671),p=n(3144),v=n(9340),h=n(1129),m=function(e){(0,v.Z)(n,e);var t=(0,h.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),y=o.createContext(null);function g(e){var t=e.children,n=e.disabled,r=o.useRef(null),a=o.useRef(null),c=o.useContext(y),d="function"==typeof t,p=d?t(r):t,v=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!d&&o.isValidElement(p)&&(0,u.Yr)(p),g=h?p.ref:null,b=o.useMemo((function(){return(0,u.sQ)(g,r)}),[g,r]),w=o.useRef(e);w.current=e;var E=o.useCallback((function(e){var t=w.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),a=o.width,u=o.height,l=e.offsetWidth,s=e.offsetHeight,f=Math.floor(a),d=Math.floor(u);if(v.current.width!==f||v.current.height!==d||v.current.offsetWidth!==l||v.current.offsetHeight!==s){var p={width:f,height:d,offsetWidth:l,offsetHeight:s};v.current=p;var h=l===Math.round(a)?a:l,m=s===Math.round(u)?u:s,y=(0,i.Z)((0,i.Z)({},p),{},{offsetWidth:h,offsetHeight:m});null==c||c(y,e,r),n&&Promise.resolve().then((function(){n(y,e)}))}}),[]);return o.useEffect((function(){var e,t,o=(0,l.Z)(r.current)||(0,l.Z)(a.current);return o&&!n&&(e=o,t=E,s.has(e)||(s.set(e,new Set),f.observe(e)),s.get(e).add(t)),function(){return function(e,t){s.has(e)&&(s.get(e).delete(t),s.get(e).size||(f.unobserve(e),s.delete(e)))}(o,E)}}),[r.current,n]),o.createElement(m,{ref:a},h?o.cloneElement(p,{ref:b}):p)}function b(e){var t=e.children;return("function"==typeof t?[t]:(0,a.Z)(t)).map((function(t,n){var a=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return o.createElement(g,(0,r.Z)({},e,{key:a}),t)}))}b.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),a=o.useRef([]),i=o.useContext(y),u=o.useCallback((function(e,t,o){r.current+=1;var u=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){u===r.current&&(null==n||n(a.current),a.current=[])})),null==i||i(e,t,o)}),[n,i]);return o.createElement(y.Provider,{value:u},t)};const w=b},1472:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(7462),o=n(1002),a=n(1413),i=n(4925),u=n(7294),l=n(285),c=n(3159);const s=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return u.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var f=function(e,t){var n=e.overlayClassName,f=e.trigger,d=void 0===f?["hover"]:f,p=e.mouseEnterDelay,v=void 0===p?0:p,h=e.mouseLeaveDelay,m=void 0===h?.1:h,y=e.overlayStyle,g=e.prefixCls,b=void 0===g?"rc-tooltip":g,w=e.children,E=e.onVisibleChange,x=e.afterVisibleChange,C=e.transitionName,S=e.animation,k=e.motion,_=e.placement,Z=void 0===_?"right":_,O=e.align,P=void 0===O?{}:O,N=e.destroyTooltipOnHide,T=void 0!==N&&N,M=e.defaultVisible,R=e.getTooltipContainer,A=e.overlayInnerStyle,j=(0,i.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),I=(0,u.useRef)(null);(0,u.useImperativeHandle)(t,(function(){return I.current}));var L=(0,a.Z)({},j);"visible"in e&&(L.popupVisible=e.visible);var D=!1,z=!1;if("boolean"==typeof T)D=T;else if(T&&"object"===(0,o.Z)(T)){var F=T.keepParent;D=!0===F,z=!1===F}return u.createElement(l.Z,(0,r.Z)({popupClassName:n,prefixCls:b,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[u.createElement("div",{className:"".concat(b,"-arrow"),key:"arrow"},n),u.createElement(s,{key:"content",prefixCls:b,id:o,overlay:r,overlayInnerStyle:A})]},action:d,builtinPlacements:c.C,popupPlacement:Z,ref:I,popupAlign:P,getPopupContainer:R,onPopupVisibleChange:E,afterPopupVisibleChange:x,popupTransitionName:C,popupAnimation:S,popupMotion:k,defaultPopupVisible:M,destroyPopupOnHide:D,autoDestroy:z,mouseLeaveDelay:m,popupStyle:y,mouseEnterDelay:v},L),w)};const d=(0,u.forwardRef)(f)},3159:(e,t,n)=>{"use strict";n.d(t,{C:()=>a});var r={adjustX:1,adjustY:1},o=[0,0],a={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},285:(e,t,n)=>{"use strict";n.d(t,{Z:()=>nt});var r=n(1413),o=n(7462),a=n(5671),i=n(3144),u=n(7326),l=n(9340),c=n(1129),s=n(7294),f=n(3935),d=n(5164);function p(e,t){return!!e&&e.contains(t)}var v=n(4203),h=n(2550),m=n(4019),y=n(8924);const g=(0,s.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,a=(0,s.useRef)();(0,s.useImperativeHandle)(t,(function(){return{}}));var i=(0,s.useRef)(!1);return!i.current&&(0,y.Z)()&&(a.current=r(),i.current=!0),(0,s.useEffect)((function(){null==n||n(e)})),(0,s.useEffect)((function(){return function(){var e,t;null===(e=a.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(a.current)}}),[]),a.current?f.createPortal(o,a.current):null}));var b=n(4184),w=n.n(b);function E(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var x=n(9439),C=n(4925),S=n(1131),k=n(444);function _(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function Z(e){var t=e.prefixCls,n=e.visible,a=e.zIndex,i=e.mask,u=e.maskMotion,l=e.maskAnimation,c=e.maskTransitionName;if(!i)return null;var f={};return(u||c||l)&&(f=(0,r.Z)({motionAppear:!0},_({motion:u,prefixCls:t,transitionName:c,animation:l}))),s.createElement(k.Z,(0,o.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return s.createElement("div",{style:{zIndex:a},className:w()("".concat(t,"-mask"),n)})}))}var O,P=n(1002),N=n(5110);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function be(e){var t,n,r;if(ve.isWindow(e)||9===e.nodeType){var o=ve.getWindow(e);t={left:ve.getWindowScrollLeft(o),top:ve.getWindowScrollTop(o)},n=ve.viewportWidth(o),r=ve.viewportHeight(o)}else t=ve.offset(e),n=ve.outerWidth(e),r=ve.outerHeight(e);return t.width=n,t.height=r,t}function we(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,u=e.top;return"c"===n?u+=a/2:"b"===n&&(u+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:u}}function Ee(e,t,n,r,o){var a=we(t,n[1]),i=we(e,n[0]),u=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function xe(e,t,n){return e.leftn.right}function Ce(e,t,n){return e.topn.bottom}function Se(e,t,n){var r=[];return ve.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function ke(e,t){return e[t]=-e[t],e}function _e(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ze(e,t){e[0]=_e(e[0],t.width),e[1]=_e(e[1],t.height)}function Oe(e,t,n,r){var o=n.points,a=n.offset||[0,0],i=n.targetOffset||[0,0],u=n.overflow,l=n.source||e;a=[].concat(a),i=[].concat(i);var c={},s=0,f=ge(l,!(!(u=u||{})||!u.alwaysByViewport)),d=be(l);Ze(a,d),Ze(i,t);var p=Ee(d,t,o,a,i),v=ve.merge(d,p);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&xe(p,d,f)){var h=Se(o,/[lr]/gi,{l:"r",r:"l"}),m=ke(a,0),y=ke(i,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),ve.mix(o,a)}(p,d,f,c))}return v.width!==d.width&&ve.css(l,"width",ve.width(l)+v.width-d.width),v.height!==d.height&&ve.css(l,"height",ve.height(l)+v.height-d.height),ve.offset(l,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:c}}function Pe(e,t,n){var r=n.target||t,o=be(r),a=!function(e,t){var n=ge(e,t),r=be(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Oe(e,o,n,a)}Pe.__getOffsetParent=me,Pe.__getVisibleRectForElement=ge;var Ne=n(8446),Te=n.n(Ne),Me=n(1033);function Re(e,t){var n=null,r=null;var o=new Me.Z((function(e){var o=(0,x.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var a=o.getBoundingClientRect(),i=a.width,u=a.height,l=Math.floor(i),c=Math.floor(u);n===l&&r===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,r=c}}));return e&&o.observe(e),function(){o.disconnect()}}function Ae(e){return"function"!=typeof e?null:e()}function je(e){return"object"===(0,P.Z)(e)&&e?e:null}var Ie=function(e,t){var n=e.children,r=e.disabled,o=e.target,a=e.align,i=e.onAlign,u=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,f=s.useRef({}),d=s.useRef(),v=s.Children.only(n),y=s.useRef({});y.current.disabled=r,y.current.target=o,y.current.align=a,y.current.onAlign=i;var g=function(e,t){var n=s.useRef(!1),r=s.useRef(null);function o(){window.clearTimeout(r.current)}return[function a(i){if(n.current&&!0!==i)o(),r.current=window.setTimeout((function(){n.current=!1,a()}),t);else{if(!1===e())return;n.current=!0,o(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=y.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var a,i=d.current,u=Ae(n),l=je(n);f.current.element=u,f.current.point=l,f.current.align=r;var c=document.activeElement;return u&&(0,N.Z)(u)?a=Pe(i,u,r):l&&(a=function(e,t,n){var r,o,a=ve.getDocument(e),i=a.defaultView||a.parentWindow,u=ve.getWindowScrollLeft(i),l=ve.getWindowScrollTop(i),c=ve.viewportWidth(i),s=ve.viewportHeight(i),f={left:r="pageX"in t?t.pageX:u+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=r>=0&&r<=u+c&&o>=0&&o<=l+s,p=[n.points[0],"cc"];return Oe(e,f,M(M({},n),{},{points:p}),d)}(i,l,r)),function(e,t){e!==document.activeElement&&p(t,e)&&"function"==typeof e.focus&&e.focus()}(c,i),o&&a&&o(i,a),!0}return!1}),c),b=(0,x.Z)(g,2),w=b[0],E=b[1],C=s.useRef({cancel:function(){}}),S=s.useRef({cancel:function(){}});s.useEffect((function(){var e,t,n=Ae(o),r=je(o);d.current!==S.current.element&&(S.current.cancel(),S.current.element=d.current,S.current.cancel=Re(d.current,w)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Te()(f.current.align,a)||(w(),C.current.element!==n&&(C.current.cancel(),C.current.element=n,C.current.cancel=Re(n,w)))})),s.useEffect((function(){r?E():w()}),[r]);var k=s.useRef(null);return s.useEffect((function(){u?k.current||(k.current=(0,m.Z)(window,"resize",w)):k.current&&(k.current.remove(),k.current=null)}),[u]),s.useEffect((function(){return function(){C.current.cancel(),S.current.cancel(),k.current&&k.current.remove(),E()}}),[]),s.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),s.isValidElement(v)&&(v=s.cloneElement(v,{ref:(0,h.sQ)(v.ref,d)})),v},Le=s.forwardRef(Ie);Le.displayName="Align";const De=Le;var ze=n(7757),Fe=n.n(ze);function Ve(e,t,n,r,o,a,i){try{var u=e[a](i),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function Ue(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){Ve(a,r,o,i,u,"next",e)}function u(e){Ve(a,r,o,i,u,"throw",e)}i(void 0)}))}}var Be=["measure","align",null,"motion"];var He=s.forwardRef((function(e,t){var n=e.visible,a=e.prefixCls,i=e.className,u=e.style,l=e.children,c=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,v=e.forceRender,h=e.align,m=e.point,y=e.getRootDomNode,g=e.getClassNameFromAlign,b=e.onAlign,E=e.onMouseEnter,C=e.onMouseLeave,S=e.onMouseDown,Z=e.onTouchStart,O=(0,s.useRef)(),P=(0,s.useRef)(),N=(0,s.useState)(),T=(0,x.Z)(N,2),M=T[0],R=T[1],A=function(e){var t=s.useState({width:0,height:0}),n=(0,x.Z)(t,2),r=n[0],o=n[1];return[s.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(f),j=(0,x.Z)(A,2),I=j[0],L=j[1];var D=function(e,t){var n=(0,s.useState)(null),r=(0,x.Z)(n,2),o=r[0],a=r[1],i=(0,s.useRef)(),u=(0,s.useRef)(!1);function l(e){u.current||a(e)}function c(){d.Z.cancel(i.current)}return(0,s.useEffect)((function(){l("measure")}),[e]),(0,s.useEffect)((function(){"measure"===o&&t(),o&&(i.current=(0,d.Z)(Ue(Fe().mark((function e(){var t,n;return Fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Be.indexOf(o),(n=Be[t+1])&&-1!==t&&l(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,s.useEffect)((function(){return function(){u.current=!0,c()}}),[]),[o,function(e){c(),i.current=(0,d.Z)((function(){l((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){f&&L(y())})),z=(0,x.Z)(D,2),F=z[0],V=z[1],U=(0,s.useRef)();function B(){var e;null===(e=O.current)||void 0===e||e.forceAlign()}function H(e,t){var n=g(t);M!==n&&R(n),"align"===F&&(M!==n?Promise.resolve().then((function(){B()})):V((function(){var e;null===(e=U.current)||void 0===e||e.call(U)})),null==b||b(e,t))}var W=(0,r.Z)({},_(e));function K(){return new Promise((function(e){U.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=W[e];W[e]=function(e,n){return V(),null==t?void 0:t(e,n)}})),s.useEffect((function(){W.motionName||"motion"!==F||V()}),[W.motionName,F]),s.useImperativeHandle(t,(function(){return{forceAlign:B,getElement:function(){return P.current}}}));var $=(0,r.Z)((0,r.Z)({},I),{},{zIndex:c,opacity:"motion"!==F&&"stable"!==F&&n?0:void 0,pointerEvents:"stable"===F?void 0:"none"},u),q=!0;!(null==h?void 0:h.points)||"align"!==F&&"stable"!==F||(q=!1);var Y=l;return s.Children.count(l)>1&&(Y=s.createElement("div",{className:"".concat(a,"-content")},l)),s.createElement(k.Z,(0,o.Z)({visible:n,ref:P,leavedClassName:"".concat(a,"-hidden")},W,{onAppearPrepare:K,onEnterPrepare:K,removeOnLeave:p,forceRender:v}),(function(e,t){var n=e.className,o=e.style,u=w()(a,i,M,n);return s.createElement(De,{target:m||y,key:"popup",ref:O,monitorWindowResize:!0,disabled:q,align:h,onAlign:H},s.createElement("div",{ref:t,className:u,onMouseEnter:E,onMouseLeave:C,onMouseDownCapture:S,onTouchStartCapture:Z,style:(0,r.Z)((0,r.Z)({},o),$)},Y))}))}));He.displayName="PopupInner";const We=He;var Ke=s.forwardRef((function(e,t){var n=e.prefixCls,a=e.visible,i=e.zIndex,u=e.children,l=e.mobile,c=(l=void 0===l?{}:l).popupClassName,f=l.popupStyle,d=l.popupMotion,p=void 0===d?{}:d,v=l.popupRender,h=s.useRef();s.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var m=(0,r.Z)({zIndex:i},f),y=u;return s.Children.count(u)>1&&(y=s.createElement("div",{className:"".concat(n,"-content")},u)),v&&(y=v(y)),s.createElement(k.Z,(0,o.Z)({visible:a,ref:h,removeOnLeave:!0},p),(function(e,t){var o=e.className,a=e.style,i=w()(n,c,o);return s.createElement("div",{ref:t,className:i,style:(0,r.Z)((0,r.Z)({},a),m)},y)}))}));Ke.displayName="MobilePopupInner";const $e=Ke;var qe=["visible","mobile"],Ye=s.forwardRef((function(e,t){var n=e.visible,a=e.mobile,i=(0,C.Z)(e,qe),u=(0,s.useState)(n),l=(0,x.Z)(u,2),c=l[0],f=l[1],d=(0,s.useState)(!1),p=(0,x.Z)(d,2),v=p[0],h=p[1],m=(0,r.Z)((0,r.Z)({},i),{},{visible:c});(0,s.useEffect)((function(){f(n),n&&a&&h((0,S.Z)())}),[n,a]);var y=v?s.createElement($e,(0,o.Z)({},m,{mobile:a,ref:t})):s.createElement(We,(0,o.Z)({},m,{ref:t}));return s.createElement("div",null,s.createElement(Z,m),y)}));Ye.displayName="Popup";const Ge=Ye;const Xe=s.createContext(null);function Qe(){}function Je(){return""}function et(e){return e?e.ownerDocument:window.document}var tt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const nt=(rt=g,ot=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r,i;return(0,a.Z)(this,n),(r=t.call(this,e)).popupRef=s.createRef(),r.triggerRef=s.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&p(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();p(n,t)&&!r.isContextMenuOnly()||p(o,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,v.Z)(r.triggerRef.current);if(t)return t}catch(e){}return f.findDOMNode((0,u.Z)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,o=n.popupPlacement,a=n.builtinPlacements,i=n.prefixCls,u=n.alignPoint,l=n.getPopupClassNameFromAlign;return o&&a&&t.push(function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i{"use strict";n.d(t,{Z:()=>a});var r=n(7294),o=n(9864);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},4019:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3935);function o(e,t,n,o){var a=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,a,o),{remove:function(){e.removeEventListener&&e.removeEventListener(t,a)}}}},8924:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:()=>r})},4958:(e,t,n)=>{"use strict";n.d(t,{hq:()=>c});var r=n(8924),o="rc-util-key";function a(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var o,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(o=n.csp)||void 0===o?void 0:o.nonce);i.innerHTML=e;var u=a(n),l=u.firstChild;return n.prepend&&u.prepend?u.prepend(i):n.prepend&&l?u.insertBefore(i,l):u.appendChild(i),i}var u=new Map;function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a(t);return Array.from(u.get(n).children).find((function(t){return"STYLE"===t.tagName&&t[o]===e}))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a(n);if(!u.has(r)){var c=i("",n),s=c.parentNode;u.set(r,s),s.removeChild(c)}var f=l(t,n);if(f){var d,p,v;if((null===(d=n.csp)||void 0===d?void 0:d.nonce)&&f.nonce!==(null===(p=n.csp)||void 0===p?void 0:p.nonce))f.nonce=null===(v=n.csp)||void 0===v?void 0:v.nonce;return f.innerHTML!==e&&(f.innerHTML=e),f}var h=i(e,n);return h[o]=t,h}},4203:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3935);function o(e){return e instanceof HTMLElement?e:r.findDOMNode(e)}},5110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}},5105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},1770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9439),o=n(7294);function a(e,t){var n=t||{},a=n.defaultValue,i=n.value,u=n.onChange,l=n.postState,c=o.useState((function(){return void 0!==i?i:void 0!==a?"function"==typeof a?a():a:"function"==typeof e?e():e})),s=(0,r.Z)(c,2),f=s[0],d=s[1],p=void 0!==i?i:f;l&&(p=l(p));var v=o.useRef(u);v.current=u;var h=o.useCallback((function(e){d(e),p!==e&&v.current&&v.current(e,p)}),[p,v]),m=o.useRef(!0);return o.useEffect((function(){m.current?m.current=!1:void 0===i&&d(i)}),[i]),[p,h]}},1131:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}},8423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1413);function o(e,t){var n=(0,r.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},5164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function u(e){i.delete(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=a+=1;function o(t){if(0===t)u(n),e();else{var a=r((function(){o(t-1)}));i.set(n,a)}}return o(t),n}l.cancel=function(e){var t=i.get(e);return u(t),o(t)}},2550:(e,t,n)=>{"use strict";n.d(t,{mH:()=>i,sQ:()=>u,x1:()=>l,Yr:()=>c});var r=n(1002),o=n(9864),a=n(6982);function i(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function u(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{ZP:()=>i});var r={};function o(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}const i=function(e,t){a(o,e,t)}},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(7418),a=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n